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 jdk9.
  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='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 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 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LCMS
 660 LCMS_LIBS
 661 LCMS_CFLAGS
 662 USE_EXTERNAL_LIBGIF
 663 USE_EXTERNAL_LIBJPEG
 664 ALSA_LIBS
 665 ALSA_CFLAGS
 666 FREETYPE_BUNDLE_LIB_PATH
 667 FREETYPE_LIBS
 668 FREETYPE_CFLAGS
 669 CUPS_CFLAGS
 670 X_EXTRA_LIBS
 671 X_LIBS
 672 X_PRE_LIBS
 673 X_CFLAGS
 674 XMKMF
 675 FIXPATH
 676 ZIP_DEBUGINFO_FILES
 677 ENABLE_DEBUG_SYMBOLS
 678 CFLAGS_WARNINGS_ARE_ERRORS
 679 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 680 ZERO_ARCHFLAG
 681 LDFLAGS_CXX_JDK
 682 LDFLAGS_JDKEXE_SUFFIX
 683 LDFLAGS_JDKLIB_SUFFIX
 684 LDFLAGS_JDKEXE
 685 LDFLAGS_JDKLIB
 686 CXXFLAGS_JDKEXE
 687 CXXFLAGS_JDKLIB
 688 CFLAGS_JDKEXE
 689 CFLAGS_JDKLIB
 690 MACOSX_VERSION_MIN
 691 LEGACY_EXTRA_LDFLAGS
 692 LEGACY_EXTRA_CXXFLAGS
 693 LEGACY_EXTRA_CFLAGS
 694 CXX_O_FLAG_NONE
 695 CXX_O_FLAG_NORM
 696 CXX_O_FLAG_HI
 697 CXX_O_FLAG_HIGHEST
 698 C_O_FLAG_NONE
 699 C_O_FLAG_NORM
 700 C_O_FLAG_HI
 701 C_O_FLAG_HIGHEST
 702 CXXFLAGS_DEBUG_SYMBOLS
 703 CFLAGS_DEBUG_SYMBOLS
 704 CXX_FLAG_DEPS
 705 C_FLAG_DEPS
 706 SET_SHARED_LIBRARY_MAPFILE
 707 SET_SHARED_LIBRARY_NAME
 708 SET_SHARED_LIBRARY_ORIGIN
 709 SET_EXECUTABLE_ORIGIN
 710 SHARED_LIBRARY_FLAGS
 711 CXX_FLAG_REORDER
 712 C_FLAG_REORDER
 713 SYSROOT_LDFLAGS
 714 SYSROOT_CFLAGS
 715 RC_FLAGS
 716 AR_OUT_OPTION
 717 LD_OUT_OPTION
 718 EXE_OUT_OPTION
 719 CC_OUT_OPTION
 720 POST_MCS_CMD
 721 POST_STRIP_CMD
 722 ARFLAGS
 723 COMPILER_TARGET_BITS_FLAG
 724 JT_HOME
 725 JTREGEXE
 726 USING_BROKEN_SUSE_LD
 727 PACKAGE_PATH
 728 LDEXECXX
 729 LDEXE
 730 USE_CLANG
 731 HOTSPOT_LD
 732 HOTSPOT_CXX
 733 HOTSPOT_RC
 734 HOTSPOT_MT
 735 BUILD_LD
 736 BUILD_CXX
 737 BUILD_CC
 738 ac_ct_OBJDUMP
 739 OBJDUMP
 740 ac_ct_OBJCOPY
 741 OBJCOPY
 742 ac_ct_NM
 743 ac_ct_STRIP
 744 MCS
 745 GNM
 746 NM
 747 STRIP
 748 DUMPBIN
 749 RC
 750 MT
 751 LIPO
 752 ac_ct_OBJC
 753 OBJCFLAGS
 754 OBJC
 755 ac_ct_AR
 756 AR
 757 AS
 758 LDCXX
 759 LD
 760 CXXCPP
 761 CPP
 762 ac_ct_CXX
 763 CXXFLAGS
 764 CXX
 765 ac_ct_PROPER_COMPILER_CXX
 766 PROPER_COMPILER_CXX
 767 TOOLCHAIN_PATH_CXX
 768 POTENTIAL_CXX
 769 OBJEXT
 770 EXEEXT
 771 ac_ct_CC
 772 CPPFLAGS
 773 LDFLAGS
 774 CFLAGS
 775 CC
 776 ac_ct_PROPER_COMPILER_CC
 777 PROPER_COMPILER_CC
 778 TOOLCHAIN_PATH_CC
 779 POTENTIAL_CC
 780 VS_LIB
 781 VS_INCLUDE
 782 VS_PATH
 783 CYGWIN_LINK
 784 EXE_SUFFIX
 785 OBJ_SUFFIX
 786 STATIC_LIBRARY
 787 SHARED_LIBRARY
 788 STATIC_LIBRARY_SUFFIX
 789 SHARED_LIBRARY_SUFFIX
 790 LIBRARY_PREFIX
 791 TOOLCHAIN_TYPE
 792 BUILD_HOTSPOT
 793 HOTSPOT_DIST
 794 BUILD_OUTPUT
 795 OVERRIDE_SRC_ROOT
 796 ADD_SRC_ROOT
 797 JDK_TOPDIR
 798 NASHORN_TOPDIR
 799 HOTSPOT_TOPDIR
 800 JAXWS_TOPDIR
 801 JAXP_TOPDIR
 802 CORBA_TOPDIR
 803 LANGTOOLS_TOPDIR
 804 JAVA_FLAGS_SMALL
 805 JAVA_FLAGS_BIG
 806 JAVA_FLAGS
 807 JAVAC_FLAGS
 808 BOOT_JDK_SOURCETARGET
 809 JARSIGNER
 810 NATIVE2ASCII
 811 JAR
 812 JAVAH
 813 JAVAC
 814 JAVA
 815 BOOT_JDK
 816 BOOT_TOOLSJAR
 817 BOOT_RTJAR
 818 JAVA_CHECK
 819 JAVAC_CHECK
 820 COOKED_BUILD_NUMBER
 821 JDK_VERSION
 822 COPYRIGHT_YEAR
 823 MACOSX_BUNDLE_ID_BASE
 824 MACOSX_BUNDLE_NAME_BASE
 825 COMPANY_NAME
 826 JDK_RC_PLATFORM_NAME
 827 PRODUCT_SUFFIX
 828 PRODUCT_NAME
 829 LAUNCHER_NAME
 830 MILESTONE
 831 JDK_BUILD_NUMBER
 832 JDK_UPDATE_VERSION
 833 JDK_MICRO_VERSION
 834 JDK_MINOR_VERSION
 835 JDK_MAJOR_VERSION
 836 USER_RELEASE_SUFFIX
 837 COMPRESS_JARS
 838 RMICONNECTOR_IIOP
 839 UNLIMITED_CRYPTO
 840 CACERTS_FILE
 841 TEST_IN_BUILD
 842 BUILD_HEADLESS
 843 SUPPORT_HEADFUL
 844 SUPPORT_HEADLESS
 845 BDEPS_FTP
 846 BDEPS_UNZIP
 847 OS_VERSION_MICRO
 848 OS_VERSION_MINOR
 849 OS_VERSION_MAJOR
 850 PKG_CONFIG
 851 CODESIGN
 852 XATTR
 853 DSYMUTIL
 854 IS_GNU_TIME
 855 TIME
 856 STAT
 857 HG
 858 READELF
 859 OTOOL
 860 LDD
 861 ZIP
 862 UNZIP
 863 FIND_DELETE
 864 MAKE
 865 CHECK_TOOLSDIR_MAKE
 866 CHECK_TOOLSDIR_GMAKE
 867 CHECK_MAKE
 868 CHECK_GMAKE
 869 PKGHANDLER
 870 OUTPUT_ROOT
 871 CONF_NAME
 872 SPEC
 873 BUILD_VARIANT_RELEASE
 874 DEBUG_CLASSFILES
 875 FASTDEBUG
 876 VARIANT
 877 DEBUG_LEVEL
 878 MACOSX_UNIVERSAL
 879 INCLUDE_SA
 880 JVM_VARIANT_CORE
 881 JVM_VARIANT_ZEROSHARK
 882 JVM_VARIANT_ZERO
 883 JVM_VARIANT_KERNEL
 884 JVM_VARIANT_MINIMAL1
 885 JVM_VARIANT_CLIENT
 886 JVM_VARIANT_SERVER
 887 JVM_VARIANTS
 888 JVM_INTERPRETER
 889 JDK_VARIANT
 890 SET_OPENJDK
 891 BUILD_LOG_WRAPPER
 892 BUILD_LOG_PREVIOUS
 893 BUILD_LOG
 894 TOPDIR
 895 PATH_SEP
 896 ZERO_ARCHDEF
 897 DEFINE_CROSS_COMPILE_ARCH
 898 LP64
 899 OPENJDK_TARGET_OS_EXPORT_DIR
 900 OPENJDK_TARGET_OS_API_DIR
 901 OPENJDK_TARGET_CPU_JLI_CFLAGS
 902 OPENJDK_TARGET_CPU_OSARCH
 903 OPENJDK_TARGET_CPU_ISADIR
 904 OPENJDK_TARGET_CPU_LIBDIR
 905 OPENJDK_TARGET_CPU_LEGACY_LIB
 906 OPENJDK_TARGET_CPU_LEGACY
 907 REQUIRED_OS_VERSION
 908 REQUIRED_OS_NAME
 909 COMPILE_TYPE
 910 OPENJDK_TARGET_CPU_ENDIAN
 911 OPENJDK_TARGET_CPU_BITS
 912 OPENJDK_TARGET_CPU_ARCH
 913 OPENJDK_TARGET_CPU
 914 OPENJDK_TARGET_OS_API
 915 OPENJDK_TARGET_OS
 916 OPENJDK_BUILD_CPU_ENDIAN
 917 OPENJDK_BUILD_CPU_BITS
 918 OPENJDK_BUILD_CPU_ARCH
 919 OPENJDK_BUILD_CPU
 920 OPENJDK_BUILD_OS_API
 921 OPENJDK_BUILD_OS
 922 OPENJDK_BUILD_AUTOCONF_NAME
 923 OPENJDK_TARGET_AUTOCONF_NAME
 924 target_os
 925 target_vendor
 926 target_cpu
 927 target
 928 host_os
 929 host_vendor
 930 host_cpu
 931 host
 932 build_os
 933 build_vendor
 934 build_cpu
 935 build
 936 SETFILE
 937 DF
 938 READLINK
 939 CYGPATH
 940 SED
 941 FGREP
 942 EGREP
 943 GREP
 944 AWK
 945 XARGS
 946 WHICH
 947 WC
 948 UNIQ
 949 UNAME
 950 TR
 951 TOUCH
 952 TEE
 953 TAR
 954 TAIL
 955 SORT
 956 SH
 957 RM
 958 PRINTF
 959 NAWK
 960 MV
 961 MKTEMP
 962 MKDIR
 963 LS
 964 LN
 965 HEAD
 966 FIND
 967 FILE
 968 EXPR
 969 ECHO
 970 DIRNAME
 971 DIFF
 972 DATE
 973 CUT
 974 CPIO
 975 CP
 976 COMM
 977 CMP
 978 CHMOD
 979 CAT
 980 BASH
 981 BASENAME
 982 DATE_WHEN_CONFIGURED
 983 CONFIGURE_COMMAND_LINE
 984 target_alias
 985 host_alias
 986 build_alias
 987 LIBS
 988 ECHO_T
 989 ECHO_N
 990 ECHO_C
 991 DEFS
 992 mandir
 993 localedir
 994 libdir
 995 psdir
 996 pdfdir
 997 dvidir
 998 htmldir
 999 infodir
1000 docdir
1001 oldincludedir
1002 includedir
1003 localstatedir
1004 sharedstatedir
1005 sysconfdir
1006 datadir
1007 datarootdir
1008 libexecdir
1009 sbindir
1010 bindir
1011 program_transform_name
1012 prefix
1013 exec_prefix
1014 PACKAGE_URL
1015 PACKAGE_BUGREPORT
1016 PACKAGE_STRING
1017 PACKAGE_VERSION
1018 PACKAGE_TARNAME
1019 PACKAGE_NAME
1020 PATH_SEPARATOR
1021 SHELL'
1022 ac_subst_files=''
1023 ac_user_opts='
1024 enable_option_checking
1025 with_target_bits
1026 enable_openjdk_only
1027 with_custom_make_dir
1028 with_jdk_variant
1029 with_jvm_interpreter
1030 with_jvm_variants
1031 enable_debug
1032 with_debug_level
1033 with_devkit
1034 with_sys_root
1035 with_sysroot
1036 with_tools_dir
1037 with_toolchain_path
1038 with_extra_path
1039 with_conf_name
1040 with_builddeps_conf
1041 with_builddeps_server
1042 with_builddeps_dir
1043 with_builddeps_group
1044 enable_headful
1045 enable_hotspot_test_in_build
1046 with_cacerts_file
1047 enable_unlimited_crypto
1048 enable_rmiconnector_iiop
1049 with_milestone
1050 with_update_version
1051 with_user_release_suffix
1052 with_build_number
1053 with_boot_jdk
1054 with_boot_jdk_jvmargs
1055 with_add_source_root
1056 with_override_source_root
1057 with_adds_and_overrides
1058 with_override_langtools
1059 with_override_corba
1060 with_override_jaxp
1061 with_override_jaxws
1062 with_override_hotspot
1063 with_override_nashorn
1064 with_override_jdk
1065 with_import_hotspot
1066 with_toolchain_type
1067 with_jtreg
1068 with_extra_cflags
1069 with_extra_cxxflags
1070 with_extra_ldflags
1071 enable_debug_symbols
1072 enable_zip_debug_info
1073 enable_macosx_runtime_support
1074 with_x
1075 with_cups
1076 with_cups_include
1077 with_freetype
1078 with_freetype_include
1079 with_freetype_lib
1080 enable_freetype_bundling
1081 with_alsa
1082 with_alsa_include
1083 with_alsa_lib
1084 with_giflib
1085 with_lcms
1086 with_libpng
1087 with_zlib
1088 with_stdc__lib
1089 with_msvcr_dll
1090 with_dxsdk
1091 with_dxsdk_lib
1092 with_dxsdk_include
1093 with_num_cores
1094 with_memory_size
1095 with_jobs
1096 with_sjavac_server_java
1097 enable_sjavac
1098 enable_precompiled_headers
1099 enable_ccache
1100 with_ccache_dir
1101 '
1102       ac_precious_vars='build_alias
1103 host_alias
1104 target_alias
1105 BASENAME
1106 BASH
1107 CAT
1108 CHMOD
1109 CMP
1110 COMM
1111 CP
1112 CPIO
1113 CUT
1114 DATE
1115 DIFF
1116 DIRNAME
1117 ECHO
1118 EXPR
1119 FILE
1120 FIND
1121 HEAD
1122 LN
1123 LS
1124 MKDIR
1125 MKTEMP
1126 MV
1127 NAWK
1128 PRINTF
1129 RM
1130 SH
1131 SORT
1132 TAIL
1133 TAR
1134 TEE
1135 TOUCH
1136 TR
1137 UNAME
1138 UNIQ
1139 WC
1140 WHICH
1141 XARGS
1142 AWK
1143 GREP
1144 EGREP
1145 FGREP
1146 SED
1147 CYGPATH
1148 READLINK
1149 DF
1150 SETFILE
1151 UNZIP
1152 ZIP
1153 LDD
1154 OTOOL
1155 READELF
1156 HG
1157 STAT
1158 TIME
1159 DSYMUTIL
1160 XATTR
1161 CODESIGN
1162 PKG_CONFIG
1163 JAVA
1164 JAVAC
1165 JAVAH
1166 JAR
1167 NATIVE2ASCII
1168 JARSIGNER
1169 CC
1170 CFLAGS
1171 LDFLAGS
1172 LIBS
1173 CPPFLAGS
1174 CXX
1175 CXXFLAGS
1176 CCC
1177 CPP
1178 CXXCPP
1179 AS
1180 AR
1181 OBJC
1182 OBJCFLAGS
1183 LIPO
1184 STRIP
1185 NM
1186 GNM
1187 MCS
1188 OBJCOPY
1189 OBJDUMP
1190 BUILD_CC
1191 BUILD_CXX
1192 BUILD_LD
1193 JTREGEXE
1194 XMKMF
1195 FREETYPE_CFLAGS
1196 FREETYPE_LIBS
1197 ALSA_CFLAGS
1198 ALSA_LIBS
1199 LCMS_CFLAGS
1200 LCMS_LIBS
1201 PNG_CFLAGS
1202 PNG_LIBS
1203 LIBFFI_CFLAGS
1204 LIBFFI_LIBS
1205 CCACHE'
1206 
1207 
1208 # Initialize some variables set by options.
1209 ac_init_help=
1210 ac_init_version=false
1211 ac_unrecognized_opts=
1212 ac_unrecognized_sep=
1213 # The variables have the same names as the options, with
1214 # dashes changed to underlines.
1215 cache_file=/dev/null
1216 exec_prefix=NONE
1217 no_create=
1218 no_recursion=
1219 prefix=NONE
1220 program_prefix=NONE
1221 program_suffix=NONE
1222 program_transform_name=s,x,x,
1223 silent=
1224 site=
1225 srcdir=
1226 verbose=
1227 x_includes=NONE
1228 x_libraries=NONE
1229 
1230 # Installation directory options.
1231 # These are left unexpanded so users can "make install exec_prefix=/foo"
1232 # and all the variables that are supposed to be based on exec_prefix
1233 # by default will actually change.
1234 # Use braces instead of parens because sh, perl, etc. also accept them.
1235 # (The list follows the same order as the GNU Coding Standards.)
1236 bindir='${exec_prefix}/bin'
1237 sbindir='${exec_prefix}/sbin'
1238 libexecdir='${exec_prefix}/libexec'
1239 datarootdir='${prefix}/share'
1240 datadir='${datarootdir}'
1241 sysconfdir='${prefix}/etc'
1242 sharedstatedir='${prefix}/com'
1243 localstatedir='${prefix}/var'
1244 includedir='${prefix}/include'
1245 oldincludedir='/usr/include'
1246 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1247 infodir='${datarootdir}/info'
1248 htmldir='${docdir}'
1249 dvidir='${docdir}'
1250 pdfdir='${docdir}'
1251 psdir='${docdir}'
1252 libdir='${exec_prefix}/lib'
1253 localedir='${datarootdir}/locale'
1254 mandir='${datarootdir}/man'
1255 
1256 ac_prev=
1257 ac_dashdash=
1258 for ac_option
1259 do
1260   # If the previous option needs an argument, assign it.
1261   if test -n "$ac_prev"; then
1262     eval $ac_prev=\$ac_option
1263     ac_prev=
1264     continue
1265   fi
1266 
1267   case $ac_option in
1268   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1269   *=)   ac_optarg= ;;
1270   *)    ac_optarg=yes ;;
1271   esac
1272 
1273   # Accept the important Cygnus configure options, so we can diagnose typos.
1274 
1275   case $ac_dashdash$ac_option in
1276   --)
1277     ac_dashdash=yes ;;
1278 
1279   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1280     ac_prev=bindir ;;
1281   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1282     bindir=$ac_optarg ;;
1283 
1284   -build | --build | --buil | --bui | --bu)
1285     ac_prev=build_alias ;;
1286   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1287     build_alias=$ac_optarg ;;
1288 
1289   -cache-file | --cache-file | --cache-fil | --cache-fi \
1290   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1291     ac_prev=cache_file ;;
1292   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1293   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1294     cache_file=$ac_optarg ;;
1295 
1296   --config-cache | -C)
1297     cache_file=config.cache ;;
1298 
1299   -datadir | --datadir | --datadi | --datad)
1300     ac_prev=datadir ;;
1301   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1302     datadir=$ac_optarg ;;
1303 
1304   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1305   | --dataroo | --dataro | --datar)
1306     ac_prev=datarootdir ;;
1307   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1308   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1309     datarootdir=$ac_optarg ;;
1310 
1311   -disable-* | --disable-*)
1312     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1313     # Reject names that are not valid shell variable names.
1314     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315       as_fn_error $? "invalid feature name: $ac_useropt"
1316     ac_useropt_orig=$ac_useropt
1317     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318     case $ac_user_opts in
1319       *"
1320 "enable_$ac_useropt"
1321 "*) ;;
1322       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1323          ac_unrecognized_sep=', ';;
1324     esac
1325     eval enable_$ac_useropt=no ;;
1326 
1327   -docdir | --docdir | --docdi | --doc | --do)
1328     ac_prev=docdir ;;
1329   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1330     docdir=$ac_optarg ;;
1331 
1332   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1333     ac_prev=dvidir ;;
1334   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1335     dvidir=$ac_optarg ;;
1336 
1337   -enable-* | --enable-*)
1338     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1339     # Reject names that are not valid shell variable names.
1340     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1341       as_fn_error $? "invalid feature name: $ac_useropt"
1342     ac_useropt_orig=$ac_useropt
1343     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1344     case $ac_user_opts in
1345       *"
1346 "enable_$ac_useropt"
1347 "*) ;;
1348       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1349          ac_unrecognized_sep=', ';;
1350     esac
1351     eval enable_$ac_useropt=\$ac_optarg ;;
1352 
1353   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1354   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1355   | --exec | --exe | --ex)
1356     ac_prev=exec_prefix ;;
1357   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1358   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1359   | --exec=* | --exe=* | --ex=*)
1360     exec_prefix=$ac_optarg ;;
1361 
1362   -gas | --gas | --ga | --g)
1363     # Obsolete; use --with-gas.
1364     with_gas=yes ;;
1365 
1366   -help | --help | --hel | --he | -h)
1367     ac_init_help=long ;;
1368   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1369     ac_init_help=recursive ;;
1370   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1371     ac_init_help=short ;;
1372 
1373   -host | --host | --hos | --ho)
1374     ac_prev=host_alias ;;
1375   -host=* | --host=* | --hos=* | --ho=*)
1376     host_alias=$ac_optarg ;;
1377 
1378   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1379     ac_prev=htmldir ;;
1380   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1381   | --ht=*)
1382     htmldir=$ac_optarg ;;
1383 
1384   -includedir | --includedir | --includedi | --included | --include \
1385   | --includ | --inclu | --incl | --inc)
1386     ac_prev=includedir ;;
1387   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1388   | --includ=* | --inclu=* | --incl=* | --inc=*)
1389     includedir=$ac_optarg ;;
1390 
1391   -infodir | --infodir | --infodi | --infod | --info | --inf)
1392     ac_prev=infodir ;;
1393   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1394     infodir=$ac_optarg ;;
1395 
1396   -libdir | --libdir | --libdi | --libd)
1397     ac_prev=libdir ;;
1398   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1399     libdir=$ac_optarg ;;
1400 
1401   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1402   | --libexe | --libex | --libe)
1403     ac_prev=libexecdir ;;
1404   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1405   | --libexe=* | --libex=* | --libe=*)
1406     libexecdir=$ac_optarg ;;
1407 
1408   -localedir | --localedir | --localedi | --localed | --locale)
1409     ac_prev=localedir ;;
1410   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1411     localedir=$ac_optarg ;;
1412 
1413   -localstatedir | --localstatedir | --localstatedi | --localstated \
1414   | --localstate | --localstat | --localsta | --localst | --locals)
1415     ac_prev=localstatedir ;;
1416   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1417   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1418     localstatedir=$ac_optarg ;;
1419 
1420   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1421     ac_prev=mandir ;;
1422   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1423     mandir=$ac_optarg ;;
1424 
1425   -nfp | --nfp | --nf)
1426     # Obsolete; use --without-fp.
1427     with_fp=no ;;
1428 
1429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1430   | --no-cr | --no-c | -n)
1431     no_create=yes ;;
1432 
1433   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1434   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1435     no_recursion=yes ;;
1436 
1437   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1438   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1439   | --oldin | --oldi | --old | --ol | --o)
1440     ac_prev=oldincludedir ;;
1441   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1442   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1443   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1444     oldincludedir=$ac_optarg ;;
1445 
1446   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1447     ac_prev=prefix ;;
1448   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1449     prefix=$ac_optarg ;;
1450 
1451   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1452   | --program-pre | --program-pr | --program-p)
1453     ac_prev=program_prefix ;;
1454   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1455   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1456     program_prefix=$ac_optarg ;;
1457 
1458   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1459   | --program-suf | --program-su | --program-s)
1460     ac_prev=program_suffix ;;
1461   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1462   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1463     program_suffix=$ac_optarg ;;
1464 
1465   -program-transform-name | --program-transform-name \
1466   | --program-transform-nam | --program-transform-na \
1467   | --program-transform-n | --program-transform- \
1468   | --program-transform | --program-transfor \
1469   | --program-transfo | --program-transf \
1470   | --program-trans | --program-tran \
1471   | --progr-tra | --program-tr | --program-t)
1472     ac_prev=program_transform_name ;;
1473   -program-transform-name=* | --program-transform-name=* \
1474   | --program-transform-nam=* | --program-transform-na=* \
1475   | --program-transform-n=* | --program-transform-=* \
1476   | --program-transform=* | --program-transfor=* \
1477   | --program-transfo=* | --program-transf=* \
1478   | --program-trans=* | --program-tran=* \
1479   | --progr-tra=* | --program-tr=* | --program-t=*)
1480     program_transform_name=$ac_optarg ;;
1481 
1482   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1483     ac_prev=pdfdir ;;
1484   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1485     pdfdir=$ac_optarg ;;
1486 
1487   -psdir | --psdir | --psdi | --psd | --ps)
1488     ac_prev=psdir ;;
1489   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1490     psdir=$ac_optarg ;;
1491 
1492   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1493   | -silent | --silent | --silen | --sile | --sil)
1494     silent=yes ;;
1495 
1496   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1497     ac_prev=sbindir ;;
1498   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1499   | --sbi=* | --sb=*)
1500     sbindir=$ac_optarg ;;
1501 
1502   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1503   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1504   | --sharedst | --shareds | --shared | --share | --shar \
1505   | --sha | --sh)
1506     ac_prev=sharedstatedir ;;
1507   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1508   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1509   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1510   | --sha=* | --sh=*)
1511     sharedstatedir=$ac_optarg ;;
1512 
1513   -site | --site | --sit)
1514     ac_prev=site ;;
1515   -site=* | --site=* | --sit=*)
1516     site=$ac_optarg ;;
1517 
1518   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1519     ac_prev=srcdir ;;
1520   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1521     srcdir=$ac_optarg ;;
1522 
1523   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1524   | --syscon | --sysco | --sysc | --sys | --sy)
1525     ac_prev=sysconfdir ;;
1526   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1527   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1528     sysconfdir=$ac_optarg ;;
1529 
1530   -target | --target | --targe | --targ | --tar | --ta | --t)
1531     ac_prev=target_alias ;;
1532   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1533     target_alias=$ac_optarg ;;
1534 
1535   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1536     verbose=yes ;;
1537 
1538   -version | --version | --versio | --versi | --vers | -V)
1539     ac_init_version=: ;;
1540 
1541   -with-* | --with-*)
1542     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1543     # Reject names that are not valid shell variable names.
1544     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1545       as_fn_error $? "invalid package name: $ac_useropt"
1546     ac_useropt_orig=$ac_useropt
1547     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1548     case $ac_user_opts in
1549       *"
1550 "with_$ac_useropt"
1551 "*) ;;
1552       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1553          ac_unrecognized_sep=', ';;
1554     esac
1555     eval with_$ac_useropt=\$ac_optarg ;;
1556 
1557   -without-* | --without-*)
1558     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1559     # Reject names that are not valid shell variable names.
1560     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1561       as_fn_error $? "invalid package name: $ac_useropt"
1562     ac_useropt_orig=$ac_useropt
1563     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1564     case $ac_user_opts in
1565       *"
1566 "with_$ac_useropt"
1567 "*) ;;
1568       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1569          ac_unrecognized_sep=', ';;
1570     esac
1571     eval with_$ac_useropt=no ;;
1572 
1573   --x)
1574     # Obsolete; use --with-x.
1575     with_x=yes ;;
1576 
1577   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1578   | --x-incl | --x-inc | --x-in | --x-i)
1579     ac_prev=x_includes ;;
1580   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1581   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1582     x_includes=$ac_optarg ;;
1583 
1584   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1585   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1586     ac_prev=x_libraries ;;
1587   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1588   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1589     x_libraries=$ac_optarg ;;
1590 
1591   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1592 Try \`$0 --help' for more information"
1593     ;;
1594 
1595   *=*)
1596     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1597     # Reject names that are not valid shell variable names.
1598     case $ac_envvar in #(
1599       '' | [0-9]* | *[!_$as_cr_alnum]* )
1600       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1601     esac
1602     eval $ac_envvar=\$ac_optarg
1603     export $ac_envvar ;;
1604 
1605   *)
1606     # FIXME: should be removed in autoconf 3.0.
1607     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1608     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1609       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1610     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1611     ;;
1612 
1613   esac
1614 done
1615 
1616 if test -n "$ac_prev"; then
1617   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1618   as_fn_error $? "missing argument to $ac_option"
1619 fi
1620 
1621 if test -n "$ac_unrecognized_opts"; then
1622   case $enable_option_checking in
1623     no) ;;
1624     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1625     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1626   esac
1627 fi
1628 
1629 # Check all directory arguments for consistency.
1630 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1631                 datadir sysconfdir sharedstatedir localstatedir includedir \
1632                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1633                 libdir localedir mandir
1634 do
1635   eval ac_val=\$$ac_var
1636   # Remove trailing slashes.
1637   case $ac_val in
1638     */ )
1639       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1640       eval $ac_var=\$ac_val;;
1641   esac
1642   # Be sure to have absolute directory names.
1643   case $ac_val in
1644     [\\/$]* | ?:[\\/]* )  continue;;
1645     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1646   esac
1647   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1648 done
1649 
1650 # There might be people who depend on the old broken behavior: `$host'
1651 # used to hold the argument of --host etc.
1652 # FIXME: To remove some day.
1653 build=$build_alias
1654 host=$host_alias
1655 target=$target_alias
1656 
1657 # FIXME: To remove some day.
1658 if test "x$host_alias" != x; then
1659   if test "x$build_alias" = x; then
1660     cross_compiling=maybe
1661   elif test "x$build_alias" != "x$host_alias"; then
1662     cross_compiling=yes
1663   fi
1664 fi
1665 
1666 ac_tool_prefix=
1667 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1668 
1669 test "$silent" = yes && exec 6>/dev/null
1670 
1671 
1672 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1673 ac_ls_di=`ls -di .` &&
1674 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1675   as_fn_error $? "working directory cannot be determined"
1676 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1677   as_fn_error $? "pwd does not report name of working directory"
1678 
1679 
1680 # Find the source files, if location was not specified.
1681 if test -z "$srcdir"; then
1682   ac_srcdir_defaulted=yes
1683   # Try the directory containing this script, then the parent directory.
1684   ac_confdir=`$as_dirname -- "$as_myself" ||
1685 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1686          X"$as_myself" : 'X\(//\)[^/]' \| \
1687          X"$as_myself" : 'X\(//\)$' \| \
1688          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1689 $as_echo X"$as_myself" |
1690     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1691             s//\1/
1692             q
1693           }
1694           /^X\(\/\/\)[^/].*/{
1695             s//\1/
1696             q
1697           }
1698           /^X\(\/\/\)$/{
1699             s//\1/
1700             q
1701           }
1702           /^X\(\/\).*/{
1703             s//\1/
1704             q
1705           }
1706           s/.*/./; q'`
1707   srcdir=$ac_confdir
1708   if test ! -r "$srcdir/$ac_unique_file"; then
1709     srcdir=..
1710   fi
1711 else
1712   ac_srcdir_defaulted=no
1713 fi
1714 if test ! -r "$srcdir/$ac_unique_file"; then
1715   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1716   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1717 fi
1718 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1719 ac_abs_confdir=`(
1720         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1721         pwd)`
1722 # When building in place, set srcdir=.
1723 if test "$ac_abs_confdir" = "$ac_pwd"; then
1724   srcdir=.
1725 fi
1726 # Remove unnecessary trailing slashes from srcdir.
1727 # Double slashes in file names in object file debugging info
1728 # mess up M-x gdb in Emacs.
1729 case $srcdir in
1730 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1731 esac
1732 for ac_var in $ac_precious_vars; do
1733   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1734   eval ac_env_${ac_var}_value=\$${ac_var}
1735   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1736   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1737 done
1738 
1739 #
1740 # Report the --help message.
1741 #
1742 if test "$ac_init_help" = "long"; then
1743   # Omit some internal or obsolete options to make the list less imposing.
1744   # This message is too long to be a string in the A/UX 3.1 sh.
1745   cat <<_ACEOF
1746 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1747 
1748 Usage: $0 [OPTION]... [VAR=VALUE]...
1749 
1750 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1751 VAR=VALUE.  See below for descriptions of some of the useful variables.
1752 
1753 Defaults for the options are specified in brackets.
1754 
1755 Configuration:
1756   -h, --help              display this help and exit
1757       --help=short        display options specific to this package
1758       --help=recursive    display the short help of all the included packages
1759   -V, --version           display version information and exit
1760   -q, --quiet, --silent   do not print \`checking ...' messages
1761       --cache-file=FILE   cache test results in FILE [disabled]
1762   -C, --config-cache      alias for \`--cache-file=config.cache'
1763   -n, --no-create         do not create output files
1764       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1765 
1766 Installation directories:
1767   --prefix=PREFIX         install architecture-independent files in PREFIX
1768                           [$ac_default_prefix]
1769   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1770                           [PREFIX]
1771 
1772 By default, \`make install' will install all the files in
1773 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1774 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1775 for instance \`--prefix=\$HOME'.
1776 
1777 For better control, use the options below.
1778 
1779 Fine tuning of the installation directories:
1780   --bindir=DIR            user executables [EPREFIX/bin]
1781   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1782   --libexecdir=DIR        program executables [EPREFIX/libexec]
1783   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1784   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1785   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1786   --libdir=DIR            object code libraries [EPREFIX/lib]
1787   --includedir=DIR        C header files [PREFIX/include]
1788   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1789   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1790   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1791   --infodir=DIR           info documentation [DATAROOTDIR/info]
1792   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1793   --mandir=DIR            man documentation [DATAROOTDIR/man]
1794   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1795   --htmldir=DIR           html documentation [DOCDIR]
1796   --dvidir=DIR            dvi documentation [DOCDIR]
1797   --pdfdir=DIR            pdf documentation [DOCDIR]
1798   --psdir=DIR             ps documentation [DOCDIR]
1799 _ACEOF
1800 
1801   cat <<\_ACEOF
1802 
1803 X features:
1804   --x-includes=DIR    X include files are in DIR
1805   --x-libraries=DIR   X library files are in DIR
1806 
1807 System types:
1808   --build=BUILD     configure for building on BUILD [guessed]
1809   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1810   --target=TARGET   configure for building compilers for TARGET [HOST]
1811 _ACEOF
1812 fi
1813 
1814 if test -n "$ac_init_help"; then
1815   case $ac_init_help in
1816      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1817    esac
1818   cat <<\_ACEOF
1819 
1820 Optional Features:
1821   --disable-option-checking  ignore unrecognized --enable/--with options
1822   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1823   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1824   --enable-openjdk-only   suppress building custom source even if present
1825                           [disabled]
1826   --enable-debug          set the debug level to fastdebug (shorthand for
1827                           --with-debug-level=fastdebug) [disabled]
1828   --disable-headful       disable building headful support (graphical UI
1829                           support) [enabled]
1830   --enable-hotspot-test-in-build
1831                           run the Queens test after Hotspot build [disabled]
1832   --enable-unlimited-crypto
1833                           Enable unlimited crypto policy [disabled]
1834   --enable-rmiconnector-iiop
1835                           enable the JMX RMIConnector iiop transport
1836                           [disabled]
1837   --disable-debug-symbols disable generation of debug symbols [enabled]
1838   --disable-zip-debug-info
1839                           disable zipping of debug-info files [enabled]
1840   --enable-macosx-runtime-support
1841                           Deprecated. Option is kept for backwards
1842                           compatibility and is ignored
1843   --disable-freetype-bundling
1844                           disable bundling of the freetype library with the
1845                           build result [enabled on Windows or when using
1846                           --with-freetype, disabled otherwise]
1847   --enable-sjavac         use sjavac to do fast incremental compiles
1848                           [disabled]
1849   --disable-precompiled-headers
1850                           disable using precompiled headers when compiling C++
1851                           [enabled]
1852   --enable-ccache         enable using ccache to speed up recompilations
1853                           [disabled]
1854 
1855 Optional Packages:
1856   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1857   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1858   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1859                           support it), e.g. --with-target-bits=32 [guessed]
1860   --with-custom-make-dir  Deprecated. Option is kept for backwards
1861                           compatibility and is ignored
1862   --with-jdk-variant      JDK variant to build (normal) [normal]
1863   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1864   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1865                           client, minimal1, kernel, zero, zeroshark, core)
1866                           [server]
1867   --with-debug-level      set the debug level (release, fastdebug, slowdebug,
1868                           optimized (HotSpot build only)) [release]
1869   --with-devkit           use this devkit for compilers, tools and resources
1870   --with-sys-root         alias for --with-sysroot for backwards compatability
1871   --with-sysroot          use this directory as sysroot)
1872   --with-tools-dir        alias for --with-toolchain-path for backwards
1873                           compatibility
1874   --with-toolchain-path   prepend these directories when searching for
1875                           toolchain binaries (compilers etc)
1876   --with-extra-path       prepend these directories to the default path
1877   --with-conf-name        use this as the name of the configuration [generated
1878                           from important configuration options]
1879   --with-builddeps-conf   use this configuration file for the builddeps
1880   --with-builddeps-server download and use build dependencies from this server
1881                           url
1882   --with-builddeps-dir    store downloaded build dependencies here
1883                           [/localhome/builddeps]
1884   --with-builddeps-group  chgrp the downloaded build dependencies to this
1885                           group
1886   --with-cacerts-file     specify alternative cacerts file
1887   --with-milestone        Set milestone value for build [internal]
1888   --with-update-version   Set update version value for build [b00]
1889   --with-user-release-suffix
1890                           Add a custom string to the version string if build
1891                           number is not set.[username_builddateb00]
1892   --with-build-number     Set build number value for build [b00]
1893   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1894   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1895                           invocations of boot JDK, overriding the default
1896                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1897                           -enableassertions"
1898   --with-add-source-root  for each and every source directory, look in this
1899                           additional source root for the same directory; if it
1900                           exists and have files in it, include it in the build
1901   --with-override-source-root
1902                           for each and every source directory, look in this
1903                           override source root for the same directory; if it
1904                           exists, use that directory instead and ignore the
1905                           directory in the original source root
1906   --with-adds-and-overrides
1907                           use the subdirs 'adds' and 'overrides' in the
1908                           specified directory as add-source-root and
1909                           override-source-root
1910   --with-override-langtools
1911                           use this langtools dir for the build
1912   --with-override-corba   use this corba dir for the build
1913   --with-override-jaxp    use this jaxp dir for the build
1914   --with-override-jaxws   use this jaxws dir for the build
1915   --with-override-hotspot use this hotspot dir for the build
1916   --with-override-nashorn use this nashorn dir for the build
1917   --with-override-jdk     use this jdk dir for the build
1918   --with-import-hotspot   import hotspot binaries from this jdk image or
1919                           hotspot build dist dir instead of building from
1920                           source
1921   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1922                           to show possible values [platform dependent]
1923   --with-jtreg            Regression Test Harness [probed]
1924   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1925   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1926   --with-extra-ldflags    extra flags to be used when linking jdk
1927   --with-x                use the X Window System
1928   --with-cups             specify prefix directory for the cups package
1929                           (expecting the headers under PATH/include)
1930   --with-cups-include     specify directory for the cups include files
1931   --with-freetype         specify prefix directory for the freetype package
1932                           (expecting the libraries under PATH/lib and the
1933                           headers under PATH/include)
1934   --with-freetype-include specify directory for the freetype include files
1935   --with-freetype-lib     specify directory for the freetype library
1936   --with-alsa             specify prefix directory for the alsa package
1937                           (expecting the libraries under PATH/lib and the
1938                           headers under PATH/include)
1939   --with-alsa-include     specify directory for the alsa include files
1940   --with-alsa-lib         specify directory for the alsa library
1941   --with-giflib           use giflib from build system or OpenJDK source
1942                           (system, bundled) [bundled]
1943   --with-lcms             use lcms2 from build system or OpenJDK source
1944                           (system, bundled) [bundled]
1945   --with-libpng           use libpng from build system or OpenJDK source
1946                           (system, bundled) [bundled]
1947   --with-zlib             use zlib from build system or OpenJDK source
1948                           (system, bundled) [bundled]
1949   --with-stdc++lib=<static>,<dynamic>,<default>
1950                           force linking of the C++ runtime on Linux to either
1951                           static or dynamic, default is static with dynamic as
1952                           fallback
1953   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1954                           only) [probed]
1955   --with-dxsdk            Deprecated. Option is kept for backwards
1956                           compatibility and is ignored
1957   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1958                           compatibility and is ignored
1959   --with-dxsdk-include    Deprecated. Option is kept for backwards
1960                           compatibility and is ignored
1961   --with-num-cores        number of cores in the build system, e.g.
1962                           --with-num-cores=8 [probed]
1963   --with-memory-size      memory (in MB) available in the build system, e.g.
1964                           --with-memory-size=1024 [probed]
1965   --with-jobs             number of parallel jobs to let make run [calculated
1966                           based on cores and memory]
1967   --with-sjavac-server-java
1968                           use this java binary for running the sjavac
1969                           background server [Boot JDK java]
1970   --with-ccache-dir       where to store ccache files [~/.ccache]
1971 
1972 Some influential environment variables:
1973   BASENAME    Override default value for BASENAME
1974   BASH        Override default value for BASH
1975   CAT         Override default value for CAT
1976   CHMOD       Override default value for CHMOD
1977   CMP         Override default value for CMP
1978   COMM        Override default value for COMM
1979   CP          Override default value for CP
1980   CPIO        Override default value for CPIO
1981   CUT         Override default value for CUT
1982   DATE        Override default value for DATE
1983   DIFF        Override default value for DIFF
1984   DIRNAME     Override default value for DIRNAME
1985   ECHO        Override default value for ECHO
1986   EXPR        Override default value for EXPR
1987   FILE        Override default value for FILE
1988   FIND        Override default value for FIND
1989   HEAD        Override default value for HEAD
1990   LN          Override default value for LN
1991   LS          Override default value for LS
1992   MKDIR       Override default value for MKDIR
1993   MKTEMP      Override default value for MKTEMP
1994   MV          Override default value for MV
1995   NAWK        Override default value for NAWK
1996   PRINTF      Override default value for PRINTF
1997   RM          Override default value for RM
1998   SH          Override default value for SH
1999   SORT        Override default value for SORT
2000   TAIL        Override default value for TAIL
2001   TAR         Override default value for TAR
2002   TEE         Override default value for TEE
2003   TOUCH       Override default value for TOUCH
2004   TR          Override default value for TR
2005   UNAME       Override default value for UNAME
2006   UNIQ        Override default value for UNIQ
2007   WC          Override default value for WC
2008   WHICH       Override default value for WHICH
2009   XARGS       Override default value for XARGS
2010   AWK         Override default value for AWK
2011   GREP        Override default value for GREP
2012   EGREP       Override default value for EGREP
2013   FGREP       Override default value for FGREP
2014   SED         Override default value for SED
2015   CYGPATH     Override default value for CYGPATH
2016   READLINK    Override default value for READLINK
2017   DF          Override default value for DF
2018   SETFILE     Override default value for SETFILE
2019   UNZIP       Override default value for UNZIP
2020   ZIP         Override default value for ZIP
2021   LDD         Override default value for LDD
2022   OTOOL       Override default value for OTOOL
2023   READELF     Override default value for READELF
2024   HG          Override default value for HG
2025   STAT        Override default value for STAT
2026   TIME        Override default value for TIME
2027   DSYMUTIL    Override default value for DSYMUTIL
2028   XATTR       Override default value for XATTR
2029   CODESIGN    Override default value for CODESIGN
2030   PKG_CONFIG  path to pkg-config utility
2031   JAVA        Override default value for JAVA
2032   JAVAC       Override default value for JAVAC
2033   JAVAH       Override default value for JAVAH
2034   JAR         Override default value for JAR
2035   NATIVE2ASCII
2036               Override default value for NATIVE2ASCII
2037   JARSIGNER   Override default value for JARSIGNER
2038   CC          C compiler command
2039   CFLAGS      C compiler flags
2040   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2041               nonstandard directory <lib dir>
2042   LIBS        libraries to pass to the linker, e.g. -l<library>
2043   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2044               you have headers in a nonstandard directory <include dir>
2045   CXX         C++ compiler command
2046   CXXFLAGS    C++ compiler flags
2047   CPP         C preprocessor
2048   CXXCPP      C++ preprocessor
2049   AS          Override default value for AS
2050   AR          Override default value for AR
2051   OBJC        Objective C compiler command
2052   OBJCFLAGS   Objective C compiler flags
2053   LIPO        Override default value for LIPO
2054   STRIP       Override default value for STRIP
2055   NM          Override default value for NM
2056   GNM         Override default value for GNM
2057   MCS         Override default value for MCS
2058   OBJCOPY     Override default value for OBJCOPY
2059   OBJDUMP     Override default value for OBJDUMP
2060   BUILD_CC    Override default value for BUILD_CC
2061   BUILD_CXX   Override default value for BUILD_CXX
2062   BUILD_LD    Override default value for BUILD_LD
2063   JTREGEXE    Override default value for JTREGEXE
2064   XMKMF       Path to xmkmf, Makefile generator for X Window System
2065   FREETYPE_CFLAGS
2066               C compiler flags for FREETYPE, overriding pkg-config
2067   FREETYPE_LIBS
2068               linker flags for FREETYPE, overriding pkg-config
2069   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2070   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2071   LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config
2072   LCMS_LIBS   linker flags for LCMS, overriding pkg-config
2073   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2074   PNG_LIBS    linker flags for PNG, overriding pkg-config
2075   LIBFFI_CFLAGS
2076               C compiler flags for LIBFFI, overriding pkg-config
2077   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2078   CCACHE      Override default value for CCACHE
2079 
2080 Use these variables to override the choices made by `configure' or to help
2081 it to find libraries and programs with nonstandard names/locations.
2082 
2083 Report bugs to <build-dev@openjdk.java.net>.
2084 OpenJDK home page: <http://openjdk.java.net>.
2085 _ACEOF
2086 ac_status=$?
2087 fi
2088 
2089 if test "$ac_init_help" = "recursive"; then
2090   # If there are subdirs, report their specific --help.
2091   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2092     test -d "$ac_dir" ||
2093       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2094       continue
2095     ac_builddir=.
2096 
2097 case "$ac_dir" in
2098 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2099 *)
2100   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2101   # A ".." for each directory in $ac_dir_suffix.
2102   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2103   case $ac_top_builddir_sub in
2104   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2105   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2106   esac ;;
2107 esac
2108 ac_abs_top_builddir=$ac_pwd
2109 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2110 # for backward compatibility:
2111 ac_top_builddir=$ac_top_build_prefix
2112 
2113 case $srcdir in
2114   .)  # We are building in place.
2115     ac_srcdir=.
2116     ac_top_srcdir=$ac_top_builddir_sub
2117     ac_abs_top_srcdir=$ac_pwd ;;
2118   [\\/]* | ?:[\\/]* )  # Absolute name.
2119     ac_srcdir=$srcdir$ac_dir_suffix;
2120     ac_top_srcdir=$srcdir
2121     ac_abs_top_srcdir=$srcdir ;;
2122   *) # Relative name.
2123     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2124     ac_top_srcdir=$ac_top_build_prefix$srcdir
2125     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2126 esac
2127 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2128 
2129     cd "$ac_dir" || { ac_status=$?; continue; }
2130     # Check for guested configure.
2131     if test -f "$ac_srcdir/configure.gnu"; then
2132       echo &&
2133       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2134     elif test -f "$ac_srcdir/configure"; then
2135       echo &&
2136       $SHELL "$ac_srcdir/configure" --help=recursive
2137     else
2138       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2139     fi || ac_status=$?
2140     cd "$ac_pwd" || { ac_status=$?; break; }
2141   done
2142 fi
2143 
2144 test -n "$ac_init_help" && exit $ac_status
2145 if $ac_init_version; then
2146   cat <<\_ACEOF
2147 OpenJDK configure jdk9
2148 generated by GNU Autoconf 2.69
2149 
2150 Copyright (C) 2012 Free Software Foundation, Inc.
2151 This configure script is free software; the Free Software Foundation
2152 gives unlimited permission to copy, distribute and modify it.
2153 _ACEOF
2154   exit
2155 fi
2156 
2157 ## ------------------------ ##
2158 ## Autoconf initialization. ##
2159 ## ------------------------ ##
2160 
2161 # ac_fn_c_try_compile LINENO
2162 # --------------------------
2163 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2164 ac_fn_c_try_compile ()
2165 {
2166   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2167   rm -f conftest.$ac_objext
2168   if { { ac_try="$ac_compile"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175   (eval "$ac_compile") 2>conftest.err
2176   ac_status=$?
2177   if test -s conftest.err; then
2178     grep -v '^ *+' conftest.err >conftest.er1
2179     cat conftest.er1 >&5
2180     mv -f conftest.er1 conftest.err
2181   fi
2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183   test $ac_status = 0; } && {
2184          test -z "$ac_c_werror_flag" ||
2185          test ! -s conftest.err
2186        } && test -s conftest.$ac_objext; then :
2187   ac_retval=0
2188 else
2189   $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191 
2192         ac_retval=1
2193 fi
2194   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195   as_fn_set_status $ac_retval
2196 
2197 } # ac_fn_c_try_compile
2198 
2199 # ac_fn_cxx_try_compile LINENO
2200 # ----------------------------
2201 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_cxx_try_compile ()
2203 {
2204   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205   rm -f conftest.$ac_objext
2206   if { { ac_try="$ac_compile"
2207 case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213   (eval "$ac_compile") 2>conftest.err
2214   ac_status=$?
2215   if test -s conftest.err; then
2216     grep -v '^ *+' conftest.err >conftest.er1
2217     cat conftest.er1 >&5
2218     mv -f conftest.er1 conftest.err
2219   fi
2220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221   test $ac_status = 0; } && {
2222          test -z "$ac_cxx_werror_flag" ||
2223          test ! -s conftest.err
2224        } && test -s conftest.$ac_objext; then :
2225   ac_retval=0
2226 else
2227   $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229 
2230         ac_retval=1
2231 fi
2232   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2233   as_fn_set_status $ac_retval
2234 
2235 } # ac_fn_cxx_try_compile
2236 
2237 # ac_fn_c_try_cpp LINENO
2238 # ----------------------
2239 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2240 ac_fn_c_try_cpp ()
2241 {
2242   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243   if { { ac_try="$ac_cpp conftest.$ac_ext"
2244 case "(($ac_try" in
2245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246   *) ac_try_echo=$ac_try;;
2247 esac
2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249 $as_echo "$ac_try_echo"; } >&5
2250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2251   ac_status=$?
2252   if test -s conftest.err; then
2253     grep -v '^ *+' conftest.err >conftest.er1
2254     cat conftest.er1 >&5
2255     mv -f conftest.er1 conftest.err
2256   fi
2257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258   test $ac_status = 0; } > conftest.i && {
2259          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2260          test ! -s conftest.err
2261        }; then :
2262   ac_retval=0
2263 else
2264   $as_echo "$as_me: failed program was:" >&5
2265 sed 's/^/| /' conftest.$ac_ext >&5
2266 
2267     ac_retval=1
2268 fi
2269   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270   as_fn_set_status $ac_retval
2271 
2272 } # ac_fn_c_try_cpp
2273 
2274 # ac_fn_cxx_try_cpp LINENO
2275 # ------------------------
2276 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2277 ac_fn_cxx_try_cpp ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   if { { ac_try="$ac_cpp conftest.$ac_ext"
2281 case "(($ac_try" in
2282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283   *) ac_try_echo=$ac_try;;
2284 esac
2285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286 $as_echo "$ac_try_echo"; } >&5
2287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2288   ac_status=$?
2289   if test -s conftest.err; then
2290     grep -v '^ *+' conftest.err >conftest.er1
2291     cat conftest.er1 >&5
2292     mv -f conftest.er1 conftest.err
2293   fi
2294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295   test $ac_status = 0; } > conftest.i && {
2296          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2297          test ! -s conftest.err
2298        }; then :
2299   ac_retval=0
2300 else
2301   $as_echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303 
2304     ac_retval=1
2305 fi
2306   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307   as_fn_set_status $ac_retval
2308 
2309 } # ac_fn_cxx_try_cpp
2310 
2311 # ac_fn_objc_try_compile LINENO
2312 # -----------------------------
2313 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2314 ac_fn_objc_try_compile ()
2315 {
2316   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317   rm -f conftest.$ac_objext
2318   if { { ac_try="$ac_compile"
2319 case "(($ac_try" in
2320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321   *) ac_try_echo=$ac_try;;
2322 esac
2323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2324 $as_echo "$ac_try_echo"; } >&5
2325   (eval "$ac_compile") 2>conftest.err
2326   ac_status=$?
2327   if test -s conftest.err; then
2328     grep -v '^ *+' conftest.err >conftest.er1
2329     cat conftest.er1 >&5
2330     mv -f conftest.er1 conftest.err
2331   fi
2332   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2333   test $ac_status = 0; } && {
2334          test -z "$ac_objc_werror_flag" ||
2335          test ! -s conftest.err
2336        } && test -s conftest.$ac_objext; then :
2337   ac_retval=0
2338 else
2339   $as_echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341 
2342         ac_retval=1
2343 fi
2344   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345   as_fn_set_status $ac_retval
2346 
2347 } # ac_fn_objc_try_compile
2348 
2349 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2350 # ---------------------------------------------------------
2351 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2352 # the include files in INCLUDES and setting the cache variable VAR
2353 # accordingly.
2354 ac_fn_cxx_check_header_mongrel ()
2355 {
2356   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357   if eval \${$3+:} false; then :
2358   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if eval \${$3+:} false; then :
2361   $as_echo_n "(cached) " >&6
2362 fi
2363 eval ac_res=\$$3
2364                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 $as_echo "$ac_res" >&6; }
2366 else
2367   # Is the header compilable?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2369 $as_echo_n "checking $2 usability... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 $4
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_cxx_try_compile "$LINENO"; then :
2376   ac_header_compiler=yes
2377 else
2378   ac_header_compiler=no
2379 fi
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2382 $as_echo "$ac_header_compiler" >&6; }
2383 
2384 # Is the header present?
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2386 $as_echo_n "checking $2 presence... " >&6; }
2387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h.  */
2389 #include <$2>
2390 _ACEOF
2391 if ac_fn_cxx_try_cpp "$LINENO"; then :
2392   ac_header_preproc=yes
2393 else
2394   ac_header_preproc=no
2395 fi
2396 rm -f conftest.err conftest.i conftest.$ac_ext
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2398 $as_echo "$ac_header_preproc" >&6; }
2399 
2400 # So?  What about this header?
2401 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2402   yes:no: )
2403     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2404 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2406 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2407     ;;
2408   no:yes:* )
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2410 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2412 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2414 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2415     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2416 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2417     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2418 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2419 ( $as_echo "## ----------------------------------------- ##
2420 ## Report this to build-dev@openjdk.java.net ##
2421 ## ----------------------------------------- ##"
2422      ) | sed "s/^/$as_me: WARNING:     /" >&2
2423     ;;
2424 esac
2425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2426 $as_echo_n "checking for $2... " >&6; }
2427 if eval \${$3+:} false; then :
2428   $as_echo_n "(cached) " >&6
2429 else
2430   eval "$3=\$ac_header_compiler"
2431 fi
2432 eval ac_res=\$$3
2433                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2434 $as_echo "$ac_res" >&6; }
2435 fi
2436   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2437 
2438 } # ac_fn_cxx_check_header_mongrel
2439 
2440 # ac_fn_cxx_try_run LINENO
2441 # ------------------------
2442 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2443 # that executables *can* be run.
2444 ac_fn_cxx_try_run ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   if { { ac_try="$ac_link"
2448 case "(($ac_try" in
2449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450   *) ac_try_echo=$ac_try;;
2451 esac
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454   (eval "$ac_link") 2>&5
2455   ac_status=$?
2456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2458   { { case "(($ac_try" in
2459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460   *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 $as_echo "$ac_try_echo"; } >&5
2464   (eval "$ac_try") 2>&5
2465   ac_status=$?
2466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467   test $ac_status = 0; }; }; then :
2468   ac_retval=0
2469 else
2470   $as_echo "$as_me: program exited with status $ac_status" >&5
2471        $as_echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2473 
2474        ac_retval=$ac_status
2475 fi
2476   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2477   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2478   as_fn_set_status $ac_retval
2479 
2480 } # ac_fn_cxx_try_run
2481 
2482 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2483 # ---------------------------------------------------------
2484 # Tests whether HEADER exists and can be compiled using the include files in
2485 # INCLUDES, setting the cache variable VAR accordingly.
2486 ac_fn_cxx_check_header_compile ()
2487 {
2488   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2490 $as_echo_n "checking for $2... " >&6; }
2491 if eval \${$3+:} false; then :
2492   $as_echo_n "(cached) " >&6
2493 else
2494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h.  */
2496 $4
2497 #include <$2>
2498 _ACEOF
2499 if ac_fn_cxx_try_compile "$LINENO"; then :
2500   eval "$3=yes"
2501 else
2502   eval "$3=no"
2503 fi
2504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 eval ac_res=\$$3
2507                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2508 $as_echo "$ac_res" >&6; }
2509   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2510 
2511 } # ac_fn_cxx_check_header_compile
2512 
2513 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2514 # ----------------------------------------------
2515 # Tries to find the compile-time value of EXPR in a program that includes
2516 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2517 # computed
2518 ac_fn_cxx_compute_int ()
2519 {
2520   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521   if test "$cross_compiling" = yes; then
2522     # Depending upon the size, compute the lo and hi bounds.
2523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h.  */
2525 $4
2526 int
2527 main ()
2528 {
2529 static int test_array [1 - 2 * !(($2) >= 0)];
2530 test_array [0] = 0;
2531 return test_array [0];
2532 
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 if ac_fn_cxx_try_compile "$LINENO"; then :
2538   ac_lo=0 ac_mid=0
2539   while :; do
2540     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h.  */
2542 $4
2543 int
2544 main ()
2545 {
2546 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2547 test_array [0] = 0;
2548 return test_array [0];
2549 
2550   ;
2551   return 0;
2552 }
2553 _ACEOF
2554 if ac_fn_cxx_try_compile "$LINENO"; then :
2555   ac_hi=$ac_mid; break
2556 else
2557   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2558                         if test $ac_lo -le $ac_mid; then
2559                           ac_lo= ac_hi=
2560                           break
2561                         fi
2562                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565   done
2566 else
2567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h.  */
2569 $4
2570 int
2571 main ()
2572 {
2573 static int test_array [1 - 2 * !(($2) < 0)];
2574 test_array [0] = 0;
2575 return test_array [0];
2576 
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_cxx_try_compile "$LINENO"; then :
2582   ac_hi=-1 ac_mid=-1
2583   while :; do
2584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585 /* end confdefs.h.  */
2586 $4
2587 int
2588 main ()
2589 {
2590 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2591 test_array [0] = 0;
2592 return test_array [0];
2593 
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 if ac_fn_cxx_try_compile "$LINENO"; then :
2599   ac_lo=$ac_mid; break
2600 else
2601   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2602                         if test $ac_mid -le $ac_hi; then
2603                           ac_lo= ac_hi=
2604                           break
2605                         fi
2606                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2607 fi
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609   done
2610 else
2611   ac_lo= ac_hi=
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 fi
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616 # Binary search between lo and hi bounds.
2617 while test "x$ac_lo" != "x$ac_hi"; do
2618   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h.  */
2621 $4
2622 int
2623 main ()
2624 {
2625 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2626 test_array [0] = 0;
2627 return test_array [0];
2628 
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 if ac_fn_cxx_try_compile "$LINENO"; then :
2634   ac_hi=$ac_mid
2635 else
2636   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2637 fi
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 done
2640 case $ac_lo in #((
2641 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2642 '') ac_retval=1 ;;
2643 esac
2644   else
2645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646 /* end confdefs.h.  */
2647 $4
2648 static long int longval () { return $2; }
2649 static unsigned long int ulongval () { return $2; }
2650 #include <stdio.h>
2651 #include <stdlib.h>
2652 int
2653 main ()
2654 {
2655 
2656   FILE *f = fopen ("conftest.val", "w");
2657   if (! f)
2658     return 1;
2659   if (($2) < 0)
2660     {
2661       long int i = longval ();
2662       if (i != ($2))
2663         return 1;
2664       fprintf (f, "%ld", i);
2665     }
2666   else
2667     {
2668       unsigned long int i = ulongval ();
2669       if (i != ($2))
2670         return 1;
2671       fprintf (f, "%lu", i);
2672     }
2673   /* Do not output a trailing newline, as this causes \r\n confusion
2674      on some platforms.  */
2675   return ferror (f) || fclose (f) != 0;
2676 
2677   ;
2678   return 0;
2679 }
2680 _ACEOF
2681 if ac_fn_cxx_try_run "$LINENO"; then :
2682   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2683 else
2684   ac_retval=1
2685 fi
2686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2687   conftest.$ac_objext conftest.beam conftest.$ac_ext
2688 rm -f conftest.val
2689 
2690   fi
2691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692   as_fn_set_status $ac_retval
2693 
2694 } # ac_fn_cxx_compute_int
2695 
2696 # ac_fn_cxx_try_link LINENO
2697 # -------------------------
2698 # Try to link conftest.$ac_ext, and return whether this succeeded.
2699 ac_fn_cxx_try_link ()
2700 {
2701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702   rm -f conftest.$ac_objext conftest$ac_exeext
2703   if { { ac_try="$ac_link"
2704 case "(($ac_try" in
2705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706   *) ac_try_echo=$ac_try;;
2707 esac
2708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709 $as_echo "$ac_try_echo"; } >&5
2710   (eval "$ac_link") 2>conftest.err
2711   ac_status=$?
2712   if test -s conftest.err; then
2713     grep -v '^ *+' conftest.err >conftest.er1
2714     cat conftest.er1 >&5
2715     mv -f conftest.er1 conftest.err
2716   fi
2717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718   test $ac_status = 0; } && {
2719          test -z "$ac_cxx_werror_flag" ||
2720          test ! -s conftest.err
2721        } && test -s conftest$ac_exeext && {
2722          test "$cross_compiling" = yes ||
2723          test -x conftest$ac_exeext
2724        }; then :
2725   ac_retval=0
2726 else
2727   $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729 
2730         ac_retval=1
2731 fi
2732   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2733   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2734   # interfere with the next link command; also delete a directory that is
2735   # left behind by Apple's compiler.  We do this before executing the actions.
2736   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2737   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738   as_fn_set_status $ac_retval
2739 
2740 } # ac_fn_cxx_try_link
2741 
2742 # ac_fn_cxx_check_func LINENO FUNC VAR
2743 # ------------------------------------
2744 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2745 ac_fn_cxx_check_func ()
2746 {
2747   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if eval \${$3+:} false; then :
2751   $as_echo_n "(cached) " >&6
2752 else
2753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h.  */
2755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2756    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2757 #define $2 innocuous_$2
2758 
2759 /* System header to define __stub macros and hopefully few prototypes,
2760     which can conflict with char $2 (); below.
2761     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2762     <limits.h> exists even on freestanding compilers.  */
2763 
2764 #ifdef __STDC__
2765 # include <limits.h>
2766 #else
2767 # include <assert.h>
2768 #endif
2769 
2770 #undef $2
2771 
2772 /* Override any GCC internal prototype to avoid an error.
2773    Use char because int might match the return type of a GCC
2774    builtin and then its argument prototype would still apply.  */
2775 #ifdef __cplusplus
2776 extern "C"
2777 #endif
2778 char $2 ();
2779 /* The GNU C library defines this for functions which it implements
2780     to always fail with ENOSYS.  Some functions are actually named
2781     something starting with __ and the normal name is an alias.  */
2782 #if defined __stub_$2 || defined __stub___$2
2783 choke me
2784 #endif
2785 
2786 int
2787 main ()
2788 {
2789 return $2 ();
2790   ;
2791   return 0;
2792 }
2793 _ACEOF
2794 if ac_fn_cxx_try_link "$LINENO"; then :
2795   eval "$3=yes"
2796 else
2797   eval "$3=no"
2798 fi
2799 rm -f core conftest.err conftest.$ac_objext \
2800     conftest$ac_exeext conftest.$ac_ext
2801 fi
2802 eval ac_res=\$$3
2803                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804 $as_echo "$ac_res" >&6; }
2805   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806 
2807 } # ac_fn_cxx_check_func
2808 
2809 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2810 # -------------------------------------------------------
2811 # Tests whether HEADER exists and can be compiled using the include files in
2812 # INCLUDES, setting the cache variable VAR accordingly.
2813 ac_fn_c_check_header_compile ()
2814 {
2815   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2817 $as_echo_n "checking for $2... " >&6; }
2818 if eval \${$3+:} false; then :
2819   $as_echo_n "(cached) " >&6
2820 else
2821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h.  */
2823 $4
2824 #include <$2>
2825 _ACEOF
2826 if ac_fn_c_try_compile "$LINENO"; then :
2827   eval "$3=yes"
2828 else
2829   eval "$3=no"
2830 fi
2831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2832 fi
2833 eval ac_res=\$$3
2834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835 $as_echo "$ac_res" >&6; }
2836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837 
2838 } # ac_fn_c_check_header_compile
2839 cat >config.log <<_ACEOF
2840 This file contains any messages produced by compilers while
2841 running configure, to aid debugging if configure makes a mistake.
2842 
2843 It was created by OpenJDK $as_me jdk9, which was
2844 generated by GNU Autoconf 2.69.  Invocation command line was
2845 
2846   $ $0 $@
2847 
2848 _ACEOF
2849 exec 5>>config.log
2850 {
2851 cat <<_ASUNAME
2852 ## --------- ##
2853 ## Platform. ##
2854 ## --------- ##
2855 
2856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2861 
2862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2863 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2864 
2865 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2866 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2868 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2869 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2870 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2871 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2872 
2873 _ASUNAME
2874 
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878   IFS=$as_save_IFS
2879   test -z "$as_dir" && as_dir=.
2880     $as_echo "PATH: $as_dir"
2881   done
2882 IFS=$as_save_IFS
2883 
2884 } >&5
2885 
2886 cat >&5 <<_ACEOF
2887 
2888 
2889 ## ----------- ##
2890 ## Core tests. ##
2891 ## ----------- ##
2892 
2893 _ACEOF
2894 
2895 
2896 # Keep a trace of the command line.
2897 # Strip out --no-create and --no-recursion so they do not pile up.
2898 # Strip out --silent because we don't want to record it for future runs.
2899 # Also quote any args containing shell meta-characters.
2900 # Make two passes to allow for proper duplicate-argument suppression.
2901 ac_configure_args=
2902 ac_configure_args0=
2903 ac_configure_args1=
2904 ac_must_keep_next=false
2905 for ac_pass in 1 2
2906 do
2907   for ac_arg
2908   do
2909     case $ac_arg in
2910     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2911     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2912     | -silent | --silent | --silen | --sile | --sil)
2913       continue ;;
2914     *\'*)
2915       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2916     esac
2917     case $ac_pass in
2918     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2919     2)
2920       as_fn_append ac_configure_args1 " '$ac_arg'"
2921       if test $ac_must_keep_next = true; then
2922         ac_must_keep_next=false # Got value, back to normal.
2923       else
2924         case $ac_arg in
2925           *=* | --config-cache | -C | -disable-* | --disable-* \
2926           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2927           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2928           | -with-* | --with-* | -without-* | --without-* | --x)
2929             case "$ac_configure_args0 " in
2930               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2931             esac
2932             ;;
2933           -* ) ac_must_keep_next=true ;;
2934         esac
2935       fi
2936       as_fn_append ac_configure_args " '$ac_arg'"
2937       ;;
2938     esac
2939   done
2940 done
2941 { ac_configure_args0=; unset ac_configure_args0;}
2942 { ac_configure_args1=; unset ac_configure_args1;}
2943 
2944 # When interrupted or exit'd, cleanup temporary files, and complete
2945 # config.log.  We remove comments because anyway the quotes in there
2946 # would cause problems or look ugly.
2947 # WARNING: Use '\'' to represent an apostrophe within the trap.
2948 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2949 trap 'exit_status=$?
2950   # Save into config.log some information that might help in debugging.
2951   {
2952     echo
2953 
2954     $as_echo "## ---------------- ##
2955 ## Cache variables. ##
2956 ## ---------------- ##"
2957     echo
2958     # The following way of writing the cache mishandles newlines in values,
2959 (
2960   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2961     eval ac_val=\$$ac_var
2962     case $ac_val in #(
2963     *${as_nl}*)
2964       case $ac_var in #(
2965       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2967       esac
2968       case $ac_var in #(
2969       _ | IFS | as_nl) ;; #(
2970       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2971       *) { eval $ac_var=; unset $ac_var;} ;;
2972       esac ;;
2973     esac
2974   done
2975   (set) 2>&1 |
2976     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2977     *${as_nl}ac_space=\ *)
2978       sed -n \
2979         "s/'\''/'\''\\\\'\'''\''/g;
2980           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2981       ;; #(
2982     *)
2983       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2984       ;;
2985     esac |
2986     sort
2987 )
2988     echo
2989 
2990     $as_echo "## ----------------- ##
2991 ## Output variables. ##
2992 ## ----------------- ##"
2993     echo
2994     for ac_var in $ac_subst_vars
2995     do
2996       eval ac_val=\$$ac_var
2997       case $ac_val in
2998       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2999       esac
3000       $as_echo "$ac_var='\''$ac_val'\''"
3001     done | sort
3002     echo
3003 
3004     if test -n "$ac_subst_files"; then
3005       $as_echo "## ------------------- ##
3006 ## File substitutions. ##
3007 ## ------------------- ##"
3008       echo
3009       for ac_var in $ac_subst_files
3010       do
3011         eval ac_val=\$$ac_var
3012         case $ac_val in
3013         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3014         esac
3015         $as_echo "$ac_var='\''$ac_val'\''"
3016       done | sort
3017       echo
3018     fi
3019 
3020     if test -s confdefs.h; then
3021       $as_echo "## ----------- ##
3022 ## confdefs.h. ##
3023 ## ----------- ##"
3024       echo
3025       cat confdefs.h
3026       echo
3027     fi
3028     test "$ac_signal" != 0 &&
3029       $as_echo "$as_me: caught signal $ac_signal"
3030     $as_echo "$as_me: exit $exit_status"
3031   } >&5
3032   rm -f core *.core core.conftest.* &&
3033     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3034     exit $exit_status
3035 ' 0
3036 for ac_signal in 1 2 13 15; do
3037   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3038 done
3039 ac_signal=0
3040 
3041 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3042 rm -f -r conftest* confdefs.h
3043 
3044 $as_echo "/* confdefs.h */" > confdefs.h
3045 
3046 # Predefined preprocessor variables.
3047 
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_NAME "$PACKAGE_NAME"
3050 _ACEOF
3051 
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3054 _ACEOF
3055 
3056 cat >>confdefs.h <<_ACEOF
3057 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3058 _ACEOF
3059 
3060 cat >>confdefs.h <<_ACEOF
3061 #define PACKAGE_STRING "$PACKAGE_STRING"
3062 _ACEOF
3063 
3064 cat >>confdefs.h <<_ACEOF
3065 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3066 _ACEOF
3067 
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_URL "$PACKAGE_URL"
3070 _ACEOF
3071 
3072 
3073 # Let the site file select an alternate cache file if it wants to.
3074 # Prefer an explicitly selected file to automatically selected ones.
3075 ac_site_file1=NONE
3076 ac_site_file2=NONE
3077 if test -n "$CONFIG_SITE"; then
3078   # We do not want a PATH search for config.site.
3079   case $CONFIG_SITE in #((
3080     -*)  ac_site_file1=./$CONFIG_SITE;;
3081     */*) ac_site_file1=$CONFIG_SITE;;
3082     *)   ac_site_file1=./$CONFIG_SITE;;
3083   esac
3084 elif test "x$prefix" != xNONE; then
3085   ac_site_file1=$prefix/share/config.site
3086   ac_site_file2=$prefix/etc/config.site
3087 else
3088   ac_site_file1=$ac_default_prefix/share/config.site
3089   ac_site_file2=$ac_default_prefix/etc/config.site
3090 fi
3091 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3092 do
3093   test "x$ac_site_file" = xNONE && continue
3094   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3095     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3096 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3097     sed 's/^/| /' "$ac_site_file" >&5
3098     . "$ac_site_file" \
3099       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101 as_fn_error $? "failed to load site script $ac_site_file
3102 See \`config.log' for more details" "$LINENO" 5; }
3103   fi
3104 done
3105 
3106 if test -r "$cache_file"; then
3107   # Some versions of bash will fail to source /dev/null (special files
3108   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3109   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3110     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3111 $as_echo "$as_me: loading cache $cache_file" >&6;}
3112     case $cache_file in
3113       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3114       *)                      . "./$cache_file";;
3115     esac
3116   fi
3117 else
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3119 $as_echo "$as_me: creating cache $cache_file" >&6;}
3120   >$cache_file
3121 fi
3122 
3123 # Check that the precious variables saved in the cache have kept the same
3124 # value.
3125 ac_cache_corrupted=false
3126 for ac_var in $ac_precious_vars; do
3127   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3128   eval ac_new_set=\$ac_env_${ac_var}_set
3129   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3130   eval ac_new_val=\$ac_env_${ac_var}_value
3131   case $ac_old_set,$ac_new_set in
3132     set,)
3133       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3134 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3135       ac_cache_corrupted=: ;;
3136     ,set)
3137       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3138 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3139       ac_cache_corrupted=: ;;
3140     ,);;
3141     *)
3142       if test "x$ac_old_val" != "x$ac_new_val"; then
3143         # differences in whitespace do not lead to failure.
3144         ac_old_val_w=`echo x $ac_old_val`
3145         ac_new_val_w=`echo x $ac_new_val`
3146         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3147           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3148 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3149           ac_cache_corrupted=:
3150         else
3151           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3152 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3153           eval $ac_var=\$ac_old_val
3154         fi
3155         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3156 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3157         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3158 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3159       fi;;
3160   esac
3161   # Pass precious variables to config.status.
3162   if test "$ac_new_set" = set; then
3163     case $ac_new_val in
3164     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3165     *) ac_arg=$ac_var=$ac_new_val ;;
3166     esac
3167     case " $ac_configure_args " in
3168       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3169       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3170     esac
3171   fi
3172 done
3173 if $ac_cache_corrupted; then
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3177 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3178   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3179 fi
3180 ## -------------------- ##
3181 ## Main body of script. ##
3182 ## -------------------- ##
3183 
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 
3190 
3191 
3192 ac_aux_dir=
3193 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3194   if test -f "$ac_dir/install-sh"; then
3195     ac_aux_dir=$ac_dir
3196     ac_install_sh="$ac_aux_dir/install-sh -c"
3197     break
3198   elif test -f "$ac_dir/install.sh"; then
3199     ac_aux_dir=$ac_dir
3200     ac_install_sh="$ac_aux_dir/install.sh -c"
3201     break
3202   elif test -f "$ac_dir/shtool"; then
3203     ac_aux_dir=$ac_dir
3204     ac_install_sh="$ac_aux_dir/shtool install -c"
3205     break
3206   fi
3207 done
3208 if test -z "$ac_aux_dir"; then
3209   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
3210 fi
3211 
3212 # These three variables are undocumented and unsupported,
3213 # and are intended to be withdrawn in a future Autoconf release.
3214 # They can cause serious problems if a builder's source tree is in a directory
3215 # whose full name contains unusual characters.
3216 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3217 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3218 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3219 
3220 
3221 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3222 
3223 #
3224 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3225 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3226 #
3227 # This code is free software; you can redistribute it and/or modify it
3228 # under the terms of the GNU General Public License version 2 only, as
3229 # published by the Free Software Foundation.  Oracle designates this
3230 # particular file as subject to the "Classpath" exception as provided
3231 # by Oracle in the LICENSE file that accompanied this code.
3232 #
3233 # This code is distributed in the hope that it will be useful, but WITHOUT
3234 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3235 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3236 # version 2 for more details (a copy is included in the LICENSE file that
3237 # accompanied this code).
3238 #
3239 # You should have received a copy of the GNU General Public License version
3240 # 2 along with this work; if not, write to the Free Software Foundation,
3241 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3242 #
3243 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3244 # or visit www.oracle.com if you need additional information or have any
3245 # questions.
3246 #
3247 
3248 #
3249 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3250 #
3251 # This program is free software; you can redistribute it and/or modify
3252 # it under the terms of the GNU General Public License as published by
3253 # the Free Software Foundation; either version 2 of the License, or
3254 # (at your option) any later version.
3255 #
3256 # This program is distributed in the hope that it will be useful, but
3257 # WITHOUT ANY WARRANTY; without even the implied warranty of
3258 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3259 # General Public License for more details.
3260 #
3261 # You should have received a copy of the GNU General Public License
3262 # along with this program; if not, write to the Free Software
3263 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3264 #
3265 # As a special exception to the GNU General Public License, if you
3266 # distribute this file as part of a program that contains a
3267 # configuration script generated by Autoconf, you may include it under
3268 # the same distribution terms that you use for the rest of that program.
3269 
3270 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3271 # ----------------------------------
3272 # PKG_PROG_PKG_CONFIG
3273 
3274 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3275 #
3276 # Check to see whether a particular set of modules exists.  Similar
3277 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3278 #
3279 #
3280 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3281 # this or PKG_CHECK_MODULES is called, or make sure to call
3282 # PKG_CHECK_EXISTS manually
3283 # --------------------------------------------------------------
3284 
3285 
3286 
3287 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3288 # ---------------------------------------------
3289 # _PKG_CONFIG
3290 
3291 # _PKG_SHORT_ERRORS_SUPPORTED
3292 # -----------------------------
3293 # _PKG_SHORT_ERRORS_SUPPORTED
3294 
3295 
3296 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3297 # [ACTION-IF-NOT-FOUND])
3298 #
3299 #
3300 # Note that if there is a possibility the first call to
3301 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3302 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3303 #
3304 #
3305 # --------------------------------------------------------------
3306 # PKG_CHECK_MODULES
3307 
3308 
3309 # Include these first...
3310 #
3311 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3312 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3313 #
3314 # This code is free software; you can redistribute it and/or modify it
3315 # under the terms of the GNU General Public License version 2 only, as
3316 # published by the Free Software Foundation.  Oracle designates this
3317 # particular file as subject to the "Classpath" exception as provided
3318 # by Oracle in the LICENSE file that accompanied this code.
3319 #
3320 # This code is distributed in the hope that it will be useful, but WITHOUT
3321 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3322 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3323 # version 2 for more details (a copy is included in the LICENSE file that
3324 # accompanied this code).
3325 #
3326 # You should have received a copy of the GNU General Public License version
3327 # 2 along with this work; if not, write to the Free Software Foundation,
3328 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3329 #
3330 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3331 # or visit www.oracle.com if you need additional information or have any
3332 # questions.
3333 #
3334 
3335 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3336 # If so, then append $1 to $2 \
3337 # Also set JVM_ARG_OK to true/false depending on outcome.
3338 
3339 
3340 # Appends a string to a path variable, only adding the : when needed.
3341 
3342 
3343 # Prepends a string to a path variable, only adding the : when needed.
3344 
3345 
3346 # This will make sure the given variable points to a full and proper
3347 # path. This means:
3348 # 1) There will be no spaces in the path. On posix platforms,
3349 #    spaces in the path will result in an error. On Windows,
3350 #    the path will be rewritten using short-style to be space-free.
3351 # 2) The path will be absolute, and it will be in unix-style (on
3352 #     cygwin).
3353 # $1: The name of the variable to fix
3354 
3355 
3356 # This will make sure the given variable points to a executable
3357 # with a full and proper path. This means:
3358 # 1) There will be no spaces in the path. On posix platforms,
3359 #    spaces in the path will result in an error. On Windows,
3360 #    the path will be rewritten using short-style to be space-free.
3361 # 2) The path will be absolute, and it will be in unix-style (on
3362 #     cygwin).
3363 # Any arguments given to the executable is preserved.
3364 # If the input variable does not have a directory specification, then
3365 # it need to be in the PATH.
3366 # $1: The name of the variable to fix
3367 
3368 
3369 
3370 
3371 # Register a --with argument but mark it as deprecated
3372 # $1: The name of the with argument to deprecate, not including --with-
3373 
3374 
3375 # Register a --enable argument but mark it as deprecated
3376 # $1: The name of the with argument to deprecate, not including --enable-
3377 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3378 
3379 
3380 
3381 
3382 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3383 # $1: variable to check
3384 
3385 
3386 # Check that there are no unprocessed overridden variables left.
3387 # If so, they are an incorrect argument and we will exit with an error.
3388 
3389 
3390 # Setup a tool for the given variable. If correctly specified by the user,
3391 # use that value, otherwise search for the tool using the supplied code snippet.
3392 # $1: variable to set
3393 # $2: code snippet to call to look for the tool
3394 
3395 
3396 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3397 # $1: variable to set
3398 # $2: executable name (or list of names) to look for
3399 
3400 
3401 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3402 # $1: variable to set
3403 # $2: executable name (or list of names) to look for
3404 
3405 
3406 # Like BASIC_PATH_PROGS but fails if no tool was found.
3407 # $1: variable to set
3408 # $2: executable name (or list of names) to look for
3409 
3410 
3411 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3412 # $1: variable to set
3413 # $2: autoconf macro to call to look for the special tool
3414 
3415 
3416 # Setup the most fundamental tools that relies on not much else to set up,
3417 # but is used by much of the early bootstrap code.
3418 
3419 
3420 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3421 
3422 
3423 
3424 
3425 
3426 
3427 
3428 
3429 
3430 #%%% Simple tools %%%
3431 
3432 # Check if we have found a usable version of make
3433 # $1: the path to a potential make binary (or empty)
3434 # $2: the description on how we found this
3435 
3436 
3437 # Goes looking for a usable version of GNU make.
3438 
3439 
3440 
3441 
3442 
3443 
3444 # Check if build directory is on local disk. If not possible to determine,
3445 # we prefer to claim it's local.
3446 # Argument 1: directory to test
3447 # Argument 2: what to do if it is on local disk
3448 # Argument 3: what to do otherwise (remote disk or failure)
3449 
3450 
3451 # Check that source files have basic read permissions set. This might
3452 # not be the case in cygwin in certain conditions.
3453 
3454 
3455 
3456 
3457 #
3458 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3459 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3460 #
3461 # This code is free software; you can redistribute it and/or modify it
3462 # under the terms of the GNU General Public License version 2 only, as
3463 # published by the Free Software Foundation.  Oracle designates this
3464 # particular file as subject to the "Classpath" exception as provided
3465 # by Oracle in the LICENSE file that accompanied this code.
3466 #
3467 # This code is distributed in the hope that it will be useful, but WITHOUT
3468 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3469 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3470 # version 2 for more details (a copy is included in the LICENSE file that
3471 # accompanied this code).
3472 #
3473 # You should have received a copy of the GNU General Public License version
3474 # 2 along with this work; if not, write to the Free Software Foundation,
3475 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3476 #
3477 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3478 # or visit www.oracle.com if you need additional information or have any
3479 # questions.
3480 #
3481 
3482 
3483 
3484 
3485 
3486 # Helper function which possibly converts a path using DOS-style short mode.
3487 # If so, the updated path is stored in $new_path.
3488 # $1: The path to check
3489 
3490 
3491 # Helper function which possibly converts a path using DOS-style short mode.
3492 # If so, the updated path is stored in $new_path.
3493 # $1: The path to check
3494 
3495 
3496 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3497 # and could probably be heavily simplified. However, all changes in this
3498 # area tend to need lot of testing in different scenarios, and in lack of
3499 # proper unit testing, cleaning this up has not been deemed worth the effort
3500 # at the moment.
3501 
3502 
3503 
3504 
3505 
3506 
3507 
3508 
3509 
3510 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3511 
3512 
3513 
3514 
3515 #
3516 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3517 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3518 #
3519 # This code is free software; you can redistribute it and/or modify it
3520 # under the terms of the GNU General Public License version 2 only, as
3521 # published by the Free Software Foundation.  Oracle designates this
3522 # particular file as subject to the "Classpath" exception as provided
3523 # by Oracle in the LICENSE file that accompanied this code.
3524 #
3525 # This code is distributed in the hope that it will be useful, but WITHOUT
3526 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3527 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3528 # version 2 for more details (a copy is included in the LICENSE file that
3529 # accompanied this code).
3530 #
3531 # You should have received a copy of the GNU General Public License version
3532 # 2 along with this work; if not, write to the Free Software Foundation,
3533 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3534 #
3535 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3536 # or visit www.oracle.com if you need additional information or have any
3537 # questions.
3538 #
3539 
3540 
3541 
3542 
3543 
3544 
3545 
3546 
3547 
3548 
3549 
3550 # ... then the rest
3551 #
3552 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3553 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3554 #
3555 # This code is free software; you can redistribute it and/or modify it
3556 # under the terms of the GNU General Public License version 2 only, as
3557 # published by the Free Software Foundation.  Oracle designates this
3558 # particular file as subject to the "Classpath" exception as provided
3559 # by Oracle in the LICENSE file that accompanied this code.
3560 #
3561 # This code is distributed in the hope that it will be useful, but WITHOUT
3562 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3563 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3564 # version 2 for more details (a copy is included in the LICENSE file that
3565 # accompanied this code).
3566 #
3567 # You should have received a copy of the GNU General Public License version
3568 # 2 along with this work; if not, write to the Free Software Foundation,
3569 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3570 #
3571 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3572 # or visit www.oracle.com if you need additional information or have any
3573 # questions.
3574 #
3575 
3576 ########################################################################
3577 # This file handles detection of the Boot JDK. The Boot JDK detection
3578 # process has been developed as a response to solve a complex real-world
3579 # problem. Initially, it was simple, but it has grown as platform after
3580 # platform, idiosyncracy after idiosyncracy has been supported.
3581 #
3582 # The basic idea is this:
3583 # 1) You need an acceptable *) JDK to use as a Boot JDK
3584 # 2) There are several ways to locate a JDK, that are mostly platform
3585 #    dependent **)
3586 # 3) You can have multiple JDKs installed
3587 # 4) If possible, configure should try to dig out an acceptable JDK
3588 #    automatically, without having to resort to command-line options
3589 #
3590 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3591 #     javac) and not a JRE, etc.
3592 #
3593 # **) On Windows we typically use a well-known path.
3594 #     On MacOSX we typically use the tool java_home.
3595 #     On Linux we typically find javac in the $PATH, and then follow a
3596 #     chain of symlinks that often ends up in a real JDK.
3597 #
3598 # This leads to the code where we check in different ways to locate a
3599 # JDK, and if one is found, check if it is acceptable. If not, we print
3600 # our reasons for rejecting it (useful when debugging non-working
3601 # configure situations) and continue checking the next one.
3602 ########################################################################
3603 
3604 # Execute the check given as argument, and verify the result
3605 # If the Boot JDK was previously found, do nothing
3606 # $1 A command line (typically autoconf macro) to execute
3607 
3608 
3609 # Test: Is bootjdk explicitely set by command line arguments?
3610 
3611 
3612 # Test: Is bootjdk available from builddeps?
3613 
3614 
3615 # Test: Is $JAVA_HOME set?
3616 
3617 
3618 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3619 
3620 
3621 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3622 # $1: Argument to the java_home binary (optional)
3623 
3624 
3625 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3626 
3627 
3628 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3629 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3630 # $1 = Path to directory containing jdk installations.
3631 # $2 = String to append to the found JDK directory to get the proper JDK home
3632 
3633 
3634 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3635 # environmental variable as base for where to look.
3636 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3637 
3638 
3639 # Test: Is there a JDK installed in default, well-known locations?
3640 
3641 
3642 # Check that a command-line tool in the Boot JDK is correct
3643 # $1 = name of variable to assign
3644 # $2 = name of binary
3645 
3646 
3647 ###############################################################################
3648 #
3649 # We need a Boot JDK to bootstrap the build.
3650 #
3651 
3652 
3653 
3654 
3655 
3656 #
3657 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3658 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3659 #
3660 # This code is free software; you can redistribute it and/or modify it
3661 # under the terms of the GNU General Public License version 2 only, as
3662 # published by the Free Software Foundation.  Oracle designates this
3663 # particular file as subject to the "Classpath" exception as provided
3664 # by Oracle in the LICENSE file that accompanied this code.
3665 #
3666 # This code is distributed in the hope that it will be useful, but WITHOUT
3667 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3668 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3669 # version 2 for more details (a copy is included in the LICENSE file that
3670 # accompanied this code).
3671 #
3672 # You should have received a copy of the GNU General Public License version
3673 # 2 along with this work; if not, write to the Free Software Foundation,
3674 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3675 #
3676 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3677 # or visit www.oracle.com if you need additional information or have any
3678 # questions.
3679 #
3680 
3681 
3682 
3683 
3684 
3685 
3686 
3687 
3688 
3689 
3690 
3691 
3692 
3693 
3694 
3695 
3696 
3697 
3698 
3699 
3700 #
3701 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3702 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3703 #
3704 # This code is free software; you can redistribute it and/or modify it
3705 # under the terms of the GNU General Public License version 2 only, as
3706 # published by the Free Software Foundation.  Oracle designates this
3707 # particular file as subject to the "Classpath" exception as provided
3708 # by Oracle in the LICENSE file that accompanied this code.
3709 #
3710 # This code is distributed in the hope that it will be useful, but WITHOUT
3711 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3712 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3713 # version 2 for more details (a copy is included in the LICENSE file that
3714 # accompanied this code).
3715 #
3716 # You should have received a copy of the GNU General Public License version
3717 # 2 along with this work; if not, write to the Free Software Foundation,
3718 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3719 #
3720 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3721 # or visit www.oracle.com if you need additional information or have any
3722 # questions.
3723 #
3724 
3725 
3726 
3727 
3728 
3729 # Documentation on common flags used for solstudio in HIGHEST.
3730 #
3731 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3732 #          done with care, there are some assumptions below that need to
3733 #          be understood about the use of pointers, and IEEE behavior.
3734 #
3735 # -fns: Use non-standard floating point mode (not IEEE 754)
3736 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3737 # -fsingle: Use single precision floating point with 'float'
3738 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3739 #   (Source with excessing pointer casting and data access with mixed
3740 #    pointer types are not recommended)
3741 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3742 #   (If you expect perfect errno behavior, do not use this)
3743 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3744 # -xrestrict: Pointer parameters to functions do not overlap
3745 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3746 #    If you pass in multiple pointers to the same data, do not use this)
3747 # -xlibmil: Inline some library routines
3748 #   (If you expect perfect errno behavior, do not use this)
3749 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3750 #   (If you expect perfect errno behavior, do not use this)
3751 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3752 
3753     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3754     # Bug?
3755     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3756     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3757     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3758     #fi
3759 
3760 
3761 
3762 
3763 
3764 
3765 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3766 #                                   [RUN-IF-FALSE])
3767 # ------------------------------------------------------------
3768 # Check that the c and c++ compilers support an argument
3769 
3770 
3771 
3772 
3773 #
3774 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3775 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3776 #
3777 # This code is free software; you can redistribute it and/or modify it
3778 # under the terms of the GNU General Public License version 2 only, as
3779 # published by the Free Software Foundation.  Oracle designates this
3780 # particular file as subject to the "Classpath" exception as provided
3781 # by Oracle in the LICENSE file that accompanied this code.
3782 #
3783 # This code is distributed in the hope that it will be useful, but WITHOUT
3784 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3785 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3786 # version 2 for more details (a copy is included in the LICENSE file that
3787 # accompanied this code).
3788 #
3789 # You should have received a copy of the GNU General Public License version
3790 # 2 along with this work; if not, write to the Free Software Foundation,
3791 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3792 #
3793 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3794 # or visit www.oracle.com if you need additional information or have any
3795 # questions.
3796 #
3797 
3798 
3799 
3800 
3801 
3802 cygwin_help() {
3803   case $1 in
3804     unzip)
3805       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3806       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3807       ;;
3808     zip)
3809       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3810       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3811       ;;
3812     make)
3813       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3814       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3815       ;;
3816     freetype)
3817       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3818         HELP_MSG="To install freetype, run:
3819 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3820 chmod +x /tmp/freetype-setup.exe
3821 /tmp/freetype-setup.exe
3822 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3823 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3824       else
3825         HELP_MSG="You need to build a 64-bit version of freetype.
3826 This is not readily available.
3827 You can find source code and build instructions on
3828 http://www.freetype.org/
3829 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3830       fi
3831       ;;
3832   esac
3833 }
3834 
3835 msys_help() {
3836   PKGHANDLER_COMMAND=""
3837 }
3838 
3839 apt_help() {
3840   case $1 in
3841     devkit)
3842       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3843     openjdk)
3844       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3845     alsa)
3846       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3847     cups)
3848       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3849     freetype)
3850       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3851     pulse)
3852       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3853     x11)
3854       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3855     ccache)
3856       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3857   esac
3858 }
3859 
3860 yum_help() {
3861   case $1 in
3862     devkit)
3863       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3864     openjdk)
3865       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3866     alsa)
3867       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3868     cups)
3869       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3870     freetype)
3871       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3872     pulse)
3873       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3874     x11)
3875       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3876     ccache)
3877       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3878   esac
3879 }
3880 
3881 port_help() {
3882   PKGHANDLER_COMMAND=""
3883 }
3884 
3885 pkgutil_help() {
3886   PKGHANDLER_COMMAND=""
3887 }
3888 
3889 pkgadd_help() {
3890   PKGHANDLER_COMMAND=""
3891 }
3892 
3893 # This function will check if we're called from the "configure" wrapper while
3894 # printing --help. If so, we will print out additional information that can
3895 # only be extracted within the autoconf script, and then exit. This must be
3896 # called at the very beginning in configure.ac.
3897 
3898 
3899 
3900 
3901 #
3902 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3903 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3904 #
3905 # This code is free software; you can redistribute it and/or modify it
3906 # under the terms of the GNU General Public License version 2 only, as
3907 # published by the Free Software Foundation.  Oracle designates this
3908 # particular file as subject to the "Classpath" exception as provided
3909 # by Oracle in the LICENSE file that accompanied this code.
3910 #
3911 # This code is distributed in the hope that it will be useful, but WITHOUT
3912 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3913 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3914 # version 2 for more details (a copy is included in the LICENSE file that
3915 # accompanied this code).
3916 #
3917 # You should have received a copy of the GNU General Public License version
3918 # 2 along with this work; if not, write to the Free Software Foundation,
3919 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3920 #
3921 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3922 # or visit www.oracle.com if you need additional information or have any
3923 # questions.
3924 #
3925 
3926 
3927 
3928 
3929 
3930 
3931 
3932 
3933 
3934 
3935 ###############################################################################
3936 #
3937 # Should we build only OpenJDK even if closed sources are present?
3938 #
3939 
3940 
3941 
3942 
3943 ###############################################################################
3944 #
3945 # Setup version numbers
3946 #
3947 
3948 
3949 
3950 
3951 
3952 
3953 #
3954 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3955 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3956 #
3957 # This code is free software; you can redistribute it and/or modify it
3958 # under the terms of the GNU General Public License version 2 only, as
3959 # published by the Free Software Foundation.  Oracle designates this
3960 # particular file as subject to the "Classpath" exception as provided
3961 # by Oracle in the LICENSE file that accompanied this code.
3962 #
3963 # This code is distributed in the hope that it will be useful, but WITHOUT
3964 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3965 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3966 # version 2 for more details (a copy is included in the LICENSE file that
3967 # accompanied this code).
3968 #
3969 # You should have received a copy of the GNU General Public License version
3970 # 2 along with this work; if not, write to the Free Software Foundation,
3971 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3972 #
3973 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3974 # or visit www.oracle.com if you need additional information or have any
3975 # questions.
3976 #
3977 
3978 
3979 
3980 
3981 
3982 
3983 
3984 
3985 
3986 
3987 
3988 
3989 
3990 
3991 
3992 
3993 
3994 
3995 
3996 #
3997 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3998 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3999 #
4000 # This code is free software; you can redistribute it and/or modify it
4001 # under the terms of the GNU General Public License version 2 only, as
4002 # published by the Free Software Foundation.  Oracle designates this
4003 # particular file as subject to the "Classpath" exception as provided
4004 # by Oracle in the LICENSE file that accompanied this code.
4005 #
4006 # This code is distributed in the hope that it will be useful, but WITHOUT
4007 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4008 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4009 # version 2 for more details (a copy is included in the LICENSE file that
4010 # accompanied this code).
4011 #
4012 # You should have received a copy of the GNU General Public License version
4013 # 2 along with this work; if not, write to the Free Software Foundation,
4014 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4015 #
4016 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4017 # or visit www.oracle.com if you need additional information or have any
4018 # questions.
4019 #
4020 
4021 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4022 # Converts autoconf style CPU name to OpenJDK style, into
4023 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4024 
4025 
4026 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4027 # Converts autoconf style OS name to OpenJDK style, into
4028 # VAR_OS and VAR_OS_API.
4029 
4030 
4031 # Expects $host_os $host_cpu $build_os and $build_cpu
4032 # and $with_target_bits to have been setup!
4033 #
4034 # Translate the standard triplet(quadruplet) definition
4035 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4036 # OPENJDK_BUILD_OS, etc.
4037 
4038 
4039 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4040 # accordingly. Must be done after setting up build and target system, but before
4041 # doing anything else with these values.
4042 
4043 
4044 # Setup the legacy variables, for controlling the old makefiles.
4045 #
4046 
4047 
4048 
4049 
4050 #%%% Build and target systems %%%
4051 
4052 
4053 
4054 
4055 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4056 # Add -mX to various FLAGS variables.
4057 
4058 
4059 
4060 
4061 
4062 
4063 #
4064 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4065 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4066 #
4067 # This code is free software; you can redistribute it and/or modify it
4068 # under the terms of the GNU General Public License version 2 only, as
4069 # published by the Free Software Foundation.  Oracle designates this
4070 # particular file as subject to the "Classpath" exception as provided
4071 # by Oracle in the LICENSE file that accompanied this code.
4072 #
4073 # This code is distributed in the hope that it will be useful, but WITHOUT
4074 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4075 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4076 # version 2 for more details (a copy is included in the LICENSE file that
4077 # accompanied this code).
4078 #
4079 # You should have received a copy of the GNU General Public License version
4080 # 2 along with this work; if not, write to the Free Software Foundation,
4081 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4082 #
4083 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4084 # or visit www.oracle.com if you need additional information or have any
4085 # questions.
4086 #
4087 
4088 
4089 
4090 
4091 
4092 
4093 
4094 
4095 #
4096 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4097 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4098 #
4099 # This code is free software; you can redistribute it and/or modify it
4100 # under the terms of the GNU General Public License version 2 only, as
4101 # published by the Free Software Foundation.  Oracle designates this
4102 # particular file as subject to the "Classpath" exception as provided
4103 # by Oracle in the LICENSE file that accompanied this code.
4104 #
4105 # This code is distributed in the hope that it will be useful, but WITHOUT
4106 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4107 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4108 # version 2 for more details (a copy is included in the LICENSE file that
4109 # accompanied this code).
4110 #
4111 # You should have received a copy of the GNU General Public License version
4112 # 2 along with this work; if not, write to the Free Software Foundation,
4113 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4114 #
4115 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4116 # or visit www.oracle.com if you need additional information or have any
4117 # questions.
4118 #
4119 
4120 ########################################################################
4121 # This file is responsible for detecting, verifying and setting up the
4122 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4123 # proper paths to the binaries, but it will not setup any flags.
4124 #
4125 # The binaries used is determined by the toolchain type, which is the family of
4126 # compilers and related tools that are used.
4127 ########################################################################
4128 
4129 
4130 # All valid toolchains, regardless of platform (used by help.m4)
4131 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4132 
4133 # These toolchains are valid on different platforms
4134 VALID_TOOLCHAINS_linux="gcc clang"
4135 VALID_TOOLCHAINS_solaris="solstudio"
4136 VALID_TOOLCHAINS_macosx="gcc clang"
4137 VALID_TOOLCHAINS_aix="xlc"
4138 VALID_TOOLCHAINS_windows="microsoft"
4139 
4140 # Toolchain descriptions
4141 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4142 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4143 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4144 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4145 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4146 
4147 # Setup a number of variables describing how native output files are
4148 # named on this platform/toolchain.
4149 
4150 
4151 # Determine which toolchain type to use, and make sure it is valid for this
4152 # platform. Setup various information about the selected toolchain.
4153 
4154 
4155 # Before we start detecting the toolchain executables, we might need some
4156 # special setup, e.g. additional paths etc.
4157 
4158 
4159 # Restore path, etc
4160 
4161 
4162 # Check if a compiler is of the toolchain type we expect, and save the version
4163 # information from it. If the compiler does not match the expected type,
4164 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4165 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4166 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4167 #
4168 # $1 = compiler to test (CC or CXX)
4169 # $2 = human readable name of compiler (C or C++)
4170 
4171 
4172 # Try to locate the given C or C++ compiler in the path, or otherwise.
4173 #
4174 # $1 = compiler to test (CC or CXX)
4175 # $2 = human readable name of compiler (C or C++)
4176 # $3 = list of compiler names to search for
4177 
4178 
4179 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4180 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4181 # archiver (AR). Verify that the compilers are correct according to the
4182 # toolchain type.
4183 
4184 
4185 # Setup additional tools that is considered a part of the toolchain, but not the
4186 # core part. Many of these are highly platform-specific and do not exist,
4187 # and/or are not needed on all platforms.
4188 
4189 
4190 # Setup the build tools (i.e, the compiler and linker used to build programs
4191 # that should be run on the build platform, not the target platform, as a build
4192 # helper). Since the non-cross-compile case uses the normal, target compilers
4193 # for this, we can only do this after these have been setup.
4194 
4195 
4196 # Setup legacy variables that are still needed as alternative ways to refer to
4197 # parts of the toolchain.
4198 
4199 
4200 # Do some additional checks on the detected tools.
4201 
4202 
4203 # Setup the JTReg Regression Test Harness.
4204 
4205 
4206 #
4207 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4208 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4209 #
4210 # This code is free software; you can redistribute it and/or modify it
4211 # under the terms of the GNU General Public License version 2 only, as
4212 # published by the Free Software Foundation.  Oracle designates this
4213 # particular file as subject to the "Classpath" exception as provided
4214 # by Oracle in the LICENSE file that accompanied this code.
4215 #
4216 # This code is distributed in the hope that it will be useful, but WITHOUT
4217 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4218 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4219 # version 2 for more details (a copy is included in the LICENSE file that
4220 # accompanied this code).
4221 #
4222 # You should have received a copy of the GNU General Public License version
4223 # 2 along with this work; if not, write to the Free Software Foundation,
4224 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4225 #
4226 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4227 # or visit www.oracle.com if you need additional information or have any
4228 # questions.
4229 #
4230 
4231 
4232 
4233 
4234 
4235 
4236 
4237 # Check if the VS env variables were setup prior to running configure.
4238 # If not, then find vcvarsall.bat and run it automatically, and integrate
4239 # the set env variables into the spec file.
4240 
4241 
4242 
4243 
4244 
4245 
4246 
4247 
4248 
4249 
4250 # This line needs to be here, verbatim, after all includes and the dummy hook
4251 # definitions. It is replaced with custom functionality when building
4252 # custom sources.
4253 #CUSTOM_AUTOCONF_INCLUDE
4254 
4255 # Do not change or remove the following line, it is needed for consistency checks:
4256 DATE_WHEN_GENERATED=1398861894
4257 
4258 ###############################################################################
4259 #
4260 # Initialization / Boot-strapping
4261 #
4262 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4263 # thus it jumps back and forth, each time gaining something needed later on.
4264 #
4265 ###############################################################################
4266 
4267 # If we are requested to print additional help, do that and then exit.
4268 # This must be the very first call.
4269 
4270   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4271     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4272     $PRINTF "Which are valid to use depends on the build platform.\n"
4273     for toolchain in $VALID_TOOLCHAINS_all; do
4274       # Use indirect variable referencing
4275       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4276       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4277       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4278     done
4279 
4280     # And now exit directly
4281     exit 0
4282   fi
4283 
4284 
4285 # Basic initialization that must happen first of all in the normal process.
4286 
4287   # Save the original command line. This is passed to us by the wrapper configure script.
4288 
4289   DATE_WHEN_CONFIGURED=`LANG=C date`
4290 
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4292 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4293   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4294 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4295 
4296 
4297   # Start with tools that do not need have cross compilation support
4298   # and can be expected to be found in the default PATH. These tools are
4299   # used by configure. Nor are these tools expected to be found in the
4300   # devkit from the builddeps server either, since they are
4301   # needed to download the devkit.
4302 
4303   # First are all the simple required tools.
4304 
4305 
4306 
4307   # Publish this variable in the help.
4308 
4309 
4310   if test "x$BASENAME" = x; then
4311     # The variable is not set by user, try to locate tool using the code snippet
4312     for ac_prog in basename
4313 do
4314   # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if ${ac_cv_path_BASENAME+:} false; then :
4319   $as_echo_n "(cached) " >&6
4320 else
4321   case $BASENAME in
4322   [\\/]* | ?:[\\/]*)
4323   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4324   ;;
4325   *)
4326   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331     for ac_exec_ext in '' $ac_executable_extensions; do
4332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338   done
4339 IFS=$as_save_IFS
4340 
4341   ;;
4342 esac
4343 fi
4344 BASENAME=$ac_cv_path_BASENAME
4345 if test -n "$BASENAME"; then
4346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4347 $as_echo "$BASENAME" >&6; }
4348 else
4349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4351 fi
4352 
4353 
4354   test -n "$BASENAME" && break
4355 done
4356 
4357   else
4358     # The variable is set, but is it from the command line or the environment?
4359 
4360     # Try to remove the string !BASENAME! from our list.
4361     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4362     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4363       # If it failed, the variable was not from the command line. Ignore it,
4364       # but warn the user (except for BASH, which is always set by the calling BASH).
4365       if test "xBASENAME" != xBASH; then
4366         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4367 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4368       fi
4369       # Try to locate tool using the code snippet
4370       for ac_prog in basename
4371 do
4372   # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4375 $as_echo_n "checking for $ac_word... " >&6; }
4376 if ${ac_cv_path_BASENAME+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379   case $BASENAME in
4380   [\\/]* | ?:[\\/]*)
4381   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4382   ;;
4383   *)
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389     for ac_exec_ext in '' $ac_executable_extensions; do
4390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396   done
4397 IFS=$as_save_IFS
4398 
4399   ;;
4400 esac
4401 fi
4402 BASENAME=$ac_cv_path_BASENAME
4403 if test -n "$BASENAME"; then
4404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4405 $as_echo "$BASENAME" >&6; }
4406 else
4407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4408 $as_echo "no" >&6; }
4409 fi
4410 
4411 
4412   test -n "$BASENAME" && break
4413 done
4414 
4415     else
4416       # If it succeeded, then it was overridden by the user. We will use it
4417       # for the tool.
4418 
4419       # First remove it from the list of overridden variables, so we can test
4420       # for unknown variables in the end.
4421       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4422 
4423       # Check if the provided tool contains a complete path.
4424       tool_specified="$BASENAME"
4425       tool_basename="${tool_specified##*/}"
4426       if test "x$tool_basename" = "x$tool_specified"; then
4427         # A command without a complete path is provided, search $PATH.
4428         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4429 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4430         # Extract the first word of "$tool_basename", so it can be a program name with args.
4431 set dummy $tool_basename; ac_word=$2
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4433 $as_echo_n "checking for $ac_word... " >&6; }
4434 if ${ac_cv_path_BASENAME+:} false; then :
4435   $as_echo_n "(cached) " >&6
4436 else
4437   case $BASENAME in
4438   [\\/]* | ?:[\\/]*)
4439   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4440   ;;
4441   *)
4442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447     for ac_exec_ext in '' $ac_executable_extensions; do
4448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451     break 2
4452   fi
4453 done
4454   done
4455 IFS=$as_save_IFS
4456 
4457   ;;
4458 esac
4459 fi
4460 BASENAME=$ac_cv_path_BASENAME
4461 if test -n "$BASENAME"; then
4462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4463 $as_echo "$BASENAME" >&6; }
4464 else
4465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4466 $as_echo "no" >&6; }
4467 fi
4468 
4469 
4470         if test "x$BASENAME" = x; then
4471           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4472         fi
4473       else
4474         # Otherwise we believe it is a complete path. Use it as it is.
4475         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4476 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4477         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4478 $as_echo_n "checking for BASENAME... " >&6; }
4479         if test ! -x "$tool_specified"; then
4480           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4481 $as_echo "not found" >&6; }
4482           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4483         fi
4484         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4485 $as_echo "$tool_specified" >&6; }
4486       fi
4487     fi
4488   fi
4489 
4490 
4491 
4492   if test "x$BASENAME" = x; then
4493     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4494   fi
4495 
4496 
4497 
4498 
4499 
4500   # Publish this variable in the help.
4501 
4502 
4503   if test "x$BASH" = x; then
4504     # The variable is not set by user, try to locate tool using the code snippet
4505     for ac_prog in bash
4506 do
4507   # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_path_BASH+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   case $BASH in
4515   [\\/]* | ?:[\\/]*)
4516   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4517   ;;
4518   *)
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531   done
4532 IFS=$as_save_IFS
4533 
4534   ;;
4535 esac
4536 fi
4537 BASH=$ac_cv_path_BASH
4538 if test -n "$BASH"; then
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4540 $as_echo "$BASH" >&6; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545 
4546 
4547   test -n "$BASH" && break
4548 done
4549 
4550   else
4551     # The variable is set, but is it from the command line or the environment?
4552 
4553     # Try to remove the string !BASH! from our list.
4554     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4555     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4556       # If it failed, the variable was not from the command line. Ignore it,
4557       # but warn the user (except for BASH, which is always set by the calling BASH).
4558       if test "xBASH" != xBASH; then
4559         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4560 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4561       fi
4562       # Try to locate tool using the code snippet
4563       for ac_prog in bash
4564 do
4565   # Extract the first word of "$ac_prog", so it can be a program name with args.
4566 set dummy $ac_prog; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_path_BASH+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   case $BASH in
4573   [\\/]* | ?:[\\/]*)
4574   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4575   ;;
4576   *)
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591 
4592   ;;
4593 esac
4594 fi
4595 BASH=$ac_cv_path_BASH
4596 if test -n "$BASH"; then
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4598 $as_echo "$BASH" >&6; }
4599 else
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603 
4604 
4605   test -n "$BASH" && break
4606 done
4607 
4608     else
4609       # If it succeeded, then it was overridden by the user. We will use it
4610       # for the tool.
4611 
4612       # First remove it from the list of overridden variables, so we can test
4613       # for unknown variables in the end.
4614       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4615 
4616       # Check if the provided tool contains a complete path.
4617       tool_specified="$BASH"
4618       tool_basename="${tool_specified##*/}"
4619       if test "x$tool_basename" = "x$tool_specified"; then
4620         # A command without a complete path is provided, search $PATH.
4621         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4622 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4623         # Extract the first word of "$tool_basename", so it can be a program name with args.
4624 set dummy $tool_basename; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if ${ac_cv_path_BASH+:} false; then :
4628   $as_echo_n "(cached) " >&6
4629 else
4630   case $BASH in
4631   [\\/]* | ?:[\\/]*)
4632   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4633   ;;
4634   *)
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640     for ac_exec_ext in '' $ac_executable_extensions; do
4641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4642     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647   done
4648 IFS=$as_save_IFS
4649 
4650   ;;
4651 esac
4652 fi
4653 BASH=$ac_cv_path_BASH
4654 if test -n "$BASH"; then
4655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4656 $as_echo "$BASH" >&6; }
4657 else
4658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4659 $as_echo "no" >&6; }
4660 fi
4661 
4662 
4663         if test "x$BASH" = x; then
4664           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4665         fi
4666       else
4667         # Otherwise we believe it is a complete path. Use it as it is.
4668         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4669 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4671 $as_echo_n "checking for BASH... " >&6; }
4672         if test ! -x "$tool_specified"; then
4673           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4674 $as_echo "not found" >&6; }
4675           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4676         fi
4677         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4678 $as_echo "$tool_specified" >&6; }
4679       fi
4680     fi
4681   fi
4682 
4683 
4684 
4685   if test "x$BASH" = x; then
4686     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4687   fi
4688 
4689 
4690 
4691 
4692 
4693   # Publish this variable in the help.
4694 
4695 
4696   if test "x$CAT" = x; then
4697     # The variable is not set by user, try to locate tool using the code snippet
4698     for ac_prog in cat
4699 do
4700   # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy $ac_prog; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_path_CAT+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   case $CAT in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724   done
4725 IFS=$as_save_IFS
4726 
4727   ;;
4728 esac
4729 fi
4730 CAT=$ac_cv_path_CAT
4731 if test -n "$CAT"; then
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4733 $as_echo "$CAT" >&6; }
4734 else
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738 
4739 
4740   test -n "$CAT" && break
4741 done
4742 
4743   else
4744     # The variable is set, but is it from the command line or the environment?
4745 
4746     # Try to remove the string !CAT! from our list.
4747     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4748     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4749       # If it failed, the variable was not from the command line. Ignore it,
4750       # but warn the user (except for BASH, which is always set by the calling BASH).
4751       if test "xCAT" != xBASH; then
4752         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4753 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4754       fi
4755       # Try to locate tool using the code snippet
4756       for ac_prog in cat
4757 do
4758   # Extract the first word of "$ac_prog", so it can be a program name with args.
4759 set dummy $ac_prog; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_path_CAT+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   case $CAT in
4766   [\\/]* | ?:[\\/]*)
4767   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4768   ;;
4769   *)
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782   done
4783 IFS=$as_save_IFS
4784 
4785   ;;
4786 esac
4787 fi
4788 CAT=$ac_cv_path_CAT
4789 if test -n "$CAT"; then
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4791 $as_echo "$CAT" >&6; }
4792 else
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796 
4797 
4798   test -n "$CAT" && break
4799 done
4800 
4801     else
4802       # If it succeeded, then it was overridden by the user. We will use it
4803       # for the tool.
4804 
4805       # First remove it from the list of overridden variables, so we can test
4806       # for unknown variables in the end.
4807       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4808 
4809       # Check if the provided tool contains a complete path.
4810       tool_specified="$CAT"
4811       tool_basename="${tool_specified##*/}"
4812       if test "x$tool_basename" = "x$tool_specified"; then
4813         # A command without a complete path is provided, search $PATH.
4814         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4815 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4816         # Extract the first word of "$tool_basename", so it can be a program name with args.
4817 set dummy $tool_basename; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if ${ac_cv_path_CAT+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   case $CAT in
4824   [\\/]* | ?:[\\/]*)
4825   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4826   ;;
4827   *)
4828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833     for ac_exec_ext in '' $ac_executable_extensions; do
4834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4835     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840   done
4841 IFS=$as_save_IFS
4842 
4843   ;;
4844 esac
4845 fi
4846 CAT=$ac_cv_path_CAT
4847 if test -n "$CAT"; then
4848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4849 $as_echo "$CAT" >&6; }
4850 else
4851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 $as_echo "no" >&6; }
4853 fi
4854 
4855 
4856         if test "x$CAT" = x; then
4857           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4858         fi
4859       else
4860         # Otherwise we believe it is a complete path. Use it as it is.
4861         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4862 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4863         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4864 $as_echo_n "checking for CAT... " >&6; }
4865         if test ! -x "$tool_specified"; then
4866           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4867 $as_echo "not found" >&6; }
4868           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4869         fi
4870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4871 $as_echo "$tool_specified" >&6; }
4872       fi
4873     fi
4874   fi
4875 
4876 
4877 
4878   if test "x$CAT" = x; then
4879     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4880   fi
4881 
4882 
4883 
4884 
4885 
4886   # Publish this variable in the help.
4887 
4888 
4889   if test "x$CHMOD" = x; then
4890     # The variable is not set by user, try to locate tool using the code snippet
4891     for ac_prog in chmod
4892 do
4893   # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_path_CHMOD+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   case $CHMOD in
4901   [\\/]* | ?:[\\/]*)
4902   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4903   ;;
4904   *)
4905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910     for ac_exec_ext in '' $ac_executable_extensions; do
4911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917   done
4918 IFS=$as_save_IFS
4919 
4920   ;;
4921 esac
4922 fi
4923 CHMOD=$ac_cv_path_CHMOD
4924 if test -n "$CHMOD"; then
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4926 $as_echo "$CHMOD" >&6; }
4927 else
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931 
4932 
4933   test -n "$CHMOD" && break
4934 done
4935 
4936   else
4937     # The variable is set, but is it from the command line or the environment?
4938 
4939     # Try to remove the string !CHMOD! from our list.
4940     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4941     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4942       # If it failed, the variable was not from the command line. Ignore it,
4943       # but warn the user (except for BASH, which is always set by the calling BASH).
4944       if test "xCHMOD" != xBASH; then
4945         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4946 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4947       fi
4948       # Try to locate tool using the code snippet
4949       for ac_prog in chmod
4950 do
4951   # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_path_CHMOD+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   case $CHMOD in
4959   [\\/]* | ?:[\\/]*)
4960   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4961   ;;
4962   *)
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975   done
4976 IFS=$as_save_IFS
4977 
4978   ;;
4979 esac
4980 fi
4981 CHMOD=$ac_cv_path_CHMOD
4982 if test -n "$CHMOD"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4984 $as_echo "$CHMOD" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989 
4990 
4991   test -n "$CHMOD" && break
4992 done
4993 
4994     else
4995       # If it succeeded, then it was overridden by the user. We will use it
4996       # for the tool.
4997 
4998       # First remove it from the list of overridden variables, so we can test
4999       # for unknown variables in the end.
5000       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5001 
5002       # Check if the provided tool contains a complete path.
5003       tool_specified="$CHMOD"
5004       tool_basename="${tool_specified##*/}"
5005       if test "x$tool_basename" = "x$tool_specified"; then
5006         # A command without a complete path is provided, search $PATH.
5007         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5008 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5009         # Extract the first word of "$tool_basename", so it can be a program name with args.
5010 set dummy $tool_basename; ac_word=$2
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012 $as_echo_n "checking for $ac_word... " >&6; }
5013 if ${ac_cv_path_CHMOD+:} false; then :
5014   $as_echo_n "(cached) " >&6
5015 else
5016   case $CHMOD in
5017   [\\/]* | ?:[\\/]*)
5018   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5019   ;;
5020   *)
5021   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5023 do
5024   IFS=$as_save_IFS
5025   test -z "$as_dir" && as_dir=.
5026     for ac_exec_ext in '' $ac_executable_extensions; do
5027   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5028     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030     break 2
5031   fi
5032 done
5033   done
5034 IFS=$as_save_IFS
5035 
5036   ;;
5037 esac
5038 fi
5039 CHMOD=$ac_cv_path_CHMOD
5040 if test -n "$CHMOD"; then
5041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5042 $as_echo "$CHMOD" >&6; }
5043 else
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 $as_echo "no" >&6; }
5046 fi
5047 
5048 
5049         if test "x$CHMOD" = x; then
5050           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5051         fi
5052       else
5053         # Otherwise we believe it is a complete path. Use it as it is.
5054         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5055 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5056         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5057 $as_echo_n "checking for CHMOD... " >&6; }
5058         if test ! -x "$tool_specified"; then
5059           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5060 $as_echo "not found" >&6; }
5061           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5062         fi
5063         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5064 $as_echo "$tool_specified" >&6; }
5065       fi
5066     fi
5067   fi
5068 
5069 
5070 
5071   if test "x$CHMOD" = x; then
5072     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5073   fi
5074 
5075 
5076 
5077 
5078 
5079   # Publish this variable in the help.
5080 
5081 
5082   if test "x$CMP" = x; then
5083     # The variable is not set by user, try to locate tool using the code snippet
5084     for ac_prog in cmp
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_path_CMP+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   case $CMP in
5094   [\\/]* | ?:[\\/]*)
5095   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5096   ;;
5097   *)
5098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110   done
5111 IFS=$as_save_IFS
5112 
5113   ;;
5114 esac
5115 fi
5116 CMP=$ac_cv_path_CMP
5117 if test -n "$CMP"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5119 $as_echo "$CMP" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124 
5125 
5126   test -n "$CMP" && break
5127 done
5128 
5129   else
5130     # The variable is set, but is it from the command line or the environment?
5131 
5132     # Try to remove the string !CMP! from our list.
5133     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5134     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5135       # If it failed, the variable was not from the command line. Ignore it,
5136       # but warn the user (except for BASH, which is always set by the calling BASH).
5137       if test "xCMP" != xBASH; then
5138         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5139 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5140       fi
5141       # Try to locate tool using the code snippet
5142       for ac_prog in cmp
5143 do
5144   # Extract the first word of "$ac_prog", so it can be a program name with args.
5145 set dummy $ac_prog; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_CMP+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   case $CMP in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170 
5171   ;;
5172 esac
5173 fi
5174 CMP=$ac_cv_path_CMP
5175 if test -n "$CMP"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5177 $as_echo "$CMP" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182 
5183 
5184   test -n "$CMP" && break
5185 done
5186 
5187     else
5188       # If it succeeded, then it was overridden by the user. We will use it
5189       # for the tool.
5190 
5191       # First remove it from the list of overridden variables, so we can test
5192       # for unknown variables in the end.
5193       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5194 
5195       # Check if the provided tool contains a complete path.
5196       tool_specified="$CMP"
5197       tool_basename="${tool_specified##*/}"
5198       if test "x$tool_basename" = "x$tool_specified"; then
5199         # A command without a complete path is provided, search $PATH.
5200         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5201 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5202         # Extract the first word of "$tool_basename", so it can be a program name with args.
5203 set dummy $tool_basename; ac_word=$2
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5205 $as_echo_n "checking for $ac_word... " >&6; }
5206 if ${ac_cv_path_CMP+:} false; then :
5207   $as_echo_n "(cached) " >&6
5208 else
5209   case $CMP in
5210   [\\/]* | ?:[\\/]*)
5211   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5212   ;;
5213   *)
5214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5216 do
5217   IFS=$as_save_IFS
5218   test -z "$as_dir" && as_dir=.
5219     for ac_exec_ext in '' $ac_executable_extensions; do
5220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223     break 2
5224   fi
5225 done
5226   done
5227 IFS=$as_save_IFS
5228 
5229   ;;
5230 esac
5231 fi
5232 CMP=$ac_cv_path_CMP
5233 if test -n "$CMP"; then
5234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5235 $as_echo "$CMP" >&6; }
5236 else
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5239 fi
5240 
5241 
5242         if test "x$CMP" = x; then
5243           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5244         fi
5245       else
5246         # Otherwise we believe it is a complete path. Use it as it is.
5247         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5248 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5250 $as_echo_n "checking for CMP... " >&6; }
5251         if test ! -x "$tool_specified"; then
5252           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5253 $as_echo "not found" >&6; }
5254           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5255         fi
5256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5257 $as_echo "$tool_specified" >&6; }
5258       fi
5259     fi
5260   fi
5261 
5262 
5263 
5264   if test "x$CMP" = x; then
5265     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5266   fi
5267 
5268 
5269 
5270 
5271 
5272   # Publish this variable in the help.
5273 
5274 
5275   if test "x$COMM" = x; then
5276     # The variable is not set by user, try to locate tool using the code snippet
5277     for ac_prog in comm
5278 do
5279   # Extract the first word of "$ac_prog", so it can be a program name with args.
5280 set dummy $ac_prog; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_path_COMM+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   case $COMM in
5287   [\\/]* | ?:[\\/]*)
5288   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5289   ;;
5290   *)
5291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303   done
5304 IFS=$as_save_IFS
5305 
5306   ;;
5307 esac
5308 fi
5309 COMM=$ac_cv_path_COMM
5310 if test -n "$COMM"; then
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5312 $as_echo "$COMM" >&6; }
5313 else
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317 
5318 
5319   test -n "$COMM" && break
5320 done
5321 
5322   else
5323     # The variable is set, but is it from the command line or the environment?
5324 
5325     # Try to remove the string !COMM! from our list.
5326     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5327     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5328       # If it failed, the variable was not from the command line. Ignore it,
5329       # but warn the user (except for BASH, which is always set by the calling BASH).
5330       if test "xCOMM" != xBASH; then
5331         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5332 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5333       fi
5334       # Try to locate tool using the code snippet
5335       for ac_prog in comm
5336 do
5337   # Extract the first word of "$ac_prog", so it can be a program name with args.
5338 set dummy $ac_prog; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_path_COMM+:} false; then :
5342   $as_echo_n "(cached) " >&6
5343 else
5344   case $COMM in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5363 
5364   ;;
5365 esac
5366 fi
5367 COMM=$ac_cv_path_COMM
5368 if test -n "$COMM"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5370 $as_echo "$COMM" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375 
5376 
5377   test -n "$COMM" && break
5378 done
5379 
5380     else
5381       # If it succeeded, then it was overridden by the user. We will use it
5382       # for the tool.
5383 
5384       # First remove it from the list of overridden variables, so we can test
5385       # for unknown variables in the end.
5386       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5387 
5388       # Check if the provided tool contains a complete path.
5389       tool_specified="$COMM"
5390       tool_basename="${tool_specified##*/}"
5391       if test "x$tool_basename" = "x$tool_specified"; then
5392         # A command without a complete path is provided, search $PATH.
5393         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5394 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5395         # Extract the first word of "$tool_basename", so it can be a program name with args.
5396 set dummy $tool_basename; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_path_COMM+:} false; then :
5400   $as_echo_n "(cached) " >&6
5401 else
5402   case $COMM in
5403   [\\/]* | ?:[\\/]*)
5404   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5405   ;;
5406   *)
5407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5409 do
5410   IFS=$as_save_IFS
5411   test -z "$as_dir" && as_dir=.
5412     for ac_exec_ext in '' $ac_executable_extensions; do
5413   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416     break 2
5417   fi
5418 done
5419   done
5420 IFS=$as_save_IFS
5421 
5422   ;;
5423 esac
5424 fi
5425 COMM=$ac_cv_path_COMM
5426 if test -n "$COMM"; then
5427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5428 $as_echo "$COMM" >&6; }
5429 else
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5432 fi
5433 
5434 
5435         if test "x$COMM" = x; then
5436           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5437         fi
5438       else
5439         # Otherwise we believe it is a complete path. Use it as it is.
5440         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5441 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5442         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5443 $as_echo_n "checking for COMM... " >&6; }
5444         if test ! -x "$tool_specified"; then
5445           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5446 $as_echo "not found" >&6; }
5447           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5448         fi
5449         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5450 $as_echo "$tool_specified" >&6; }
5451       fi
5452     fi
5453   fi
5454 
5455 
5456 
5457   if test "x$COMM" = x; then
5458     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5459   fi
5460 
5461 
5462 
5463 
5464 
5465   # Publish this variable in the help.
5466 
5467 
5468   if test "x$CP" = x; then
5469     # The variable is not set by user, try to locate tool using the code snippet
5470     for ac_prog in cp
5471 do
5472   # Extract the first word of "$ac_prog", so it can be a program name with args.
5473 set dummy $ac_prog; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_CP+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   case $CP in
5480   [\\/]* | ?:[\\/]*)
5481   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5482   ;;
5483   *)
5484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489     for ac_exec_ext in '' $ac_executable_extensions; do
5490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496   done
5497 IFS=$as_save_IFS
5498 
5499   ;;
5500 esac
5501 fi
5502 CP=$ac_cv_path_CP
5503 if test -n "$CP"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5505 $as_echo "$CP" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510 
5511 
5512   test -n "$CP" && break
5513 done
5514 
5515   else
5516     # The variable is set, but is it from the command line or the environment?
5517 
5518     # Try to remove the string !CP! from our list.
5519     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5520     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5521       # If it failed, the variable was not from the command line. Ignore it,
5522       # but warn the user (except for BASH, which is always set by the calling BASH).
5523       if test "xCP" != xBASH; then
5524         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5525 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5526       fi
5527       # Try to locate tool using the code snippet
5528       for ac_prog in cp
5529 do
5530   # Extract the first word of "$ac_prog", so it can be a program name with args.
5531 set dummy $ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_path_CP+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $CP in
5538   [\\/]* | ?:[\\/]*)
5539   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5540   ;;
5541   *)
5542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556 
5557   ;;
5558 esac
5559 fi
5560 CP=$ac_cv_path_CP
5561 if test -n "$CP"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5563 $as_echo "$CP" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568 
5569 
5570   test -n "$CP" && break
5571 done
5572 
5573     else
5574       # If it succeeded, then it was overridden by the user. We will use it
5575       # for the tool.
5576 
5577       # First remove it from the list of overridden variables, so we can test
5578       # for unknown variables in the end.
5579       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5580 
5581       # Check if the provided tool contains a complete path.
5582       tool_specified="$CP"
5583       tool_basename="${tool_specified##*/}"
5584       if test "x$tool_basename" = "x$tool_specified"; then
5585         # A command without a complete path is provided, search $PATH.
5586         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5587 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5588         # Extract the first word of "$tool_basename", so it can be a program name with args.
5589 set dummy $tool_basename; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_path_CP+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   case $CP in
5596   [\\/]* | ?:[\\/]*)
5597   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5598   ;;
5599   *)
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_exec_ext in '' $ac_executable_extensions; do
5606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612   done
5613 IFS=$as_save_IFS
5614 
5615   ;;
5616 esac
5617 fi
5618 CP=$ac_cv_path_CP
5619 if test -n "$CP"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5621 $as_echo "$CP" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626 
5627 
5628         if test "x$CP" = x; then
5629           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5630         fi
5631       else
5632         # Otherwise we believe it is a complete path. Use it as it is.
5633         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5634 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5636 $as_echo_n "checking for CP... " >&6; }
5637         if test ! -x "$tool_specified"; then
5638           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5639 $as_echo "not found" >&6; }
5640           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5641         fi
5642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5643 $as_echo "$tool_specified" >&6; }
5644       fi
5645     fi
5646   fi
5647 
5648 
5649 
5650   if test "x$CP" = x; then
5651     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5652   fi
5653 
5654 
5655 
5656 
5657 
5658   # Publish this variable in the help.
5659 
5660 
5661   if test "x$CPIO" = x; then
5662     # The variable is not set by user, try to locate tool using the code snippet
5663     for ac_prog in cpio
5664 do
5665   # Extract the first word of "$ac_prog", so it can be a program name with args.
5666 set dummy $ac_prog; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_path_CPIO+:} false; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   case $CPIO in
5673   [\\/]* | ?:[\\/]*)
5674   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5675   ;;
5676   *)
5677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691 
5692   ;;
5693 esac
5694 fi
5695 CPIO=$ac_cv_path_CPIO
5696 if test -n "$CPIO"; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5698 $as_echo "$CPIO" >&6; }
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 fi
5703 
5704 
5705   test -n "$CPIO" && break
5706 done
5707 
5708   else
5709     # The variable is set, but is it from the command line or the environment?
5710 
5711     # Try to remove the string !CPIO! from our list.
5712     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5713     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5714       # If it failed, the variable was not from the command line. Ignore it,
5715       # but warn the user (except for BASH, which is always set by the calling BASH).
5716       if test "xCPIO" != xBASH; then
5717         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5718 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5719       fi
5720       # Try to locate tool using the code snippet
5721       for ac_prog in cpio
5722 do
5723   # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_CPIO+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   case $CPIO in
5731   [\\/]* | ?:[\\/]*)
5732   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5733   ;;
5734   *)
5735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749 
5750   ;;
5751 esac
5752 fi
5753 CPIO=$ac_cv_path_CPIO
5754 if test -n "$CPIO"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5756 $as_echo "$CPIO" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761 
5762 
5763   test -n "$CPIO" && break
5764 done
5765 
5766     else
5767       # If it succeeded, then it was overridden by the user. We will use it
5768       # for the tool.
5769 
5770       # First remove it from the list of overridden variables, so we can test
5771       # for unknown variables in the end.
5772       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5773 
5774       # Check if the provided tool contains a complete path.
5775       tool_specified="$CPIO"
5776       tool_basename="${tool_specified##*/}"
5777       if test "x$tool_basename" = "x$tool_specified"; then
5778         # A command without a complete path is provided, search $PATH.
5779         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5780 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5781         # Extract the first word of "$tool_basename", so it can be a program name with args.
5782 set dummy $tool_basename; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_path_CPIO+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   case $CPIO in
5789   [\\/]* | ?:[\\/]*)
5790   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5791   ;;
5792   *)
5793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807 
5808   ;;
5809 esac
5810 fi
5811 CPIO=$ac_cv_path_CPIO
5812 if test -n "$CPIO"; then
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5814 $as_echo "$CPIO" >&6; }
5815 else
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819 
5820 
5821         if test "x$CPIO" = x; then
5822           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5823         fi
5824       else
5825         # Otherwise we believe it is a complete path. Use it as it is.
5826         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5827 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5828         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5829 $as_echo_n "checking for CPIO... " >&6; }
5830         if test ! -x "$tool_specified"; then
5831           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5832 $as_echo "not found" >&6; }
5833           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5834         fi
5835         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5836 $as_echo "$tool_specified" >&6; }
5837       fi
5838     fi
5839   fi
5840 
5841 
5842 
5843   if test "x$CPIO" = x; then
5844     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5845   fi
5846 
5847 
5848 
5849 
5850 
5851   # Publish this variable in the help.
5852 
5853 
5854   if test "x$CUT" = x; then
5855     # The variable is not set by user, try to locate tool using the code snippet
5856     for ac_prog in cut
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_path_CUT+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   case $CUT in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884 
5885   ;;
5886 esac
5887 fi
5888 CUT=$ac_cv_path_CUT
5889 if test -n "$CUT"; then
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5891 $as_echo "$CUT" >&6; }
5892 else
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896 
5897 
5898   test -n "$CUT" && break
5899 done
5900 
5901   else
5902     # The variable is set, but is it from the command line or the environment?
5903 
5904     # Try to remove the string !CUT! from our list.
5905     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5906     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5907       # If it failed, the variable was not from the command line. Ignore it,
5908       # but warn the user (except for BASH, which is always set by the calling BASH).
5909       if test "xCUT" != xBASH; then
5910         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5911 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5912       fi
5913       # Try to locate tool using the code snippet
5914       for ac_prog in cut
5915 do
5916   # Extract the first word of "$ac_prog", so it can be a program name with args.
5917 set dummy $ac_prog; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_path_CUT+:} false; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   case $CUT in
5924   [\\/]* | ?:[\\/]*)
5925   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5926   ;;
5927   *)
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942 
5943   ;;
5944 esac
5945 fi
5946 CUT=$ac_cv_path_CUT
5947 if test -n "$CUT"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5949 $as_echo "$CUT" >&6; }
5950 else
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954 
5955 
5956   test -n "$CUT" && break
5957 done
5958 
5959     else
5960       # If it succeeded, then it was overridden by the user. We will use it
5961       # for the tool.
5962 
5963       # First remove it from the list of overridden variables, so we can test
5964       # for unknown variables in the end.
5965       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5966 
5967       # Check if the provided tool contains a complete path.
5968       tool_specified="$CUT"
5969       tool_basename="${tool_specified##*/}"
5970       if test "x$tool_basename" = "x$tool_specified"; then
5971         # A command without a complete path is provided, search $PATH.
5972         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5973 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5974         # Extract the first word of "$tool_basename", so it can be a program name with args.
5975 set dummy $tool_basename; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_path_CUT+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   case $CUT in
5982   [\\/]* | ?:[\\/]*)
5983   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5984   ;;
5985   *)
5986   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 for as_dir in $PATH
5988 do
5989   IFS=$as_save_IFS
5990   test -z "$as_dir" && as_dir=.
5991     for ac_exec_ext in '' $ac_executable_extensions; do
5992   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5993     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5994     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995     break 2
5996   fi
5997 done
5998   done
5999 IFS=$as_save_IFS
6000 
6001   ;;
6002 esac
6003 fi
6004 CUT=$ac_cv_path_CUT
6005 if test -n "$CUT"; then
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
6007 $as_echo "$CUT" >&6; }
6008 else
6009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012 
6013 
6014         if test "x$CUT" = x; then
6015           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6016         fi
6017       else
6018         # Otherwise we believe it is a complete path. Use it as it is.
6019         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
6020 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6022 $as_echo_n "checking for CUT... " >&6; }
6023         if test ! -x "$tool_specified"; then
6024           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6025 $as_echo "not found" >&6; }
6026           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6027         fi
6028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6029 $as_echo "$tool_specified" >&6; }
6030       fi
6031     fi
6032   fi
6033 
6034 
6035 
6036   if test "x$CUT" = x; then
6037     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6038   fi
6039 
6040 
6041 
6042 
6043 
6044   # Publish this variable in the help.
6045 
6046 
6047   if test "x$DATE" = x; then
6048     # The variable is not set by user, try to locate tool using the code snippet
6049     for ac_prog in date
6050 do
6051   # Extract the first word of "$ac_prog", so it can be a program name with args.
6052 set dummy $ac_prog; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_path_DATE+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   case $DATE in
6059   [\\/]* | ?:[\\/]*)
6060   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6061   ;;
6062   *)
6063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068     for ac_exec_ext in '' $ac_executable_extensions; do
6069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075   done
6076 IFS=$as_save_IFS
6077 
6078   ;;
6079 esac
6080 fi
6081 DATE=$ac_cv_path_DATE
6082 if test -n "$DATE"; then
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6084 $as_echo "$DATE" >&6; }
6085 else
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089 
6090 
6091   test -n "$DATE" && break
6092 done
6093 
6094   else
6095     # The variable is set, but is it from the command line or the environment?
6096 
6097     # Try to remove the string !DATE! from our list.
6098     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6099     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6100       # If it failed, the variable was not from the command line. Ignore it,
6101       # but warn the user (except for BASH, which is always set by the calling BASH).
6102       if test "xDATE" != xBASH; then
6103         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6104 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6105       fi
6106       # Try to locate tool using the code snippet
6107       for ac_prog in date
6108 do
6109   # Extract the first word of "$ac_prog", so it can be a program name with args.
6110 set dummy $ac_prog; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_path_DATE+:} false; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   case $DATE in
6117   [\\/]* | ?:[\\/]*)
6118   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6119   ;;
6120   *)
6121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126     for ac_exec_ext in '' $ac_executable_extensions; do
6127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133   done
6134 IFS=$as_save_IFS
6135 
6136   ;;
6137 esac
6138 fi
6139 DATE=$ac_cv_path_DATE
6140 if test -n "$DATE"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6142 $as_echo "$DATE" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147 
6148 
6149   test -n "$DATE" && break
6150 done
6151 
6152     else
6153       # If it succeeded, then it was overridden by the user. We will use it
6154       # for the tool.
6155 
6156       # First remove it from the list of overridden variables, so we can test
6157       # for unknown variables in the end.
6158       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6159 
6160       # Check if the provided tool contains a complete path.
6161       tool_specified="$DATE"
6162       tool_basename="${tool_specified##*/}"
6163       if test "x$tool_basename" = "x$tool_specified"; then
6164         # A command without a complete path is provided, search $PATH.
6165         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6166 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6167         # Extract the first word of "$tool_basename", so it can be a program name with args.
6168 set dummy $tool_basename; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_path_DATE+:} false; then :
6172   $as_echo_n "(cached) " >&6
6173 else
6174   case $DATE in
6175   [\\/]* | ?:[\\/]*)
6176   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6177   ;;
6178   *)
6179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182   IFS=$as_save_IFS
6183   test -z "$as_dir" && as_dir=.
6184     for ac_exec_ext in '' $ac_executable_extensions; do
6185   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188     break 2
6189   fi
6190 done
6191   done
6192 IFS=$as_save_IFS
6193 
6194   ;;
6195 esac
6196 fi
6197 DATE=$ac_cv_path_DATE
6198 if test -n "$DATE"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6200 $as_echo "$DATE" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205 
6206 
6207         if test "x$DATE" = x; then
6208           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6209         fi
6210       else
6211         # Otherwise we believe it is a complete path. Use it as it is.
6212         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6213 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6215 $as_echo_n "checking for DATE... " >&6; }
6216         if test ! -x "$tool_specified"; then
6217           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6218 $as_echo "not found" >&6; }
6219           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6220         fi
6221         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6222 $as_echo "$tool_specified" >&6; }
6223       fi
6224     fi
6225   fi
6226 
6227 
6228 
6229   if test "x$DATE" = x; then
6230     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6231   fi
6232 
6233 
6234 
6235 
6236 
6237   # Publish this variable in the help.
6238 
6239 
6240   if test "x$DIFF" = x; then
6241     # The variable is not set by user, try to locate tool using the code snippet
6242     for ac_prog in gdiff diff
6243 do
6244   # Extract the first word of "$ac_prog", so it can be a program name with args.
6245 set dummy $ac_prog; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_path_DIFF+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   case $DIFF in
6252   [\\/]* | ?:[\\/]*)
6253   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6254   ;;
6255   *)
6256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270 
6271   ;;
6272 esac
6273 fi
6274 DIFF=$ac_cv_path_DIFF
6275 if test -n "$DIFF"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6277 $as_echo "$DIFF" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282 
6283 
6284   test -n "$DIFF" && break
6285 done
6286 
6287   else
6288     # The variable is set, but is it from the command line or the environment?
6289 
6290     # Try to remove the string !DIFF! from our list.
6291     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6292     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6293       # If it failed, the variable was not from the command line. Ignore it,
6294       # but warn the user (except for BASH, which is always set by the calling BASH).
6295       if test "xDIFF" != xBASH; then
6296         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6297 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6298       fi
6299       # Try to locate tool using the code snippet
6300       for ac_prog in gdiff diff
6301 do
6302   # Extract the first word of "$ac_prog", so it can be a program name with args.
6303 set dummy $ac_prog; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_path_DIFF+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   case $DIFF in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328 
6329   ;;
6330 esac
6331 fi
6332 DIFF=$ac_cv_path_DIFF
6333 if test -n "$DIFF"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6335 $as_echo "$DIFF" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340 
6341 
6342   test -n "$DIFF" && break
6343 done
6344 
6345     else
6346       # If it succeeded, then it was overridden by the user. We will use it
6347       # for the tool.
6348 
6349       # First remove it from the list of overridden variables, so we can test
6350       # for unknown variables in the end.
6351       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6352 
6353       # Check if the provided tool contains a complete path.
6354       tool_specified="$DIFF"
6355       tool_basename="${tool_specified##*/}"
6356       if test "x$tool_basename" = "x$tool_specified"; then
6357         # A command without a complete path is provided, search $PATH.
6358         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6359 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6360         # Extract the first word of "$tool_basename", so it can be a program name with args.
6361 set dummy $tool_basename; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_path_DIFF+:} false; then :
6365   $as_echo_n "(cached) " >&6
6366 else
6367   case $DIFF in
6368   [\\/]* | ?:[\\/]*)
6369   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6370   ;;
6371   *)
6372   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373 for as_dir in $PATH
6374 do
6375   IFS=$as_save_IFS
6376   test -z "$as_dir" && as_dir=.
6377     for ac_exec_ext in '' $ac_executable_extensions; do
6378   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6379     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6380     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6381     break 2
6382   fi
6383 done
6384   done
6385 IFS=$as_save_IFS
6386 
6387   ;;
6388 esac
6389 fi
6390 DIFF=$ac_cv_path_DIFF
6391 if test -n "$DIFF"; then
6392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6393 $as_echo "$DIFF" >&6; }
6394 else
6395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6396 $as_echo "no" >&6; }
6397 fi
6398 
6399 
6400         if test "x$DIFF" = x; then
6401           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6402         fi
6403       else
6404         # Otherwise we believe it is a complete path. Use it as it is.
6405         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6406 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6407         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6408 $as_echo_n "checking for DIFF... " >&6; }
6409         if test ! -x "$tool_specified"; then
6410           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6411 $as_echo "not found" >&6; }
6412           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6413         fi
6414         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6415 $as_echo "$tool_specified" >&6; }
6416       fi
6417     fi
6418   fi
6419 
6420 
6421 
6422   if test "x$DIFF" = x; then
6423     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6424   fi
6425 
6426 
6427 
6428 
6429 
6430   # Publish this variable in the help.
6431 
6432 
6433   if test "x$DIRNAME" = x; then
6434     # The variable is not set by user, try to locate tool using the code snippet
6435     for ac_prog in dirname
6436 do
6437   # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy $ac_prog; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_path_DIRNAME+:} false; then :
6442   $as_echo_n "(cached) " >&6
6443 else
6444   case $DIRNAME in
6445   [\\/]* | ?:[\\/]*)
6446   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6447   ;;
6448   *)
6449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463 
6464   ;;
6465 esac
6466 fi
6467 DIRNAME=$ac_cv_path_DIRNAME
6468 if test -n "$DIRNAME"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6470 $as_echo "$DIRNAME" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475 
6476 
6477   test -n "$DIRNAME" && break
6478 done
6479 
6480   else
6481     # The variable is set, but is it from the command line or the environment?
6482 
6483     # Try to remove the string !DIRNAME! from our list.
6484     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6485     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6486       # If it failed, the variable was not from the command line. Ignore it,
6487       # but warn the user (except for BASH, which is always set by the calling BASH).
6488       if test "xDIRNAME" != xBASH; then
6489         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6490 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6491       fi
6492       # Try to locate tool using the code snippet
6493       for ac_prog in dirname
6494 do
6495   # Extract the first word of "$ac_prog", so it can be a program name with args.
6496 set dummy $ac_prog; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_path_DIRNAME+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   case $DIRNAME in
6503   [\\/]* | ?:[\\/]*)
6504   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6505   ;;
6506   *)
6507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521 
6522   ;;
6523 esac
6524 fi
6525 DIRNAME=$ac_cv_path_DIRNAME
6526 if test -n "$DIRNAME"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6528 $as_echo "$DIRNAME" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533 
6534 
6535   test -n "$DIRNAME" && break
6536 done
6537 
6538     else
6539       # If it succeeded, then it was overridden by the user. We will use it
6540       # for the tool.
6541 
6542       # First remove it from the list of overridden variables, so we can test
6543       # for unknown variables in the end.
6544       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6545 
6546       # Check if the provided tool contains a complete path.
6547       tool_specified="$DIRNAME"
6548       tool_basename="${tool_specified##*/}"
6549       if test "x$tool_basename" = "x$tool_specified"; then
6550         # A command without a complete path is provided, search $PATH.
6551         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6552 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6553         # Extract the first word of "$tool_basename", so it can be a program name with args.
6554 set dummy $tool_basename; ac_word=$2
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6556 $as_echo_n "checking for $ac_word... " >&6; }
6557 if ${ac_cv_path_DIRNAME+:} false; then :
6558   $as_echo_n "(cached) " >&6
6559 else
6560   case $DIRNAME in
6561   [\\/]* | ?:[\\/]*)
6562   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6563   ;;
6564   *)
6565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579 
6580   ;;
6581 esac
6582 fi
6583 DIRNAME=$ac_cv_path_DIRNAME
6584 if test -n "$DIRNAME"; then
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6586 $as_echo "$DIRNAME" >&6; }
6587 else
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6589 $as_echo "no" >&6; }
6590 fi
6591 
6592 
6593         if test "x$DIRNAME" = x; then
6594           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6595         fi
6596       else
6597         # Otherwise we believe it is a complete path. Use it as it is.
6598         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6599 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6601 $as_echo_n "checking for DIRNAME... " >&6; }
6602         if test ! -x "$tool_specified"; then
6603           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6604 $as_echo "not found" >&6; }
6605           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6606         fi
6607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6608 $as_echo "$tool_specified" >&6; }
6609       fi
6610     fi
6611   fi
6612 
6613 
6614 
6615   if test "x$DIRNAME" = x; then
6616     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6617   fi
6618 
6619 
6620 
6621 
6622 
6623   # Publish this variable in the help.
6624 
6625 
6626   if test "x$ECHO" = x; then
6627     # The variable is not set by user, try to locate tool using the code snippet
6628     for ac_prog in echo
6629 do
6630   # Extract the first word of "$ac_prog", so it can be a program name with args.
6631 set dummy $ac_prog; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_path_ECHO+:} false; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   case $ECHO in
6638   [\\/]* | ?:[\\/]*)
6639   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6640   ;;
6641   *)
6642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656 
6657   ;;
6658 esac
6659 fi
6660 ECHO=$ac_cv_path_ECHO
6661 if test -n "$ECHO"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6663 $as_echo "$ECHO" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668 
6669 
6670   test -n "$ECHO" && break
6671 done
6672 
6673   else
6674     # The variable is set, but is it from the command line or the environment?
6675 
6676     # Try to remove the string !ECHO! from our list.
6677     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6678     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6679       # If it failed, the variable was not from the command line. Ignore it,
6680       # but warn the user (except for BASH, which is always set by the calling BASH).
6681       if test "xECHO" != xBASH; then
6682         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6683 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6684       fi
6685       # Try to locate tool using the code snippet
6686       for ac_prog in echo
6687 do
6688   # Extract the first word of "$ac_prog", so it can be a program name with args.
6689 set dummy $ac_prog; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_path_ECHO+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   case $ECHO in
6696   [\\/]* | ?:[\\/]*)
6697   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6698   ;;
6699   *)
6700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705     for ac_exec_ext in '' $ac_executable_extensions; do
6706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712   done
6713 IFS=$as_save_IFS
6714 
6715   ;;
6716 esac
6717 fi
6718 ECHO=$ac_cv_path_ECHO
6719 if test -n "$ECHO"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6721 $as_echo "$ECHO" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726 
6727 
6728   test -n "$ECHO" && break
6729 done
6730 
6731     else
6732       # If it succeeded, then it was overridden by the user. We will use it
6733       # for the tool.
6734 
6735       # First remove it from the list of overridden variables, so we can test
6736       # for unknown variables in the end.
6737       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6738 
6739       # Check if the provided tool contains a complete path.
6740       tool_specified="$ECHO"
6741       tool_basename="${tool_specified##*/}"
6742       if test "x$tool_basename" = "x$tool_specified"; then
6743         # A command without a complete path is provided, search $PATH.
6744         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6745 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6746         # Extract the first word of "$tool_basename", so it can be a program name with args.
6747 set dummy $tool_basename; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_path_ECHO+:} false; then :
6751   $as_echo_n "(cached) " >&6
6752 else
6753   case $ECHO in
6754   [\\/]* | ?:[\\/]*)
6755   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6756   ;;
6757   *)
6758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 for as_dir in $PATH
6760 do
6761   IFS=$as_save_IFS
6762   test -z "$as_dir" && as_dir=.
6763     for ac_exec_ext in '' $ac_executable_extensions; do
6764   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6765     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6766     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767     break 2
6768   fi
6769 done
6770   done
6771 IFS=$as_save_IFS
6772 
6773   ;;
6774 esac
6775 fi
6776 ECHO=$ac_cv_path_ECHO
6777 if test -n "$ECHO"; then
6778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6779 $as_echo "$ECHO" >&6; }
6780 else
6781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6782 $as_echo "no" >&6; }
6783 fi
6784 
6785 
6786         if test "x$ECHO" = x; then
6787           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6788         fi
6789       else
6790         # Otherwise we believe it is a complete path. Use it as it is.
6791         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6792 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6793         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6794 $as_echo_n "checking for ECHO... " >&6; }
6795         if test ! -x "$tool_specified"; then
6796           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6797 $as_echo "not found" >&6; }
6798           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6799         fi
6800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6801 $as_echo "$tool_specified" >&6; }
6802       fi
6803     fi
6804   fi
6805 
6806 
6807 
6808   if test "x$ECHO" = x; then
6809     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6810   fi
6811 
6812 
6813 
6814 
6815 
6816   # Publish this variable in the help.
6817 
6818 
6819   if test "x$EXPR" = x; then
6820     # The variable is not set by user, try to locate tool using the code snippet
6821     for ac_prog in expr
6822 do
6823   # Extract the first word of "$ac_prog", so it can be a program name with args.
6824 set dummy $ac_prog; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_path_EXPR+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   case $EXPR in
6831   [\\/]* | ?:[\\/]*)
6832   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6833   ;;
6834   *)
6835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849 
6850   ;;
6851 esac
6852 fi
6853 EXPR=$ac_cv_path_EXPR
6854 if test -n "$EXPR"; then
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6856 $as_echo "$EXPR" >&6; }
6857 else
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861 
6862 
6863   test -n "$EXPR" && break
6864 done
6865 
6866   else
6867     # The variable is set, but is it from the command line or the environment?
6868 
6869     # Try to remove the string !EXPR! from our list.
6870     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6871     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6872       # If it failed, the variable was not from the command line. Ignore it,
6873       # but warn the user (except for BASH, which is always set by the calling BASH).
6874       if test "xEXPR" != xBASH; then
6875         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6876 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6877       fi
6878       # Try to locate tool using the code snippet
6879       for ac_prog in expr
6880 do
6881   # Extract the first word of "$ac_prog", so it can be a program name with args.
6882 set dummy $ac_prog; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_path_EXPR+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   case $EXPR in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6891   ;;
6892   *)
6893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907 
6908   ;;
6909 esac
6910 fi
6911 EXPR=$ac_cv_path_EXPR
6912 if test -n "$EXPR"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6914 $as_echo "$EXPR" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919 
6920 
6921   test -n "$EXPR" && break
6922 done
6923 
6924     else
6925       # If it succeeded, then it was overridden by the user. We will use it
6926       # for the tool.
6927 
6928       # First remove it from the list of overridden variables, so we can test
6929       # for unknown variables in the end.
6930       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6931 
6932       # Check if the provided tool contains a complete path.
6933       tool_specified="$EXPR"
6934       tool_basename="${tool_specified##*/}"
6935       if test "x$tool_basename" = "x$tool_specified"; then
6936         # A command without a complete path is provided, search $PATH.
6937         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6938 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6939         # Extract the first word of "$tool_basename", so it can be a program name with args.
6940 set dummy $tool_basename; ac_word=$2
6941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6942 $as_echo_n "checking for $ac_word... " >&6; }
6943 if ${ac_cv_path_EXPR+:} false; then :
6944   $as_echo_n "(cached) " >&6
6945 else
6946   case $EXPR in
6947   [\\/]* | ?:[\\/]*)
6948   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6949   ;;
6950   *)
6951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956     for ac_exec_ext in '' $ac_executable_extensions; do
6957   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6958     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963   done
6964 IFS=$as_save_IFS
6965 
6966   ;;
6967 esac
6968 fi
6969 EXPR=$ac_cv_path_EXPR
6970 if test -n "$EXPR"; then
6971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6972 $as_echo "$EXPR" >&6; }
6973 else
6974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6975 $as_echo "no" >&6; }
6976 fi
6977 
6978 
6979         if test "x$EXPR" = x; then
6980           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6981         fi
6982       else
6983         # Otherwise we believe it is a complete path. Use it as it is.
6984         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6985 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6987 $as_echo_n "checking for EXPR... " >&6; }
6988         if test ! -x "$tool_specified"; then
6989           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6990 $as_echo "not found" >&6; }
6991           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6992         fi
6993         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6994 $as_echo "$tool_specified" >&6; }
6995       fi
6996     fi
6997   fi
6998 
6999 
7000 
7001   if test "x$EXPR" = x; then
7002     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
7003   fi
7004 
7005 
7006 
7007 
7008 
7009   # Publish this variable in the help.
7010 
7011 
7012   if test "x$FILE" = x; then
7013     # The variable is not set by user, try to locate tool using the code snippet
7014     for ac_prog in file
7015 do
7016   # Extract the first word of "$ac_prog", so it can be a program name with args.
7017 set dummy $ac_prog; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_path_FILE+:} false; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023   case $FILE in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042 
7043   ;;
7044 esac
7045 fi
7046 FILE=$ac_cv_path_FILE
7047 if test -n "$FILE"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7049 $as_echo "$FILE" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054 
7055 
7056   test -n "$FILE" && break
7057 done
7058 
7059   else
7060     # The variable is set, but is it from the command line or the environment?
7061 
7062     # Try to remove the string !FILE! from our list.
7063     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7064     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7065       # If it failed, the variable was not from the command line. Ignore it,
7066       # but warn the user (except for BASH, which is always set by the calling BASH).
7067       if test "xFILE" != xBASH; then
7068         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7069 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7070       fi
7071       # Try to locate tool using the code snippet
7072       for ac_prog in file
7073 do
7074   # Extract the first word of "$ac_prog", so it can be a program name with args.
7075 set dummy $ac_prog; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_path_FILE+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   case $FILE in
7082   [\\/]* | ?:[\\/]*)
7083   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7084   ;;
7085   *)
7086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7100 
7101   ;;
7102 esac
7103 fi
7104 FILE=$ac_cv_path_FILE
7105 if test -n "$FILE"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7107 $as_echo "$FILE" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112 
7113 
7114   test -n "$FILE" && break
7115 done
7116 
7117     else
7118       # If it succeeded, then it was overridden by the user. We will use it
7119       # for the tool.
7120 
7121       # First remove it from the list of overridden variables, so we can test
7122       # for unknown variables in the end.
7123       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7124 
7125       # Check if the provided tool contains a complete path.
7126       tool_specified="$FILE"
7127       tool_basename="${tool_specified##*/}"
7128       if test "x$tool_basename" = "x$tool_specified"; then
7129         # A command without a complete path is provided, search $PATH.
7130         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7131 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7132         # Extract the first word of "$tool_basename", so it can be a program name with args.
7133 set dummy $tool_basename; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7135 $as_echo_n "checking for $ac_word... " >&6; }
7136 if ${ac_cv_path_FILE+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   case $FILE in
7140   [\\/]* | ?:[\\/]*)
7141   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7142   ;;
7143   *)
7144   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7146 do
7147   IFS=$as_save_IFS
7148   test -z "$as_dir" && as_dir=.
7149     for ac_exec_ext in '' $ac_executable_extensions; do
7150   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7152     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153     break 2
7154   fi
7155 done
7156   done
7157 IFS=$as_save_IFS
7158 
7159   ;;
7160 esac
7161 fi
7162 FILE=$ac_cv_path_FILE
7163 if test -n "$FILE"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7165 $as_echo "$FILE" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170 
7171 
7172         if test "x$FILE" = x; then
7173           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7174         fi
7175       else
7176         # Otherwise we believe it is a complete path. Use it as it is.
7177         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7178 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7179         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7180 $as_echo_n "checking for FILE... " >&6; }
7181         if test ! -x "$tool_specified"; then
7182           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7183 $as_echo "not found" >&6; }
7184           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7185         fi
7186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7187 $as_echo "$tool_specified" >&6; }
7188       fi
7189     fi
7190   fi
7191 
7192 
7193 
7194   if test "x$FILE" = x; then
7195     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7196   fi
7197 
7198 
7199 
7200 
7201 
7202   # Publish this variable in the help.
7203 
7204 
7205   if test "x$FIND" = x; then
7206     # The variable is not set by user, try to locate tool using the code snippet
7207     for ac_prog in find
7208 do
7209   # Extract the first word of "$ac_prog", so it can be a program name with args.
7210 set dummy $ac_prog; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_path_FIND+:} false; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   case $FIND in
7217   [\\/]* | ?:[\\/]*)
7218   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7219   ;;
7220   *)
7221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226     for ac_exec_ext in '' $ac_executable_extensions; do
7227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233   done
7234 IFS=$as_save_IFS
7235 
7236   ;;
7237 esac
7238 fi
7239 FIND=$ac_cv_path_FIND
7240 if test -n "$FIND"; then
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7242 $as_echo "$FIND" >&6; }
7243 else
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247 
7248 
7249   test -n "$FIND" && break
7250 done
7251 
7252   else
7253     # The variable is set, but is it from the command line or the environment?
7254 
7255     # Try to remove the string !FIND! from our list.
7256     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7257     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7258       # If it failed, the variable was not from the command line. Ignore it,
7259       # but warn the user (except for BASH, which is always set by the calling BASH).
7260       if test "xFIND" != xBASH; then
7261         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7262 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7263       fi
7264       # Try to locate tool using the code snippet
7265       for ac_prog in find
7266 do
7267   # Extract the first word of "$ac_prog", so it can be a program name with args.
7268 set dummy $ac_prog; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_path_FIND+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   case $FIND in
7275   [\\/]* | ?:[\\/]*)
7276   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7277   ;;
7278   *)
7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284     for ac_exec_ext in '' $ac_executable_extensions; do
7285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291   done
7292 IFS=$as_save_IFS
7293 
7294   ;;
7295 esac
7296 fi
7297 FIND=$ac_cv_path_FIND
7298 if test -n "$FIND"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7300 $as_echo "$FIND" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305 
7306 
7307   test -n "$FIND" && break
7308 done
7309 
7310     else
7311       # If it succeeded, then it was overridden by the user. We will use it
7312       # for the tool.
7313 
7314       # First remove it from the list of overridden variables, so we can test
7315       # for unknown variables in the end.
7316       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7317 
7318       # Check if the provided tool contains a complete path.
7319       tool_specified="$FIND"
7320       tool_basename="${tool_specified##*/}"
7321       if test "x$tool_basename" = "x$tool_specified"; then
7322         # A command without a complete path is provided, search $PATH.
7323         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7324 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7325         # Extract the first word of "$tool_basename", so it can be a program name with args.
7326 set dummy $tool_basename; ac_word=$2
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328 $as_echo_n "checking for $ac_word... " >&6; }
7329 if ${ac_cv_path_FIND+:} false; then :
7330   $as_echo_n "(cached) " >&6
7331 else
7332   case $FIND in
7333   [\\/]* | ?:[\\/]*)
7334   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7335   ;;
7336   *)
7337   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340   IFS=$as_save_IFS
7341   test -z "$as_dir" && as_dir=.
7342     for ac_exec_ext in '' $ac_executable_extensions; do
7343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7344     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7346     break 2
7347   fi
7348 done
7349   done
7350 IFS=$as_save_IFS
7351 
7352   ;;
7353 esac
7354 fi
7355 FIND=$ac_cv_path_FIND
7356 if test -n "$FIND"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7358 $as_echo "$FIND" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363 
7364 
7365         if test "x$FIND" = x; then
7366           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7367         fi
7368       else
7369         # Otherwise we believe it is a complete path. Use it as it is.
7370         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7371 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7373 $as_echo_n "checking for FIND... " >&6; }
7374         if test ! -x "$tool_specified"; then
7375           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7376 $as_echo "not found" >&6; }
7377           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7378         fi
7379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7380 $as_echo "$tool_specified" >&6; }
7381       fi
7382     fi
7383   fi
7384 
7385 
7386 
7387   if test "x$FIND" = x; then
7388     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7389   fi
7390 
7391 
7392 
7393 
7394 
7395   # Publish this variable in the help.
7396 
7397 
7398   if test "x$HEAD" = x; then
7399     # The variable is not set by user, try to locate tool using the code snippet
7400     for ac_prog in head
7401 do
7402   # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_path_HEAD+:} false; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   case $HEAD in
7410   [\\/]* | ?:[\\/]*)
7411   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7412   ;;
7413   *)
7414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419     for ac_exec_ext in '' $ac_executable_extensions; do
7420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426   done
7427 IFS=$as_save_IFS
7428 
7429   ;;
7430 esac
7431 fi
7432 HEAD=$ac_cv_path_HEAD
7433 if test -n "$HEAD"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7435 $as_echo "$HEAD" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440 
7441 
7442   test -n "$HEAD" && break
7443 done
7444 
7445   else
7446     # The variable is set, but is it from the command line or the environment?
7447 
7448     # Try to remove the string !HEAD! from our list.
7449     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7450     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7451       # If it failed, the variable was not from the command line. Ignore it,
7452       # but warn the user (except for BASH, which is always set by the calling BASH).
7453       if test "xHEAD" != xBASH; then
7454         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7455 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7456       fi
7457       # Try to locate tool using the code snippet
7458       for ac_prog in head
7459 do
7460   # Extract the first word of "$ac_prog", so it can be a program name with args.
7461 set dummy $ac_prog; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_path_HEAD+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   case $HEAD in
7468   [\\/]* | ?:[\\/]*)
7469   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7470   ;;
7471   *)
7472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486 
7487   ;;
7488 esac
7489 fi
7490 HEAD=$ac_cv_path_HEAD
7491 if test -n "$HEAD"; then
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7493 $as_echo "$HEAD" >&6; }
7494 else
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498 
7499 
7500   test -n "$HEAD" && break
7501 done
7502 
7503     else
7504       # If it succeeded, then it was overridden by the user. We will use it
7505       # for the tool.
7506 
7507       # First remove it from the list of overridden variables, so we can test
7508       # for unknown variables in the end.
7509       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7510 
7511       # Check if the provided tool contains a complete path.
7512       tool_specified="$HEAD"
7513       tool_basename="${tool_specified##*/}"
7514       if test "x$tool_basename" = "x$tool_specified"; then
7515         # A command without a complete path is provided, search $PATH.
7516         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7517 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7518         # Extract the first word of "$tool_basename", so it can be a program name with args.
7519 set dummy $tool_basename; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_path_HEAD+:} false; then :
7523   $as_echo_n "(cached) " >&6
7524 else
7525   case $HEAD in
7526   [\\/]* | ?:[\\/]*)
7527   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7528   ;;
7529   *)
7530   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531 for as_dir in $PATH
7532 do
7533   IFS=$as_save_IFS
7534   test -z "$as_dir" && as_dir=.
7535     for ac_exec_ext in '' $ac_executable_extensions; do
7536   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7537     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7538     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539     break 2
7540   fi
7541 done
7542   done
7543 IFS=$as_save_IFS
7544 
7545   ;;
7546 esac
7547 fi
7548 HEAD=$ac_cv_path_HEAD
7549 if test -n "$HEAD"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7551 $as_echo "$HEAD" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556 
7557 
7558         if test "x$HEAD" = x; then
7559           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7560         fi
7561       else
7562         # Otherwise we believe it is a complete path. Use it as it is.
7563         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7564 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7565         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7566 $as_echo_n "checking for HEAD... " >&6; }
7567         if test ! -x "$tool_specified"; then
7568           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7569 $as_echo "not found" >&6; }
7570           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7571         fi
7572         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7573 $as_echo "$tool_specified" >&6; }
7574       fi
7575     fi
7576   fi
7577 
7578 
7579 
7580   if test "x$HEAD" = x; then
7581     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7582   fi
7583 
7584 
7585 
7586 
7587 
7588   # Publish this variable in the help.
7589 
7590 
7591   if test "x$LN" = x; then
7592     # The variable is not set by user, try to locate tool using the code snippet
7593     for ac_prog in ln
7594 do
7595   # Extract the first word of "$ac_prog", so it can be a program name with args.
7596 set dummy $ac_prog; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_path_LN+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   case $LN in
7603   [\\/]* | ?:[\\/]*)
7604   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7605   ;;
7606   *)
7607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621 
7622   ;;
7623 esac
7624 fi
7625 LN=$ac_cv_path_LN
7626 if test -n "$LN"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7628 $as_echo "$LN" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633 
7634 
7635   test -n "$LN" && break
7636 done
7637 
7638   else
7639     # The variable is set, but is it from the command line or the environment?
7640 
7641     # Try to remove the string !LN! from our list.
7642     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7643     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7644       # If it failed, the variable was not from the command line. Ignore it,
7645       # but warn the user (except for BASH, which is always set by the calling BASH).
7646       if test "xLN" != xBASH; then
7647         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7648 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7649       fi
7650       # Try to locate tool using the code snippet
7651       for ac_prog in ln
7652 do
7653   # Extract the first word of "$ac_prog", so it can be a program name with args.
7654 set dummy $ac_prog; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_path_LN+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $LN in
7661   [\\/]* | ?:[\\/]*)
7662   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7663   ;;
7664   *)
7665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679 
7680   ;;
7681 esac
7682 fi
7683 LN=$ac_cv_path_LN
7684 if test -n "$LN"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7686 $as_echo "$LN" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691 
7692 
7693   test -n "$LN" && break
7694 done
7695 
7696     else
7697       # If it succeeded, then it was overridden by the user. We will use it
7698       # for the tool.
7699 
7700       # First remove it from the list of overridden variables, so we can test
7701       # for unknown variables in the end.
7702       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7703 
7704       # Check if the provided tool contains a complete path.
7705       tool_specified="$LN"
7706       tool_basename="${tool_specified##*/}"
7707       if test "x$tool_basename" = "x$tool_specified"; then
7708         # A command without a complete path is provided, search $PATH.
7709         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7710 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7711         # Extract the first word of "$tool_basename", so it can be a program name with args.
7712 set dummy $tool_basename; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_path_LN+:} false; then :
7716   $as_echo_n "(cached) " >&6
7717 else
7718   case $LN in
7719   [\\/]* | ?:[\\/]*)
7720   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7721   ;;
7722   *)
7723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7725 do
7726   IFS=$as_save_IFS
7727   test -z "$as_dir" && as_dir=.
7728     for ac_exec_ext in '' $ac_executable_extensions; do
7729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732     break 2
7733   fi
7734 done
7735   done
7736 IFS=$as_save_IFS
7737 
7738   ;;
7739 esac
7740 fi
7741 LN=$ac_cv_path_LN
7742 if test -n "$LN"; then
7743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7744 $as_echo "$LN" >&6; }
7745 else
7746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7748 fi
7749 
7750 
7751         if test "x$LN" = x; then
7752           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7753         fi
7754       else
7755         # Otherwise we believe it is a complete path. Use it as it is.
7756         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7757 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7758         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7759 $as_echo_n "checking for LN... " >&6; }
7760         if test ! -x "$tool_specified"; then
7761           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7762 $as_echo "not found" >&6; }
7763           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7764         fi
7765         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7766 $as_echo "$tool_specified" >&6; }
7767       fi
7768     fi
7769   fi
7770 
7771 
7772 
7773   if test "x$LN" = x; then
7774     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7775   fi
7776 
7777 
7778 
7779 
7780 
7781   # Publish this variable in the help.
7782 
7783 
7784   if test "x$LS" = x; then
7785     # The variable is not set by user, try to locate tool using the code snippet
7786     for ac_prog in ls
7787 do
7788   # Extract the first word of "$ac_prog", so it can be a program name with args.
7789 set dummy $ac_prog; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_path_LS+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   case $LS in
7796   [\\/]* | ?:[\\/]*)
7797   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7798   ;;
7799   *)
7800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805     for ac_exec_ext in '' $ac_executable_extensions; do
7806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812   done
7813 IFS=$as_save_IFS
7814 
7815   ;;
7816 esac
7817 fi
7818 LS=$ac_cv_path_LS
7819 if test -n "$LS"; then
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7821 $as_echo "$LS" >&6; }
7822 else
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 fi
7826 
7827 
7828   test -n "$LS" && break
7829 done
7830 
7831   else
7832     # The variable is set, but is it from the command line or the environment?
7833 
7834     # Try to remove the string !LS! from our list.
7835     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7836     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7837       # If it failed, the variable was not from the command line. Ignore it,
7838       # but warn the user (except for BASH, which is always set by the calling BASH).
7839       if test "xLS" != xBASH; then
7840         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7841 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7842       fi
7843       # Try to locate tool using the code snippet
7844       for ac_prog in ls
7845 do
7846   # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_path_LS+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   case $LS in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863     for ac_exec_ext in '' $ac_executable_extensions; do
7864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870   done
7871 IFS=$as_save_IFS
7872 
7873   ;;
7874 esac
7875 fi
7876 LS=$ac_cv_path_LS
7877 if test -n "$LS"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7879 $as_echo "$LS" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884 
7885 
7886   test -n "$LS" && break
7887 done
7888 
7889     else
7890       # If it succeeded, then it was overridden by the user. We will use it
7891       # for the tool.
7892 
7893       # First remove it from the list of overridden variables, so we can test
7894       # for unknown variables in the end.
7895       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7896 
7897       # Check if the provided tool contains a complete path.
7898       tool_specified="$LS"
7899       tool_basename="${tool_specified##*/}"
7900       if test "x$tool_basename" = "x$tool_specified"; then
7901         # A command without a complete path is provided, search $PATH.
7902         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7903 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7904         # Extract the first word of "$tool_basename", so it can be a program name with args.
7905 set dummy $tool_basename; ac_word=$2
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if ${ac_cv_path_LS+:} false; then :
7909   $as_echo_n "(cached) " >&6
7910 else
7911   case $LS in
7912   [\\/]* | ?:[\\/]*)
7913   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7914   ;;
7915   *)
7916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7917 for as_dir in $PATH
7918 do
7919   IFS=$as_save_IFS
7920   test -z "$as_dir" && as_dir=.
7921     for ac_exec_ext in '' $ac_executable_extensions; do
7922   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7925     break 2
7926   fi
7927 done
7928   done
7929 IFS=$as_save_IFS
7930 
7931   ;;
7932 esac
7933 fi
7934 LS=$ac_cv_path_LS
7935 if test -n "$LS"; then
7936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7937 $as_echo "$LS" >&6; }
7938 else
7939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7940 $as_echo "no" >&6; }
7941 fi
7942 
7943 
7944         if test "x$LS" = x; then
7945           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7946         fi
7947       else
7948         # Otherwise we believe it is a complete path. Use it as it is.
7949         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7950 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7951         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7952 $as_echo_n "checking for LS... " >&6; }
7953         if test ! -x "$tool_specified"; then
7954           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7955 $as_echo "not found" >&6; }
7956           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7957         fi
7958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7959 $as_echo "$tool_specified" >&6; }
7960       fi
7961     fi
7962   fi
7963 
7964 
7965 
7966   if test "x$LS" = x; then
7967     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7968   fi
7969 
7970 
7971 
7972 
7973 
7974   # Publish this variable in the help.
7975 
7976 
7977   if test "x$MKDIR" = x; then
7978     # The variable is not set by user, try to locate tool using the code snippet
7979     for ac_prog in mkdir
7980 do
7981   # Extract the first word of "$ac_prog", so it can be a program name with args.
7982 set dummy $ac_prog; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_path_MKDIR+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   case $MKDIR in
7989   [\\/]* | ?:[\\/]*)
7990   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7991   ;;
7992   *)
7993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998     for ac_exec_ext in '' $ac_executable_extensions; do
7999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005   done
8006 IFS=$as_save_IFS
8007 
8008   ;;
8009 esac
8010 fi
8011 MKDIR=$ac_cv_path_MKDIR
8012 if test -n "$MKDIR"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8014 $as_echo "$MKDIR" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019 
8020 
8021   test -n "$MKDIR" && break
8022 done
8023 
8024   else
8025     # The variable is set, but is it from the command line or the environment?
8026 
8027     # Try to remove the string !MKDIR! from our list.
8028     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8029     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8030       # If it failed, the variable was not from the command line. Ignore it,
8031       # but warn the user (except for BASH, which is always set by the calling BASH).
8032       if test "xMKDIR" != xBASH; then
8033         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8034 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8035       fi
8036       # Try to locate tool using the code snippet
8037       for ac_prog in mkdir
8038 do
8039   # Extract the first word of "$ac_prog", so it can be a program name with args.
8040 set dummy $ac_prog; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_path_MKDIR+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   case $MKDIR in
8047   [\\/]* | ?:[\\/]*)
8048   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8049   ;;
8050   *)
8051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056     for ac_exec_ext in '' $ac_executable_extensions; do
8057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063   done
8064 IFS=$as_save_IFS
8065 
8066   ;;
8067 esac
8068 fi
8069 MKDIR=$ac_cv_path_MKDIR
8070 if test -n "$MKDIR"; then
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8072 $as_echo "$MKDIR" >&6; }
8073 else
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077 
8078 
8079   test -n "$MKDIR" && break
8080 done
8081 
8082     else
8083       # If it succeeded, then it was overridden by the user. We will use it
8084       # for the tool.
8085 
8086       # First remove it from the list of overridden variables, so we can test
8087       # for unknown variables in the end.
8088       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8089 
8090       # Check if the provided tool contains a complete path.
8091       tool_specified="$MKDIR"
8092       tool_basename="${tool_specified##*/}"
8093       if test "x$tool_basename" = "x$tool_specified"; then
8094         # A command without a complete path is provided, search $PATH.
8095         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8096 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8097         # Extract the first word of "$tool_basename", so it can be a program name with args.
8098 set dummy $tool_basename; ac_word=$2
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8100 $as_echo_n "checking for $ac_word... " >&6; }
8101 if ${ac_cv_path_MKDIR+:} false; then :
8102   $as_echo_n "(cached) " >&6
8103 else
8104   case $MKDIR in
8105   [\\/]* | ?:[\\/]*)
8106   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8107   ;;
8108   *)
8109   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112   IFS=$as_save_IFS
8113   test -z "$as_dir" && as_dir=.
8114     for ac_exec_ext in '' $ac_executable_extensions; do
8115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118     break 2
8119   fi
8120 done
8121   done
8122 IFS=$as_save_IFS
8123 
8124   ;;
8125 esac
8126 fi
8127 MKDIR=$ac_cv_path_MKDIR
8128 if test -n "$MKDIR"; then
8129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8130 $as_echo "$MKDIR" >&6; }
8131 else
8132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8134 fi
8135 
8136 
8137         if test "x$MKDIR" = x; then
8138           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8139         fi
8140       else
8141         # Otherwise we believe it is a complete path. Use it as it is.
8142         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8143 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8145 $as_echo_n "checking for MKDIR... " >&6; }
8146         if test ! -x "$tool_specified"; then
8147           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8148 $as_echo "not found" >&6; }
8149           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8150         fi
8151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8152 $as_echo "$tool_specified" >&6; }
8153       fi
8154     fi
8155   fi
8156 
8157 
8158 
8159   if test "x$MKDIR" = x; then
8160     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8161   fi
8162 
8163 
8164 
8165 
8166 
8167   # Publish this variable in the help.
8168 
8169 
8170   if test "x$MKTEMP" = x; then
8171     # The variable is not set by user, try to locate tool using the code snippet
8172     for ac_prog in mktemp
8173 do
8174   # Extract the first word of "$ac_prog", so it can be a program name with args.
8175 set dummy $ac_prog; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_path_MKTEMP+:} false; then :
8179   $as_echo_n "(cached) " >&6
8180 else
8181   case $MKTEMP in
8182   [\\/]* | ?:[\\/]*)
8183   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8184   ;;
8185   *)
8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191     for ac_exec_ext in '' $ac_executable_extensions; do
8192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198   done
8199 IFS=$as_save_IFS
8200 
8201   ;;
8202 esac
8203 fi
8204 MKTEMP=$ac_cv_path_MKTEMP
8205 if test -n "$MKTEMP"; then
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8207 $as_echo "$MKTEMP" >&6; }
8208 else
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212 
8213 
8214   test -n "$MKTEMP" && break
8215 done
8216 
8217   else
8218     # The variable is set, but is it from the command line or the environment?
8219 
8220     # Try to remove the string !MKTEMP! from our list.
8221     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8222     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8223       # If it failed, the variable was not from the command line. Ignore it,
8224       # but warn the user (except for BASH, which is always set by the calling BASH).
8225       if test "xMKTEMP" != xBASH; then
8226         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8227 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8228       fi
8229       # Try to locate tool using the code snippet
8230       for ac_prog in mktemp
8231 do
8232   # Extract the first word of "$ac_prog", so it can be a program name with args.
8233 set dummy $ac_prog; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_path_MKTEMP+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   case $MKTEMP in
8240   [\\/]* | ?:[\\/]*)
8241   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8242   ;;
8243   *)
8244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   test -z "$as_dir" && as_dir=.
8249     for ac_exec_ext in '' $ac_executable_extensions; do
8250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253     break 2
8254   fi
8255 done
8256   done
8257 IFS=$as_save_IFS
8258 
8259   ;;
8260 esac
8261 fi
8262 MKTEMP=$ac_cv_path_MKTEMP
8263 if test -n "$MKTEMP"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8265 $as_echo "$MKTEMP" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270 
8271 
8272   test -n "$MKTEMP" && break
8273 done
8274 
8275     else
8276       # If it succeeded, then it was overridden by the user. We will use it
8277       # for the tool.
8278 
8279       # First remove it from the list of overridden variables, so we can test
8280       # for unknown variables in the end.
8281       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8282 
8283       # Check if the provided tool contains a complete path.
8284       tool_specified="$MKTEMP"
8285       tool_basename="${tool_specified##*/}"
8286       if test "x$tool_basename" = "x$tool_specified"; then
8287         # A command without a complete path is provided, search $PATH.
8288         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8289 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8290         # Extract the first word of "$tool_basename", so it can be a program name with args.
8291 set dummy $tool_basename; ac_word=$2
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293 $as_echo_n "checking for $ac_word... " >&6; }
8294 if ${ac_cv_path_MKTEMP+:} false; then :
8295   $as_echo_n "(cached) " >&6
8296 else
8297   case $MKTEMP in
8298   [\\/]* | ?:[\\/]*)
8299   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8300   ;;
8301   *)
8302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8303 for as_dir in $PATH
8304 do
8305   IFS=$as_save_IFS
8306   test -z "$as_dir" && as_dir=.
8307     for ac_exec_ext in '' $ac_executable_extensions; do
8308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8309     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8311     break 2
8312   fi
8313 done
8314   done
8315 IFS=$as_save_IFS
8316 
8317   ;;
8318 esac
8319 fi
8320 MKTEMP=$ac_cv_path_MKTEMP
8321 if test -n "$MKTEMP"; then
8322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8323 $as_echo "$MKTEMP" >&6; }
8324 else
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8326 $as_echo "no" >&6; }
8327 fi
8328 
8329 
8330         if test "x$MKTEMP" = x; then
8331           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8332         fi
8333       else
8334         # Otherwise we believe it is a complete path. Use it as it is.
8335         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8336 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8338 $as_echo_n "checking for MKTEMP... " >&6; }
8339         if test ! -x "$tool_specified"; then
8340           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8341 $as_echo "not found" >&6; }
8342           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8343         fi
8344         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8345 $as_echo "$tool_specified" >&6; }
8346       fi
8347     fi
8348   fi
8349 
8350 
8351 
8352   if test "x$MKTEMP" = x; then
8353     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8354   fi
8355 
8356 
8357 
8358 
8359 
8360   # Publish this variable in the help.
8361 
8362 
8363   if test "x$MV" = x; then
8364     # The variable is not set by user, try to locate tool using the code snippet
8365     for ac_prog in mv
8366 do
8367   # Extract the first word of "$ac_prog", so it can be a program name with args.
8368 set dummy $ac_prog; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_path_MV+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   case $MV in
8375   [\\/]* | ?:[\\/]*)
8376   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8377   ;;
8378   *)
8379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384     for ac_exec_ext in '' $ac_executable_extensions; do
8385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391   done
8392 IFS=$as_save_IFS
8393 
8394   ;;
8395 esac
8396 fi
8397 MV=$ac_cv_path_MV
8398 if test -n "$MV"; then
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8400 $as_echo "$MV" >&6; }
8401 else
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405 
8406 
8407   test -n "$MV" && break
8408 done
8409 
8410   else
8411     # The variable is set, but is it from the command line or the environment?
8412 
8413     # Try to remove the string !MV! from our list.
8414     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8415     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8416       # If it failed, the variable was not from the command line. Ignore it,
8417       # but warn the user (except for BASH, which is always set by the calling BASH).
8418       if test "xMV" != xBASH; then
8419         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8420 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8421       fi
8422       # Try to locate tool using the code snippet
8423       for ac_prog in mv
8424 do
8425   # Extract the first word of "$ac_prog", so it can be a program name with args.
8426 set dummy $ac_prog; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_path_MV+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MV in
8433   [\\/]* | ?:[\\/]*)
8434   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8435   ;;
8436   *)
8437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451 
8452   ;;
8453 esac
8454 fi
8455 MV=$ac_cv_path_MV
8456 if test -n "$MV"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8458 $as_echo "$MV" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463 
8464 
8465   test -n "$MV" && break
8466 done
8467 
8468     else
8469       # If it succeeded, then it was overridden by the user. We will use it
8470       # for the tool.
8471 
8472       # First remove it from the list of overridden variables, so we can test
8473       # for unknown variables in the end.
8474       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8475 
8476       # Check if the provided tool contains a complete path.
8477       tool_specified="$MV"
8478       tool_basename="${tool_specified##*/}"
8479       if test "x$tool_basename" = "x$tool_specified"; then
8480         # A command without a complete path is provided, search $PATH.
8481         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8482 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8483         # Extract the first word of "$tool_basename", so it can be a program name with args.
8484 set dummy $tool_basename; ac_word=$2
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486 $as_echo_n "checking for $ac_word... " >&6; }
8487 if ${ac_cv_path_MV+:} false; then :
8488   $as_echo_n "(cached) " >&6
8489 else
8490   case $MV in
8491   [\\/]* | ?:[\\/]*)
8492   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8493   ;;
8494   *)
8495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500     for ac_exec_ext in '' $ac_executable_extensions; do
8501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8502     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504     break 2
8505   fi
8506 done
8507   done
8508 IFS=$as_save_IFS
8509 
8510   ;;
8511 esac
8512 fi
8513 MV=$ac_cv_path_MV
8514 if test -n "$MV"; then
8515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8516 $as_echo "$MV" >&6; }
8517 else
8518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8519 $as_echo "no" >&6; }
8520 fi
8521 
8522 
8523         if test "x$MV" = x; then
8524           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8525         fi
8526       else
8527         # Otherwise we believe it is a complete path. Use it as it is.
8528         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8529 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8531 $as_echo_n "checking for MV... " >&6; }
8532         if test ! -x "$tool_specified"; then
8533           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8534 $as_echo "not found" >&6; }
8535           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8536         fi
8537         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8538 $as_echo "$tool_specified" >&6; }
8539       fi
8540     fi
8541   fi
8542 
8543 
8544 
8545   if test "x$MV" = x; then
8546     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8547   fi
8548 
8549 
8550 
8551 
8552 
8553   # Publish this variable in the help.
8554 
8555 
8556   if test "x$NAWK" = x; then
8557     # The variable is not set by user, try to locate tool using the code snippet
8558     for ac_prog in nawk gawk awk
8559 do
8560   # Extract the first word of "$ac_prog", so it can be a program name with args.
8561 set dummy $ac_prog; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_path_NAWK+:} false; then :
8565   $as_echo_n "(cached) " >&6
8566 else
8567   case $NAWK in
8568   [\\/]* | ?:[\\/]*)
8569   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8570   ;;
8571   *)
8572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575   IFS=$as_save_IFS
8576   test -z "$as_dir" && as_dir=.
8577     for ac_exec_ext in '' $ac_executable_extensions; do
8578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581     break 2
8582   fi
8583 done
8584   done
8585 IFS=$as_save_IFS
8586 
8587   ;;
8588 esac
8589 fi
8590 NAWK=$ac_cv_path_NAWK
8591 if test -n "$NAWK"; then
8592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8593 $as_echo "$NAWK" >&6; }
8594 else
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 fi
8598 
8599 
8600   test -n "$NAWK" && break
8601 done
8602 
8603   else
8604     # The variable is set, but is it from the command line or the environment?
8605 
8606     # Try to remove the string !NAWK! from our list.
8607     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8608     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8609       # If it failed, the variable was not from the command line. Ignore it,
8610       # but warn the user (except for BASH, which is always set by the calling BASH).
8611       if test "xNAWK" != xBASH; then
8612         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8613 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8614       fi
8615       # Try to locate tool using the code snippet
8616       for ac_prog in nawk gawk awk
8617 do
8618   # Extract the first word of "$ac_prog", so it can be a program name with args.
8619 set dummy $ac_prog; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_path_NAWK+:} false; then :
8623   $as_echo_n "(cached) " >&6
8624 else
8625   case $NAWK in
8626   [\\/]* | ?:[\\/]*)
8627   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8628   ;;
8629   *)
8630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644 
8645   ;;
8646 esac
8647 fi
8648 NAWK=$ac_cv_path_NAWK
8649 if test -n "$NAWK"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8651 $as_echo "$NAWK" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656 
8657 
8658   test -n "$NAWK" && break
8659 done
8660 
8661     else
8662       # If it succeeded, then it was overridden by the user. We will use it
8663       # for the tool.
8664 
8665       # First remove it from the list of overridden variables, so we can test
8666       # for unknown variables in the end.
8667       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8668 
8669       # Check if the provided tool contains a complete path.
8670       tool_specified="$NAWK"
8671       tool_basename="${tool_specified##*/}"
8672       if test "x$tool_basename" = "x$tool_specified"; then
8673         # A command without a complete path is provided, search $PATH.
8674         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8675 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8676         # Extract the first word of "$tool_basename", so it can be a program name with args.
8677 set dummy $tool_basename; ac_word=$2
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8679 $as_echo_n "checking for $ac_word... " >&6; }
8680 if ${ac_cv_path_NAWK+:} false; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   case $NAWK in
8684   [\\/]* | ?:[\\/]*)
8685   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8686   ;;
8687   *)
8688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8689 for as_dir in $PATH
8690 do
8691   IFS=$as_save_IFS
8692   test -z "$as_dir" && as_dir=.
8693     for ac_exec_ext in '' $ac_executable_extensions; do
8694   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8695     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8697     break 2
8698   fi
8699 done
8700   done
8701 IFS=$as_save_IFS
8702 
8703   ;;
8704 esac
8705 fi
8706 NAWK=$ac_cv_path_NAWK
8707 if test -n "$NAWK"; then
8708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8709 $as_echo "$NAWK" >&6; }
8710 else
8711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712 $as_echo "no" >&6; }
8713 fi
8714 
8715 
8716         if test "x$NAWK" = x; then
8717           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8718         fi
8719       else
8720         # Otherwise we believe it is a complete path. Use it as it is.
8721         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8722 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8723         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8724 $as_echo_n "checking for NAWK... " >&6; }
8725         if test ! -x "$tool_specified"; then
8726           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8727 $as_echo "not found" >&6; }
8728           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8729         fi
8730         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8731 $as_echo "$tool_specified" >&6; }
8732       fi
8733     fi
8734   fi
8735 
8736 
8737 
8738   if test "x$NAWK" = x; then
8739     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8740   fi
8741 
8742 
8743 
8744 
8745 
8746   # Publish this variable in the help.
8747 
8748 
8749   if test "x$PRINTF" = x; then
8750     # The variable is not set by user, try to locate tool using the code snippet
8751     for ac_prog in printf
8752 do
8753   # Extract the first word of "$ac_prog", so it can be a program name with args.
8754 set dummy $ac_prog; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if ${ac_cv_path_PRINTF+:} false; then :
8758   $as_echo_n "(cached) " >&6
8759 else
8760   case $PRINTF in
8761   [\\/]* | ?:[\\/]*)
8762   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8763   ;;
8764   *)
8765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   test -z "$as_dir" && as_dir=.
8770     for ac_exec_ext in '' $ac_executable_extensions; do
8771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8772     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774     break 2
8775   fi
8776 done
8777   done
8778 IFS=$as_save_IFS
8779 
8780   ;;
8781 esac
8782 fi
8783 PRINTF=$ac_cv_path_PRINTF
8784 if test -n "$PRINTF"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8786 $as_echo "$PRINTF" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791 
8792 
8793   test -n "$PRINTF" && break
8794 done
8795 
8796   else
8797     # The variable is set, but is it from the command line or the environment?
8798 
8799     # Try to remove the string !PRINTF! from our list.
8800     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8801     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8802       # If it failed, the variable was not from the command line. Ignore it,
8803       # but warn the user (except for BASH, which is always set by the calling BASH).
8804       if test "xPRINTF" != xBASH; then
8805         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8806 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8807       fi
8808       # Try to locate tool using the code snippet
8809       for ac_prog in printf
8810 do
8811   # Extract the first word of "$ac_prog", so it can be a program name with args.
8812 set dummy $ac_prog; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_PRINTF+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   case $PRINTF in
8819   [\\/]* | ?:[\\/]*)
8820   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8821   ;;
8822   *)
8823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826   IFS=$as_save_IFS
8827   test -z "$as_dir" && as_dir=.
8828     for ac_exec_ext in '' $ac_executable_extensions; do
8829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832     break 2
8833   fi
8834 done
8835   done
8836 IFS=$as_save_IFS
8837 
8838   ;;
8839 esac
8840 fi
8841 PRINTF=$ac_cv_path_PRINTF
8842 if test -n "$PRINTF"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8844 $as_echo "$PRINTF" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849 
8850 
8851   test -n "$PRINTF" && break
8852 done
8853 
8854     else
8855       # If it succeeded, then it was overridden by the user. We will use it
8856       # for the tool.
8857 
8858       # First remove it from the list of overridden variables, so we can test
8859       # for unknown variables in the end.
8860       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8861 
8862       # Check if the provided tool contains a complete path.
8863       tool_specified="$PRINTF"
8864       tool_basename="${tool_specified##*/}"
8865       if test "x$tool_basename" = "x$tool_specified"; then
8866         # A command without a complete path is provided, search $PATH.
8867         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8868 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8869         # Extract the first word of "$tool_basename", so it can be a program name with args.
8870 set dummy $tool_basename; ac_word=$2
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8872 $as_echo_n "checking for $ac_word... " >&6; }
8873 if ${ac_cv_path_PRINTF+:} false; then :
8874   $as_echo_n "(cached) " >&6
8875 else
8876   case $PRINTF in
8877   [\\/]* | ?:[\\/]*)
8878   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8879   ;;
8880   *)
8881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8883 do
8884   IFS=$as_save_IFS
8885   test -z "$as_dir" && as_dir=.
8886     for ac_exec_ext in '' $ac_executable_extensions; do
8887   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8889     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890     break 2
8891   fi
8892 done
8893   done
8894 IFS=$as_save_IFS
8895 
8896   ;;
8897 esac
8898 fi
8899 PRINTF=$ac_cv_path_PRINTF
8900 if test -n "$PRINTF"; then
8901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8902 $as_echo "$PRINTF" >&6; }
8903 else
8904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8905 $as_echo "no" >&6; }
8906 fi
8907 
8908 
8909         if test "x$PRINTF" = x; then
8910           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8911         fi
8912       else
8913         # Otherwise we believe it is a complete path. Use it as it is.
8914         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8915 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8916         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8917 $as_echo_n "checking for PRINTF... " >&6; }
8918         if test ! -x "$tool_specified"; then
8919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8920 $as_echo "not found" >&6; }
8921           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8922         fi
8923         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8924 $as_echo "$tool_specified" >&6; }
8925       fi
8926     fi
8927   fi
8928 
8929 
8930 
8931   if test "x$PRINTF" = x; then
8932     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8933   fi
8934 
8935 
8936 
8937 
8938 
8939   # Publish this variable in the help.
8940 
8941 
8942   if test "x$RM" = x; then
8943     # The variable is not set by user, try to locate tool using the code snippet
8944     for ac_prog in rm
8945 do
8946   # Extract the first word of "$ac_prog", so it can be a program name with args.
8947 set dummy $ac_prog; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if ${ac_cv_path_RM+:} false; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   case $RM in
8954   [\\/]* | ?:[\\/]*)
8955   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8956   ;;
8957   *)
8958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959 for as_dir in $PATH
8960 do
8961   IFS=$as_save_IFS
8962   test -z "$as_dir" && as_dir=.
8963     for ac_exec_ext in '' $ac_executable_extensions; do
8964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967     break 2
8968   fi
8969 done
8970   done
8971 IFS=$as_save_IFS
8972 
8973   ;;
8974 esac
8975 fi
8976 RM=$ac_cv_path_RM
8977 if test -n "$RM"; then
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8979 $as_echo "$RM" >&6; }
8980 else
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984 
8985 
8986   test -n "$RM" && break
8987 done
8988 
8989   else
8990     # The variable is set, but is it from the command line or the environment?
8991 
8992     # Try to remove the string !RM! from our list.
8993     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8994     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8995       # If it failed, the variable was not from the command line. Ignore it,
8996       # but warn the user (except for BASH, which is always set by the calling BASH).
8997       if test "xRM" != xBASH; then
8998         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8999 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
9000       fi
9001       # Try to locate tool using the code snippet
9002       for ac_prog in rm
9003 do
9004   # Extract the first word of "$ac_prog", so it can be a program name with args.
9005 set dummy $ac_prog; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_path_RM+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   case $RM in
9012   [\\/]* | ?:[\\/]*)
9013   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9014   ;;
9015   *)
9016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9018 do
9019   IFS=$as_save_IFS
9020   test -z "$as_dir" && as_dir=.
9021     for ac_exec_ext in '' $ac_executable_extensions; do
9022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025     break 2
9026   fi
9027 done
9028   done
9029 IFS=$as_save_IFS
9030 
9031   ;;
9032 esac
9033 fi
9034 RM=$ac_cv_path_RM
9035 if test -n "$RM"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9037 $as_echo "$RM" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042 
9043 
9044   test -n "$RM" && break
9045 done
9046 
9047     else
9048       # If it succeeded, then it was overridden by the user. We will use it
9049       # for the tool.
9050 
9051       # First remove it from the list of overridden variables, so we can test
9052       # for unknown variables in the end.
9053       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9054 
9055       # Check if the provided tool contains a complete path.
9056       tool_specified="$RM"
9057       tool_basename="${tool_specified##*/}"
9058       if test "x$tool_basename" = "x$tool_specified"; then
9059         # A command without a complete path is provided, search $PATH.
9060         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9061 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9062         # Extract the first word of "$tool_basename", so it can be a program name with args.
9063 set dummy $tool_basename; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if ${ac_cv_path_RM+:} false; then :
9067   $as_echo_n "(cached) " >&6
9068 else
9069   case $RM in
9070   [\\/]* | ?:[\\/]*)
9071   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9072   ;;
9073   *)
9074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9076 do
9077   IFS=$as_save_IFS
9078   test -z "$as_dir" && as_dir=.
9079     for ac_exec_ext in '' $ac_executable_extensions; do
9080   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9081     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083     break 2
9084   fi
9085 done
9086   done
9087 IFS=$as_save_IFS
9088 
9089   ;;
9090 esac
9091 fi
9092 RM=$ac_cv_path_RM
9093 if test -n "$RM"; then
9094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9095 $as_echo "$RM" >&6; }
9096 else
9097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9099 fi
9100 
9101 
9102         if test "x$RM" = x; then
9103           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9104         fi
9105       else
9106         # Otherwise we believe it is a complete path. Use it as it is.
9107         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9108 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9110 $as_echo_n "checking for RM... " >&6; }
9111         if test ! -x "$tool_specified"; then
9112           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9113 $as_echo "not found" >&6; }
9114           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9115         fi
9116         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9117 $as_echo "$tool_specified" >&6; }
9118       fi
9119     fi
9120   fi
9121 
9122 
9123 
9124   if test "x$RM" = x; then
9125     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9126   fi
9127 
9128 
9129 
9130 
9131 
9132   # Publish this variable in the help.
9133 
9134 
9135   if test "x$SH" = x; then
9136     # The variable is not set by user, try to locate tool using the code snippet
9137     for ac_prog in sh
9138 do
9139   # Extract the first word of "$ac_prog", so it can be a program name with args.
9140 set dummy $ac_prog; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if ${ac_cv_path_SH+:} false; then :
9144   $as_echo_n "(cached) " >&6
9145 else
9146   case $SH in
9147   [\\/]* | ?:[\\/]*)
9148   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9149   ;;
9150   *)
9151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154   IFS=$as_save_IFS
9155   test -z "$as_dir" && as_dir=.
9156     for ac_exec_ext in '' $ac_executable_extensions; do
9157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160     break 2
9161   fi
9162 done
9163   done
9164 IFS=$as_save_IFS
9165 
9166   ;;
9167 esac
9168 fi
9169 SH=$ac_cv_path_SH
9170 if test -n "$SH"; then
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9172 $as_echo "$SH" >&6; }
9173 else
9174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9176 fi
9177 
9178 
9179   test -n "$SH" && break
9180 done
9181 
9182   else
9183     # The variable is set, but is it from the command line or the environment?
9184 
9185     # Try to remove the string !SH! from our list.
9186     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9187     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9188       # If it failed, the variable was not from the command line. Ignore it,
9189       # but warn the user (except for BASH, which is always set by the calling BASH).
9190       if test "xSH" != xBASH; then
9191         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9192 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9193       fi
9194       # Try to locate tool using the code snippet
9195       for ac_prog in sh
9196 do
9197   # Extract the first word of "$ac_prog", so it can be a program name with args.
9198 set dummy $ac_prog; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if ${ac_cv_path_SH+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   case $SH in
9205   [\\/]* | ?:[\\/]*)
9206   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9207   ;;
9208   *)
9209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212   IFS=$as_save_IFS
9213   test -z "$as_dir" && as_dir=.
9214     for ac_exec_ext in '' $ac_executable_extensions; do
9215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218     break 2
9219   fi
9220 done
9221   done
9222 IFS=$as_save_IFS
9223 
9224   ;;
9225 esac
9226 fi
9227 SH=$ac_cv_path_SH
9228 if test -n "$SH"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9230 $as_echo "$SH" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235 
9236 
9237   test -n "$SH" && break
9238 done
9239 
9240     else
9241       # If it succeeded, then it was overridden by the user. We will use it
9242       # for the tool.
9243 
9244       # First remove it from the list of overridden variables, so we can test
9245       # for unknown variables in the end.
9246       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9247 
9248       # Check if the provided tool contains a complete path.
9249       tool_specified="$SH"
9250       tool_basename="${tool_specified##*/}"
9251       if test "x$tool_basename" = "x$tool_specified"; then
9252         # A command without a complete path is provided, search $PATH.
9253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9254 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9255         # Extract the first word of "$tool_basename", so it can be a program name with args.
9256 set dummy $tool_basename; ac_word=$2
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9258 $as_echo_n "checking for $ac_word... " >&6; }
9259 if ${ac_cv_path_SH+:} false; then :
9260   $as_echo_n "(cached) " >&6
9261 else
9262   case $SH in
9263   [\\/]* | ?:[\\/]*)
9264   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9265   ;;
9266   *)
9267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9268 for as_dir in $PATH
9269 do
9270   IFS=$as_save_IFS
9271   test -z "$as_dir" && as_dir=.
9272     for ac_exec_ext in '' $ac_executable_extensions; do
9273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9274     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9276     break 2
9277   fi
9278 done
9279   done
9280 IFS=$as_save_IFS
9281 
9282   ;;
9283 esac
9284 fi
9285 SH=$ac_cv_path_SH
9286 if test -n "$SH"; then
9287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9288 $as_echo "$SH" >&6; }
9289 else
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9291 $as_echo "no" >&6; }
9292 fi
9293 
9294 
9295         if test "x$SH" = x; then
9296           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9297         fi
9298       else
9299         # Otherwise we believe it is a complete path. Use it as it is.
9300         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9301 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9302         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9303 $as_echo_n "checking for SH... " >&6; }
9304         if test ! -x "$tool_specified"; then
9305           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9306 $as_echo "not found" >&6; }
9307           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9308         fi
9309         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9310 $as_echo "$tool_specified" >&6; }
9311       fi
9312     fi
9313   fi
9314 
9315 
9316 
9317   if test "x$SH" = x; then
9318     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9319   fi
9320 
9321 
9322 
9323 
9324 
9325   # Publish this variable in the help.
9326 
9327 
9328   if test "x$SORT" = x; then
9329     # The variable is not set by user, try to locate tool using the code snippet
9330     for ac_prog in sort
9331 do
9332   # Extract the first word of "$ac_prog", so it can be a program name with args.
9333 set dummy $ac_prog; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_path_SORT+:} false; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   case $SORT in
9340   [\\/]* | ?:[\\/]*)
9341   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9342   ;;
9343   *)
9344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9346 do
9347   IFS=$as_save_IFS
9348   test -z "$as_dir" && as_dir=.
9349     for ac_exec_ext in '' $ac_executable_extensions; do
9350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353     break 2
9354   fi
9355 done
9356   done
9357 IFS=$as_save_IFS
9358 
9359   ;;
9360 esac
9361 fi
9362 SORT=$ac_cv_path_SORT
9363 if test -n "$SORT"; then
9364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9365 $as_echo "$SORT" >&6; }
9366 else
9367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9369 fi
9370 
9371 
9372   test -n "$SORT" && break
9373 done
9374 
9375   else
9376     # The variable is set, but is it from the command line or the environment?
9377 
9378     # Try to remove the string !SORT! from our list.
9379     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9380     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9381       # If it failed, the variable was not from the command line. Ignore it,
9382       # but warn the user (except for BASH, which is always set by the calling BASH).
9383       if test "xSORT" != xBASH; then
9384         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9385 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9386       fi
9387       # Try to locate tool using the code snippet
9388       for ac_prog in sort
9389 do
9390   # Extract the first word of "$ac_prog", so it can be a program name with args.
9391 set dummy $ac_prog; ac_word=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if ${ac_cv_path_SORT+:} false; then :
9395   $as_echo_n "(cached) " >&6
9396 else
9397   case $SORT in
9398   [\\/]* | ?:[\\/]*)
9399   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9400   ;;
9401   *)
9402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9404 do
9405   IFS=$as_save_IFS
9406   test -z "$as_dir" && as_dir=.
9407     for ac_exec_ext in '' $ac_executable_extensions; do
9408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9409     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411     break 2
9412   fi
9413 done
9414   done
9415 IFS=$as_save_IFS
9416 
9417   ;;
9418 esac
9419 fi
9420 SORT=$ac_cv_path_SORT
9421 if test -n "$SORT"; then
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9423 $as_echo "$SORT" >&6; }
9424 else
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9427 fi
9428 
9429 
9430   test -n "$SORT" && break
9431 done
9432 
9433     else
9434       # If it succeeded, then it was overridden by the user. We will use it
9435       # for the tool.
9436 
9437       # First remove it from the list of overridden variables, so we can test
9438       # for unknown variables in the end.
9439       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9440 
9441       # Check if the provided tool contains a complete path.
9442       tool_specified="$SORT"
9443       tool_basename="${tool_specified##*/}"
9444       if test "x$tool_basename" = "x$tool_specified"; then
9445         # A command without a complete path is provided, search $PATH.
9446         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9447 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9448         # Extract the first word of "$tool_basename", so it can be a program name with args.
9449 set dummy $tool_basename; ac_word=$2
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451 $as_echo_n "checking for $ac_word... " >&6; }
9452 if ${ac_cv_path_SORT+:} false; then :
9453   $as_echo_n "(cached) " >&6
9454 else
9455   case $SORT in
9456   [\\/]* | ?:[\\/]*)
9457   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9458   ;;
9459   *)
9460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461 for as_dir in $PATH
9462 do
9463   IFS=$as_save_IFS
9464   test -z "$as_dir" && as_dir=.
9465     for ac_exec_ext in '' $ac_executable_extensions; do
9466   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9467     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9469     break 2
9470   fi
9471 done
9472   done
9473 IFS=$as_save_IFS
9474 
9475   ;;
9476 esac
9477 fi
9478 SORT=$ac_cv_path_SORT
9479 if test -n "$SORT"; then
9480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9481 $as_echo "$SORT" >&6; }
9482 else
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484 $as_echo "no" >&6; }
9485 fi
9486 
9487 
9488         if test "x$SORT" = x; then
9489           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9490         fi
9491       else
9492         # Otherwise we believe it is a complete path. Use it as it is.
9493         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9494 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9495         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9496 $as_echo_n "checking for SORT... " >&6; }
9497         if test ! -x "$tool_specified"; then
9498           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9499 $as_echo "not found" >&6; }
9500           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9501         fi
9502         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9503 $as_echo "$tool_specified" >&6; }
9504       fi
9505     fi
9506   fi
9507 
9508 
9509 
9510   if test "x$SORT" = x; then
9511     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9512   fi
9513 
9514 
9515 
9516 
9517 
9518   # Publish this variable in the help.
9519 
9520 
9521   if test "x$TAIL" = x; then
9522     # The variable is not set by user, try to locate tool using the code snippet
9523     for ac_prog in tail
9524 do
9525   # Extract the first word of "$ac_prog", so it can be a program name with args.
9526 set dummy $ac_prog; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_TAIL+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   case $TAIL in
9533   [\\/]* | ?:[\\/]*)
9534   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9535   ;;
9536   *)
9537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540   IFS=$as_save_IFS
9541   test -z "$as_dir" && as_dir=.
9542     for ac_exec_ext in '' $ac_executable_extensions; do
9543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546     break 2
9547   fi
9548 done
9549   done
9550 IFS=$as_save_IFS
9551 
9552   ;;
9553 esac
9554 fi
9555 TAIL=$ac_cv_path_TAIL
9556 if test -n "$TAIL"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9558 $as_echo "$TAIL" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563 
9564 
9565   test -n "$TAIL" && break
9566 done
9567 
9568   else
9569     # The variable is set, but is it from the command line or the environment?
9570 
9571     # Try to remove the string !TAIL! from our list.
9572     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9573     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9574       # If it failed, the variable was not from the command line. Ignore it,
9575       # but warn the user (except for BASH, which is always set by the calling BASH).
9576       if test "xTAIL" != xBASH; then
9577         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9578 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9579       fi
9580       # Try to locate tool using the code snippet
9581       for ac_prog in tail
9582 do
9583   # Extract the first word of "$ac_prog", so it can be a program name with args.
9584 set dummy $ac_prog; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_TAIL+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   case $TAIL in
9591   [\\/]* | ?:[\\/]*)
9592   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9593   ;;
9594   *)
9595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598   IFS=$as_save_IFS
9599   test -z "$as_dir" && as_dir=.
9600     for ac_exec_ext in '' $ac_executable_extensions; do
9601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604     break 2
9605   fi
9606 done
9607   done
9608 IFS=$as_save_IFS
9609 
9610   ;;
9611 esac
9612 fi
9613 TAIL=$ac_cv_path_TAIL
9614 if test -n "$TAIL"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9616 $as_echo "$TAIL" >&6; }
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621 
9622 
9623   test -n "$TAIL" && break
9624 done
9625 
9626     else
9627       # If it succeeded, then it was overridden by the user. We will use it
9628       # for the tool.
9629 
9630       # First remove it from the list of overridden variables, so we can test
9631       # for unknown variables in the end.
9632       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9633 
9634       # Check if the provided tool contains a complete path.
9635       tool_specified="$TAIL"
9636       tool_basename="${tool_specified##*/}"
9637       if test "x$tool_basename" = "x$tool_specified"; then
9638         # A command without a complete path is provided, search $PATH.
9639         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9640 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9641         # Extract the first word of "$tool_basename", so it can be a program name with args.
9642 set dummy $tool_basename; ac_word=$2
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644 $as_echo_n "checking for $ac_word... " >&6; }
9645 if ${ac_cv_path_TAIL+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   case $TAIL in
9649   [\\/]* | ?:[\\/]*)
9650   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9651   ;;
9652   *)
9653   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9654 for as_dir in $PATH
9655 do
9656   IFS=$as_save_IFS
9657   test -z "$as_dir" && as_dir=.
9658     for ac_exec_ext in '' $ac_executable_extensions; do
9659   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9660     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9662     break 2
9663   fi
9664 done
9665   done
9666 IFS=$as_save_IFS
9667 
9668   ;;
9669 esac
9670 fi
9671 TAIL=$ac_cv_path_TAIL
9672 if test -n "$TAIL"; then
9673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9674 $as_echo "$TAIL" >&6; }
9675 else
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677 $as_echo "no" >&6; }
9678 fi
9679 
9680 
9681         if test "x$TAIL" = x; then
9682           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9683         fi
9684       else
9685         # Otherwise we believe it is a complete path. Use it as it is.
9686         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9687 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9688         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9689 $as_echo_n "checking for TAIL... " >&6; }
9690         if test ! -x "$tool_specified"; then
9691           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9692 $as_echo "not found" >&6; }
9693           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9694         fi
9695         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9696 $as_echo "$tool_specified" >&6; }
9697       fi
9698     fi
9699   fi
9700 
9701 
9702 
9703   if test "x$TAIL" = x; then
9704     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9705   fi
9706 
9707 
9708 
9709 
9710 
9711   # Publish this variable in the help.
9712 
9713 
9714   if test "x$TAR" = x; then
9715     # The variable is not set by user, try to locate tool using the code snippet
9716     for ac_prog in tar
9717 do
9718   # Extract the first word of "$ac_prog", so it can be a program name with args.
9719 set dummy $ac_prog; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_TAR+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   case $TAR in
9726   [\\/]* | ?:[\\/]*)
9727   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9728   ;;
9729   *)
9730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9732 do
9733   IFS=$as_save_IFS
9734   test -z "$as_dir" && as_dir=.
9735     for ac_exec_ext in '' $ac_executable_extensions; do
9736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739     break 2
9740   fi
9741 done
9742   done
9743 IFS=$as_save_IFS
9744 
9745   ;;
9746 esac
9747 fi
9748 TAR=$ac_cv_path_TAR
9749 if test -n "$TAR"; then
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9751 $as_echo "$TAR" >&6; }
9752 else
9753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9755 fi
9756 
9757 
9758   test -n "$TAR" && break
9759 done
9760 
9761   else
9762     # The variable is set, but is it from the command line or the environment?
9763 
9764     # Try to remove the string !TAR! from our list.
9765     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9766     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9767       # If it failed, the variable was not from the command line. Ignore it,
9768       # but warn the user (except for BASH, which is always set by the calling BASH).
9769       if test "xTAR" != xBASH; then
9770         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9771 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9772       fi
9773       # Try to locate tool using the code snippet
9774       for ac_prog in tar
9775 do
9776   # Extract the first word of "$ac_prog", so it can be a program name with args.
9777 set dummy $ac_prog; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if ${ac_cv_path_TAR+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   case $TAR in
9784   [\\/]* | ?:[\\/]*)
9785   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9786   ;;
9787   *)
9788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793     for ac_exec_ext in '' $ac_executable_extensions; do
9794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797     break 2
9798   fi
9799 done
9800   done
9801 IFS=$as_save_IFS
9802 
9803   ;;
9804 esac
9805 fi
9806 TAR=$ac_cv_path_TAR
9807 if test -n "$TAR"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9809 $as_echo "$TAR" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814 
9815 
9816   test -n "$TAR" && break
9817 done
9818 
9819     else
9820       # If it succeeded, then it was overridden by the user. We will use it
9821       # for the tool.
9822 
9823       # First remove it from the list of overridden variables, so we can test
9824       # for unknown variables in the end.
9825       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9826 
9827       # Check if the provided tool contains a complete path.
9828       tool_specified="$TAR"
9829       tool_basename="${tool_specified##*/}"
9830       if test "x$tool_basename" = "x$tool_specified"; then
9831         # A command without a complete path is provided, search $PATH.
9832         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9833 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9834         # Extract the first word of "$tool_basename", so it can be a program name with args.
9835 set dummy $tool_basename; ac_word=$2
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837 $as_echo_n "checking for $ac_word... " >&6; }
9838 if ${ac_cv_path_TAR+:} false; then :
9839   $as_echo_n "(cached) " >&6
9840 else
9841   case $TAR in
9842   [\\/]* | ?:[\\/]*)
9843   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9844   ;;
9845   *)
9846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in $PATH
9848 do
9849   IFS=$as_save_IFS
9850   test -z "$as_dir" && as_dir=.
9851     for ac_exec_ext in '' $ac_executable_extensions; do
9852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9853     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9855     break 2
9856   fi
9857 done
9858   done
9859 IFS=$as_save_IFS
9860 
9861   ;;
9862 esac
9863 fi
9864 TAR=$ac_cv_path_TAR
9865 if test -n "$TAR"; then
9866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9867 $as_echo "$TAR" >&6; }
9868 else
9869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9870 $as_echo "no" >&6; }
9871 fi
9872 
9873 
9874         if test "x$TAR" = x; then
9875           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9876         fi
9877       else
9878         # Otherwise we believe it is a complete path. Use it as it is.
9879         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9880 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9881         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9882 $as_echo_n "checking for TAR... " >&6; }
9883         if test ! -x "$tool_specified"; then
9884           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9885 $as_echo "not found" >&6; }
9886           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9887         fi
9888         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9889 $as_echo "$tool_specified" >&6; }
9890       fi
9891     fi
9892   fi
9893 
9894 
9895 
9896   if test "x$TAR" = x; then
9897     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9898   fi
9899 
9900 
9901 
9902 
9903 
9904   # Publish this variable in the help.
9905 
9906 
9907   if test "x$TEE" = x; then
9908     # The variable is not set by user, try to locate tool using the code snippet
9909     for ac_prog in tee
9910 do
9911   # Extract the first word of "$ac_prog", so it can be a program name with args.
9912 set dummy $ac_prog; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_path_TEE+:} false; then :
9916   $as_echo_n "(cached) " >&6
9917 else
9918   case $TEE in
9919   [\\/]* | ?:[\\/]*)
9920   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9921   ;;
9922   *)
9923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926   IFS=$as_save_IFS
9927   test -z "$as_dir" && as_dir=.
9928     for ac_exec_ext in '' $ac_executable_extensions; do
9929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932     break 2
9933   fi
9934 done
9935   done
9936 IFS=$as_save_IFS
9937 
9938   ;;
9939 esac
9940 fi
9941 TEE=$ac_cv_path_TEE
9942 if test -n "$TEE"; then
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9944 $as_echo "$TEE" >&6; }
9945 else
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 fi
9949 
9950 
9951   test -n "$TEE" && break
9952 done
9953 
9954   else
9955     # The variable is set, but is it from the command line or the environment?
9956 
9957     # Try to remove the string !TEE! from our list.
9958     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9959     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9960       # If it failed, the variable was not from the command line. Ignore it,
9961       # but warn the user (except for BASH, which is always set by the calling BASH).
9962       if test "xTEE" != xBASH; then
9963         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9964 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9965       fi
9966       # Try to locate tool using the code snippet
9967       for ac_prog in tee
9968 do
9969   # Extract the first word of "$ac_prog", so it can be a program name with args.
9970 set dummy $ac_prog; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if ${ac_cv_path_TEE+:} false; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   case $TEE in
9977   [\\/]* | ?:[\\/]*)
9978   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9979   ;;
9980   *)
9981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984   IFS=$as_save_IFS
9985   test -z "$as_dir" && as_dir=.
9986     for ac_exec_ext in '' $ac_executable_extensions; do
9987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990     break 2
9991   fi
9992 done
9993   done
9994 IFS=$as_save_IFS
9995 
9996   ;;
9997 esac
9998 fi
9999 TEE=$ac_cv_path_TEE
10000 if test -n "$TEE"; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10002 $as_echo "$TEE" >&6; }
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007 
10008 
10009   test -n "$TEE" && break
10010 done
10011 
10012     else
10013       # If it succeeded, then it was overridden by the user. We will use it
10014       # for the tool.
10015 
10016       # First remove it from the list of overridden variables, so we can test
10017       # for unknown variables in the end.
10018       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10019 
10020       # Check if the provided tool contains a complete path.
10021       tool_specified="$TEE"
10022       tool_basename="${tool_specified##*/}"
10023       if test "x$tool_basename" = "x$tool_specified"; then
10024         # A command without a complete path is provided, search $PATH.
10025         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10026 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10027         # Extract the first word of "$tool_basename", so it can be a program name with args.
10028 set dummy $tool_basename; ac_word=$2
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10030 $as_echo_n "checking for $ac_word... " >&6; }
10031 if ${ac_cv_path_TEE+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   case $TEE in
10035   [\\/]* | ?:[\\/]*)
10036   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10037   ;;
10038   *)
10039   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10041 do
10042   IFS=$as_save_IFS
10043   test -z "$as_dir" && as_dir=.
10044     for ac_exec_ext in '' $ac_executable_extensions; do
10045   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10046     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10048     break 2
10049   fi
10050 done
10051   done
10052 IFS=$as_save_IFS
10053 
10054   ;;
10055 esac
10056 fi
10057 TEE=$ac_cv_path_TEE
10058 if test -n "$TEE"; then
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10060 $as_echo "$TEE" >&6; }
10061 else
10062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10063 $as_echo "no" >&6; }
10064 fi
10065 
10066 
10067         if test "x$TEE" = x; then
10068           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10069         fi
10070       else
10071         # Otherwise we believe it is a complete path. Use it as it is.
10072         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10073 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10074         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10075 $as_echo_n "checking for TEE... " >&6; }
10076         if test ! -x "$tool_specified"; then
10077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10078 $as_echo "not found" >&6; }
10079           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10080         fi
10081         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10082 $as_echo "$tool_specified" >&6; }
10083       fi
10084     fi
10085   fi
10086 
10087 
10088 
10089   if test "x$TEE" = x; then
10090     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10091   fi
10092 
10093 
10094 
10095 
10096 
10097   # Publish this variable in the help.
10098 
10099 
10100   if test "x$TOUCH" = x; then
10101     # The variable is not set by user, try to locate tool using the code snippet
10102     for ac_prog in touch
10103 do
10104   # Extract the first word of "$ac_prog", so it can be a program name with args.
10105 set dummy $ac_prog; ac_word=$2
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107 $as_echo_n "checking for $ac_word... " >&6; }
10108 if ${ac_cv_path_TOUCH+:} false; then :
10109   $as_echo_n "(cached) " >&6
10110 else
10111   case $TOUCH in
10112   [\\/]* | ?:[\\/]*)
10113   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10114   ;;
10115   *)
10116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10118 do
10119   IFS=$as_save_IFS
10120   test -z "$as_dir" && as_dir=.
10121     for ac_exec_ext in '' $ac_executable_extensions; do
10122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10123     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125     break 2
10126   fi
10127 done
10128   done
10129 IFS=$as_save_IFS
10130 
10131   ;;
10132 esac
10133 fi
10134 TOUCH=$ac_cv_path_TOUCH
10135 if test -n "$TOUCH"; then
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10137 $as_echo "$TOUCH" >&6; }
10138 else
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10141 fi
10142 
10143 
10144   test -n "$TOUCH" && break
10145 done
10146 
10147   else
10148     # The variable is set, but is it from the command line or the environment?
10149 
10150     # Try to remove the string !TOUCH! from our list.
10151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10153       # If it failed, the variable was not from the command line. Ignore it,
10154       # but warn the user (except for BASH, which is always set by the calling BASH).
10155       if test "xTOUCH" != xBASH; then
10156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10157 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10158       fi
10159       # Try to locate tool using the code snippet
10160       for ac_prog in touch
10161 do
10162   # Extract the first word of "$ac_prog", so it can be a program name with args.
10163 set dummy $ac_prog; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_path_TOUCH+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   case $TOUCH in
10170   [\\/]* | ?:[\\/]*)
10171   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10172   ;;
10173   *)
10174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177   IFS=$as_save_IFS
10178   test -z "$as_dir" && as_dir=.
10179     for ac_exec_ext in '' $ac_executable_extensions; do
10180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183     break 2
10184   fi
10185 done
10186   done
10187 IFS=$as_save_IFS
10188 
10189   ;;
10190 esac
10191 fi
10192 TOUCH=$ac_cv_path_TOUCH
10193 if test -n "$TOUCH"; then
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10195 $as_echo "$TOUCH" >&6; }
10196 else
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200 
10201 
10202   test -n "$TOUCH" && break
10203 done
10204 
10205     else
10206       # If it succeeded, then it was overridden by the user. We will use it
10207       # for the tool.
10208 
10209       # First remove it from the list of overridden variables, so we can test
10210       # for unknown variables in the end.
10211       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10212 
10213       # Check if the provided tool contains a complete path.
10214       tool_specified="$TOUCH"
10215       tool_basename="${tool_specified##*/}"
10216       if test "x$tool_basename" = "x$tool_specified"; then
10217         # A command without a complete path is provided, search $PATH.
10218         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10219 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10220         # Extract the first word of "$tool_basename", so it can be a program name with args.
10221 set dummy $tool_basename; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_path_TOUCH+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   case $TOUCH in
10228   [\\/]* | ?:[\\/]*)
10229   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10230   ;;
10231   *)
10232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233 for as_dir in $PATH
10234 do
10235   IFS=$as_save_IFS
10236   test -z "$as_dir" && as_dir=.
10237     for ac_exec_ext in '' $ac_executable_extensions; do
10238   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241     break 2
10242   fi
10243 done
10244   done
10245 IFS=$as_save_IFS
10246 
10247   ;;
10248 esac
10249 fi
10250 TOUCH=$ac_cv_path_TOUCH
10251 if test -n "$TOUCH"; then
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10253 $as_echo "$TOUCH" >&6; }
10254 else
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256 $as_echo "no" >&6; }
10257 fi
10258 
10259 
10260         if test "x$TOUCH" = x; then
10261           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10262         fi
10263       else
10264         # Otherwise we believe it is a complete path. Use it as it is.
10265         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10266 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10267         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10268 $as_echo_n "checking for TOUCH... " >&6; }
10269         if test ! -x "$tool_specified"; then
10270           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10271 $as_echo "not found" >&6; }
10272           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10273         fi
10274         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10275 $as_echo "$tool_specified" >&6; }
10276       fi
10277     fi
10278   fi
10279 
10280 
10281 
10282   if test "x$TOUCH" = x; then
10283     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10284   fi
10285 
10286 
10287 
10288 
10289 
10290   # Publish this variable in the help.
10291 
10292 
10293   if test "x$TR" = x; then
10294     # The variable is not set by user, try to locate tool using the code snippet
10295     for ac_prog in tr
10296 do
10297   # Extract the first word of "$ac_prog", so it can be a program name with args.
10298 set dummy $ac_prog; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if ${ac_cv_path_TR+:} false; then :
10302   $as_echo_n "(cached) " >&6
10303 else
10304   case $TR in
10305   [\\/]* | ?:[\\/]*)
10306   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10307   ;;
10308   *)
10309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312   IFS=$as_save_IFS
10313   test -z "$as_dir" && as_dir=.
10314     for ac_exec_ext in '' $ac_executable_extensions; do
10315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318     break 2
10319   fi
10320 done
10321   done
10322 IFS=$as_save_IFS
10323 
10324   ;;
10325 esac
10326 fi
10327 TR=$ac_cv_path_TR
10328 if test -n "$TR"; then
10329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10330 $as_echo "$TR" >&6; }
10331 else
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10334 fi
10335 
10336 
10337   test -n "$TR" && break
10338 done
10339 
10340   else
10341     # The variable is set, but is it from the command line or the environment?
10342 
10343     # Try to remove the string !TR! from our list.
10344     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10345     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10346       # If it failed, the variable was not from the command line. Ignore it,
10347       # but warn the user (except for BASH, which is always set by the calling BASH).
10348       if test "xTR" != xBASH; then
10349         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10350 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10351       fi
10352       # Try to locate tool using the code snippet
10353       for ac_prog in tr
10354 do
10355   # Extract the first word of "$ac_prog", so it can be a program name with args.
10356 set dummy $ac_prog; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_path_TR+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   case $TR in
10363   [\\/]* | ?:[\\/]*)
10364   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10365   ;;
10366   *)
10367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370   IFS=$as_save_IFS
10371   test -z "$as_dir" && as_dir=.
10372     for ac_exec_ext in '' $ac_executable_extensions; do
10373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376     break 2
10377   fi
10378 done
10379   done
10380 IFS=$as_save_IFS
10381 
10382   ;;
10383 esac
10384 fi
10385 TR=$ac_cv_path_TR
10386 if test -n "$TR"; then
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10388 $as_echo "$TR" >&6; }
10389 else
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393 
10394 
10395   test -n "$TR" && break
10396 done
10397 
10398     else
10399       # If it succeeded, then it was overridden by the user. We will use it
10400       # for the tool.
10401 
10402       # First remove it from the list of overridden variables, so we can test
10403       # for unknown variables in the end.
10404       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10405 
10406       # Check if the provided tool contains a complete path.
10407       tool_specified="$TR"
10408       tool_basename="${tool_specified##*/}"
10409       if test "x$tool_basename" = "x$tool_specified"; then
10410         # A command without a complete path is provided, search $PATH.
10411         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10412 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10413         # Extract the first word of "$tool_basename", so it can be a program name with args.
10414 set dummy $tool_basename; ac_word=$2
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10416 $as_echo_n "checking for $ac_word... " >&6; }
10417 if ${ac_cv_path_TR+:} false; then :
10418   $as_echo_n "(cached) " >&6
10419 else
10420   case $TR in
10421   [\\/]* | ?:[\\/]*)
10422   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10423   ;;
10424   *)
10425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10427 do
10428   IFS=$as_save_IFS
10429   test -z "$as_dir" && as_dir=.
10430     for ac_exec_ext in '' $ac_executable_extensions; do
10431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10434     break 2
10435   fi
10436 done
10437   done
10438 IFS=$as_save_IFS
10439 
10440   ;;
10441 esac
10442 fi
10443 TR=$ac_cv_path_TR
10444 if test -n "$TR"; then
10445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10446 $as_echo "$TR" >&6; }
10447 else
10448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10449 $as_echo "no" >&6; }
10450 fi
10451 
10452 
10453         if test "x$TR" = x; then
10454           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10455         fi
10456       else
10457         # Otherwise we believe it is a complete path. Use it as it is.
10458         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10459 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10460         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10461 $as_echo_n "checking for TR... " >&6; }
10462         if test ! -x "$tool_specified"; then
10463           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10464 $as_echo "not found" >&6; }
10465           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10466         fi
10467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10468 $as_echo "$tool_specified" >&6; }
10469       fi
10470     fi
10471   fi
10472 
10473 
10474 
10475   if test "x$TR" = x; then
10476     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10477   fi
10478 
10479 
10480 
10481 
10482 
10483   # Publish this variable in the help.
10484 
10485 
10486   if test "x$UNAME" = x; then
10487     # The variable is not set by user, try to locate tool using the code snippet
10488     for ac_prog in uname
10489 do
10490   # Extract the first word of "$ac_prog", so it can be a program name with args.
10491 set dummy $ac_prog; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_path_UNAME+:} false; then :
10495   $as_echo_n "(cached) " >&6
10496 else
10497   case $UNAME in
10498   [\\/]* | ?:[\\/]*)
10499   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10500   ;;
10501   *)
10502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505   IFS=$as_save_IFS
10506   test -z "$as_dir" && as_dir=.
10507     for ac_exec_ext in '' $ac_executable_extensions; do
10508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511     break 2
10512   fi
10513 done
10514   done
10515 IFS=$as_save_IFS
10516 
10517   ;;
10518 esac
10519 fi
10520 UNAME=$ac_cv_path_UNAME
10521 if test -n "$UNAME"; then
10522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10523 $as_echo "$UNAME" >&6; }
10524 else
10525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528 
10529 
10530   test -n "$UNAME" && break
10531 done
10532 
10533   else
10534     # The variable is set, but is it from the command line or the environment?
10535 
10536     # Try to remove the string !UNAME! from our list.
10537     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10538     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10539       # If it failed, the variable was not from the command line. Ignore it,
10540       # but warn the user (except for BASH, which is always set by the calling BASH).
10541       if test "xUNAME" != xBASH; then
10542         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10543 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10544       fi
10545       # Try to locate tool using the code snippet
10546       for ac_prog in uname
10547 do
10548   # Extract the first word of "$ac_prog", so it can be a program name with args.
10549 set dummy $ac_prog; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if ${ac_cv_path_UNAME+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   case $UNAME in
10556   [\\/]* | ?:[\\/]*)
10557   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10558   ;;
10559   *)
10560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574 
10575   ;;
10576 esac
10577 fi
10578 UNAME=$ac_cv_path_UNAME
10579 if test -n "$UNAME"; then
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10581 $as_echo "$UNAME" >&6; }
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586 
10587 
10588   test -n "$UNAME" && break
10589 done
10590 
10591     else
10592       # If it succeeded, then it was overridden by the user. We will use it
10593       # for the tool.
10594 
10595       # First remove it from the list of overridden variables, so we can test
10596       # for unknown variables in the end.
10597       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10598 
10599       # Check if the provided tool contains a complete path.
10600       tool_specified="$UNAME"
10601       tool_basename="${tool_specified##*/}"
10602       if test "x$tool_basename" = "x$tool_specified"; then
10603         # A command without a complete path is provided, search $PATH.
10604         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10605 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10606         # Extract the first word of "$tool_basename", so it can be a program name with args.
10607 set dummy $tool_basename; ac_word=$2
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10609 $as_echo_n "checking for $ac_word... " >&6; }
10610 if ${ac_cv_path_UNAME+:} false; then :
10611   $as_echo_n "(cached) " >&6
10612 else
10613   case $UNAME in
10614   [\\/]* | ?:[\\/]*)
10615   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10616   ;;
10617   *)
10618   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619 for as_dir in $PATH
10620 do
10621   IFS=$as_save_IFS
10622   test -z "$as_dir" && as_dir=.
10623     for ac_exec_ext in '' $ac_executable_extensions; do
10624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10625     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627     break 2
10628   fi
10629 done
10630   done
10631 IFS=$as_save_IFS
10632 
10633   ;;
10634 esac
10635 fi
10636 UNAME=$ac_cv_path_UNAME
10637 if test -n "$UNAME"; then
10638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10639 $as_echo "$UNAME" >&6; }
10640 else
10641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 fi
10644 
10645 
10646         if test "x$UNAME" = x; then
10647           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10648         fi
10649       else
10650         # Otherwise we believe it is a complete path. Use it as it is.
10651         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10652 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10653         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10654 $as_echo_n "checking for UNAME... " >&6; }
10655         if test ! -x "$tool_specified"; then
10656           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10657 $as_echo "not found" >&6; }
10658           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10659         fi
10660         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10661 $as_echo "$tool_specified" >&6; }
10662       fi
10663     fi
10664   fi
10665 
10666 
10667 
10668   if test "x$UNAME" = x; then
10669     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10670   fi
10671 
10672 
10673 
10674 
10675 
10676   # Publish this variable in the help.
10677 
10678 
10679   if test "x$UNIQ" = x; then
10680     # The variable is not set by user, try to locate tool using the code snippet
10681     for ac_prog in uniq
10682 do
10683   # Extract the first word of "$ac_prog", so it can be a program name with args.
10684 set dummy $ac_prog; ac_word=$2
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686 $as_echo_n "checking for $ac_word... " >&6; }
10687 if ${ac_cv_path_UNIQ+:} false; then :
10688   $as_echo_n "(cached) " >&6
10689 else
10690   case $UNIQ in
10691   [\\/]* | ?:[\\/]*)
10692   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10693   ;;
10694   *)
10695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10697 do
10698   IFS=$as_save_IFS
10699   test -z "$as_dir" && as_dir=.
10700     for ac_exec_ext in '' $ac_executable_extensions; do
10701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704     break 2
10705   fi
10706 done
10707   done
10708 IFS=$as_save_IFS
10709 
10710   ;;
10711 esac
10712 fi
10713 UNIQ=$ac_cv_path_UNIQ
10714 if test -n "$UNIQ"; then
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10716 $as_echo "$UNIQ" >&6; }
10717 else
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721 
10722 
10723   test -n "$UNIQ" && break
10724 done
10725 
10726   else
10727     # The variable is set, but is it from the command line or the environment?
10728 
10729     # Try to remove the string !UNIQ! from our list.
10730     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10731     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10732       # If it failed, the variable was not from the command line. Ignore it,
10733       # but warn the user (except for BASH, which is always set by the calling BASH).
10734       if test "xUNIQ" != xBASH; then
10735         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10736 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10737       fi
10738       # Try to locate tool using the code snippet
10739       for ac_prog in uniq
10740 do
10741   # Extract the first word of "$ac_prog", so it can be a program name with args.
10742 set dummy $ac_prog; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_UNIQ+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   case $UNIQ in
10749   [\\/]* | ?:[\\/]*)
10750   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10751   ;;
10752   *)
10753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10755 do
10756   IFS=$as_save_IFS
10757   test -z "$as_dir" && as_dir=.
10758     for ac_exec_ext in '' $ac_executable_extensions; do
10759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762     break 2
10763   fi
10764 done
10765   done
10766 IFS=$as_save_IFS
10767 
10768   ;;
10769 esac
10770 fi
10771 UNIQ=$ac_cv_path_UNIQ
10772 if test -n "$UNIQ"; then
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10774 $as_echo "$UNIQ" >&6; }
10775 else
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779 
10780 
10781   test -n "$UNIQ" && break
10782 done
10783 
10784     else
10785       # If it succeeded, then it was overridden by the user. We will use it
10786       # for the tool.
10787 
10788       # First remove it from the list of overridden variables, so we can test
10789       # for unknown variables in the end.
10790       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10791 
10792       # Check if the provided tool contains a complete path.
10793       tool_specified="$UNIQ"
10794       tool_basename="${tool_specified##*/}"
10795       if test "x$tool_basename" = "x$tool_specified"; then
10796         # A command without a complete path is provided, search $PATH.
10797         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10798 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10799         # Extract the first word of "$tool_basename", so it can be a program name with args.
10800 set dummy $tool_basename; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10802 $as_echo_n "checking for $ac_word... " >&6; }
10803 if ${ac_cv_path_UNIQ+:} false; then :
10804   $as_echo_n "(cached) " >&6
10805 else
10806   case $UNIQ in
10807   [\\/]* | ?:[\\/]*)
10808   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10809   ;;
10810   *)
10811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10813 do
10814   IFS=$as_save_IFS
10815   test -z "$as_dir" && as_dir=.
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10818     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825 
10826   ;;
10827 esac
10828 fi
10829 UNIQ=$ac_cv_path_UNIQ
10830 if test -n "$UNIQ"; then
10831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10832 $as_echo "$UNIQ" >&6; }
10833 else
10834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836 fi
10837 
10838 
10839         if test "x$UNIQ" = x; then
10840           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10841         fi
10842       else
10843         # Otherwise we believe it is a complete path. Use it as it is.
10844         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10845 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10846         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10847 $as_echo_n "checking for UNIQ... " >&6; }
10848         if test ! -x "$tool_specified"; then
10849           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10850 $as_echo "not found" >&6; }
10851           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10852         fi
10853         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10854 $as_echo "$tool_specified" >&6; }
10855       fi
10856     fi
10857   fi
10858 
10859 
10860 
10861   if test "x$UNIQ" = x; then
10862     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10863   fi
10864 
10865 
10866 
10867 
10868 
10869   # Publish this variable in the help.
10870 
10871 
10872   if test "x$WC" = x; then
10873     # The variable is not set by user, try to locate tool using the code snippet
10874     for ac_prog in wc
10875 do
10876   # Extract the first word of "$ac_prog", so it can be a program name with args.
10877 set dummy $ac_prog; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_path_WC+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   case $WC in
10884   [\\/]* | ?:[\\/]*)
10885   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10886   ;;
10887   *)
10888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891   IFS=$as_save_IFS
10892   test -z "$as_dir" && as_dir=.
10893     for ac_exec_ext in '' $ac_executable_extensions; do
10894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897     break 2
10898   fi
10899 done
10900   done
10901 IFS=$as_save_IFS
10902 
10903   ;;
10904 esac
10905 fi
10906 WC=$ac_cv_path_WC
10907 if test -n "$WC"; then
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10909 $as_echo "$WC" >&6; }
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10913 fi
10914 
10915 
10916   test -n "$WC" && break
10917 done
10918 
10919   else
10920     # The variable is set, but is it from the command line or the environment?
10921 
10922     # Try to remove the string !WC! from our list.
10923     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10924     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10925       # If it failed, the variable was not from the command line. Ignore it,
10926       # but warn the user (except for BASH, which is always set by the calling BASH).
10927       if test "xWC" != xBASH; then
10928         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10929 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10930       fi
10931       # Try to locate tool using the code snippet
10932       for ac_prog in wc
10933 do
10934   # Extract the first word of "$ac_prog", so it can be a program name with args.
10935 set dummy $ac_prog; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if ${ac_cv_path_WC+:} false; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941   case $WC in
10942   [\\/]* | ?:[\\/]*)
10943   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10944   ;;
10945   *)
10946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949   IFS=$as_save_IFS
10950   test -z "$as_dir" && as_dir=.
10951     for ac_exec_ext in '' $ac_executable_extensions; do
10952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955     break 2
10956   fi
10957 done
10958   done
10959 IFS=$as_save_IFS
10960 
10961   ;;
10962 esac
10963 fi
10964 WC=$ac_cv_path_WC
10965 if test -n "$WC"; then
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10967 $as_echo "$WC" >&6; }
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971 fi
10972 
10973 
10974   test -n "$WC" && break
10975 done
10976 
10977     else
10978       # If it succeeded, then it was overridden by the user. We will use it
10979       # for the tool.
10980 
10981       # First remove it from the list of overridden variables, so we can test
10982       # for unknown variables in the end.
10983       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10984 
10985       # Check if the provided tool contains a complete path.
10986       tool_specified="$WC"
10987       tool_basename="${tool_specified##*/}"
10988       if test "x$tool_basename" = "x$tool_specified"; then
10989         # A command without a complete path is provided, search $PATH.
10990         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10991 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10992         # Extract the first word of "$tool_basename", so it can be a program name with args.
10993 set dummy $tool_basename; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if ${ac_cv_path_WC+:} false; then :
10997   $as_echo_n "(cached) " >&6
10998 else
10999   case $WC in
11000   [\\/]* | ?:[\\/]*)
11001   ac_cv_path_WC="$WC" # Let the user override the test with a path.
11002   ;;
11003   *)
11004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11006 do
11007   IFS=$as_save_IFS
11008   test -z "$as_dir" && as_dir=.
11009     for ac_exec_ext in '' $ac_executable_extensions; do
11010   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
11012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11013     break 2
11014   fi
11015 done
11016   done
11017 IFS=$as_save_IFS
11018 
11019   ;;
11020 esac
11021 fi
11022 WC=$ac_cv_path_WC
11023 if test -n "$WC"; then
11024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11025 $as_echo "$WC" >&6; }
11026 else
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11028 $as_echo "no" >&6; }
11029 fi
11030 
11031 
11032         if test "x$WC" = x; then
11033           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11034         fi
11035       else
11036         # Otherwise we believe it is a complete path. Use it as it is.
11037         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11038 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11040 $as_echo_n "checking for WC... " >&6; }
11041         if test ! -x "$tool_specified"; then
11042           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11043 $as_echo "not found" >&6; }
11044           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11045         fi
11046         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11047 $as_echo "$tool_specified" >&6; }
11048       fi
11049     fi
11050   fi
11051 
11052 
11053 
11054   if test "x$WC" = x; then
11055     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11056   fi
11057 
11058 
11059 
11060 
11061 
11062   # Publish this variable in the help.
11063 
11064 
11065   if test "x$WHICH" = x; then
11066     # The variable is not set by user, try to locate tool using the code snippet
11067     for ac_prog in which
11068 do
11069   # Extract the first word of "$ac_prog", so it can be a program name with args.
11070 set dummy $ac_prog; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_path_WHICH+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   case $WHICH in
11077   [\\/]* | ?:[\\/]*)
11078   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11079   ;;
11080   *)
11081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11083 do
11084   IFS=$as_save_IFS
11085   test -z "$as_dir" && as_dir=.
11086     for ac_exec_ext in '' $ac_executable_extensions; do
11087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090     break 2
11091   fi
11092 done
11093   done
11094 IFS=$as_save_IFS
11095 
11096   ;;
11097 esac
11098 fi
11099 WHICH=$ac_cv_path_WHICH
11100 if test -n "$WHICH"; then
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11102 $as_echo "$WHICH" >&6; }
11103 else
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107 
11108 
11109   test -n "$WHICH" && break
11110 done
11111 
11112   else
11113     # The variable is set, but is it from the command line or the environment?
11114 
11115     # Try to remove the string !WHICH! from our list.
11116     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11117     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11118       # If it failed, the variable was not from the command line. Ignore it,
11119       # but warn the user (except for BASH, which is always set by the calling BASH).
11120       if test "xWHICH" != xBASH; then
11121         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11122 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11123       fi
11124       # Try to locate tool using the code snippet
11125       for ac_prog in which
11126 do
11127   # Extract the first word of "$ac_prog", so it can be a program name with args.
11128 set dummy $ac_prog; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_path_WHICH+:} false; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   case $WHICH in
11135   [\\/]* | ?:[\\/]*)
11136   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11137   ;;
11138   *)
11139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153 
11154   ;;
11155 esac
11156 fi
11157 WHICH=$ac_cv_path_WHICH
11158 if test -n "$WHICH"; then
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11160 $as_echo "$WHICH" >&6; }
11161 else
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165 
11166 
11167   test -n "$WHICH" && break
11168 done
11169 
11170     else
11171       # If it succeeded, then it was overridden by the user. We will use it
11172       # for the tool.
11173 
11174       # First remove it from the list of overridden variables, so we can test
11175       # for unknown variables in the end.
11176       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11177 
11178       # Check if the provided tool contains a complete path.
11179       tool_specified="$WHICH"
11180       tool_basename="${tool_specified##*/}"
11181       if test "x$tool_basename" = "x$tool_specified"; then
11182         # A command without a complete path is provided, search $PATH.
11183         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11184 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11185         # Extract the first word of "$tool_basename", so it can be a program name with args.
11186 set dummy $tool_basename; ac_word=$2
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 $as_echo_n "checking for $ac_word... " >&6; }
11189 if ${ac_cv_path_WHICH+:} false; then :
11190   $as_echo_n "(cached) " >&6
11191 else
11192   case $WHICH in
11193   [\\/]* | ?:[\\/]*)
11194   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11195   ;;
11196   *)
11197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11198 for as_dir in $PATH
11199 do
11200   IFS=$as_save_IFS
11201   test -z "$as_dir" && as_dir=.
11202     for ac_exec_ext in '' $ac_executable_extensions; do
11203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11204     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11206     break 2
11207   fi
11208 done
11209   done
11210 IFS=$as_save_IFS
11211 
11212   ;;
11213 esac
11214 fi
11215 WHICH=$ac_cv_path_WHICH
11216 if test -n "$WHICH"; then
11217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11218 $as_echo "$WHICH" >&6; }
11219 else
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11222 fi
11223 
11224 
11225         if test "x$WHICH" = x; then
11226           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11227         fi
11228       else
11229         # Otherwise we believe it is a complete path. Use it as it is.
11230         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11231 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11232         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11233 $as_echo_n "checking for WHICH... " >&6; }
11234         if test ! -x "$tool_specified"; then
11235           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11236 $as_echo "not found" >&6; }
11237           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11238         fi
11239         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11240 $as_echo "$tool_specified" >&6; }
11241       fi
11242     fi
11243   fi
11244 
11245 
11246 
11247   if test "x$WHICH" = x; then
11248     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11249   fi
11250 
11251 
11252 
11253 
11254 
11255   # Publish this variable in the help.
11256 
11257 
11258   if test "x$XARGS" = x; then
11259     # The variable is not set by user, try to locate tool using the code snippet
11260     for ac_prog in xargs
11261 do
11262   # Extract the first word of "$ac_prog", so it can be a program name with args.
11263 set dummy $ac_prog; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_path_XARGS+:} false; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   case $XARGS in
11270   [\\/]* | ?:[\\/]*)
11271   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11272   ;;
11273   *)
11274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279     for ac_exec_ext in '' $ac_executable_extensions; do
11280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286   done
11287 IFS=$as_save_IFS
11288 
11289   ;;
11290 esac
11291 fi
11292 XARGS=$ac_cv_path_XARGS
11293 if test -n "$XARGS"; then
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11295 $as_echo "$XARGS" >&6; }
11296 else
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300 
11301 
11302   test -n "$XARGS" && break
11303 done
11304 
11305   else
11306     # The variable is set, but is it from the command line or the environment?
11307 
11308     # Try to remove the string !XARGS! from our list.
11309     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11310     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11311       # If it failed, the variable was not from the command line. Ignore it,
11312       # but warn the user (except for BASH, which is always set by the calling BASH).
11313       if test "xXARGS" != xBASH; then
11314         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11315 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11316       fi
11317       # Try to locate tool using the code snippet
11318       for ac_prog in xargs
11319 do
11320   # Extract the first word of "$ac_prog", so it can be a program name with args.
11321 set dummy $ac_prog; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_path_XARGS+:} false; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   case $XARGS in
11328   [\\/]* | ?:[\\/]*)
11329   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11330   ;;
11331   *)
11332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11334 do
11335   IFS=$as_save_IFS
11336   test -z "$as_dir" && as_dir=.
11337     for ac_exec_ext in '' $ac_executable_extensions; do
11338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341     break 2
11342   fi
11343 done
11344   done
11345 IFS=$as_save_IFS
11346 
11347   ;;
11348 esac
11349 fi
11350 XARGS=$ac_cv_path_XARGS
11351 if test -n "$XARGS"; then
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11353 $as_echo "$XARGS" >&6; }
11354 else
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358 
11359 
11360   test -n "$XARGS" && break
11361 done
11362 
11363     else
11364       # If it succeeded, then it was overridden by the user. We will use it
11365       # for the tool.
11366 
11367       # First remove it from the list of overridden variables, so we can test
11368       # for unknown variables in the end.
11369       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11370 
11371       # Check if the provided tool contains a complete path.
11372       tool_specified="$XARGS"
11373       tool_basename="${tool_specified##*/}"
11374       if test "x$tool_basename" = "x$tool_specified"; then
11375         # A command without a complete path is provided, search $PATH.
11376         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11377 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11378         # Extract the first word of "$tool_basename", so it can be a program name with args.
11379 set dummy $tool_basename; ac_word=$2
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11381 $as_echo_n "checking for $ac_word... " >&6; }
11382 if ${ac_cv_path_XARGS+:} false; then :
11383   $as_echo_n "(cached) " >&6
11384 else
11385   case $XARGS in
11386   [\\/]* | ?:[\\/]*)
11387   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11388   ;;
11389   *)
11390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11392 do
11393   IFS=$as_save_IFS
11394   test -z "$as_dir" && as_dir=.
11395     for ac_exec_ext in '' $ac_executable_extensions; do
11396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11397     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399     break 2
11400   fi
11401 done
11402   done
11403 IFS=$as_save_IFS
11404 
11405   ;;
11406 esac
11407 fi
11408 XARGS=$ac_cv_path_XARGS
11409 if test -n "$XARGS"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11411 $as_echo "$XARGS" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416 
11417 
11418         if test "x$XARGS" = x; then
11419           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11420         fi
11421       else
11422         # Otherwise we believe it is a complete path. Use it as it is.
11423         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11424 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11426 $as_echo_n "checking for XARGS... " >&6; }
11427         if test ! -x "$tool_specified"; then
11428           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11429 $as_echo "not found" >&6; }
11430           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11431         fi
11432         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11433 $as_echo "$tool_specified" >&6; }
11434       fi
11435     fi
11436   fi
11437 
11438 
11439 
11440   if test "x$XARGS" = x; then
11441     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11442   fi
11443 
11444 
11445 
11446   # Then required tools that require some special treatment.
11447 
11448 
11449   # Publish this variable in the help.
11450 
11451 
11452   if test "x$AWK" = x; then
11453     # The variable is not set by user, 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     # The variable is set, but is it from the command line or the environment?
11498 
11499     # Try to remove the string !AWK! from our list.
11500     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11501     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11502       # If it failed, the variable was not from the command line. Ignore it,
11503       # but warn the user (except for BASH, which is always set by the calling BASH).
11504       if test "xAWK" != xBASH; then
11505         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11506 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11507       fi
11508       # Try to locate tool using the code snippet
11509       for ac_prog in gawk mawk nawk awk
11510 do
11511   # Extract the first word of "$ac_prog", so it can be a program name with args.
11512 set dummy $ac_prog; 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_prog_AWK+:} false; then :
11516   $as_echo_n "(cached) " >&6
11517 else
11518   if test -n "$AWK"; then
11519   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11520 else
11521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11522 for as_dir in $PATH
11523 do
11524   IFS=$as_save_IFS
11525   test -z "$as_dir" && as_dir=.
11526     for ac_exec_ext in '' $ac_executable_extensions; do
11527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11528     ac_cv_prog_AWK="$ac_prog"
11529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11530     break 2
11531   fi
11532 done
11533   done
11534 IFS=$as_save_IFS
11535 
11536 fi
11537 fi
11538 AWK=$ac_cv_prog_AWK
11539 if test -n "$AWK"; then
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11541 $as_echo "$AWK" >&6; }
11542 else
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 fi
11546 
11547 
11548   test -n "$AWK" && break
11549 done
11550 
11551     else
11552       # If it succeeded, then it was overridden by the user. We will use it
11553       # for the tool.
11554 
11555       # First remove it from the list of overridden variables, so we can test
11556       # for unknown variables in the end.
11557       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11558 
11559       # Check if the provided tool contains a complete path.
11560       tool_specified="$AWK"
11561       tool_basename="${tool_specified##*/}"
11562       if test "x$tool_basename" = "x$tool_specified"; then
11563         # A command without a complete path is provided, search $PATH.
11564         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11565 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11566         # Extract the first word of "$tool_basename", so it can be a program name with args.
11567 set dummy $tool_basename; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_path_AWK+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   case $AWK in
11574   [\\/]* | ?:[\\/]*)
11575   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11576   ;;
11577   *)
11578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11579 for as_dir in $PATH
11580 do
11581   IFS=$as_save_IFS
11582   test -z "$as_dir" && as_dir=.
11583     for ac_exec_ext in '' $ac_executable_extensions; do
11584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11585     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11587     break 2
11588   fi
11589 done
11590   done
11591 IFS=$as_save_IFS
11592 
11593   ;;
11594 esac
11595 fi
11596 AWK=$ac_cv_path_AWK
11597 if test -n "$AWK"; then
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11599 $as_echo "$AWK" >&6; }
11600 else
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604 
11605 
11606         if test "x$AWK" = x; then
11607           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11608         fi
11609       else
11610         # Otherwise we believe it is a complete path. Use it as it is.
11611         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11612 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11614 $as_echo_n "checking for AWK... " >&6; }
11615         if test ! -x "$tool_specified"; then
11616           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11617 $as_echo "not found" >&6; }
11618           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11619         fi
11620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11621 $as_echo "$tool_specified" >&6; }
11622       fi
11623     fi
11624   fi
11625 
11626 
11627   if test "x$AWK" = x; then
11628     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11629   fi
11630 
11631 
11632 
11633 
11634   # Publish this variable in the help.
11635 
11636 
11637   if test "x$GREP" = x; then
11638     # The variable is not set by user, try to locate tool using the code snippet
11639     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11640 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11641 if ${ac_cv_path_GREP+:} false; then :
11642   $as_echo_n "(cached) " >&6
11643 else
11644   if test -z "$GREP"; then
11645   ac_path_GREP_found=false
11646   # Loop through the user's path and test for each of PROGNAME-LIST
11647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11649 do
11650   IFS=$as_save_IFS
11651   test -z "$as_dir" && as_dir=.
11652     for ac_prog in grep ggrep; do
11653     for ac_exec_ext in '' $ac_executable_extensions; do
11654       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11655       as_fn_executable_p "$ac_path_GREP" || continue
11656 # Check for GNU ac_path_GREP and select it if it is found.
11657   # Check for GNU $ac_path_GREP
11658 case `"$ac_path_GREP" --version 2>&1` in
11659 *GNU*)
11660   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11661 *)
11662   ac_count=0
11663   $as_echo_n 0123456789 >"conftest.in"
11664   while :
11665   do
11666     cat "conftest.in" "conftest.in" >"conftest.tmp"
11667     mv "conftest.tmp" "conftest.in"
11668     cp "conftest.in" "conftest.nl"
11669     $as_echo 'GREP' >> "conftest.nl"
11670     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11671     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11672     as_fn_arith $ac_count + 1 && ac_count=$as_val
11673     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11674       # Best one so far, save it but keep looking for a better one
11675       ac_cv_path_GREP="$ac_path_GREP"
11676       ac_path_GREP_max=$ac_count
11677     fi
11678     # 10*(2^10) chars as input seems more than enough
11679     test $ac_count -gt 10 && break
11680   done
11681   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11682 esac
11683 
11684       $ac_path_GREP_found && break 3
11685     done
11686   done
11687   done
11688 IFS=$as_save_IFS
11689   if test -z "$ac_cv_path_GREP"; then
11690     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11691   fi
11692 else
11693   ac_cv_path_GREP=$GREP
11694 fi
11695 
11696 fi
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11698 $as_echo "$ac_cv_path_GREP" >&6; }
11699  GREP="$ac_cv_path_GREP"
11700 
11701 
11702   else
11703     # The variable is set, but is it from the command line or the environment?
11704 
11705     # Try to remove the string !GREP! from our list.
11706     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11707     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11708       # If it failed, the variable was not from the command line. Ignore it,
11709       # but warn the user (except for BASH, which is always set by the calling BASH).
11710       if test "xGREP" != xBASH; then
11711         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11712 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11713       fi
11714       # Try to locate tool using the code snippet
11715       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11716 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11717 if ${ac_cv_path_GREP+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   if test -z "$GREP"; then
11721   ac_path_GREP_found=false
11722   # Loop through the user's path and test for each of PROGNAME-LIST
11723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11725 do
11726   IFS=$as_save_IFS
11727   test -z "$as_dir" && as_dir=.
11728     for ac_prog in grep ggrep; do
11729     for ac_exec_ext in '' $ac_executable_extensions; do
11730       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11731       as_fn_executable_p "$ac_path_GREP" || continue
11732 # Check for GNU ac_path_GREP and select it if it is found.
11733   # Check for GNU $ac_path_GREP
11734 case `"$ac_path_GREP" --version 2>&1` in
11735 *GNU*)
11736   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11737 *)
11738   ac_count=0
11739   $as_echo_n 0123456789 >"conftest.in"
11740   while :
11741   do
11742     cat "conftest.in" "conftest.in" >"conftest.tmp"
11743     mv "conftest.tmp" "conftest.in"
11744     cp "conftest.in" "conftest.nl"
11745     $as_echo 'GREP' >> "conftest.nl"
11746     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11747     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11748     as_fn_arith $ac_count + 1 && ac_count=$as_val
11749     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11750       # Best one so far, save it but keep looking for a better one
11751       ac_cv_path_GREP="$ac_path_GREP"
11752       ac_path_GREP_max=$ac_count
11753     fi
11754     # 10*(2^10) chars as input seems more than enough
11755     test $ac_count -gt 10 && break
11756   done
11757   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11758 esac
11759 
11760       $ac_path_GREP_found && break 3
11761     done
11762   done
11763   done
11764 IFS=$as_save_IFS
11765   if test -z "$ac_cv_path_GREP"; then
11766     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11767   fi
11768 else
11769   ac_cv_path_GREP=$GREP
11770 fi
11771 
11772 fi
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11774 $as_echo "$ac_cv_path_GREP" >&6; }
11775  GREP="$ac_cv_path_GREP"
11776 
11777 
11778     else
11779       # If it succeeded, then it was overridden by the user. We will use it
11780       # for the tool.
11781 
11782       # First remove it from the list of overridden variables, so we can test
11783       # for unknown variables in the end.
11784       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11785 
11786       # Check if the provided tool contains a complete path.
11787       tool_specified="$GREP"
11788       tool_basename="${tool_specified##*/}"
11789       if test "x$tool_basename" = "x$tool_specified"; then
11790         # A command without a complete path is provided, search $PATH.
11791         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11792 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11793         # Extract the first word of "$tool_basename", so it can be a program name with args.
11794 set dummy $tool_basename; ac_word=$2
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796 $as_echo_n "checking for $ac_word... " >&6; }
11797 if ${ac_cv_path_GREP+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   case $GREP in
11801   [\\/]* | ?:[\\/]*)
11802   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11803   ;;
11804   *)
11805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11807 do
11808   IFS=$as_save_IFS
11809   test -z "$as_dir" && as_dir=.
11810     for ac_exec_ext in '' $ac_executable_extensions; do
11811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11812     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11814     break 2
11815   fi
11816 done
11817   done
11818 IFS=$as_save_IFS
11819 
11820   ;;
11821 esac
11822 fi
11823 GREP=$ac_cv_path_GREP
11824 if test -n "$GREP"; then
11825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11826 $as_echo "$GREP" >&6; }
11827 else
11828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829 $as_echo "no" >&6; }
11830 fi
11831 
11832 
11833         if test "x$GREP" = x; then
11834           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11835         fi
11836       else
11837         # Otherwise we believe it is a complete path. Use it as it is.
11838         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11839 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11840         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11841 $as_echo_n "checking for GREP... " >&6; }
11842         if test ! -x "$tool_specified"; then
11843           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11844 $as_echo "not found" >&6; }
11845           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11846         fi
11847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11848 $as_echo "$tool_specified" >&6; }
11849       fi
11850     fi
11851   fi
11852 
11853 
11854   if test "x$GREP" = x; then
11855     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11856   fi
11857 
11858 
11859 
11860 
11861   # Publish this variable in the help.
11862 
11863 
11864   if test "x$EGREP" = x; then
11865     # The variable is not set by user, try to locate tool using the code snippet
11866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11867 $as_echo_n "checking for egrep... " >&6; }
11868 if ${ac_cv_path_EGREP+:} false; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11872    then ac_cv_path_EGREP="$GREP -E"
11873    else
11874      if test -z "$EGREP"; then
11875   ac_path_EGREP_found=false
11876   # Loop through the user's path and test for each of PROGNAME-LIST
11877   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11878 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11879 do
11880   IFS=$as_save_IFS
11881   test -z "$as_dir" && as_dir=.
11882     for ac_prog in egrep; do
11883     for ac_exec_ext in '' $ac_executable_extensions; do
11884       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11885       as_fn_executable_p "$ac_path_EGREP" || continue
11886 # Check for GNU ac_path_EGREP and select it if it is found.
11887   # Check for GNU $ac_path_EGREP
11888 case `"$ac_path_EGREP" --version 2>&1` in
11889 *GNU*)
11890   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11891 *)
11892   ac_count=0
11893   $as_echo_n 0123456789 >"conftest.in"
11894   while :
11895   do
11896     cat "conftest.in" "conftest.in" >"conftest.tmp"
11897     mv "conftest.tmp" "conftest.in"
11898     cp "conftest.in" "conftest.nl"
11899     $as_echo 'EGREP' >> "conftest.nl"
11900     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11901     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11902     as_fn_arith $ac_count + 1 && ac_count=$as_val
11903     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11904       # Best one so far, save it but keep looking for a better one
11905       ac_cv_path_EGREP="$ac_path_EGREP"
11906       ac_path_EGREP_max=$ac_count
11907     fi
11908     # 10*(2^10) chars as input seems more than enough
11909     test $ac_count -gt 10 && break
11910   done
11911   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11912 esac
11913 
11914       $ac_path_EGREP_found && break 3
11915     done
11916   done
11917   done
11918 IFS=$as_save_IFS
11919   if test -z "$ac_cv_path_EGREP"; then
11920     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11921   fi
11922 else
11923   ac_cv_path_EGREP=$EGREP
11924 fi
11925 
11926    fi
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11929 $as_echo "$ac_cv_path_EGREP" >&6; }
11930  EGREP="$ac_cv_path_EGREP"
11931 
11932 
11933   else
11934     # The variable is set, but is it from the command line or the environment?
11935 
11936     # Try to remove the string !EGREP! from our list.
11937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11939       # If it failed, the variable was not from the command line. Ignore it,
11940       # but warn the user (except for BASH, which is always set by the calling BASH).
11941       if test "xEGREP" != xBASH; then
11942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11943 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11944       fi
11945       # Try to locate tool using the code snippet
11946       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11947 $as_echo_n "checking for egrep... " >&6; }
11948 if ${ac_cv_path_EGREP+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11952    then ac_cv_path_EGREP="$GREP -E"
11953    else
11954      if test -z "$EGREP"; then
11955   ac_path_EGREP_found=false
11956   # Loop through the user's path and test for each of PROGNAME-LIST
11957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11959 do
11960   IFS=$as_save_IFS
11961   test -z "$as_dir" && as_dir=.
11962     for ac_prog in egrep; do
11963     for ac_exec_ext in '' $ac_executable_extensions; do
11964       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11965       as_fn_executable_p "$ac_path_EGREP" || continue
11966 # Check for GNU ac_path_EGREP and select it if it is found.
11967   # Check for GNU $ac_path_EGREP
11968 case `"$ac_path_EGREP" --version 2>&1` in
11969 *GNU*)
11970   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11971 *)
11972   ac_count=0
11973   $as_echo_n 0123456789 >"conftest.in"
11974   while :
11975   do
11976     cat "conftest.in" "conftest.in" >"conftest.tmp"
11977     mv "conftest.tmp" "conftest.in"
11978     cp "conftest.in" "conftest.nl"
11979     $as_echo 'EGREP' >> "conftest.nl"
11980     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11981     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11982     as_fn_arith $ac_count + 1 && ac_count=$as_val
11983     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11984       # Best one so far, save it but keep looking for a better one
11985       ac_cv_path_EGREP="$ac_path_EGREP"
11986       ac_path_EGREP_max=$ac_count
11987     fi
11988     # 10*(2^10) chars as input seems more than enough
11989     test $ac_count -gt 10 && break
11990   done
11991   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11992 esac
11993 
11994       $ac_path_EGREP_found && break 3
11995     done
11996   done
11997   done
11998 IFS=$as_save_IFS
11999   if test -z "$ac_cv_path_EGREP"; then
12000     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12001   fi
12002 else
12003   ac_cv_path_EGREP=$EGREP
12004 fi
12005 
12006    fi
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
12009 $as_echo "$ac_cv_path_EGREP" >&6; }
12010  EGREP="$ac_cv_path_EGREP"
12011 
12012 
12013     else
12014       # If it succeeded, then it was overridden by the user. We will use it
12015       # for the tool.
12016 
12017       # First remove it from the list of overridden variables, so we can test
12018       # for unknown variables in the end.
12019       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12020 
12021       # Check if the provided tool contains a complete path.
12022       tool_specified="$EGREP"
12023       tool_basename="${tool_specified##*/}"
12024       if test "x$tool_basename" = "x$tool_specified"; then
12025         # A command without a complete path is provided, search $PATH.
12026         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12027 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12028         # Extract the first word of "$tool_basename", so it can be a program name with args.
12029 set dummy $tool_basename; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_path_EGREP+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   case $EGREP in
12036   [\\/]* | ?:[\\/]*)
12037   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12038   ;;
12039   *)
12040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043   IFS=$as_save_IFS
12044   test -z "$as_dir" && as_dir=.
12045     for ac_exec_ext in '' $ac_executable_extensions; do
12046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12047     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12049     break 2
12050   fi
12051 done
12052   done
12053 IFS=$as_save_IFS
12054 
12055   ;;
12056 esac
12057 fi
12058 EGREP=$ac_cv_path_EGREP
12059 if test -n "$EGREP"; then
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12061 $as_echo "$EGREP" >&6; }
12062 else
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064 $as_echo "no" >&6; }
12065 fi
12066 
12067 
12068         if test "x$EGREP" = x; then
12069           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12070         fi
12071       else
12072         # Otherwise we believe it is a complete path. Use it as it is.
12073         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12074 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12075         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12076 $as_echo_n "checking for EGREP... " >&6; }
12077         if test ! -x "$tool_specified"; then
12078           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12079 $as_echo "not found" >&6; }
12080           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12081         fi
12082         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12083 $as_echo "$tool_specified" >&6; }
12084       fi
12085     fi
12086   fi
12087 
12088 
12089   if test "x$EGREP" = x; then
12090     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12091   fi
12092 
12093 
12094 
12095 
12096   # Publish this variable in the help.
12097 
12098 
12099   if test "x$FGREP" = x; then
12100     # The variable is not set by user, try to locate tool using the code snippet
12101     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12102 $as_echo_n "checking for fgrep... " >&6; }
12103 if ${ac_cv_path_FGREP+:} false; then :
12104   $as_echo_n "(cached) " >&6
12105 else
12106   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12107    then ac_cv_path_FGREP="$GREP -F"
12108    else
12109      if test -z "$FGREP"; then
12110   ac_path_FGREP_found=false
12111   # Loop through the user's path and test for each of PROGNAME-LIST
12112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12113 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12114 do
12115   IFS=$as_save_IFS
12116   test -z "$as_dir" && as_dir=.
12117     for ac_prog in fgrep; do
12118     for ac_exec_ext in '' $ac_executable_extensions; do
12119       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12120       as_fn_executable_p "$ac_path_FGREP" || continue
12121 # Check for GNU ac_path_FGREP and select it if it is found.
12122   # Check for GNU $ac_path_FGREP
12123 case `"$ac_path_FGREP" --version 2>&1` in
12124 *GNU*)
12125   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12126 *)
12127   ac_count=0
12128   $as_echo_n 0123456789 >"conftest.in"
12129   while :
12130   do
12131     cat "conftest.in" "conftest.in" >"conftest.tmp"
12132     mv "conftest.tmp" "conftest.in"
12133     cp "conftest.in" "conftest.nl"
12134     $as_echo 'FGREP' >> "conftest.nl"
12135     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12136     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12137     as_fn_arith $ac_count + 1 && ac_count=$as_val
12138     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12139       # Best one so far, save it but keep looking for a better one
12140       ac_cv_path_FGREP="$ac_path_FGREP"
12141       ac_path_FGREP_max=$ac_count
12142     fi
12143     # 10*(2^10) chars as input seems more than enough
12144     test $ac_count -gt 10 && break
12145   done
12146   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12147 esac
12148 
12149       $ac_path_FGREP_found && break 3
12150     done
12151   done
12152   done
12153 IFS=$as_save_IFS
12154   if test -z "$ac_cv_path_FGREP"; then
12155     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12156   fi
12157 else
12158   ac_cv_path_FGREP=$FGREP
12159 fi
12160 
12161    fi
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12164 $as_echo "$ac_cv_path_FGREP" >&6; }
12165  FGREP="$ac_cv_path_FGREP"
12166 
12167 
12168   else
12169     # The variable is set, but is it from the command line or the environment?
12170 
12171     # Try to remove the string !FGREP! from our list.
12172     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12173     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12174       # If it failed, the variable was not from the command line. Ignore it,
12175       # but warn the user (except for BASH, which is always set by the calling BASH).
12176       if test "xFGREP" != xBASH; then
12177         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12178 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12179       fi
12180       # Try to locate tool using the code snippet
12181       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12182 $as_echo_n "checking for fgrep... " >&6; }
12183 if ${ac_cv_path_FGREP+:} false; then :
12184   $as_echo_n "(cached) " >&6
12185 else
12186   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12187    then ac_cv_path_FGREP="$GREP -F"
12188    else
12189      if test -z "$FGREP"; then
12190   ac_path_FGREP_found=false
12191   # Loop through the user's path and test for each of PROGNAME-LIST
12192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12194 do
12195   IFS=$as_save_IFS
12196   test -z "$as_dir" && as_dir=.
12197     for ac_prog in fgrep; do
12198     for ac_exec_ext in '' $ac_executable_extensions; do
12199       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12200       as_fn_executable_p "$ac_path_FGREP" || continue
12201 # Check for GNU ac_path_FGREP and select it if it is found.
12202   # Check for GNU $ac_path_FGREP
12203 case `"$ac_path_FGREP" --version 2>&1` in
12204 *GNU*)
12205   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12206 *)
12207   ac_count=0
12208   $as_echo_n 0123456789 >"conftest.in"
12209   while :
12210   do
12211     cat "conftest.in" "conftest.in" >"conftest.tmp"
12212     mv "conftest.tmp" "conftest.in"
12213     cp "conftest.in" "conftest.nl"
12214     $as_echo 'FGREP' >> "conftest.nl"
12215     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12216     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12217     as_fn_arith $ac_count + 1 && ac_count=$as_val
12218     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12219       # Best one so far, save it but keep looking for a better one
12220       ac_cv_path_FGREP="$ac_path_FGREP"
12221       ac_path_FGREP_max=$ac_count
12222     fi
12223     # 10*(2^10) chars as input seems more than enough
12224     test $ac_count -gt 10 && break
12225   done
12226   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12227 esac
12228 
12229       $ac_path_FGREP_found && break 3
12230     done
12231   done
12232   done
12233 IFS=$as_save_IFS
12234   if test -z "$ac_cv_path_FGREP"; then
12235     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12236   fi
12237 else
12238   ac_cv_path_FGREP=$FGREP
12239 fi
12240 
12241    fi
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12244 $as_echo "$ac_cv_path_FGREP" >&6; }
12245  FGREP="$ac_cv_path_FGREP"
12246 
12247 
12248     else
12249       # If it succeeded, then it was overridden by the user. We will use it
12250       # for the tool.
12251 
12252       # First remove it from the list of overridden variables, so we can test
12253       # for unknown variables in the end.
12254       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12255 
12256       # Check if the provided tool contains a complete path.
12257       tool_specified="$FGREP"
12258       tool_basename="${tool_specified##*/}"
12259       if test "x$tool_basename" = "x$tool_specified"; then
12260         # A command without a complete path is provided, search $PATH.
12261         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12262 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12263         # Extract the first word of "$tool_basename", so it can be a program name with args.
12264 set dummy $tool_basename; ac_word=$2
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12266 $as_echo_n "checking for $ac_word... " >&6; }
12267 if ${ac_cv_path_FGREP+:} false; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270   case $FGREP in
12271   [\\/]* | ?:[\\/]*)
12272   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12273   ;;
12274   *)
12275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276 for as_dir in $PATH
12277 do
12278   IFS=$as_save_IFS
12279   test -z "$as_dir" && as_dir=.
12280     for ac_exec_ext in '' $ac_executable_extensions; do
12281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12282     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12284     break 2
12285   fi
12286 done
12287   done
12288 IFS=$as_save_IFS
12289 
12290   ;;
12291 esac
12292 fi
12293 FGREP=$ac_cv_path_FGREP
12294 if test -n "$FGREP"; then
12295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12296 $as_echo "$FGREP" >&6; }
12297 else
12298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12299 $as_echo "no" >&6; }
12300 fi
12301 
12302 
12303         if test "x$FGREP" = x; then
12304           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12305         fi
12306       else
12307         # Otherwise we believe it is a complete path. Use it as it is.
12308         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12309 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12310         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12311 $as_echo_n "checking for FGREP... " >&6; }
12312         if test ! -x "$tool_specified"; then
12313           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12314 $as_echo "not found" >&6; }
12315           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12316         fi
12317         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12318 $as_echo "$tool_specified" >&6; }
12319       fi
12320     fi
12321   fi
12322 
12323 
12324   if test "x$FGREP" = x; then
12325     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12326   fi
12327 
12328 
12329 
12330 
12331   # Publish this variable in the help.
12332 
12333 
12334   if test "x$SED" = x; then
12335     # The variable is not set by user, try to locate tool using the code snippet
12336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12337 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12338 if ${ac_cv_path_SED+:} false; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12342      for ac_i in 1 2 3 4 5 6 7; do
12343        ac_script="$ac_script$as_nl$ac_script"
12344      done
12345      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12346      { ac_script=; unset ac_script;}
12347      if test -z "$SED"; then
12348   ac_path_SED_found=false
12349   # Loop through the user's path and test for each of PROGNAME-LIST
12350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12352 do
12353   IFS=$as_save_IFS
12354   test -z "$as_dir" && as_dir=.
12355     for ac_prog in sed gsed; do
12356     for ac_exec_ext in '' $ac_executable_extensions; do
12357       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12358       as_fn_executable_p "$ac_path_SED" || continue
12359 # Check for GNU ac_path_SED and select it if it is found.
12360   # Check for GNU $ac_path_SED
12361 case `"$ac_path_SED" --version 2>&1` in
12362 *GNU*)
12363   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12364 *)
12365   ac_count=0
12366   $as_echo_n 0123456789 >"conftest.in"
12367   while :
12368   do
12369     cat "conftest.in" "conftest.in" >"conftest.tmp"
12370     mv "conftest.tmp" "conftest.in"
12371     cp "conftest.in" "conftest.nl"
12372     $as_echo '' >> "conftest.nl"
12373     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12374     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12375     as_fn_arith $ac_count + 1 && ac_count=$as_val
12376     if test $ac_count -gt ${ac_path_SED_max-0}; then
12377       # Best one so far, save it but keep looking for a better one
12378       ac_cv_path_SED="$ac_path_SED"
12379       ac_path_SED_max=$ac_count
12380     fi
12381     # 10*(2^10) chars as input seems more than enough
12382     test $ac_count -gt 10 && break
12383   done
12384   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12385 esac
12386 
12387       $ac_path_SED_found && break 3
12388     done
12389   done
12390   done
12391 IFS=$as_save_IFS
12392   if test -z "$ac_cv_path_SED"; then
12393     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12394   fi
12395 else
12396   ac_cv_path_SED=$SED
12397 fi
12398 
12399 fi
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12401 $as_echo "$ac_cv_path_SED" >&6; }
12402  SED="$ac_cv_path_SED"
12403   rm -f conftest.sed
12404 
12405   else
12406     # The variable is set, but is it from the command line or the environment?
12407 
12408     # Try to remove the string !SED! from our list.
12409     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12410     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12411       # If it failed, the variable was not from the command line. Ignore it,
12412       # but warn the user (except for BASH, which is always set by the calling BASH).
12413       if test "xSED" != xBASH; then
12414         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12415 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12416       fi
12417       # Try to locate tool using the code snippet
12418       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12419 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12420 if ${ac_cv_path_SED+:} false; then :
12421   $as_echo_n "(cached) " >&6
12422 else
12423             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12424      for ac_i in 1 2 3 4 5 6 7; do
12425        ac_script="$ac_script$as_nl$ac_script"
12426      done
12427      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12428      { ac_script=; unset ac_script;}
12429      if test -z "$SED"; then
12430   ac_path_SED_found=false
12431   # Loop through the user's path and test for each of PROGNAME-LIST
12432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12434 do
12435   IFS=$as_save_IFS
12436   test -z "$as_dir" && as_dir=.
12437     for ac_prog in sed gsed; do
12438     for ac_exec_ext in '' $ac_executable_extensions; do
12439       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12440       as_fn_executable_p "$ac_path_SED" || continue
12441 # Check for GNU ac_path_SED and select it if it is found.
12442   # Check for GNU $ac_path_SED
12443 case `"$ac_path_SED" --version 2>&1` in
12444 *GNU*)
12445   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12446 *)
12447   ac_count=0
12448   $as_echo_n 0123456789 >"conftest.in"
12449   while :
12450   do
12451     cat "conftest.in" "conftest.in" >"conftest.tmp"
12452     mv "conftest.tmp" "conftest.in"
12453     cp "conftest.in" "conftest.nl"
12454     $as_echo '' >> "conftest.nl"
12455     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12456     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12457     as_fn_arith $ac_count + 1 && ac_count=$as_val
12458     if test $ac_count -gt ${ac_path_SED_max-0}; then
12459       # Best one so far, save it but keep looking for a better one
12460       ac_cv_path_SED="$ac_path_SED"
12461       ac_path_SED_max=$ac_count
12462     fi
12463     # 10*(2^10) chars as input seems more than enough
12464     test $ac_count -gt 10 && break
12465   done
12466   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12467 esac
12468 
12469       $ac_path_SED_found && break 3
12470     done
12471   done
12472   done
12473 IFS=$as_save_IFS
12474   if test -z "$ac_cv_path_SED"; then
12475     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12476   fi
12477 else
12478   ac_cv_path_SED=$SED
12479 fi
12480 
12481 fi
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12483 $as_echo "$ac_cv_path_SED" >&6; }
12484  SED="$ac_cv_path_SED"
12485   rm -f conftest.sed
12486 
12487     else
12488       # If it succeeded, then it was overridden by the user. We will use it
12489       # for the tool.
12490 
12491       # First remove it from the list of overridden variables, so we can test
12492       # for unknown variables in the end.
12493       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12494 
12495       # Check if the provided tool contains a complete path.
12496       tool_specified="$SED"
12497       tool_basename="${tool_specified##*/}"
12498       if test "x$tool_basename" = "x$tool_specified"; then
12499         # A command without a complete path is provided, search $PATH.
12500         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12501 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12502         # Extract the first word of "$tool_basename", so it can be a program name with args.
12503 set dummy $tool_basename; ac_word=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_path_SED+:} false; then :
12507   $as_echo_n "(cached) " >&6
12508 else
12509   case $SED in
12510   [\\/]* | ?:[\\/]*)
12511   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12512   ;;
12513   *)
12514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12515 for as_dir in $PATH
12516 do
12517   IFS=$as_save_IFS
12518   test -z "$as_dir" && as_dir=.
12519     for ac_exec_ext in '' $ac_executable_extensions; do
12520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12521     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12523     break 2
12524   fi
12525 done
12526   done
12527 IFS=$as_save_IFS
12528 
12529   ;;
12530 esac
12531 fi
12532 SED=$ac_cv_path_SED
12533 if test -n "$SED"; then
12534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12535 $as_echo "$SED" >&6; }
12536 else
12537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538 $as_echo "no" >&6; }
12539 fi
12540 
12541 
12542         if test "x$SED" = x; then
12543           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12544         fi
12545       else
12546         # Otherwise we believe it is a complete path. Use it as it is.
12547         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12548 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12549         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12550 $as_echo_n "checking for SED... " >&6; }
12551         if test ! -x "$tool_specified"; then
12552           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12553 $as_echo "not found" >&6; }
12554           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12555         fi
12556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12557 $as_echo "$tool_specified" >&6; }
12558       fi
12559     fi
12560   fi
12561 
12562 
12563   if test "x$SED" = x; then
12564     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12565   fi
12566 
12567 
12568 
12569   # Always force rm.
12570   RM="$RM -f"
12571 
12572   # pwd behaves differently on various platforms and some don't support the -L flag.
12573   # Always use the bash builtin pwd to get uniform behavior.
12574   THEPWDCMD=pwd
12575 
12576   # These are not required on all platforms
12577 
12578 
12579   # Publish this variable in the help.
12580 
12581 
12582   if test "x$CYGPATH" = x; then
12583     # The variable is not set by user, try to locate tool using the code snippet
12584     for ac_prog in cygpath
12585 do
12586   # Extract the first word of "$ac_prog", so it can be a program name with args.
12587 set dummy $ac_prog; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_path_CYGPATH+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   case $CYGPATH in
12594   [\\/]* | ?:[\\/]*)
12595   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12596   ;;
12597   *)
12598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12600 do
12601   IFS=$as_save_IFS
12602   test -z "$as_dir" && as_dir=.
12603     for ac_exec_ext in '' $ac_executable_extensions; do
12604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607     break 2
12608   fi
12609 done
12610   done
12611 IFS=$as_save_IFS
12612 
12613   ;;
12614 esac
12615 fi
12616 CYGPATH=$ac_cv_path_CYGPATH
12617 if test -n "$CYGPATH"; then
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12619 $as_echo "$CYGPATH" >&6; }
12620 else
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624 
12625 
12626   test -n "$CYGPATH" && break
12627 done
12628 
12629   else
12630     # The variable is set, but is it from the command line or the environment?
12631 
12632     # Try to remove the string !CYGPATH! from our list.
12633     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12634     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12635       # If it failed, the variable was not from the command line. Ignore it,
12636       # but warn the user (except for BASH, which is always set by the calling BASH).
12637       if test "xCYGPATH" != xBASH; then
12638         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12639 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12640       fi
12641       # Try to locate tool using the code snippet
12642       for ac_prog in cygpath
12643 do
12644   # Extract the first word of "$ac_prog", so it can be a program name with args.
12645 set dummy $ac_prog; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_path_CYGPATH+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   case $CYGPATH in
12652   [\\/]* | ?:[\\/]*)
12653   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12654   ;;
12655   *)
12656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659   IFS=$as_save_IFS
12660   test -z "$as_dir" && as_dir=.
12661     for ac_exec_ext in '' $ac_executable_extensions; do
12662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665     break 2
12666   fi
12667 done
12668   done
12669 IFS=$as_save_IFS
12670 
12671   ;;
12672 esac
12673 fi
12674 CYGPATH=$ac_cv_path_CYGPATH
12675 if test -n "$CYGPATH"; then
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12677 $as_echo "$CYGPATH" >&6; }
12678 else
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682 
12683 
12684   test -n "$CYGPATH" && break
12685 done
12686 
12687     else
12688       # If it succeeded, then it was overridden by the user. We will use it
12689       # for the tool.
12690 
12691       # First remove it from the list of overridden variables, so we can test
12692       # for unknown variables in the end.
12693       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12694 
12695       # Check if the provided tool contains a complete path.
12696       tool_specified="$CYGPATH"
12697       tool_basename="${tool_specified##*/}"
12698       if test "x$tool_basename" = "x$tool_specified"; then
12699         # A command without a complete path is provided, search $PATH.
12700         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12701 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12702         # Extract the first word of "$tool_basename", so it can be a program name with args.
12703 set dummy $tool_basename; ac_word=$2
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12705 $as_echo_n "checking for $ac_word... " >&6; }
12706 if ${ac_cv_path_CYGPATH+:} false; then :
12707   $as_echo_n "(cached) " >&6
12708 else
12709   case $CYGPATH in
12710   [\\/]* | ?:[\\/]*)
12711   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12712   ;;
12713   *)
12714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12716 do
12717   IFS=$as_save_IFS
12718   test -z "$as_dir" && as_dir=.
12719     for ac_exec_ext in '' $ac_executable_extensions; do
12720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12721     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12723     break 2
12724   fi
12725 done
12726   done
12727 IFS=$as_save_IFS
12728 
12729   ;;
12730 esac
12731 fi
12732 CYGPATH=$ac_cv_path_CYGPATH
12733 if test -n "$CYGPATH"; then
12734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12735 $as_echo "$CYGPATH" >&6; }
12736 else
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 $as_echo "no" >&6; }
12739 fi
12740 
12741 
12742         if test "x$CYGPATH" = x; then
12743           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12744         fi
12745       else
12746         # Otherwise we believe it is a complete path. Use it as it is.
12747         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12748 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12750 $as_echo_n "checking for CYGPATH... " >&6; }
12751         if test ! -x "$tool_specified"; then
12752           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12753 $as_echo "not found" >&6; }
12754           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12755         fi
12756         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12757 $as_echo "$tool_specified" >&6; }
12758       fi
12759     fi
12760   fi
12761 
12762 
12763 
12764 
12765   # Publish this variable in the help.
12766 
12767 
12768   if test "x$READLINK" = x; then
12769     # The variable is not set by user, try to locate tool using the code snippet
12770     for ac_prog in greadlink readlink
12771 do
12772   # Extract the first word of "$ac_prog", so it can be a program name with args.
12773 set dummy $ac_prog; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_READLINK+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   case $READLINK in
12780   [\\/]* | ?:[\\/]*)
12781   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12782   ;;
12783   *)
12784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793     break 2
12794   fi
12795 done
12796   done
12797 IFS=$as_save_IFS
12798 
12799   ;;
12800 esac
12801 fi
12802 READLINK=$ac_cv_path_READLINK
12803 if test -n "$READLINK"; then
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12805 $as_echo "$READLINK" >&6; }
12806 else
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810 
12811 
12812   test -n "$READLINK" && break
12813 done
12814 
12815   else
12816     # The variable is set, but is it from the command line or the environment?
12817 
12818     # Try to remove the string !READLINK! from our list.
12819     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12820     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12821       # If it failed, the variable was not from the command line. Ignore it,
12822       # but warn the user (except for BASH, which is always set by the calling BASH).
12823       if test "xREADLINK" != xBASH; then
12824         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12825 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12826       fi
12827       # Try to locate tool using the code snippet
12828       for ac_prog in greadlink readlink
12829 do
12830   # Extract the first word of "$ac_prog", so it can be a program name with args.
12831 set dummy $ac_prog; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_READLINK+:} false; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $READLINK in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856 
12857   ;;
12858 esac
12859 fi
12860 READLINK=$ac_cv_path_READLINK
12861 if test -n "$READLINK"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12863 $as_echo "$READLINK" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868 
12869 
12870   test -n "$READLINK" && break
12871 done
12872 
12873     else
12874       # If it succeeded, then it was overridden by the user. We will use it
12875       # for the tool.
12876 
12877       # First remove it from the list of overridden variables, so we can test
12878       # for unknown variables in the end.
12879       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12880 
12881       # Check if the provided tool contains a complete path.
12882       tool_specified="$READLINK"
12883       tool_basename="${tool_specified##*/}"
12884       if test "x$tool_basename" = "x$tool_specified"; then
12885         # A command without a complete path is provided, search $PATH.
12886         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12887 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12888         # Extract the first word of "$tool_basename", so it can be a program name with args.
12889 set dummy $tool_basename; ac_word=$2
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12891 $as_echo_n "checking for $ac_word... " >&6; }
12892 if ${ac_cv_path_READLINK+:} false; then :
12893   $as_echo_n "(cached) " >&6
12894 else
12895   case $READLINK in
12896   [\\/]* | ?:[\\/]*)
12897   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12898   ;;
12899   *)
12900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12901 for as_dir in $PATH
12902 do
12903   IFS=$as_save_IFS
12904   test -z "$as_dir" && as_dir=.
12905     for ac_exec_ext in '' $ac_executable_extensions; do
12906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12907     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12909     break 2
12910   fi
12911 done
12912   done
12913 IFS=$as_save_IFS
12914 
12915   ;;
12916 esac
12917 fi
12918 READLINK=$ac_cv_path_READLINK
12919 if test -n "$READLINK"; then
12920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12921 $as_echo "$READLINK" >&6; }
12922 else
12923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12924 $as_echo "no" >&6; }
12925 fi
12926 
12927 
12928         if test "x$READLINK" = x; then
12929           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12930         fi
12931       else
12932         # Otherwise we believe it is a complete path. Use it as it is.
12933         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12934 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12935         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12936 $as_echo_n "checking for READLINK... " >&6; }
12937         if test ! -x "$tool_specified"; then
12938           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12939 $as_echo "not found" >&6; }
12940           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12941         fi
12942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12943 $as_echo "$tool_specified" >&6; }
12944       fi
12945     fi
12946   fi
12947 
12948 
12949 
12950 
12951   # Publish this variable in the help.
12952 
12953 
12954   if test "x$DF" = x; then
12955     # The variable is not set by user, try to locate tool using the code snippet
12956     for ac_prog in df
12957 do
12958   # Extract the first word of "$ac_prog", so it can be a program name with args.
12959 set dummy $ac_prog; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_path_DF+:} false; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   case $DF in
12966   [\\/]* | ?:[\\/]*)
12967   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12968   ;;
12969   *)
12970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12972 do
12973   IFS=$as_save_IFS
12974   test -z "$as_dir" && as_dir=.
12975     for ac_exec_ext in '' $ac_executable_extensions; do
12976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979     break 2
12980   fi
12981 done
12982   done
12983 IFS=$as_save_IFS
12984 
12985   ;;
12986 esac
12987 fi
12988 DF=$ac_cv_path_DF
12989 if test -n "$DF"; then
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12991 $as_echo "$DF" >&6; }
12992 else
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996 
12997 
12998   test -n "$DF" && break
12999 done
13000 
13001   else
13002     # The variable is set, but is it from the command line or the environment?
13003 
13004     # Try to remove the string !DF! from our list.
13005     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
13006     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13007       # If it failed, the variable was not from the command line. Ignore it,
13008       # but warn the user (except for BASH, which is always set by the calling BASH).
13009       if test "xDF" != xBASH; then
13010         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
13011 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
13012       fi
13013       # Try to locate tool using the code snippet
13014       for ac_prog in df
13015 do
13016   # Extract the first word of "$ac_prog", so it can be a program name with args.
13017 set dummy $ac_prog; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if ${ac_cv_path_DF+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   case $DF in
13024   [\\/]* | ?:[\\/]*)
13025   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13026   ;;
13027   *)
13028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031   IFS=$as_save_IFS
13032   test -z "$as_dir" && as_dir=.
13033     for ac_exec_ext in '' $ac_executable_extensions; do
13034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13035     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037     break 2
13038   fi
13039 done
13040   done
13041 IFS=$as_save_IFS
13042 
13043   ;;
13044 esac
13045 fi
13046 DF=$ac_cv_path_DF
13047 if test -n "$DF"; then
13048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13049 $as_echo "$DF" >&6; }
13050 else
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 fi
13054 
13055 
13056   test -n "$DF" && break
13057 done
13058 
13059     else
13060       # If it succeeded, then it was overridden by the user. We will use it
13061       # for the tool.
13062 
13063       # First remove it from the list of overridden variables, so we can test
13064       # for unknown variables in the end.
13065       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13066 
13067       # Check if the provided tool contains a complete path.
13068       tool_specified="$DF"
13069       tool_basename="${tool_specified##*/}"
13070       if test "x$tool_basename" = "x$tool_specified"; then
13071         # A command without a complete path is provided, search $PATH.
13072         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13073 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13074         # Extract the first word of "$tool_basename", so it can be a program name with args.
13075 set dummy $tool_basename; ac_word=$2
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13077 $as_echo_n "checking for $ac_word... " >&6; }
13078 if ${ac_cv_path_DF+:} false; then :
13079   $as_echo_n "(cached) " >&6
13080 else
13081   case $DF in
13082   [\\/]* | ?:[\\/]*)
13083   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13084   ;;
13085   *)
13086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13088 do
13089   IFS=$as_save_IFS
13090   test -z "$as_dir" && as_dir=.
13091     for ac_exec_ext in '' $ac_executable_extensions; do
13092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13095     break 2
13096   fi
13097 done
13098   done
13099 IFS=$as_save_IFS
13100 
13101   ;;
13102 esac
13103 fi
13104 DF=$ac_cv_path_DF
13105 if test -n "$DF"; then
13106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13107 $as_echo "$DF" >&6; }
13108 else
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111 fi
13112 
13113 
13114         if test "x$DF" = x; then
13115           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13116         fi
13117       else
13118         # Otherwise we believe it is a complete path. Use it as it is.
13119         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13120 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13122 $as_echo_n "checking for DF... " >&6; }
13123         if test ! -x "$tool_specified"; then
13124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13125 $as_echo "not found" >&6; }
13126           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13127         fi
13128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13129 $as_echo "$tool_specified" >&6; }
13130       fi
13131     fi
13132   fi
13133 
13134 
13135 
13136 
13137   # Publish this variable in the help.
13138 
13139 
13140   if test "x$SETFILE" = x; then
13141     # The variable is not set by user, try to locate tool using the code snippet
13142     for ac_prog in SetFile
13143 do
13144   # Extract the first word of "$ac_prog", so it can be a program name with args.
13145 set dummy $ac_prog; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if ${ac_cv_path_SETFILE+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151   case $SETFILE in
13152   [\\/]* | ?:[\\/]*)
13153   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13154   ;;
13155   *)
13156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159   IFS=$as_save_IFS
13160   test -z "$as_dir" && as_dir=.
13161     for ac_exec_ext in '' $ac_executable_extensions; do
13162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165     break 2
13166   fi
13167 done
13168   done
13169 IFS=$as_save_IFS
13170 
13171   ;;
13172 esac
13173 fi
13174 SETFILE=$ac_cv_path_SETFILE
13175 if test -n "$SETFILE"; then
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13177 $as_echo "$SETFILE" >&6; }
13178 else
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182 
13183 
13184   test -n "$SETFILE" && break
13185 done
13186 
13187   else
13188     # The variable is set, but is it from the command line or the environment?
13189 
13190     # Try to remove the string !SETFILE! from our list.
13191     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13192     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13193       # If it failed, the variable was not from the command line. Ignore it,
13194       # but warn the user (except for BASH, which is always set by the calling BASH).
13195       if test "xSETFILE" != xBASH; then
13196         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13197 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13198       fi
13199       # Try to locate tool using the code snippet
13200       for ac_prog in SetFile
13201 do
13202   # Extract the first word of "$ac_prog", so it can be a program name with args.
13203 set dummy $ac_prog; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_SETFILE+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   case $SETFILE in
13210   [\\/]* | ?:[\\/]*)
13211   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13212   ;;
13213   *)
13214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217   IFS=$as_save_IFS
13218   test -z "$as_dir" && as_dir=.
13219     for ac_exec_ext in '' $ac_executable_extensions; do
13220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223     break 2
13224   fi
13225 done
13226   done
13227 IFS=$as_save_IFS
13228 
13229   ;;
13230 esac
13231 fi
13232 SETFILE=$ac_cv_path_SETFILE
13233 if test -n "$SETFILE"; then
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13235 $as_echo "$SETFILE" >&6; }
13236 else
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240 
13241 
13242   test -n "$SETFILE" && break
13243 done
13244 
13245     else
13246       # If it succeeded, then it was overridden by the user. We will use it
13247       # for the tool.
13248 
13249       # First remove it from the list of overridden variables, so we can test
13250       # for unknown variables in the end.
13251       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13252 
13253       # Check if the provided tool contains a complete path.
13254       tool_specified="$SETFILE"
13255       tool_basename="${tool_specified##*/}"
13256       if test "x$tool_basename" = "x$tool_specified"; then
13257         # A command without a complete path is provided, search $PATH.
13258         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13259 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13260         # Extract the first word of "$tool_basename", so it can be a program name with args.
13261 set dummy $tool_basename; ac_word=$2
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13263 $as_echo_n "checking for $ac_word... " >&6; }
13264 if ${ac_cv_path_SETFILE+:} false; then :
13265   $as_echo_n "(cached) " >&6
13266 else
13267   case $SETFILE in
13268   [\\/]* | ?:[\\/]*)
13269   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13270   ;;
13271   *)
13272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273 for as_dir in $PATH
13274 do
13275   IFS=$as_save_IFS
13276   test -z "$as_dir" && as_dir=.
13277     for ac_exec_ext in '' $ac_executable_extensions; do
13278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13279     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13281     break 2
13282   fi
13283 done
13284   done
13285 IFS=$as_save_IFS
13286 
13287   ;;
13288 esac
13289 fi
13290 SETFILE=$ac_cv_path_SETFILE
13291 if test -n "$SETFILE"; then
13292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13293 $as_echo "$SETFILE" >&6; }
13294 else
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13297 fi
13298 
13299 
13300         if test "x$SETFILE" = x; then
13301           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13302         fi
13303       else
13304         # Otherwise we believe it is a complete path. Use it as it is.
13305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13306 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13307         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13308 $as_echo_n "checking for SETFILE... " >&6; }
13309         if test ! -x "$tool_specified"; then
13310           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13311 $as_echo "not found" >&6; }
13312           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13313         fi
13314         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13315 $as_echo "$tool_specified" >&6; }
13316       fi
13317     fi
13318   fi
13319 
13320 
13321 
13322 
13323 # Now we can determine OpenJDK build and target platforms. This is required to
13324 # have early on.
13325 # Make sure we can run config.sub.
13326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13327   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13328 
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13330 $as_echo_n "checking build system type... " >&6; }
13331 if ${ac_cv_build+:} false; then :
13332   $as_echo_n "(cached) " >&6
13333 else
13334   ac_build_alias=$build_alias
13335 test "x$ac_build_alias" = x &&
13336   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13337 test "x$ac_build_alias" = x &&
13338   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13340   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13341 
13342 fi
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13344 $as_echo "$ac_cv_build" >&6; }
13345 case $ac_cv_build in
13346 *-*-*) ;;
13347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13348 esac
13349 build=$ac_cv_build
13350 ac_save_IFS=$IFS; IFS='-'
13351 set x $ac_cv_build
13352 shift
13353 build_cpu=$1
13354 build_vendor=$2
13355 shift; shift
13356 # Remember, the first character of IFS is used to create $*,
13357 # except with old shells:
13358 build_os=$*
13359 IFS=$ac_save_IFS
13360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13361 
13362 
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13364 $as_echo_n "checking host system type... " >&6; }
13365 if ${ac_cv_host+:} false; then :
13366   $as_echo_n "(cached) " >&6
13367 else
13368   if test "x$host_alias" = x; then
13369   ac_cv_host=$ac_cv_build
13370 else
13371   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13372     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13373 fi
13374 
13375 fi
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13377 $as_echo "$ac_cv_host" >&6; }
13378 case $ac_cv_host in
13379 *-*-*) ;;
13380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13381 esac
13382 host=$ac_cv_host
13383 ac_save_IFS=$IFS; IFS='-'
13384 set x $ac_cv_host
13385 shift
13386 host_cpu=$1
13387 host_vendor=$2
13388 shift; shift
13389 # Remember, the first character of IFS is used to create $*,
13390 # except with old shells:
13391 host_os=$*
13392 IFS=$ac_save_IFS
13393 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13394 
13395 
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13397 $as_echo_n "checking target system type... " >&6; }
13398 if ${ac_cv_target+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   if test "x$target_alias" = x; then
13402   ac_cv_target=$ac_cv_host
13403 else
13404   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13405     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13406 fi
13407 
13408 fi
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13410 $as_echo "$ac_cv_target" >&6; }
13411 case $ac_cv_target in
13412 *-*-*) ;;
13413 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13414 esac
13415 target=$ac_cv_target
13416 ac_save_IFS=$IFS; IFS='-'
13417 set x $ac_cv_target
13418 shift
13419 target_cpu=$1
13420 target_vendor=$2
13421 shift; shift
13422 # Remember, the first character of IFS is used to create $*,
13423 # except with old shells:
13424 target_os=$*
13425 IFS=$ac_save_IFS
13426 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13427 
13428 
13429 # The aliases save the names the user supplied, while $host etc.
13430 # will get canonicalized.
13431 test -n "$target_alias" &&
13432   test "$program_prefix$program_suffix$program_transform_name" = \
13433     NONENONEs,x,x, &&
13434   program_prefix=${target_alias}-
13435 
13436   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13437   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13438   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13439   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13440   # to use the configure naming style.
13441 
13442 
13443 
13444 
13445 
13446   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13447   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13448   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13449   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13450   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13451   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13452 
13453 
13454 
13455   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13456 
13457   case "$build_os" in
13458     *linux*)
13459       VAR_OS=linux
13460       VAR_OS_API=posix
13461       VAR_OS_ENV=linux
13462       ;;
13463     *solaris*)
13464       VAR_OS=solaris
13465       VAR_OS_API=posix
13466       VAR_OS_ENV=solaris
13467       ;;
13468     *darwin*)
13469       VAR_OS=macosx
13470       VAR_OS_API=posix
13471       VAR_OS_ENV=macosx
13472       ;;
13473     *bsd*)
13474       VAR_OS=bsd
13475       VAR_OS_API=posix
13476       VAR_OS_ENV=bsd
13477       ;;
13478     *cygwin*)
13479       VAR_OS=windows
13480       VAR_OS_API=winapi
13481       VAR_OS_ENV=windows.cygwin
13482       ;;
13483     *mingw*)
13484       VAR_OS=windows
13485       VAR_OS_API=winapi
13486       VAR_OS_ENV=windows.msys
13487       ;;
13488     *aix*)
13489       VAR_OS=aix
13490       VAR_OS_API=posix
13491       VAR_OS_ENV=aix
13492       ;;
13493     *)
13494       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13495       ;;
13496   esac
13497 
13498 
13499   # First argument is the cpu name from the trip/quad
13500   case "$build_cpu" in
13501     x86_64)
13502       VAR_CPU=x86_64
13503       VAR_CPU_ARCH=x86
13504       VAR_CPU_BITS=64
13505       VAR_CPU_ENDIAN=little
13506       ;;
13507     i?86)
13508       VAR_CPU=x86
13509       VAR_CPU_ARCH=x86
13510       VAR_CPU_BITS=32
13511       VAR_CPU_ENDIAN=little
13512       ;;
13513     arm*)
13514       VAR_CPU=arm
13515       VAR_CPU_ARCH=arm
13516       VAR_CPU_BITS=32
13517       VAR_CPU_ENDIAN=little
13518       ;;
13519     powerpc)
13520       VAR_CPU=ppc
13521       VAR_CPU_ARCH=ppc
13522       VAR_CPU_BITS=32
13523       VAR_CPU_ENDIAN=big
13524       ;;
13525     powerpc64)
13526       VAR_CPU=ppc64
13527       VAR_CPU_ARCH=ppc
13528       VAR_CPU_BITS=64
13529       VAR_CPU_ENDIAN=big
13530       ;;
13531     powerpc64le)
13532       VAR_CPU=ppc64
13533       VAR_CPU_ARCH=ppc
13534       VAR_CPU_BITS=64
13535       VAR_CPU_ENDIAN=little
13536       ;;
13537     s390)
13538       VAR_CPU=s390
13539       VAR_CPU_ARCH=s390
13540       VAR_CPU_BITS=32
13541       VAR_CPU_ENDIAN=big
13542       ;;
13543     s390x)
13544       VAR_CPU=s390x
13545       VAR_CPU_ARCH=s390
13546       VAR_CPU_BITS=64
13547       VAR_CPU_ENDIAN=big
13548       ;;
13549     sparc)
13550       VAR_CPU=sparc
13551       VAR_CPU_ARCH=sparc
13552       VAR_CPU_BITS=32
13553       VAR_CPU_ENDIAN=big
13554       ;;
13555     sparcv9)
13556       VAR_CPU=sparcv9
13557       VAR_CPU_ARCH=sparc
13558       VAR_CPU_BITS=64
13559       VAR_CPU_ENDIAN=big
13560       ;;
13561     *)
13562       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13563       ;;
13564   esac
13565 
13566   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13567   OPENJDK_BUILD_OS="$VAR_OS"
13568   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13569   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13570   OPENJDK_BUILD_CPU="$VAR_CPU"
13571   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13572   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13573   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13574 
13575 
13576 
13577 
13578 
13579 
13580 
13581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13582 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13584 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13585 
13586   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13587 
13588   case "$host_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 $host_os" "$LINENO" 5
13626       ;;
13627   esac
13628 
13629 
13630   # First argument is the cpu name from the trip/quad
13631   case "$host_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     powerpc)
13651       VAR_CPU=ppc
13652       VAR_CPU_ARCH=ppc
13653       VAR_CPU_BITS=32
13654       VAR_CPU_ENDIAN=big
13655       ;;
13656     powerpc64)
13657       VAR_CPU=ppc64
13658       VAR_CPU_ARCH=ppc
13659       VAR_CPU_BITS=64
13660       VAR_CPU_ENDIAN=big
13661       ;;
13662     powerpc64le)
13663       VAR_CPU=ppc64
13664       VAR_CPU_ARCH=ppc
13665       VAR_CPU_BITS=64
13666       VAR_CPU_ENDIAN=little
13667       ;;
13668     s390)
13669       VAR_CPU=s390
13670       VAR_CPU_ARCH=s390
13671       VAR_CPU_BITS=32
13672       VAR_CPU_ENDIAN=big
13673       ;;
13674     s390x)
13675       VAR_CPU=s390x
13676       VAR_CPU_ARCH=s390
13677       VAR_CPU_BITS=64
13678       VAR_CPU_ENDIAN=big
13679       ;;
13680     sparc)
13681       VAR_CPU=sparc
13682       VAR_CPU_ARCH=sparc
13683       VAR_CPU_BITS=32
13684       VAR_CPU_ENDIAN=big
13685       ;;
13686     sparcv9)
13687       VAR_CPU=sparcv9
13688       VAR_CPU_ARCH=sparc
13689       VAR_CPU_BITS=64
13690       VAR_CPU_ENDIAN=big
13691       ;;
13692     *)
13693       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13694       ;;
13695   esac
13696 
13697   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13698   OPENJDK_TARGET_OS="$VAR_OS"
13699   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13700   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13701   OPENJDK_TARGET_CPU="$VAR_CPU"
13702   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13703   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13704   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13705 
13706 
13707 
13708 
13709 
13710 
13711 
13712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13713 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13715 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13716 
13717 
13718 
13719 # Check whether --with-target-bits was given.
13720 if test "${with_target_bits+set}" = set; then :
13721   withval=$with_target_bits;
13722 fi
13723 
13724 
13725   # We have three types of compiles:
13726   # native  == normal compilation, target system == build system
13727   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13728   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13729   #
13730   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13731     # We're doing a proper cross-compilation
13732     COMPILE_TYPE="cross"
13733   else
13734     COMPILE_TYPE="native"
13735   fi
13736 
13737   if test "x$with_target_bits" != x; then
13738     if test "x$COMPILE_TYPE" = "xcross"; then
13739       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13740     fi
13741 
13742     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13743       # A reduced build is requested
13744       COMPILE_TYPE="reduced"
13745       OPENJDK_TARGET_CPU_BITS=32
13746       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13747         OPENJDK_TARGET_CPU=x86
13748       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13749         OPENJDK_TARGET_CPU=sparc
13750       else
13751         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13752       fi
13753     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13754       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
13755     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13756       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13757 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13758     else
13759       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13760     fi
13761   fi
13762 
13763 
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13765 $as_echo_n "checking compilation type... " >&6; }
13766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13767 $as_echo "$COMPILE_TYPE" >&6; }
13768 
13769 
13770   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13771     REQUIRED_OS_NAME=SunOS
13772     REQUIRED_OS_VERSION=5.10
13773   fi
13774   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13775     REQUIRED_OS_NAME=Linux
13776     REQUIRED_OS_VERSION=2.6
13777   fi
13778   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13779     REQUIRED_OS_NAME=Windows
13780     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13781       REQUIRED_OS_VERSION=5.2
13782     else
13783       REQUIRED_OS_VERSION=5.1
13784     fi
13785   fi
13786   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13787     REQUIRED_OS_NAME=Darwin
13788     REQUIRED_OS_VERSION=11.2
13789   fi
13790 
13791 
13792 
13793 
13794 
13795   # Also store the legacy naming of the cpu.
13796   # Ie i586 and amd64 instead of x86 and x86_64
13797   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13798   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13799     OPENJDK_TARGET_CPU_LEGACY="i586"
13800   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13801     # On all platforms except MacOSX replace x86_64 with amd64.
13802     OPENJDK_TARGET_CPU_LEGACY="amd64"
13803   fi
13804 
13805 
13806   # And the second legacy naming of the cpu.
13807   # Ie i386 and amd64 instead of x86 and x86_64.
13808   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13809   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13810     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13811   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13812     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13813   fi
13814 
13815 
13816   # This is the name of the cpu (but using i386 and amd64 instead of
13817   # x86 and x86_64, respectively), preceeded by a /, to be used when
13818   # locating libraries. On macosx, it's empty, though.
13819   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13820   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13821     OPENJDK_TARGET_CPU_LIBDIR=""
13822   fi
13823 
13824 
13825   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13826   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13827   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13828   OPENJDK_TARGET_CPU_ISADIR=""
13829   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13830     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13831       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13832     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13833       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13834     fi
13835   fi
13836 
13837 
13838   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13839   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13840   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13841     # On linux only, we replace x86 with i386.
13842     OPENJDK_TARGET_CPU_OSARCH="i386"
13843   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13844     # On all platforms except macosx, we replace x86_64 with amd64.
13845     OPENJDK_TARGET_CPU_OSARCH="amd64"
13846   fi
13847 
13848 
13849   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13850   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13851     OPENJDK_TARGET_CPU_JLI="i386"
13852   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13853     # On all platforms except macosx, we replace x86_64 with amd64.
13854     OPENJDK_TARGET_CPU_JLI="amd64"
13855   fi
13856   # Now setup the -D flags for building libjli.
13857   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13858   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13859     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13860       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13861     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13862       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13863     fi
13864   fi
13865 
13866 
13867   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13868   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13869     OPENJDK_TARGET_OS_API_DIR="solaris"
13870   fi
13871   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13872     OPENJDK_TARGET_OS_API_DIR="windows"
13873   fi
13874 
13875 
13876   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13877       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13878   else
13879       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13880   fi
13881 
13882 
13883   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13884     A_LP64="LP64:="
13885     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13886     # unpack200.exe
13887     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13888       ADD_LP64="-D_LP64=1"
13889     fi
13890   fi
13891   LP64=$A_LP64
13892 
13893 
13894   if test "x$COMPILE_TYPE" = "xcross"; then
13895     # FIXME: ... or should this include reduced builds..?
13896     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13897   else
13898     DEFINE_CROSS_COMPILE_ARCH=""
13899   fi
13900 
13901 
13902   # ZERO_ARCHDEF is used to enable architecture-specific code
13903   case "${OPENJDK_TARGET_CPU}" in
13904     ppc*)    ZERO_ARCHDEF=PPC   ;;
13905     s390*)   ZERO_ARCHDEF=S390  ;;
13906     sparc*)  ZERO_ARCHDEF=SPARC ;;
13907     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13908     x86)     ZERO_ARCHDEF=IA32  ;;
13909     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13910   esac
13911 
13912 
13913 
13914 
13915 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13916 
13917   # Save the current directory this script was started from
13918   CURDIR="$PWD"
13919 
13920   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13921     PATH_SEP=";"
13922 
13923   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13924   if test $SRC_ROOT_LENGTH -gt 100; then
13925     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13926   fi
13927 
13928   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13930 $as_echo_n "checking cygwin release... " >&6; }
13931     CYGWIN_VERSION=`$UNAME -r`
13932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13933 $as_echo "$CYGWIN_VERSION" >&6; }
13934     WINDOWS_ENV_VENDOR='cygwin'
13935     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13936 
13937     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13938     if test "x$CYGWIN_VERSION_OK" = x; then
13939       { $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
13940 $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;}
13941       as_fn_error $? "Cannot continue" "$LINENO" 5
13942     fi
13943     if test "x$CYGPATH" = x; then
13944       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13945     fi
13946     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13947 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13948     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13949     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13950     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13951     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13952     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13953 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13954     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13955     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13956     if test "x$test_cygdrive_prefix" = x; then
13957       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13958     fi
13959   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13961 $as_echo_n "checking msys release... " >&6; }
13962     MSYS_VERSION=`$UNAME -r`
13963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13964 $as_echo "$MSYS_VERSION" >&6; }
13965 
13966     WINDOWS_ENV_VENDOR='msys'
13967     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13968 
13969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13970 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13971     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13972     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13973 
13974   windows_path="$MSYS_ROOT_PATH"
13975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13976     unix_path=`$CYGPATH -u "$windows_path"`
13977     MSYS_ROOT_PATH="$unix_path"
13978   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13979     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13980     MSYS_ROOT_PATH="$unix_path"
13981   fi
13982 
13983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13984 $as_echo "$MSYS_ROOT_PATH" >&6; }
13985     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13986   else
13987     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13988   fi
13989 
13990   # Test if windows or unix (cygwin/msys) find is first in path.
13991   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13992 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13993   FIND_BINARY_OUTPUT=`find --version 2>&1`
13994   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13995     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13996 $as_echo "unix style" >&6; }
13997   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13998     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13999 $as_echo "Windows" >&6; }
14000     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14001 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14002     { $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
14003 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14004     as_fn_error $? "Cannot continue" "$LINENO" 5
14005   else
14006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14007 $as_echo "unknown" >&6; }
14008     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14009 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14010   fi
14011 
14012   else
14013     PATH_SEP=":"
14014   fi
14015 
14016 
14017   # We get the top-level directory from the supporting wrappers.
14018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14019 $as_echo_n "checking for top-level directory... " >&6; }
14020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14021 $as_echo "$TOPDIR" >&6; }
14022 
14023 
14024   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14025 
14026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14027 
14028   # Input might be given as Windows format, start by converting to
14029   # unix format.
14030   path="$CURDIR"
14031   new_path=`$CYGPATH -u "$path"`
14032 
14033   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14034   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14035   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14036   # "foo.exe" is OK but "foo" is an error.
14037   #
14038   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14039   # It is also a way to make sure we got the proper file name for the real test later on.
14040   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14041   if test "x$test_shortpath" = x; then
14042     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14043 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14044     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14045   fi
14046 
14047   # Call helper function which possibly converts this using DOS-style short mode.
14048   # If so, the updated path is stored in $new_path.
14049 
14050   input_path="$new_path"
14051   # Check if we need to convert this using DOS-style short mode. If the path
14052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14053   # take no chances and rewrite it.
14054   # Note: m4 eats our [], so we need to use [ and ] instead.
14055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14056   if test "x$has_forbidden_chars" != x; then
14057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14061       # Going to short mode and back again did indeed matter. Since short mode is
14062       # case insensitive, let's make it lowercase to improve readability.
14063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14064       # Now convert it back to Unix-stile (cygpath)
14065       input_path=`$CYGPATH -u "$shortmode_path"`
14066       new_path="$input_path"
14067     fi
14068   fi
14069 
14070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14071   if test "x$test_cygdrive_prefix" = x; then
14072     # As a simple fix, exclude /usr/bin since it's not a real path.
14073     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14075       # a path prefixed by /cygdrive for fixpath to work.
14076       new_path="$CYGWIN_ROOT_PATH$input_path"
14077     fi
14078   fi
14079 
14080 
14081   if test "x$path" != "x$new_path"; then
14082     CURDIR="$new_path"
14083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14084 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14085   fi
14086 
14087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14088 
14089   path="$CURDIR"
14090   has_colon=`$ECHO $path | $GREP ^.:`
14091   new_path="$path"
14092   if test "x$has_colon" = x; then
14093     # Not in mixed or Windows style, start by that.
14094     new_path=`cmd //c echo $path`
14095   fi
14096 
14097 
14098   input_path="$new_path"
14099   # Check if we need to convert this using DOS-style short mode. If the path
14100   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14101   # take no chances and rewrite it.
14102   # Note: m4 eats our [], so we need to use [ and ] instead.
14103   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14104   if test "x$has_forbidden_chars" != x; then
14105     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14106     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14107   fi
14108 
14109 
14110   windows_path="$new_path"
14111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14112     unix_path=`$CYGPATH -u "$windows_path"`
14113     new_path="$unix_path"
14114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14116     new_path="$unix_path"
14117   fi
14118 
14119   if test "x$path" != "x$new_path"; then
14120     CURDIR="$new_path"
14121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14122 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14123   fi
14124 
14125   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14126   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14127 
14128   else
14129     # We're on a posix platform. Hooray! :)
14130     path="$CURDIR"
14131     has_space=`$ECHO "$path" | $GREP " "`
14132     if test "x$has_space" != x; then
14133       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14134 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14135       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14136     fi
14137 
14138     # Use eval to expand a potential ~
14139     eval path="$path"
14140     if test ! -f "$path" && test ! -d "$path"; then
14141       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14142     fi
14143 
14144     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14145   fi
14146 
14147 
14148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14149 
14150   # Input might be given as Windows format, start by converting to
14151   # unix format.
14152   path="$TOPDIR"
14153   new_path=`$CYGPATH -u "$path"`
14154 
14155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14158   # "foo.exe" is OK but "foo" is an error.
14159   #
14160   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14161   # It is also a way to make sure we got the proper file name for the real test later on.
14162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14163   if test "x$test_shortpath" = x; then
14164     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14165 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14166     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14167   fi
14168 
14169   # Call helper function which possibly converts this using DOS-style short mode.
14170   # If so, the updated path is stored in $new_path.
14171 
14172   input_path="$new_path"
14173   # Check if we need to convert this using DOS-style short mode. If the path
14174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14175   # take no chances and rewrite it.
14176   # Note: m4 eats our [], so we need to use [ and ] instead.
14177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14178   if test "x$has_forbidden_chars" != x; then
14179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14180     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14181     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14182     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14183       # Going to short mode and back again did indeed matter. Since short mode is
14184       # case insensitive, let's make it lowercase to improve readability.
14185       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14186       # Now convert it back to Unix-stile (cygpath)
14187       input_path=`$CYGPATH -u "$shortmode_path"`
14188       new_path="$input_path"
14189     fi
14190   fi
14191 
14192   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14193   if test "x$test_cygdrive_prefix" = x; then
14194     # As a simple fix, exclude /usr/bin since it's not a real path.
14195     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14196       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14197       # a path prefixed by /cygdrive for fixpath to work.
14198       new_path="$CYGWIN_ROOT_PATH$input_path"
14199     fi
14200   fi
14201 
14202 
14203   if test "x$path" != "x$new_path"; then
14204     TOPDIR="$new_path"
14205     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14206 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14207   fi
14208 
14209   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14210 
14211   path="$TOPDIR"
14212   has_colon=`$ECHO $path | $GREP ^.:`
14213   new_path="$path"
14214   if test "x$has_colon" = x; then
14215     # Not in mixed or Windows style, start by that.
14216     new_path=`cmd //c echo $path`
14217   fi
14218 
14219 
14220   input_path="$new_path"
14221   # Check if we need to convert this using DOS-style short mode. If the path
14222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14223   # take no chances and rewrite it.
14224   # Note: m4 eats our [], so we need to use [ and ] instead.
14225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14226   if test "x$has_forbidden_chars" != x; then
14227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14228     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14229   fi
14230 
14231 
14232   windows_path="$new_path"
14233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14234     unix_path=`$CYGPATH -u "$windows_path"`
14235     new_path="$unix_path"
14236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14237     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14238     new_path="$unix_path"
14239   fi
14240 
14241   if test "x$path" != "x$new_path"; then
14242     TOPDIR="$new_path"
14243     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14244 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14245   fi
14246 
14247   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14248   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14249 
14250   else
14251     # We're on a posix platform. Hooray! :)
14252     path="$TOPDIR"
14253     has_space=`$ECHO "$path" | $GREP " "`
14254     if test "x$has_space" != x; then
14255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14256 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14257       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14258     fi
14259 
14260     # Use eval to expand a potential ~
14261     eval path="$path"
14262     if test ! -f "$path" && test ! -d "$path"; then
14263       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14264     fi
14265 
14266     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14267   fi
14268 
14269   # SRC_ROOT is a traditional alias for TOPDIR.
14270   SRC_ROOT=$TOPDIR
14271 
14272   # Locate the directory of this script.
14273   AUTOCONF_DIR=$TOPDIR/common/autoconf
14274 
14275 
14276   # Setup default logging of stdout and stderr to build.log in the output root.
14277   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14278   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14279   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14280 
14281 
14282 
14283 
14284 
14285 # Check if it's a pure open build or if custom sources are to be used.
14286 
14287   # Check whether --enable-openjdk-only was given.
14288 if test "${enable_openjdk_only+set}" = set; then :
14289   enableval=$enable_openjdk_only;
14290 else
14291   enable_openjdk_only="no"
14292 fi
14293 
14294 
14295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14296 $as_echo_n "checking for presence of closed sources... " >&6; }
14297   if test -d "$SRC_ROOT/jdk/src/closed"; then
14298     CLOSED_SOURCE_PRESENT=yes
14299   else
14300     CLOSED_SOURCE_PRESENT=no
14301   fi
14302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14303 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14304 
14305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14306 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14307   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14309 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14310 
14311   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14312     OPENJDK=true
14313     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14314       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14315 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14316     fi
14317   else
14318     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14319       OPENJDK=true
14320     else
14321       OPENJDK=false
14322     fi
14323   fi
14324 
14325   if test "x$OPENJDK" = "xtrue"; then
14326     SET_OPENJDK="OPENJDK=true"
14327   fi
14328 
14329 
14330 
14331   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14332   # the IncludeCustomExtension macro.
14333 
14334 
14335 # Check whether --with-custom-make-dir was given.
14336 if test "${with_custom_make_dir+set}" = set; then :
14337   withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
14338 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14339 fi
14340 
14341 
14342 
14343 
14344 # These are needed to be able to create a configuration name (and thus the output directory)
14345 
14346   ###############################################################################
14347   #
14348   # Check which variant of the JDK that we want to build.
14349   # Currently we have:
14350   #    normal:   standard edition
14351   # but the custom make system may add other variants
14352   #
14353   # Effectively the JDK variant gives a name to a specific set of
14354   # modules to compile into the JDK. In the future, these modules
14355   # might even be Jigsaw modules.
14356   #
14357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14358 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14359 
14360 # Check whether --with-jdk-variant was given.
14361 if test "${with_jdk_variant+set}" = set; then :
14362   withval=$with_jdk_variant;
14363 fi
14364 
14365 
14366   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14367     JDK_VARIANT="normal"
14368   else
14369     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14370   fi
14371 
14372 
14373 
14374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14375 $as_echo "$JDK_VARIANT" >&6; }
14376 
14377 
14378 ###############################################################################
14379 #
14380 # Check which interpreter of the JVM we want to build.
14381 # Currently we have:
14382 #    template: Template interpreter (the default)
14383 #    cpp     : C++ interpreter
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14385 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14386 
14387 # Check whether --with-jvm-interpreter was given.
14388 if test "${with_jvm_interpreter+set}" = set; then :
14389   withval=$with_jvm_interpreter;
14390 fi
14391 
14392 
14393 if test "x$with_jvm_interpreter" = x; then
14394      with_jvm_interpreter="template"
14395 fi
14396 
14397 JVM_INTERPRETER="$with_jvm_interpreter"
14398 
14399 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14400    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14401 fi
14402 
14403 
14404 
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14406 $as_echo "$with_jvm_interpreter" >&6; }
14407 
14408 
14409 
14410   ###############################################################################
14411   #
14412   # Check which variants of the JVM that we want to build.
14413   # Currently we have:
14414   #    server: normal interpreter and a tiered C1/C2 compiler
14415   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14416   #    minimal1: reduced form of client with optional VM services and features stripped out
14417   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14418   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14419   #    zero: no machine code interpreter, no compiler
14420   #    zeroshark: zero interpreter and shark/llvm compiler backend
14421 #    core: interpreter only, no compiler (only works on some platforms)
14422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14423 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14424 
14425 # Check whether --with-jvm-variants was given.
14426 if test "${with_jvm_variants+set}" = set; then :
14427   withval=$with_jvm_variants;
14428 fi
14429 
14430 
14431   if test "x$with_jvm_variants" = x; then
14432     with_jvm_variants="server"
14433   fi
14434 
14435   JVM_VARIANTS=",$with_jvm_variants,"
14436   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,//'`
14437 
14438   if test "x$TEST_VARIANTS" != "x,"; then
14439      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14440   fi
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14442 $as_echo "$with_jvm_variants" >&6; }
14443 
14444   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14445   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14446   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14447   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14448   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14449   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14450   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14451 
14452   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14453     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14454       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14455     fi
14456   fi
14457   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14458     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14459       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14460     fi
14461   fi
14462   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14463     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14464       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14465     fi
14466   fi
14467 
14468   # Replace the commas with AND for use in the build directory name.
14469   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14470   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/'`
14471   if test "x$COUNT_VARIANTS" != "x,1"; then
14472     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14473   else
14474     BUILDING_MULTIPLE_JVM_VARIANTS=no
14475   fi
14476 
14477 
14478 
14479 
14480 
14481 
14482 
14483 
14484 
14485 
14486   INCLUDE_SA=true
14487   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14488     INCLUDE_SA=false
14489   fi
14490   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14491     INCLUDE_SA=false
14492   fi
14493   if test "x$VAR_CPU" = xppc64 ; then
14494     INCLUDE_SA=false
14495   fi
14496 
14497 
14498   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14499     MACOSX_UNIVERSAL="true"
14500   fi
14501 
14502 
14503 
14504 
14505   ###############################################################################
14506   #
14507   # Set the debug level
14508   #    release: no debug information, all optimizations, no asserts.
14509   #    optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'.
14510   #    fastdebug: debug information (-g), all optimizations, all asserts
14511   #    slowdebug: debug information (-g), no optimizations, all asserts
14512   #
14513   DEBUG_LEVEL="release"
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14515 $as_echo_n "checking which debug level to use... " >&6; }
14516   # Check whether --enable-debug was given.
14517 if test "${enable_debug+set}" = set; then :
14518   enableval=$enable_debug;
14519         ENABLE_DEBUG="${enableval}"
14520         DEBUG_LEVEL="fastdebug"
14521 
14522 else
14523   ENABLE_DEBUG="no"
14524 fi
14525 
14526 
14527 
14528 # Check whether --with-debug-level was given.
14529 if test "${with_debug_level+set}" = set; then :
14530   withval=$with_debug_level;
14531         DEBUG_LEVEL="${withval}"
14532         if test "x$ENABLE_DEBUG" = xyes; then
14533           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14534         fi
14535 
14536 fi
14537 
14538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14539 $as_echo "$DEBUG_LEVEL" >&6; }
14540 
14541   if test "x$DEBUG_LEVEL" != xrelease && \
14542       test "x$DEBUG_LEVEL" != xoptimized && \
14543       test "x$DEBUG_LEVEL" != xfastdebug && \
14544       test "x$DEBUG_LEVEL" != xslowdebug; then
14545     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14546   fi
14547 
14548 
14549   ###############################################################################
14550   #
14551   # Setup legacy vars/targets and new vars to deal with different debug levels.
14552   #
14553 
14554   case $DEBUG_LEVEL in
14555     release )
14556       VARIANT="OPT"
14557       FASTDEBUG="false"
14558       DEBUG_CLASSFILES="false"
14559       BUILD_VARIANT_RELEASE=""
14560       HOTSPOT_DEBUG_LEVEL="product"
14561       HOTSPOT_EXPORT="product"
14562       ;;
14563     fastdebug )
14564       VARIANT="DBG"
14565       FASTDEBUG="true"
14566       DEBUG_CLASSFILES="true"
14567       BUILD_VARIANT_RELEASE="-fastdebug"
14568       HOTSPOT_DEBUG_LEVEL="fastdebug"
14569       HOTSPOT_EXPORT="fastdebug"
14570       ;;
14571     slowdebug )
14572       VARIANT="DBG"
14573       FASTDEBUG="false"
14574       DEBUG_CLASSFILES="true"
14575       BUILD_VARIANT_RELEASE="-debug"
14576       HOTSPOT_DEBUG_LEVEL="jvmg"
14577       HOTSPOT_EXPORT="debug"
14578       ;;
14579     optimized )
14580       VARIANT="OPT"
14581       FASTDEBUG="false"
14582       DEBUG_CLASSFILES="false"
14583       BUILD_VARIANT_RELEASE="-optimized"
14584       HOTSPOT_DEBUG_LEVEL="optimized"
14585       HOTSPOT_EXPORT="optimized"
14586       ;;
14587   esac
14588 
14589   # The debug level 'optimized' is a little special because it is currently only
14590   # applicable to the HotSpot build where it means to build a completely
14591   # optimized version of the VM without any debugging code (like for the
14592   # 'release' debug level which is called 'product' in the HotSpot build) but
14593   # with the exception that it can contain additional code which is otherwise
14594   # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to
14595   # test new and/or experimental features which are not intended for customer
14596   # shipment. Because these new features need to be tested and benchmarked in
14597   # real world scenarios, we want to build the containing JDK at the 'release'
14598   # debug level.
14599   if test "x$DEBUG_LEVEL" = xoptimized; then
14600     DEBUG_LEVEL="release"
14601   fi
14602 
14603   #####
14604   # Generate the legacy makefile targets for hotspot.
14605   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14606   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14607   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14608   # But until then ...
14609   HOTSPOT_TARGET=""
14610 
14611   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14612     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14613   fi
14614 
14615   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14616     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14617   fi
14618 
14619   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14620     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14621   fi
14622 
14623   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14624     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14625   fi
14626 
14627   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14628     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14629   fi
14630 
14631   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14632     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14633   fi
14634 
14635   if test "x$JVM_VARIANT_CORE" = xtrue; then
14636     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14637   fi
14638 
14639   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14640 
14641   # On Macosx universal binaries are produced, but they only contain
14642   # 64 bit intel. This invalidates control of which jvms are built
14643   # from configure, but only server is valid anyway. Fix this
14644   # when hotspot makefiles are rewritten.
14645   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14646     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14647   fi
14648 
14649   #####
14650 
14651 
14652 
14653 
14654 
14655 
14656 
14657 
14658 # With basic setup done, call the custom early hook.
14659 
14660 
14661 # Check if we have devkits, extra paths or sysroot set.
14662 
14663 
14664 # Check whether --with-devkit was given.
14665 if test "${with_devkit+set}" = set; then :
14666   withval=$with_devkit;
14667 
14668   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14669 
14670   # Input might be given as Windows format, start by converting to
14671   # unix format.
14672   path="$with_devkit"
14673   new_path=`$CYGPATH -u "$path"`
14674 
14675   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14676   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14677   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14678   # "foo.exe" is OK but "foo" is an error.
14679   #
14680   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14681   # It is also a way to make sure we got the proper file name for the real test later on.
14682   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14683   if test "x$test_shortpath" = x; then
14684     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14685 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14686     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14687   fi
14688 
14689   # Call helper function which possibly converts this using DOS-style short mode.
14690   # If so, the updated path is stored in $new_path.
14691 
14692   input_path="$new_path"
14693   # Check if we need to convert this using DOS-style short mode. If the path
14694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14695   # take no chances and rewrite it.
14696   # Note: m4 eats our [], so we need to use [ and ] instead.
14697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14698   if test "x$has_forbidden_chars" != x; then
14699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14700     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14701     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14702     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14703       # Going to short mode and back again did indeed matter. Since short mode is
14704       # case insensitive, let's make it lowercase to improve readability.
14705       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14706       # Now convert it back to Unix-stile (cygpath)
14707       input_path=`$CYGPATH -u "$shortmode_path"`
14708       new_path="$input_path"
14709     fi
14710   fi
14711 
14712   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14713   if test "x$test_cygdrive_prefix" = x; then
14714     # As a simple fix, exclude /usr/bin since it's not a real path.
14715     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14716       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14717       # a path prefixed by /cygdrive for fixpath to work.
14718       new_path="$CYGWIN_ROOT_PATH$input_path"
14719     fi
14720   fi
14721 
14722 
14723   if test "x$path" != "x$new_path"; then
14724     with_devkit="$new_path"
14725     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14726 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14727   fi
14728 
14729   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14730 
14731   path="$with_devkit"
14732   has_colon=`$ECHO $path | $GREP ^.:`
14733   new_path="$path"
14734   if test "x$has_colon" = x; then
14735     # Not in mixed or Windows style, start by that.
14736     new_path=`cmd //c echo $path`
14737   fi
14738 
14739 
14740   input_path="$new_path"
14741   # Check if we need to convert this using DOS-style short mode. If the path
14742   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14743   # take no chances and rewrite it.
14744   # Note: m4 eats our [], so we need to use [ and ] instead.
14745   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14746   if test "x$has_forbidden_chars" != x; then
14747     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14748     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14749   fi
14750 
14751 
14752   windows_path="$new_path"
14753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14754     unix_path=`$CYGPATH -u "$windows_path"`
14755     new_path="$unix_path"
14756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14757     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14758     new_path="$unix_path"
14759   fi
14760 
14761   if test "x$path" != "x$new_path"; then
14762     with_devkit="$new_path"
14763     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14764 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14765   fi
14766 
14767   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14768   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14769 
14770   else
14771     # We're on a posix platform. Hooray! :)
14772     path="$with_devkit"
14773     has_space=`$ECHO "$path" | $GREP " "`
14774     if test "x$has_space" != x; then
14775       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14776 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14777       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14778     fi
14779 
14780     # Use eval to expand a potential ~
14781     eval path="$path"
14782     if test ! -f "$path" && test ! -d "$path"; then
14783       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14784     fi
14785 
14786     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14787   fi
14788 
14789         DEVKIT_ROOT="$with_devkit"
14790         # Check for a meta data info file in the root of the devkit
14791         if test -f "$DEVKIT_ROOT/devkit.info"; then
14792           # This potentially sets the following:
14793           # DEVKIT_NAME: A descriptive name of the devkit
14794           # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path
14795           # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path
14796           # DEVKIT_SYSROOT: Corresponds to --with-sysroot
14797           . $DEVKIT_ROOT/devkit.info
14798         fi
14799 
14800         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14801 $as_echo_n "checking for devkit... " >&6; }
14802         if test "x$DEVKIT_NAME" != x; then
14803           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14804 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14805         else
14806           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14807 $as_echo "$DEVKIT_ROOT" >&6; }
14808         fi
14809 
14810         if test "x$DEVKIT_EXTRA_PATH" != x; then
14811 
14812   if test "x$DEVKIT_EXTRA_PATH" != x; then
14813     if test "x$EXTRA_PATH" = x; then
14814       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14815     else
14816       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14817     fi
14818   fi
14819 
14820         fi
14821 
14822         # Fallback default of just /bin if DEVKIT_PATH is not defined
14823         if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14824           DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14825         fi
14826 
14827   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14828     if test "x$TOOLCHAIN_PATH" = x; then
14829       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14830     else
14831       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14832     fi
14833   fi
14834 
14835 
14836         # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14837         # places for backwards compatiblity.
14838         if test "x$DEVKIT_SYSROOT" != x; then
14839           SYSROOT="$DEVKIT_SYSROOT"
14840         elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14841           SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
14842         elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
14843           SYSROOT="$DEVKIT_ROOT/$host/sys-root"
14844         fi
14845 
14846 
14847 fi
14848 
14849 
14850   # You can force the sysroot if the sysroot encoded into the compiler tools
14851   # is not correct.
14852 
14853 # Check whether --with-sys-root was given.
14854 if test "${with_sys_root+set}" = set; then :
14855   withval=$with_sys_root; SYSROOT=$with_sys_root
14856 
14857 fi
14858 
14859 
14860 
14861 # Check whether --with-sysroot was given.
14862 if test "${with_sysroot+set}" = set; then :
14863   withval=$with_sysroot; SYSROOT=$with_sysroot
14864 
14865 fi
14866 
14867 
14868 
14869 # Check whether --with-tools-dir was given.
14870 if test "${with_tools_dir+set}" = set; then :
14871   withval=$with_tools_dir;
14872   if test "x$with_tools_dir" != x; then
14873     if test "x$TOOLCHAIN_PATH" = x; then
14874       TOOLCHAIN_PATH="$with_tools_dir"
14875     else
14876       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
14877     fi
14878   fi
14879 
14880 
14881 fi
14882 
14883 
14884 
14885 # Check whether --with-toolchain-path was given.
14886 if test "${with_toolchain_path+set}" = set; then :
14887   withval=$with_toolchain_path;
14888   if test "x$with_toolchain_path" != x; then
14889     if test "x$TOOLCHAIN_PATH" = x; then
14890       TOOLCHAIN_PATH="$with_toolchain_path"
14891     else
14892       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
14893     fi
14894   fi
14895 
14896 
14897 fi
14898 
14899 
14900 
14901 # Check whether --with-extra-path was given.
14902 if test "${with_extra_path+set}" = set; then :
14903   withval=$with_extra_path;
14904   if test "x$with_extra_path" != x; then
14905     if test "x$EXTRA_PATH" = x; then
14906       EXTRA_PATH="$with_extra_path"
14907     else
14908       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
14909     fi
14910   fi
14911 
14912 
14913 fi
14914 
14915 
14916   # Prepend the extra path to the global path
14917 
14918   if test "x$EXTRA_PATH" != x; then
14919     if test "x$PATH" = x; then
14920       PATH="$EXTRA_PATH"
14921     else
14922       PATH="$EXTRA_PATH:$PATH"
14923     fi
14924   fi
14925 
14926 
14927   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14928     # Add extra search paths on solaris for utilities like ar and as etc...
14929     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14930   fi
14931 
14932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14933 $as_echo_n "checking for sysroot... " >&6; }
14934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
14935 $as_echo "$SYSROOT" >&6; }
14936   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
14937 $as_echo_n "checking for toolchain path... " >&6; }
14938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
14939 $as_echo "$TOOLCHAIN_PATH" >&6; }
14940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
14941 $as_echo_n "checking for extra path... " >&6; }
14942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
14943 $as_echo "$EXTRA_PATH" >&6; }
14944 
14945 
14946 # To properly create a configuration name, we need to have the OpenJDK target
14947 # and options (variants and debug level) parsed.
14948 
14949 
14950 
14951 # Check whether --with-conf-name was given.
14952 if test "${with_conf_name+set}" = set; then :
14953   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14954 fi
14955 
14956 
14957   # Test from where we are running configure, in or outside of src root.
14958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14959 $as_echo_n "checking where to store configuration... " >&6; }
14960   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14961       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14962       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14963     # We are running configure from the src root.
14964     # Create a default ./build/target-variant-debuglevel output root.
14965     if test "x${CONF_NAME}" = x; then
14966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14967 $as_echo "in default location" >&6; }
14968       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14969     else
14970       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14971 $as_echo "in build directory with custom name" >&6; }
14972     fi
14973     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14974     $MKDIR -p "$OUTPUT_ROOT"
14975     if test ! -d "$OUTPUT_ROOT"; then
14976       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14977     fi
14978   else
14979     # We are running configure from outside of the src dir.
14980     # Then use the current directory as output dir!
14981     # If configuration is situated in normal build directory, just use the build
14982     # directory name as configuration name, otherwise use the complete path.
14983     if test "x${CONF_NAME}" = x; then
14984       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14985     fi
14986     OUTPUT_ROOT="$CURDIR"
14987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14988 $as_echo "in current directory" >&6; }
14989 
14990     # WARNING: This might be a bad thing to do. You need to be sure you want to
14991     # have a configuration in this directory. Do some sanity checks!
14992 
14993     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14994       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14995       # other files
14996       files_present=`$LS $OUTPUT_ROOT`
14997       # Configure has already touched config.log and confdefs.h in the current dir when this check
14998       # is performed.
14999       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
15000       | $TR -d '\n'`
15001       if test "x$filtered_files" != x; then
15002         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15003 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15004         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15005 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15006         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15007 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15008         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15009 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15010         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15011 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15012         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15013 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15014         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15015 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15016         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15017       fi
15018     fi
15019   fi
15020   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15021 $as_echo_n "checking what configuration name to use... " >&6; }
15022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15023 $as_echo "$CONF_NAME" >&6; }
15024 
15025 
15026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15027 
15028   # Input might be given as Windows format, start by converting to
15029   # unix format.
15030   path="$OUTPUT_ROOT"
15031   new_path=`$CYGPATH -u "$path"`
15032 
15033   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15034   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15035   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15036   # "foo.exe" is OK but "foo" is an error.
15037   #
15038   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15039   # It is also a way to make sure we got the proper file name for the real test later on.
15040   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15041   if test "x$test_shortpath" = x; then
15042     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15043 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15044     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15045   fi
15046 
15047   # Call helper function which possibly converts this using DOS-style short mode.
15048   # If so, the updated path is stored in $new_path.
15049 
15050   input_path="$new_path"
15051   # Check if we need to convert this using DOS-style short mode. If the path
15052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15053   # take no chances and rewrite it.
15054   # Note: m4 eats our [], so we need to use [ and ] instead.
15055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15056   if test "x$has_forbidden_chars" != x; then
15057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15061       # Going to short mode and back again did indeed matter. Since short mode is
15062       # case insensitive, let's make it lowercase to improve readability.
15063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15064       # Now convert it back to Unix-stile (cygpath)
15065       input_path=`$CYGPATH -u "$shortmode_path"`
15066       new_path="$input_path"
15067     fi
15068   fi
15069 
15070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15071   if test "x$test_cygdrive_prefix" = x; then
15072     # As a simple fix, exclude /usr/bin since it's not a real path.
15073     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15075       # a path prefixed by /cygdrive for fixpath to work.
15076       new_path="$CYGWIN_ROOT_PATH$input_path"
15077     fi
15078   fi
15079 
15080 
15081   if test "x$path" != "x$new_path"; then
15082     OUTPUT_ROOT="$new_path"
15083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15084 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15085   fi
15086 
15087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15088 
15089   path="$OUTPUT_ROOT"
15090   has_colon=`$ECHO $path | $GREP ^.:`
15091   new_path="$path"
15092   if test "x$has_colon" = x; then
15093     # Not in mixed or Windows style, start by that.
15094     new_path=`cmd //c echo $path`
15095   fi
15096 
15097 
15098   input_path="$new_path"
15099   # Check if we need to convert this using DOS-style short mode. If the path
15100   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15101   # take no chances and rewrite it.
15102   # Note: m4 eats our [], so we need to use [ and ] instead.
15103   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15104   if test "x$has_forbidden_chars" != x; then
15105     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15106     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15107   fi
15108 
15109 
15110   windows_path="$new_path"
15111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15112     unix_path=`$CYGPATH -u "$windows_path"`
15113     new_path="$unix_path"
15114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15116     new_path="$unix_path"
15117   fi
15118 
15119   if test "x$path" != "x$new_path"; then
15120     OUTPUT_ROOT="$new_path"
15121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15122 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15123   fi
15124 
15125   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15126   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15127 
15128   else
15129     # We're on a posix platform. Hooray! :)
15130     path="$OUTPUT_ROOT"
15131     has_space=`$ECHO "$path" | $GREP " "`
15132     if test "x$has_space" != x; then
15133       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15134 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15135       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15136     fi
15137 
15138     # Use eval to expand a potential ~
15139     eval path="$path"
15140     if test ! -f "$path" && test ! -d "$path"; then
15141       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15142     fi
15143 
15144     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15145   fi
15146 
15147 
15148   SPEC=$OUTPUT_ROOT/spec.gmk
15149 
15150   CONF_NAME=$CONF_NAME
15151 
15152   OUTPUT_ROOT=$OUTPUT_ROOT
15153 
15154 
15155   # Most of the probed defines are put into config.h
15156   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15157 
15158   # The spec.gmk file contains all variables for the make system.
15159   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15160 
15161   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15162   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15163 
15164   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15165   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15166 
15167   # The compare.sh is used to compare the build output to other builds.
15168   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15169 
15170   # Spec.sh is currently used by compare-objects.sh
15171   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15172 
15173   # The generated Makefile knows where the spec.gmk is and where the source is.
15174   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15175   # which will look for generated configurations
15176   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15177 
15178 
15179 
15180 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15181 
15182   for ac_prog in apt-get yum port pkgutil pkgadd
15183 do
15184   # Extract the first word of "$ac_prog", so it can be a program name with args.
15185 set dummy $ac_prog; ac_word=$2
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15187 $as_echo_n "checking for $ac_word... " >&6; }
15188 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15189   $as_echo_n "(cached) " >&6
15190 else
15191   if test -n "$PKGHANDLER"; then
15192   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15193 else
15194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15195 for as_dir in $PATH
15196 do
15197   IFS=$as_save_IFS
15198   test -z "$as_dir" && as_dir=.
15199     for ac_exec_ext in '' $ac_executable_extensions; do
15200   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15201     ac_cv_prog_PKGHANDLER="$ac_prog"
15202     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15203     break 2
15204   fi
15205 done
15206   done
15207 IFS=$as_save_IFS
15208 
15209 fi
15210 fi
15211 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15212 if test -n "$PKGHANDLER"; then
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15214 $as_echo "$PKGHANDLER" >&6; }
15215 else
15216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 $as_echo "no" >&6; }
15218 fi
15219 
15220 
15221   test -n "$PKGHANDLER" && break
15222 done
15223 
15224 
15225 
15226 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15227 
15228 
15229   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15230   if test "x$MAKE" != x; then
15231     # User has supplied a make, test it.
15232     if test ! -f "$MAKE"; then
15233       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15234     fi
15235 
15236   MAKE_CANDIDATE=""$MAKE""
15237   DESCRIPTION="user supplied MAKE=$MAKE"
15238   if test "x$MAKE_CANDIDATE" != x; then
15239     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15240 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15241     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15242     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15243     if test "x$IS_GNU_MAKE" = x; then
15244       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15245 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15246     else
15247       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15248       if test "x$IS_MODERN_MAKE" = x; then
15249         { $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
15250 $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;}
15251       else
15252         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15253           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15254             MAKE_EXPECTED_ENV='cygwin'
15255           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15256             MAKE_EXPECTED_ENV='msys'
15257           else
15258             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15259           fi
15260           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15261           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15262         else
15263           # Not relevant for non-Windows
15264           IS_MAKE_CORRECT_ENV=true
15265         fi
15266         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15267           { $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
15268 $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;}
15269         else
15270           FOUND_MAKE=$MAKE_CANDIDATE
15271 
15272   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15273 
15274   # First separate the path from the arguments. This will split at the first
15275   # space.
15276   complete="$FOUND_MAKE"
15277   path="${complete%% *}"
15278   tmp="$complete EOL"
15279   arguments="${tmp#* }"
15280 
15281   # Input might be given as Windows format, start by converting to
15282   # unix format.
15283   new_path=`$CYGPATH -u "$path"`
15284 
15285   # Now try to locate executable using which
15286   new_path=`$WHICH "$new_path" 2> /dev/null`
15287   # bat and cmd files are not always considered executable in cygwin causing which
15288   # to not find them
15289   if test "x$new_path" = x \
15290       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15291       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15292     new_path=`$CYGPATH -u "$path"`
15293   fi
15294   if test "x$new_path" = x; then
15295     # Oops. Which didn't find the executable.
15296     # The splitting of arguments from the executable at a space might have been incorrect,
15297     # since paths with space are more likely in Windows. Give it another try with the whole
15298     # argument.
15299     path="$complete"
15300     arguments="EOL"
15301     new_path=`$CYGPATH -u "$path"`
15302     new_path=`$WHICH "$new_path" 2> /dev/null`
15303     # bat and cmd files are not always considered executable in cygwin causing which
15304     # to not find them
15305     if test "x$new_path" = x \
15306         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15307         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15308       new_path=`$CYGPATH -u "$path"`
15309     fi
15310     if test "x$new_path" = x; then
15311       # It's still not found. Now this is an unrecoverable error.
15312       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15313 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15314       has_space=`$ECHO "$complete" | $GREP " "`
15315       if test "x$has_space" != x; then
15316         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15317 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15318       fi
15319       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15320     fi
15321   fi
15322 
15323   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15324   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15325   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15326   # "foo.exe" is OK but "foo" is an error.
15327   #
15328   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15329   # It is also a way to make sure we got the proper file name for the real test later on.
15330   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15331   if test "x$test_shortpath" = x; then
15332     # Short path failed, file does not exist as specified.
15333     # Try adding .exe or .cmd
15334     if test -f "${new_path}.exe"; then
15335       input_to_shortpath="${new_path}.exe"
15336     elif test -f "${new_path}.cmd"; then
15337       input_to_shortpath="${new_path}.cmd"
15338     else
15339       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15340 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15341       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15342 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15343       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15344     fi
15345   else
15346     input_to_shortpath="$new_path"
15347   fi
15348 
15349   # Call helper function which possibly converts this using DOS-style short mode.
15350   # If so, the updated path is stored in $new_path.
15351   new_path="$input_to_shortpath"
15352 
15353   input_path="$input_to_shortpath"
15354   # Check if we need to convert this using DOS-style short mode. If the path
15355   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15356   # take no chances and rewrite it.
15357   # Note: m4 eats our [], so we need to use [ and ] instead.
15358   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15359   if test "x$has_forbidden_chars" != x; then
15360     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15361     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15362     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15363     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15364       # Going to short mode and back again did indeed matter. Since short mode is
15365       # case insensitive, let's make it lowercase to improve readability.
15366       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15367       # Now convert it back to Unix-stile (cygpath)
15368       input_path=`$CYGPATH -u "$shortmode_path"`
15369       new_path="$input_path"
15370     fi
15371   fi
15372 
15373   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15374   if test "x$test_cygdrive_prefix" = x; then
15375     # As a simple fix, exclude /usr/bin since it's not a real path.
15376     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15377       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15378       # a path prefixed by /cygdrive for fixpath to work.
15379       new_path="$CYGWIN_ROOT_PATH$input_path"
15380     fi
15381   fi
15382 
15383   # remove trailing .exe if any
15384   new_path="${new_path/%.exe/}"
15385 
15386   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15387 
15388   # First separate the path from the arguments. This will split at the first
15389   # space.
15390   complete="$FOUND_MAKE"
15391   path="${complete%% *}"
15392   tmp="$complete EOL"
15393   arguments="${tmp#* }"
15394 
15395   # Input might be given as Windows format, start by converting to
15396   # unix format.
15397   new_path="$path"
15398 
15399   windows_path="$new_path"
15400   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15401     unix_path=`$CYGPATH -u "$windows_path"`
15402     new_path="$unix_path"
15403   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15404     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15405     new_path="$unix_path"
15406   fi
15407 
15408 
15409   # Now try to locate executable using which
15410   new_path=`$WHICH "$new_path" 2> /dev/null`
15411 
15412   if test "x$new_path" = x; then
15413     # Oops. Which didn't find the executable.
15414     # The splitting of arguments from the executable at a space might have been incorrect,
15415     # since paths with space are more likely in Windows. Give it another try with the whole
15416     # argument.
15417     path="$complete"
15418     arguments="EOL"
15419     new_path="$path"
15420 
15421   windows_path="$new_path"
15422   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15423     unix_path=`$CYGPATH -u "$windows_path"`
15424     new_path="$unix_path"
15425   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15426     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15427     new_path="$unix_path"
15428   fi
15429 
15430 
15431     new_path=`$WHICH "$new_path" 2> /dev/null`
15432 
15433     if test "x$new_path" = x; then
15434       # It's still not found. Now this is an unrecoverable error.
15435       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15436 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15437       has_space=`$ECHO "$complete" | $GREP " "`
15438       if test "x$has_space" != x; then
15439         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15440 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15441       fi
15442       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15443     fi
15444   fi
15445 
15446   # Now new_path has a complete unix path to the binary
15447   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15448     # Keep paths in /bin as-is, but remove trailing .exe if any
15449     new_path="${new_path/%.exe/}"
15450     # Do not save /bin paths to all_fixpath_prefixes!
15451   else
15452     # Not in mixed or Windows style, start by that.
15453     new_path=`cmd //c echo $new_path`
15454 
15455   input_path="$new_path"
15456   # Check if we need to convert this using DOS-style short mode. If the path
15457   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15458   # take no chances and rewrite it.
15459   # Note: m4 eats our [], so we need to use [ and ] instead.
15460   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15461   if test "x$has_forbidden_chars" != x; then
15462     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15463     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15464   fi
15465 
15466     # Output is in $new_path
15467 
15468   windows_path="$new_path"
15469   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15470     unix_path=`$CYGPATH -u "$windows_path"`
15471     new_path="$unix_path"
15472   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15473     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15474     new_path="$unix_path"
15475   fi
15476 
15477     # remove trailing .exe if any
15478     new_path="${new_path/%.exe/}"
15479 
15480     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15481     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15482   fi
15483 
15484   else
15485     # We're on a posix platform. Hooray! :)
15486     # First separate the path from the arguments. This will split at the first
15487     # space.
15488     complete="$FOUND_MAKE"
15489     path="${complete%% *}"
15490     tmp="$complete EOL"
15491     arguments="${tmp#* }"
15492 
15493     # Cannot rely on the command "which" here since it doesn't always work.
15494     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15495     if test -z "$is_absolute_path"; then
15496       # Path to executable is not absolute. Find it.
15497       IFS_save="$IFS"
15498       IFS=:
15499       for p in $PATH; do
15500         if test -f "$p/$path" && test -x "$p/$path"; then
15501           new_path="$p/$path"
15502           break
15503         fi
15504       done
15505       IFS="$IFS_save"
15506     else
15507       # This is an absolute path, we can use it without further modifications.
15508       new_path="$path"
15509     fi
15510 
15511     if test "x$new_path" = x; then
15512       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15513 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15514       has_space=`$ECHO "$complete" | $GREP " "`
15515       if test "x$has_space" != x; then
15516         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15517 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15518       fi
15519       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15520     fi
15521   fi
15522 
15523   # Now join together the path and the arguments once again
15524   if test "x$arguments" != xEOL; then
15525     new_complete="$new_path ${arguments% *}"
15526   else
15527     new_complete="$new_path"
15528   fi
15529 
15530   if test "x$complete" != "x$new_complete"; then
15531     FOUND_MAKE="$new_complete"
15532     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15533 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15534   fi
15535 
15536         fi
15537       fi
15538     fi
15539   fi
15540 
15541     if test "x$FOUND_MAKE" = x; then
15542       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15543     fi
15544   else
15545     # Try our hardest to locate a correct version of GNU make
15546     for ac_prog in gmake
15547 do
15548   # Extract the first word of "$ac_prog", so it can be a program name with args.
15549 set dummy $ac_prog; ac_word=$2
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15551 $as_echo_n "checking for $ac_word... " >&6; }
15552 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15553   $as_echo_n "(cached) " >&6
15554 else
15555   case $CHECK_GMAKE in
15556   [\\/]* | ?:[\\/]*)
15557   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15558   ;;
15559   *)
15560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $PATH
15562 do
15563   IFS=$as_save_IFS
15564   test -z "$as_dir" && as_dir=.
15565     for ac_exec_ext in '' $ac_executable_extensions; do
15566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15569     break 2
15570   fi
15571 done
15572   done
15573 IFS=$as_save_IFS
15574 
15575   ;;
15576 esac
15577 fi
15578 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15579 if test -n "$CHECK_GMAKE"; then
15580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15581 $as_echo "$CHECK_GMAKE" >&6; }
15582 else
15583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15585 fi
15586 
15587 
15588   test -n "$CHECK_GMAKE" && break
15589 done
15590 
15591 
15592   MAKE_CANDIDATE=""$CHECK_GMAKE""
15593   DESCRIPTION="gmake in PATH"
15594   if test "x$MAKE_CANDIDATE" != x; then
15595     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15596 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15597     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15598     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15599     if test "x$IS_GNU_MAKE" = x; then
15600       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15601 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15602     else
15603       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15604       if test "x$IS_MODERN_MAKE" = x; then
15605         { $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
15606 $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;}
15607       else
15608         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15609           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15610             MAKE_EXPECTED_ENV='cygwin'
15611           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15612             MAKE_EXPECTED_ENV='msys'
15613           else
15614             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15615           fi
15616           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15617           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15618         else
15619           # Not relevant for non-Windows
15620           IS_MAKE_CORRECT_ENV=true
15621         fi
15622         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15623           { $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
15624 $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;}
15625         else
15626           FOUND_MAKE=$MAKE_CANDIDATE
15627 
15628   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15629 
15630   # First separate the path from the arguments. This will split at the first
15631   # space.
15632   complete="$FOUND_MAKE"
15633   path="${complete%% *}"
15634   tmp="$complete EOL"
15635   arguments="${tmp#* }"
15636 
15637   # Input might be given as Windows format, start by converting to
15638   # unix format.
15639   new_path=`$CYGPATH -u "$path"`
15640 
15641   # Now try to locate executable using which
15642   new_path=`$WHICH "$new_path" 2> /dev/null`
15643   # bat and cmd files are not always considered executable in cygwin causing which
15644   # to not find them
15645   if test "x$new_path" = x \
15646       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15647       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15648     new_path=`$CYGPATH -u "$path"`
15649   fi
15650   if test "x$new_path" = x; then
15651     # Oops. Which didn't find the executable.
15652     # The splitting of arguments from the executable at a space might have been incorrect,
15653     # since paths with space are more likely in Windows. Give it another try with the whole
15654     # argument.
15655     path="$complete"
15656     arguments="EOL"
15657     new_path=`$CYGPATH -u "$path"`
15658     new_path=`$WHICH "$new_path" 2> /dev/null`
15659     # bat and cmd files are not always considered executable in cygwin causing which
15660     # to not find them
15661     if test "x$new_path" = x \
15662         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15663         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15664       new_path=`$CYGPATH -u "$path"`
15665     fi
15666     if test "x$new_path" = x; then
15667       # It's still not found. Now this is an unrecoverable error.
15668       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15669 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15670       has_space=`$ECHO "$complete" | $GREP " "`
15671       if test "x$has_space" != x; then
15672         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15673 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15674       fi
15675       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15676     fi
15677   fi
15678 
15679   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15680   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15681   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15682   # "foo.exe" is OK but "foo" is an error.
15683   #
15684   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15685   # It is also a way to make sure we got the proper file name for the real test later on.
15686   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15687   if test "x$test_shortpath" = x; then
15688     # Short path failed, file does not exist as specified.
15689     # Try adding .exe or .cmd
15690     if test -f "${new_path}.exe"; then
15691       input_to_shortpath="${new_path}.exe"
15692     elif test -f "${new_path}.cmd"; then
15693       input_to_shortpath="${new_path}.cmd"
15694     else
15695       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15696 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15697       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15698 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15699       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15700     fi
15701   else
15702     input_to_shortpath="$new_path"
15703   fi
15704 
15705   # Call helper function which possibly converts this using DOS-style short mode.
15706   # If so, the updated path is stored in $new_path.
15707   new_path="$input_to_shortpath"
15708 
15709   input_path="$input_to_shortpath"
15710   # Check if we need to convert this using DOS-style short mode. If the path
15711   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15712   # take no chances and rewrite it.
15713   # Note: m4 eats our [], so we need to use [ and ] instead.
15714   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15715   if test "x$has_forbidden_chars" != x; then
15716     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15717     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15718     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15719     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15720       # Going to short mode and back again did indeed matter. Since short mode is
15721       # case insensitive, let's make it lowercase to improve readability.
15722       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15723       # Now convert it back to Unix-stile (cygpath)
15724       input_path=`$CYGPATH -u "$shortmode_path"`
15725       new_path="$input_path"
15726     fi
15727   fi
15728 
15729   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15730   if test "x$test_cygdrive_prefix" = x; then
15731     # As a simple fix, exclude /usr/bin since it's not a real path.
15732     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15733       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15734       # a path prefixed by /cygdrive for fixpath to work.
15735       new_path="$CYGWIN_ROOT_PATH$input_path"
15736     fi
15737   fi
15738 
15739   # remove trailing .exe if any
15740   new_path="${new_path/%.exe/}"
15741 
15742   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15743 
15744   # First separate the path from the arguments. This will split at the first
15745   # space.
15746   complete="$FOUND_MAKE"
15747   path="${complete%% *}"
15748   tmp="$complete EOL"
15749   arguments="${tmp#* }"
15750 
15751   # Input might be given as Windows format, start by converting to
15752   # unix format.
15753   new_path="$path"
15754 
15755   windows_path="$new_path"
15756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15757     unix_path=`$CYGPATH -u "$windows_path"`
15758     new_path="$unix_path"
15759   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15760     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15761     new_path="$unix_path"
15762   fi
15763 
15764 
15765   # Now try to locate executable using which
15766   new_path=`$WHICH "$new_path" 2> /dev/null`
15767 
15768   if test "x$new_path" = x; then
15769     # Oops. Which didn't find the executable.
15770     # The splitting of arguments from the executable at a space might have been incorrect,
15771     # since paths with space are more likely in Windows. Give it another try with the whole
15772     # argument.
15773     path="$complete"
15774     arguments="EOL"
15775     new_path="$path"
15776 
15777   windows_path="$new_path"
15778   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15779     unix_path=`$CYGPATH -u "$windows_path"`
15780     new_path="$unix_path"
15781   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15782     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15783     new_path="$unix_path"
15784   fi
15785 
15786 
15787     new_path=`$WHICH "$new_path" 2> /dev/null`
15788 
15789     if test "x$new_path" = x; then
15790       # It's still not found. Now this is an unrecoverable error.
15791       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15792 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15793       has_space=`$ECHO "$complete" | $GREP " "`
15794       if test "x$has_space" != x; then
15795         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15796 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15797       fi
15798       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15799     fi
15800   fi
15801 
15802   # Now new_path has a complete unix path to the binary
15803   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15804     # Keep paths in /bin as-is, but remove trailing .exe if any
15805     new_path="${new_path/%.exe/}"
15806     # Do not save /bin paths to all_fixpath_prefixes!
15807   else
15808     # Not in mixed or Windows style, start by that.
15809     new_path=`cmd //c echo $new_path`
15810 
15811   input_path="$new_path"
15812   # Check if we need to convert this using DOS-style short mode. If the path
15813   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15814   # take no chances and rewrite it.
15815   # Note: m4 eats our [], so we need to use [ and ] instead.
15816   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15817   if test "x$has_forbidden_chars" != x; then
15818     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15819     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15820   fi
15821 
15822     # Output is in $new_path
15823 
15824   windows_path="$new_path"
15825   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15826     unix_path=`$CYGPATH -u "$windows_path"`
15827     new_path="$unix_path"
15828   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15829     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15830     new_path="$unix_path"
15831   fi
15832 
15833     # remove trailing .exe if any
15834     new_path="${new_path/%.exe/}"
15835 
15836     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15837     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15838   fi
15839 
15840   else
15841     # We're on a posix platform. Hooray! :)
15842     # First separate the path from the arguments. This will split at the first
15843     # space.
15844     complete="$FOUND_MAKE"
15845     path="${complete%% *}"
15846     tmp="$complete EOL"
15847     arguments="${tmp#* }"
15848 
15849     # Cannot rely on the command "which" here since it doesn't always work.
15850     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15851     if test -z "$is_absolute_path"; then
15852       # Path to executable is not absolute. Find it.
15853       IFS_save="$IFS"
15854       IFS=:
15855       for p in $PATH; do
15856         if test -f "$p/$path" && test -x "$p/$path"; then
15857           new_path="$p/$path"
15858           break
15859         fi
15860       done
15861       IFS="$IFS_save"
15862     else
15863       # This is an absolute path, we can use it without further modifications.
15864       new_path="$path"
15865     fi
15866 
15867     if test "x$new_path" = x; then
15868       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15869 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15870       has_space=`$ECHO "$complete" | $GREP " "`
15871       if test "x$has_space" != x; then
15872         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15873 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15874       fi
15875       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15876     fi
15877   fi
15878 
15879   # Now join together the path and the arguments once again
15880   if test "x$arguments" != xEOL; then
15881     new_complete="$new_path ${arguments% *}"
15882   else
15883     new_complete="$new_path"
15884   fi
15885 
15886   if test "x$complete" != "x$new_complete"; then
15887     FOUND_MAKE="$new_complete"
15888     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15889 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15890   fi
15891 
15892         fi
15893       fi
15894     fi
15895   fi
15896 
15897 
15898     if test "x$FOUND_MAKE" = x; then
15899       for ac_prog in make
15900 do
15901   # Extract the first word of "$ac_prog", so it can be a program name with args.
15902 set dummy $ac_prog; ac_word=$2
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15904 $as_echo_n "checking for $ac_word... " >&6; }
15905 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15906   $as_echo_n "(cached) " >&6
15907 else
15908   case $CHECK_MAKE in
15909   [\\/]* | ?:[\\/]*)
15910   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15911   ;;
15912   *)
15913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15914 for as_dir in $PATH
15915 do
15916   IFS=$as_save_IFS
15917   test -z "$as_dir" && as_dir=.
15918     for ac_exec_ext in '' $ac_executable_extensions; do
15919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15920     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15922     break 2
15923   fi
15924 done
15925   done
15926 IFS=$as_save_IFS
15927 
15928   ;;
15929 esac
15930 fi
15931 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15932 if test -n "$CHECK_MAKE"; then
15933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15934 $as_echo "$CHECK_MAKE" >&6; }
15935 else
15936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15937 $as_echo "no" >&6; }
15938 fi
15939 
15940 
15941   test -n "$CHECK_MAKE" && break
15942 done
15943 
15944 
15945   MAKE_CANDIDATE=""$CHECK_MAKE""
15946   DESCRIPTION="make in PATH"
15947   if test "x$MAKE_CANDIDATE" != x; then
15948     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15949 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15950     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15951     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15952     if test "x$IS_GNU_MAKE" = x; then
15953       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15954 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15955     else
15956       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15957       if test "x$IS_MODERN_MAKE" = x; then
15958         { $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
15959 $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;}
15960       else
15961         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15962           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15963             MAKE_EXPECTED_ENV='cygwin'
15964           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15965             MAKE_EXPECTED_ENV='msys'
15966           else
15967             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15968           fi
15969           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15970           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15971         else
15972           # Not relevant for non-Windows
15973           IS_MAKE_CORRECT_ENV=true
15974         fi
15975         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15976           { $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
15977 $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;}
15978         else
15979           FOUND_MAKE=$MAKE_CANDIDATE
15980 
15981   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15982 
15983   # First separate the path from the arguments. This will split at the first
15984   # space.
15985   complete="$FOUND_MAKE"
15986   path="${complete%% *}"
15987   tmp="$complete EOL"
15988   arguments="${tmp#* }"
15989 
15990   # Input might be given as Windows format, start by converting to
15991   # unix format.
15992   new_path=`$CYGPATH -u "$path"`
15993 
15994   # Now try to locate executable using which
15995   new_path=`$WHICH "$new_path" 2> /dev/null`
15996   # bat and cmd files are not always considered executable in cygwin causing which
15997   # to not find them
15998   if test "x$new_path" = x \
15999       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16000       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16001     new_path=`$CYGPATH -u "$path"`
16002   fi
16003   if test "x$new_path" = x; then
16004     # Oops. Which didn't find the executable.
16005     # The splitting of arguments from the executable at a space might have been incorrect,
16006     # since paths with space are more likely in Windows. Give it another try with the whole
16007     # argument.
16008     path="$complete"
16009     arguments="EOL"
16010     new_path=`$CYGPATH -u "$path"`
16011     new_path=`$WHICH "$new_path" 2> /dev/null`
16012     # bat and cmd files are not always considered executable in cygwin causing which
16013     # to not find them
16014     if test "x$new_path" = x \
16015         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16016         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16017       new_path=`$CYGPATH -u "$path"`
16018     fi
16019     if test "x$new_path" = x; then
16020       # It's still not found. Now this is an unrecoverable error.
16021       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16022 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16023       has_space=`$ECHO "$complete" | $GREP " "`
16024       if test "x$has_space" != x; then
16025         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16026 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16027       fi
16028       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16029     fi
16030   fi
16031 
16032   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16033   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16034   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16035   # "foo.exe" is OK but "foo" is an error.
16036   #
16037   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16038   # It is also a way to make sure we got the proper file name for the real test later on.
16039   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16040   if test "x$test_shortpath" = x; then
16041     # Short path failed, file does not exist as specified.
16042     # Try adding .exe or .cmd
16043     if test -f "${new_path}.exe"; then
16044       input_to_shortpath="${new_path}.exe"
16045     elif test -f "${new_path}.cmd"; then
16046       input_to_shortpath="${new_path}.cmd"
16047     else
16048       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16049 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16050       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16051 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16052       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16053     fi
16054   else
16055     input_to_shortpath="$new_path"
16056   fi
16057 
16058   # Call helper function which possibly converts this using DOS-style short mode.
16059   # If so, the updated path is stored in $new_path.
16060   new_path="$input_to_shortpath"
16061 
16062   input_path="$input_to_shortpath"
16063   # Check if we need to convert this using DOS-style short mode. If the path
16064   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16065   # take no chances and rewrite it.
16066   # Note: m4 eats our [], so we need to use [ and ] instead.
16067   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16068   if test "x$has_forbidden_chars" != x; then
16069     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16070     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16071     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16072     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16073       # Going to short mode and back again did indeed matter. Since short mode is
16074       # case insensitive, let's make it lowercase to improve readability.
16075       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16076       # Now convert it back to Unix-stile (cygpath)
16077       input_path=`$CYGPATH -u "$shortmode_path"`
16078       new_path="$input_path"
16079     fi
16080   fi
16081 
16082   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16083   if test "x$test_cygdrive_prefix" = x; then
16084     # As a simple fix, exclude /usr/bin since it's not a real path.
16085     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16086       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16087       # a path prefixed by /cygdrive for fixpath to work.
16088       new_path="$CYGWIN_ROOT_PATH$input_path"
16089     fi
16090   fi
16091 
16092   # remove trailing .exe if any
16093   new_path="${new_path/%.exe/}"
16094 
16095   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16096 
16097   # First separate the path from the arguments. This will split at the first
16098   # space.
16099   complete="$FOUND_MAKE"
16100   path="${complete%% *}"
16101   tmp="$complete EOL"
16102   arguments="${tmp#* }"
16103 
16104   # Input might be given as Windows format, start by converting to
16105   # unix format.
16106   new_path="$path"
16107 
16108   windows_path="$new_path"
16109   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16110     unix_path=`$CYGPATH -u "$windows_path"`
16111     new_path="$unix_path"
16112   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16113     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16114     new_path="$unix_path"
16115   fi
16116 
16117 
16118   # Now try to locate executable using which
16119   new_path=`$WHICH "$new_path" 2> /dev/null`
16120 
16121   if test "x$new_path" = x; then
16122     # Oops. Which didn't find the executable.
16123     # The splitting of arguments from the executable at a space might have been incorrect,
16124     # since paths with space are more likely in Windows. Give it another try with the whole
16125     # argument.
16126     path="$complete"
16127     arguments="EOL"
16128     new_path="$path"
16129 
16130   windows_path="$new_path"
16131   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16132     unix_path=`$CYGPATH -u "$windows_path"`
16133     new_path="$unix_path"
16134   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16135     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16136     new_path="$unix_path"
16137   fi
16138 
16139 
16140     new_path=`$WHICH "$new_path" 2> /dev/null`
16141 
16142     if test "x$new_path" = x; then
16143       # It's still not found. Now this is an unrecoverable error.
16144       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16145 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16146       has_space=`$ECHO "$complete" | $GREP " "`
16147       if test "x$has_space" != x; then
16148         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16149 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16150       fi
16151       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16152     fi
16153   fi
16154 
16155   # Now new_path has a complete unix path to the binary
16156   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16157     # Keep paths in /bin as-is, but remove trailing .exe if any
16158     new_path="${new_path/%.exe/}"
16159     # Do not save /bin paths to all_fixpath_prefixes!
16160   else
16161     # Not in mixed or Windows style, start by that.
16162     new_path=`cmd //c echo $new_path`
16163 
16164   input_path="$new_path"
16165   # Check if we need to convert this using DOS-style short mode. If the path
16166   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16167   # take no chances and rewrite it.
16168   # Note: m4 eats our [], so we need to use [ and ] instead.
16169   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16170   if test "x$has_forbidden_chars" != x; then
16171     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16172     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16173   fi
16174 
16175     # Output is in $new_path
16176 
16177   windows_path="$new_path"
16178   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16179     unix_path=`$CYGPATH -u "$windows_path"`
16180     new_path="$unix_path"
16181   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16182     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16183     new_path="$unix_path"
16184   fi
16185 
16186     # remove trailing .exe if any
16187     new_path="${new_path/%.exe/}"
16188 
16189     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16190     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16191   fi
16192 
16193   else
16194     # We're on a posix platform. Hooray! :)
16195     # First separate the path from the arguments. This will split at the first
16196     # space.
16197     complete="$FOUND_MAKE"
16198     path="${complete%% *}"
16199     tmp="$complete EOL"
16200     arguments="${tmp#* }"
16201 
16202     # Cannot rely on the command "which" here since it doesn't always work.
16203     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16204     if test -z "$is_absolute_path"; then
16205       # Path to executable is not absolute. Find it.
16206       IFS_save="$IFS"
16207       IFS=:
16208       for p in $PATH; do
16209         if test -f "$p/$path" && test -x "$p/$path"; then
16210           new_path="$p/$path"
16211           break
16212         fi
16213       done
16214       IFS="$IFS_save"
16215     else
16216       # This is an absolute path, we can use it without further modifications.
16217       new_path="$path"
16218     fi
16219 
16220     if test "x$new_path" = x; then
16221       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16222 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16223       has_space=`$ECHO "$complete" | $GREP " "`
16224       if test "x$has_space" != x; then
16225         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16226 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16227       fi
16228       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16229     fi
16230   fi
16231 
16232   # Now join together the path and the arguments once again
16233   if test "x$arguments" != xEOL; then
16234     new_complete="$new_path ${arguments% *}"
16235   else
16236     new_complete="$new_path"
16237   fi
16238 
16239   if test "x$complete" != "x$new_complete"; then
16240     FOUND_MAKE="$new_complete"
16241     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16242 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16243   fi
16244 
16245         fi
16246       fi
16247     fi
16248   fi
16249 
16250     fi
16251 
16252     if test "x$FOUND_MAKE" = x; then
16253       if test "x$TOOLCHAIN_PATH" != x; then
16254         # We have a toolchain path, check that as well before giving up.
16255         OLD_PATH=$PATH
16256         PATH=$TOOLCHAIN_PATH:$PATH
16257         for ac_prog in gmake
16258 do
16259   # Extract the first word of "$ac_prog", so it can be a program name with args.
16260 set dummy $ac_prog; ac_word=$2
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16262 $as_echo_n "checking for $ac_word... " >&6; }
16263 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16264   $as_echo_n "(cached) " >&6
16265 else
16266   case $CHECK_TOOLSDIR_GMAKE in
16267   [\\/]* | ?:[\\/]*)
16268   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16269   ;;
16270   *)
16271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16272 for as_dir in $PATH
16273 do
16274   IFS=$as_save_IFS
16275   test -z "$as_dir" && as_dir=.
16276     for ac_exec_ext in '' $ac_executable_extensions; do
16277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16278     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16280     break 2
16281   fi
16282 done
16283   done
16284 IFS=$as_save_IFS
16285 
16286   ;;
16287 esac
16288 fi
16289 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16290 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16292 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16293 else
16294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295 $as_echo "no" >&6; }
16296 fi
16297 
16298 
16299   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16300 done
16301 
16302 
16303   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16304   DESCRIPTION="gmake in tools-dir"
16305   if test "x$MAKE_CANDIDATE" != x; then
16306     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16307 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16308     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16309     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16310     if test "x$IS_GNU_MAKE" = x; then
16311       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16312 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16313     else
16314       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16315       if test "x$IS_MODERN_MAKE" = x; then
16316         { $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
16317 $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;}
16318       else
16319         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16320           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16321             MAKE_EXPECTED_ENV='cygwin'
16322           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16323             MAKE_EXPECTED_ENV='msys'
16324           else
16325             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16326           fi
16327           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16328           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16329         else
16330           # Not relevant for non-Windows
16331           IS_MAKE_CORRECT_ENV=true
16332         fi
16333         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16334           { $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
16335 $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;}
16336         else
16337           FOUND_MAKE=$MAKE_CANDIDATE
16338 
16339   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16340 
16341   # First separate the path from the arguments. This will split at the first
16342   # space.
16343   complete="$FOUND_MAKE"
16344   path="${complete%% *}"
16345   tmp="$complete EOL"
16346   arguments="${tmp#* }"
16347 
16348   # Input might be given as Windows format, start by converting to
16349   # unix format.
16350   new_path=`$CYGPATH -u "$path"`
16351 
16352   # Now try to locate executable using which
16353   new_path=`$WHICH "$new_path" 2> /dev/null`
16354   # bat and cmd files are not always considered executable in cygwin causing which
16355   # to not find them
16356   if test "x$new_path" = x \
16357       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16358       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16359     new_path=`$CYGPATH -u "$path"`
16360   fi
16361   if test "x$new_path" = x; then
16362     # Oops. Which didn't find the executable.
16363     # The splitting of arguments from the executable at a space might have been incorrect,
16364     # since paths with space are more likely in Windows. Give it another try with the whole
16365     # argument.
16366     path="$complete"
16367     arguments="EOL"
16368     new_path=`$CYGPATH -u "$path"`
16369     new_path=`$WHICH "$new_path" 2> /dev/null`
16370     # bat and cmd files are not always considered executable in cygwin causing which
16371     # to not find them
16372     if test "x$new_path" = x \
16373         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16374         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16375       new_path=`$CYGPATH -u "$path"`
16376     fi
16377     if test "x$new_path" = x; then
16378       # It's still not found. Now this is an unrecoverable error.
16379       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16380 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16381       has_space=`$ECHO "$complete" | $GREP " "`
16382       if test "x$has_space" != x; then
16383         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16385       fi
16386       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16387     fi
16388   fi
16389 
16390   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16391   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16392   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16393   # "foo.exe" is OK but "foo" is an error.
16394   #
16395   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16396   # It is also a way to make sure we got the proper file name for the real test later on.
16397   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16398   if test "x$test_shortpath" = x; then
16399     # Short path failed, file does not exist as specified.
16400     # Try adding .exe or .cmd
16401     if test -f "${new_path}.exe"; then
16402       input_to_shortpath="${new_path}.exe"
16403     elif test -f "${new_path}.cmd"; then
16404       input_to_shortpath="${new_path}.cmd"
16405     else
16406       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16407 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16408       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16410       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16411     fi
16412   else
16413     input_to_shortpath="$new_path"
16414   fi
16415 
16416   # Call helper function which possibly converts this using DOS-style short mode.
16417   # If so, the updated path is stored in $new_path.
16418   new_path="$input_to_shortpath"
16419 
16420   input_path="$input_to_shortpath"
16421   # Check if we need to convert this using DOS-style short mode. If the path
16422   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16423   # take no chances and rewrite it.
16424   # Note: m4 eats our [], so we need to use [ and ] instead.
16425   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16426   if test "x$has_forbidden_chars" != x; then
16427     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16428     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16429     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16430     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16431       # Going to short mode and back again did indeed matter. Since short mode is
16432       # case insensitive, let's make it lowercase to improve readability.
16433       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16434       # Now convert it back to Unix-stile (cygpath)
16435       input_path=`$CYGPATH -u "$shortmode_path"`
16436       new_path="$input_path"
16437     fi
16438   fi
16439 
16440   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16441   if test "x$test_cygdrive_prefix" = x; then
16442     # As a simple fix, exclude /usr/bin since it's not a real path.
16443     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16444       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16445       # a path prefixed by /cygdrive for fixpath to work.
16446       new_path="$CYGWIN_ROOT_PATH$input_path"
16447     fi
16448   fi
16449 
16450   # remove trailing .exe if any
16451   new_path="${new_path/%.exe/}"
16452 
16453   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16454 
16455   # First separate the path from the arguments. This will split at the first
16456   # space.
16457   complete="$FOUND_MAKE"
16458   path="${complete%% *}"
16459   tmp="$complete EOL"
16460   arguments="${tmp#* }"
16461 
16462   # Input might be given as Windows format, start by converting to
16463   # unix format.
16464   new_path="$path"
16465 
16466   windows_path="$new_path"
16467   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16468     unix_path=`$CYGPATH -u "$windows_path"`
16469     new_path="$unix_path"
16470   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16471     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16472     new_path="$unix_path"
16473   fi
16474 
16475 
16476   # Now try to locate executable using which
16477   new_path=`$WHICH "$new_path" 2> /dev/null`
16478 
16479   if test "x$new_path" = x; then
16480     # Oops. Which didn't find the executable.
16481     # The splitting of arguments from the executable at a space might have been incorrect,
16482     # since paths with space are more likely in Windows. Give it another try with the whole
16483     # argument.
16484     path="$complete"
16485     arguments="EOL"
16486     new_path="$path"
16487 
16488   windows_path="$new_path"
16489   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16490     unix_path=`$CYGPATH -u "$windows_path"`
16491     new_path="$unix_path"
16492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16493     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16494     new_path="$unix_path"
16495   fi
16496 
16497 
16498     new_path=`$WHICH "$new_path" 2> /dev/null`
16499 
16500     if test "x$new_path" = x; then
16501       # It's still not found. Now this is an unrecoverable error.
16502       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16503 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16504       has_space=`$ECHO "$complete" | $GREP " "`
16505       if test "x$has_space" != x; then
16506         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16507 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16508       fi
16509       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16510     fi
16511   fi
16512 
16513   # Now new_path has a complete unix path to the binary
16514   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16515     # Keep paths in /bin as-is, but remove trailing .exe if any
16516     new_path="${new_path/%.exe/}"
16517     # Do not save /bin paths to all_fixpath_prefixes!
16518   else
16519     # Not in mixed or Windows style, start by that.
16520     new_path=`cmd //c echo $new_path`
16521 
16522   input_path="$new_path"
16523   # Check if we need to convert this using DOS-style short mode. If the path
16524   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16525   # take no chances and rewrite it.
16526   # Note: m4 eats our [], so we need to use [ and ] instead.
16527   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16528   if test "x$has_forbidden_chars" != x; then
16529     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16530     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16531   fi
16532 
16533     # Output is in $new_path
16534 
16535   windows_path="$new_path"
16536   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16537     unix_path=`$CYGPATH -u "$windows_path"`
16538     new_path="$unix_path"
16539   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16540     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16541     new_path="$unix_path"
16542   fi
16543 
16544     # remove trailing .exe if any
16545     new_path="${new_path/%.exe/}"
16546 
16547     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16548     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16549   fi
16550 
16551   else
16552     # We're on a posix platform. Hooray! :)
16553     # First separate the path from the arguments. This will split at the first
16554     # space.
16555     complete="$FOUND_MAKE"
16556     path="${complete%% *}"
16557     tmp="$complete EOL"
16558     arguments="${tmp#* }"
16559 
16560     # Cannot rely on the command "which" here since it doesn't always work.
16561     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16562     if test -z "$is_absolute_path"; then
16563       # Path to executable is not absolute. Find it.
16564       IFS_save="$IFS"
16565       IFS=:
16566       for p in $PATH; do
16567         if test -f "$p/$path" && test -x "$p/$path"; then
16568           new_path="$p/$path"
16569           break
16570         fi
16571       done
16572       IFS="$IFS_save"
16573     else
16574       # This is an absolute path, we can use it without further modifications.
16575       new_path="$path"
16576     fi
16577 
16578     if test "x$new_path" = x; then
16579       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16580 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16581       has_space=`$ECHO "$complete" | $GREP " "`
16582       if test "x$has_space" != x; then
16583         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16584 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16585       fi
16586       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16587     fi
16588   fi
16589 
16590   # Now join together the path and the arguments once again
16591   if test "x$arguments" != xEOL; then
16592     new_complete="$new_path ${arguments% *}"
16593   else
16594     new_complete="$new_path"
16595   fi
16596 
16597   if test "x$complete" != "x$new_complete"; then
16598     FOUND_MAKE="$new_complete"
16599     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16600 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16601   fi
16602 
16603         fi
16604       fi
16605     fi
16606   fi
16607 
16608         if test "x$FOUND_MAKE" = x; then
16609           for ac_prog in make
16610 do
16611   # Extract the first word of "$ac_prog", so it can be a program name with args.
16612 set dummy $ac_prog; ac_word=$2
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16614 $as_echo_n "checking for $ac_word... " >&6; }
16615 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16616   $as_echo_n "(cached) " >&6
16617 else
16618   case $CHECK_TOOLSDIR_MAKE in
16619   [\\/]* | ?:[\\/]*)
16620   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16621   ;;
16622   *)
16623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16624 for as_dir in $PATH
16625 do
16626   IFS=$as_save_IFS
16627   test -z "$as_dir" && as_dir=.
16628     for ac_exec_ext in '' $ac_executable_extensions; do
16629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16630     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16632     break 2
16633   fi
16634 done
16635   done
16636 IFS=$as_save_IFS
16637 
16638   ;;
16639 esac
16640 fi
16641 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16642 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16644 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16645 else
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16647 $as_echo "no" >&6; }
16648 fi
16649 
16650 
16651   test -n "$CHECK_TOOLSDIR_MAKE" && break
16652 done
16653 
16654 
16655   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16656   DESCRIPTION="make in tools-dir"
16657   if test "x$MAKE_CANDIDATE" != x; then
16658     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16659 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16660     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16661     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16662     if test "x$IS_GNU_MAKE" = x; then
16663       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16664 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16665     else
16666       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16667       if test "x$IS_MODERN_MAKE" = x; then
16668         { $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
16669 $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;}
16670       else
16671         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16672           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16673             MAKE_EXPECTED_ENV='cygwin'
16674           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16675             MAKE_EXPECTED_ENV='msys'
16676           else
16677             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16678           fi
16679           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16680           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16681         else
16682           # Not relevant for non-Windows
16683           IS_MAKE_CORRECT_ENV=true
16684         fi
16685         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16686           { $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
16687 $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;}
16688         else
16689           FOUND_MAKE=$MAKE_CANDIDATE
16690 
16691   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16692 
16693   # First separate the path from the arguments. This will split at the first
16694   # space.
16695   complete="$FOUND_MAKE"
16696   path="${complete%% *}"
16697   tmp="$complete EOL"
16698   arguments="${tmp#* }"
16699 
16700   # Input might be given as Windows format, start by converting to
16701   # unix format.
16702   new_path=`$CYGPATH -u "$path"`
16703 
16704   # Now try to locate executable using which
16705   new_path=`$WHICH "$new_path" 2> /dev/null`
16706   # bat and cmd files are not always considered executable in cygwin causing which
16707   # to not find them
16708   if test "x$new_path" = x \
16709       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16710       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16711     new_path=`$CYGPATH -u "$path"`
16712   fi
16713   if test "x$new_path" = x; then
16714     # Oops. Which didn't find the executable.
16715     # The splitting of arguments from the executable at a space might have been incorrect,
16716     # since paths with space are more likely in Windows. Give it another try with the whole
16717     # argument.
16718     path="$complete"
16719     arguments="EOL"
16720     new_path=`$CYGPATH -u "$path"`
16721     new_path=`$WHICH "$new_path" 2> /dev/null`
16722     # bat and cmd files are not always considered executable in cygwin causing which
16723     # to not find them
16724     if test "x$new_path" = x \
16725         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16726         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16727       new_path=`$CYGPATH -u "$path"`
16728     fi
16729     if test "x$new_path" = x; then
16730       # It's still not found. Now this is an unrecoverable error.
16731       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16732 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16733       has_space=`$ECHO "$complete" | $GREP " "`
16734       if test "x$has_space" != x; then
16735         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16736 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16737       fi
16738       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16739     fi
16740   fi
16741 
16742   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16743   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16744   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16745   # "foo.exe" is OK but "foo" is an error.
16746   #
16747   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16748   # It is also a way to make sure we got the proper file name for the real test later on.
16749   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16750   if test "x$test_shortpath" = x; then
16751     # Short path failed, file does not exist as specified.
16752     # Try adding .exe or .cmd
16753     if test -f "${new_path}.exe"; then
16754       input_to_shortpath="${new_path}.exe"
16755     elif test -f "${new_path}.cmd"; then
16756       input_to_shortpath="${new_path}.cmd"
16757     else
16758       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16759 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16760       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16761 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16762       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16763     fi
16764   else
16765     input_to_shortpath="$new_path"
16766   fi
16767 
16768   # Call helper function which possibly converts this using DOS-style short mode.
16769   # If so, the updated path is stored in $new_path.
16770   new_path="$input_to_shortpath"
16771 
16772   input_path="$input_to_shortpath"
16773   # Check if we need to convert this using DOS-style short mode. If the path
16774   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16775   # take no chances and rewrite it.
16776   # Note: m4 eats our [], so we need to use [ and ] instead.
16777   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16778   if test "x$has_forbidden_chars" != x; then
16779     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16780     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16781     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16782     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16783       # Going to short mode and back again did indeed matter. Since short mode is
16784       # case insensitive, let's make it lowercase to improve readability.
16785       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16786       # Now convert it back to Unix-stile (cygpath)
16787       input_path=`$CYGPATH -u "$shortmode_path"`
16788       new_path="$input_path"
16789     fi
16790   fi
16791 
16792   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16793   if test "x$test_cygdrive_prefix" = x; then
16794     # As a simple fix, exclude /usr/bin since it's not a real path.
16795     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16796       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16797       # a path prefixed by /cygdrive for fixpath to work.
16798       new_path="$CYGWIN_ROOT_PATH$input_path"
16799     fi
16800   fi
16801 
16802   # remove trailing .exe if any
16803   new_path="${new_path/%.exe/}"
16804 
16805   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16806 
16807   # First separate the path from the arguments. This will split at the first
16808   # space.
16809   complete="$FOUND_MAKE"
16810   path="${complete%% *}"
16811   tmp="$complete EOL"
16812   arguments="${tmp#* }"
16813 
16814   # Input might be given as Windows format, start by converting to
16815   # unix format.
16816   new_path="$path"
16817 
16818   windows_path="$new_path"
16819   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16820     unix_path=`$CYGPATH -u "$windows_path"`
16821     new_path="$unix_path"
16822   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16823     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16824     new_path="$unix_path"
16825   fi
16826 
16827 
16828   # Now try to locate executable using which
16829   new_path=`$WHICH "$new_path" 2> /dev/null`
16830 
16831   if test "x$new_path" = x; then
16832     # Oops. Which didn't find the executable.
16833     # The splitting of arguments from the executable at a space might have been incorrect,
16834     # since paths with space are more likely in Windows. Give it another try with the whole
16835     # argument.
16836     path="$complete"
16837     arguments="EOL"
16838     new_path="$path"
16839 
16840   windows_path="$new_path"
16841   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16842     unix_path=`$CYGPATH -u "$windows_path"`
16843     new_path="$unix_path"
16844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16845     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16846     new_path="$unix_path"
16847   fi
16848 
16849 
16850     new_path=`$WHICH "$new_path" 2> /dev/null`
16851 
16852     if test "x$new_path" = x; then
16853       # It's still not found. Now this is an unrecoverable error.
16854       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16855 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16856       has_space=`$ECHO "$complete" | $GREP " "`
16857       if test "x$has_space" != x; then
16858         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16859 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16860       fi
16861       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16862     fi
16863   fi
16864 
16865   # Now new_path has a complete unix path to the binary
16866   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16867     # Keep paths in /bin as-is, but remove trailing .exe if any
16868     new_path="${new_path/%.exe/}"
16869     # Do not save /bin paths to all_fixpath_prefixes!
16870   else
16871     # Not in mixed or Windows style, start by that.
16872     new_path=`cmd //c echo $new_path`
16873 
16874   input_path="$new_path"
16875   # Check if we need to convert this using DOS-style short mode. If the path
16876   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16877   # take no chances and rewrite it.
16878   # Note: m4 eats our [], so we need to use [ and ] instead.
16879   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16880   if test "x$has_forbidden_chars" != x; then
16881     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16882     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16883   fi
16884 
16885     # Output is in $new_path
16886 
16887   windows_path="$new_path"
16888   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16889     unix_path=`$CYGPATH -u "$windows_path"`
16890     new_path="$unix_path"
16891   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16892     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16893     new_path="$unix_path"
16894   fi
16895 
16896     # remove trailing .exe if any
16897     new_path="${new_path/%.exe/}"
16898 
16899     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16900     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16901   fi
16902 
16903   else
16904     # We're on a posix platform. Hooray! :)
16905     # First separate the path from the arguments. This will split at the first
16906     # space.
16907     complete="$FOUND_MAKE"
16908     path="${complete%% *}"
16909     tmp="$complete EOL"
16910     arguments="${tmp#* }"
16911 
16912     # Cannot rely on the command "which" here since it doesn't always work.
16913     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16914     if test -z "$is_absolute_path"; then
16915       # Path to executable is not absolute. Find it.
16916       IFS_save="$IFS"
16917       IFS=:
16918       for p in $PATH; do
16919         if test -f "$p/$path" && test -x "$p/$path"; then
16920           new_path="$p/$path"
16921           break
16922         fi
16923       done
16924       IFS="$IFS_save"
16925     else
16926       # This is an absolute path, we can use it without further modifications.
16927       new_path="$path"
16928     fi
16929 
16930     if test "x$new_path" = x; then
16931       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16932 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16933       has_space=`$ECHO "$complete" | $GREP " "`
16934       if test "x$has_space" != x; then
16935         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16936 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16937       fi
16938       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16939     fi
16940   fi
16941 
16942   # Now join together the path and the arguments once again
16943   if test "x$arguments" != xEOL; then
16944     new_complete="$new_path ${arguments% *}"
16945   else
16946     new_complete="$new_path"
16947   fi
16948 
16949   if test "x$complete" != "x$new_complete"; then
16950     FOUND_MAKE="$new_complete"
16951     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16952 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16953   fi
16954 
16955         fi
16956       fi
16957     fi
16958   fi
16959 
16960         fi
16961         PATH=$OLD_PATH
16962       fi
16963     fi
16964 
16965     if test "x$FOUND_MAKE" = x; then
16966       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
16967     fi
16968   fi
16969 
16970   MAKE=$FOUND_MAKE
16971 
16972   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16973 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16974 
16975 
16976 
16977   # Test if find supports -delete
16978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16979 $as_echo_n "checking if find supports -delete... " >&6; }
16980   FIND_DELETE="-delete"
16981 
16982   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16983 
16984   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16985 
16986   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16987   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16988     # No, it does not.
16989     rm $DELETEDIR/TestIfFindSupportsDelete
16990     FIND_DELETE="-exec rm \{\} \+"
16991     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16993   else
16994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16995 $as_echo "yes" >&6; }
16996   fi
16997   rmdir $DELETEDIR
16998 
16999 
17000 
17001   # These tools might not be installed by default,
17002   # need hint on how to install them.
17003 
17004 
17005 
17006   # Publish this variable in the help.
17007 
17008 
17009   if test "x$UNZIP" = x; then
17010     # The variable is not set by user, try to locate tool using the code snippet
17011     for ac_prog in unzip
17012 do
17013   # Extract the first word of "$ac_prog", so it can be a program name with args.
17014 set dummy $ac_prog; ac_word=$2
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17016 $as_echo_n "checking for $ac_word... " >&6; }
17017 if ${ac_cv_path_UNZIP+:} false; then :
17018   $as_echo_n "(cached) " >&6
17019 else
17020   case $UNZIP in
17021   [\\/]* | ?:[\\/]*)
17022   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17023   ;;
17024   *)
17025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17026 for as_dir in $PATH
17027 do
17028   IFS=$as_save_IFS
17029   test -z "$as_dir" && as_dir=.
17030     for ac_exec_ext in '' $ac_executable_extensions; do
17031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17032     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17034     break 2
17035   fi
17036 done
17037   done
17038 IFS=$as_save_IFS
17039 
17040   ;;
17041 esac
17042 fi
17043 UNZIP=$ac_cv_path_UNZIP
17044 if test -n "$UNZIP"; then
17045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17046 $as_echo "$UNZIP" >&6; }
17047 else
17048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17049 $as_echo "no" >&6; }
17050 fi
17051 
17052 
17053   test -n "$UNZIP" && break
17054 done
17055 
17056   else
17057     # The variable is set, but is it from the command line or the environment?
17058 
17059     # Try to remove the string !UNZIP! from our list.
17060     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17061     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17062       # If it failed, the variable was not from the command line. Ignore it,
17063       # but warn the user (except for BASH, which is always set by the calling BASH).
17064       if test "xUNZIP" != xBASH; then
17065         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17066 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17067       fi
17068       # Try to locate tool using the code snippet
17069       for ac_prog in unzip
17070 do
17071   # Extract the first word of "$ac_prog", so it can be a program name with args.
17072 set dummy $ac_prog; ac_word=$2
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17074 $as_echo_n "checking for $ac_word... " >&6; }
17075 if ${ac_cv_path_UNZIP+:} false; then :
17076   $as_echo_n "(cached) " >&6
17077 else
17078   case $UNZIP in
17079   [\\/]* | ?:[\\/]*)
17080   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17081   ;;
17082   *)
17083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17084 for as_dir in $PATH
17085 do
17086   IFS=$as_save_IFS
17087   test -z "$as_dir" && as_dir=.
17088     for ac_exec_ext in '' $ac_executable_extensions; do
17089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17090     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17092     break 2
17093   fi
17094 done
17095   done
17096 IFS=$as_save_IFS
17097 
17098   ;;
17099 esac
17100 fi
17101 UNZIP=$ac_cv_path_UNZIP
17102 if test -n "$UNZIP"; then
17103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17104 $as_echo "$UNZIP" >&6; }
17105 else
17106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107 $as_echo "no" >&6; }
17108 fi
17109 
17110 
17111   test -n "$UNZIP" && break
17112 done
17113 
17114     else
17115       # If it succeeded, then it was overridden by the user. We will use it
17116       # for the tool.
17117 
17118       # First remove it from the list of overridden variables, so we can test
17119       # for unknown variables in the end.
17120       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17121 
17122       # Check if the provided tool contains a complete path.
17123       tool_specified="$UNZIP"
17124       tool_basename="${tool_specified##*/}"
17125       if test "x$tool_basename" = "x$tool_specified"; then
17126         # A command without a complete path is provided, search $PATH.
17127         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17128 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17129         # Extract the first word of "$tool_basename", so it can be a program name with args.
17130 set dummy $tool_basename; ac_word=$2
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17132 $as_echo_n "checking for $ac_word... " >&6; }
17133 if ${ac_cv_path_UNZIP+:} false; then :
17134   $as_echo_n "(cached) " >&6
17135 else
17136   case $UNZIP in
17137   [\\/]* | ?:[\\/]*)
17138   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17139   ;;
17140   *)
17141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17142 for as_dir in $PATH
17143 do
17144   IFS=$as_save_IFS
17145   test -z "$as_dir" && as_dir=.
17146     for ac_exec_ext in '' $ac_executable_extensions; do
17147   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17148     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17150     break 2
17151   fi
17152 done
17153   done
17154 IFS=$as_save_IFS
17155 
17156   ;;
17157 esac
17158 fi
17159 UNZIP=$ac_cv_path_UNZIP
17160 if test -n "$UNZIP"; then
17161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17162 $as_echo "$UNZIP" >&6; }
17163 else
17164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17165 $as_echo "no" >&6; }
17166 fi
17167 
17168 
17169         if test "x$UNZIP" = x; then
17170           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17171         fi
17172       else
17173         # Otherwise we believe it is a complete path. Use it as it is.
17174         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17175 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17177 $as_echo_n "checking for UNZIP... " >&6; }
17178         if test ! -x "$tool_specified"; then
17179           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17180 $as_echo "not found" >&6; }
17181           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17182         fi
17183         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17184 $as_echo "$tool_specified" >&6; }
17185       fi
17186     fi
17187   fi
17188 
17189 
17190 
17191   if test "x$UNZIP" = x; then
17192     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17193   fi
17194 
17195 
17196 
17197 
17198 
17199   # Publish this variable in the help.
17200 
17201 
17202   if test "x$ZIP" = x; then
17203     # The variable is not set by user, try to locate tool using the code snippet
17204     for ac_prog in zip
17205 do
17206   # Extract the first word of "$ac_prog", so it can be a program name with args.
17207 set dummy $ac_prog; ac_word=$2
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17209 $as_echo_n "checking for $ac_word... " >&6; }
17210 if ${ac_cv_path_ZIP+:} false; then :
17211   $as_echo_n "(cached) " >&6
17212 else
17213   case $ZIP in
17214   [\\/]* | ?:[\\/]*)
17215   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17216   ;;
17217   *)
17218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17219 for as_dir in $PATH
17220 do
17221   IFS=$as_save_IFS
17222   test -z "$as_dir" && as_dir=.
17223     for ac_exec_ext in '' $ac_executable_extensions; do
17224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17225     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17227     break 2
17228   fi
17229 done
17230   done
17231 IFS=$as_save_IFS
17232 
17233   ;;
17234 esac
17235 fi
17236 ZIP=$ac_cv_path_ZIP
17237 if test -n "$ZIP"; then
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17239 $as_echo "$ZIP" >&6; }
17240 else
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17243 fi
17244 
17245 
17246   test -n "$ZIP" && break
17247 done
17248 
17249   else
17250     # The variable is set, but is it from the command line or the environment?
17251 
17252     # Try to remove the string !ZIP! from our list.
17253     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17254     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17255       # If it failed, the variable was not from the command line. Ignore it,
17256       # but warn the user (except for BASH, which is always set by the calling BASH).
17257       if test "xZIP" != xBASH; then
17258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17259 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17260       fi
17261       # Try to locate tool using the code snippet
17262       for ac_prog in zip
17263 do
17264   # Extract the first word of "$ac_prog", so it can be a program name with args.
17265 set dummy $ac_prog; ac_word=$2
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17267 $as_echo_n "checking for $ac_word... " >&6; }
17268 if ${ac_cv_path_ZIP+:} false; then :
17269   $as_echo_n "(cached) " >&6
17270 else
17271   case $ZIP in
17272   [\\/]* | ?:[\\/]*)
17273   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17274   ;;
17275   *)
17276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17277 for as_dir in $PATH
17278 do
17279   IFS=$as_save_IFS
17280   test -z "$as_dir" && as_dir=.
17281     for ac_exec_ext in '' $ac_executable_extensions; do
17282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17283     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17285     break 2
17286   fi
17287 done
17288   done
17289 IFS=$as_save_IFS
17290 
17291   ;;
17292 esac
17293 fi
17294 ZIP=$ac_cv_path_ZIP
17295 if test -n "$ZIP"; then
17296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17297 $as_echo "$ZIP" >&6; }
17298 else
17299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17301 fi
17302 
17303 
17304   test -n "$ZIP" && break
17305 done
17306 
17307     else
17308       # If it succeeded, then it was overridden by the user. We will use it
17309       # for the tool.
17310 
17311       # First remove it from the list of overridden variables, so we can test
17312       # for unknown variables in the end.
17313       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17314 
17315       # Check if the provided tool contains a complete path.
17316       tool_specified="$ZIP"
17317       tool_basename="${tool_specified##*/}"
17318       if test "x$tool_basename" = "x$tool_specified"; then
17319         # A command without a complete path is provided, search $PATH.
17320         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17321 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17322         # Extract the first word of "$tool_basename", so it can be a program name with args.
17323 set dummy $tool_basename; ac_word=$2
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17325 $as_echo_n "checking for $ac_word... " >&6; }
17326 if ${ac_cv_path_ZIP+:} false; then :
17327   $as_echo_n "(cached) " >&6
17328 else
17329   case $ZIP in
17330   [\\/]* | ?:[\\/]*)
17331   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17332   ;;
17333   *)
17334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17335 for as_dir in $PATH
17336 do
17337   IFS=$as_save_IFS
17338   test -z "$as_dir" && as_dir=.
17339     for ac_exec_ext in '' $ac_executable_extensions; do
17340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17341     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17343     break 2
17344   fi
17345 done
17346   done
17347 IFS=$as_save_IFS
17348 
17349   ;;
17350 esac
17351 fi
17352 ZIP=$ac_cv_path_ZIP
17353 if test -n "$ZIP"; then
17354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17355 $as_echo "$ZIP" >&6; }
17356 else
17357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358 $as_echo "no" >&6; }
17359 fi
17360 
17361 
17362         if test "x$ZIP" = x; then
17363           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17364         fi
17365       else
17366         # Otherwise we believe it is a complete path. Use it as it is.
17367         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17368 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17370 $as_echo_n "checking for ZIP... " >&6; }
17371         if test ! -x "$tool_specified"; then
17372           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17373 $as_echo "not found" >&6; }
17374           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17375         fi
17376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17377 $as_echo "$tool_specified" >&6; }
17378       fi
17379     fi
17380   fi
17381 
17382 
17383 
17384   if test "x$ZIP" = x; then
17385     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17386   fi
17387 
17388 
17389 
17390   # Non-required basic tools
17391 
17392 
17393 
17394   # Publish this variable in the help.
17395 
17396 
17397   if test "x$LDD" = x; then
17398     # The variable is not set by user, try to locate tool using the code snippet
17399     for ac_prog in ldd
17400 do
17401   # Extract the first word of "$ac_prog", so it can be a program name with args.
17402 set dummy $ac_prog; ac_word=$2
17403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17404 $as_echo_n "checking for $ac_word... " >&6; }
17405 if ${ac_cv_path_LDD+:} false; then :
17406   $as_echo_n "(cached) " >&6
17407 else
17408   case $LDD in
17409   [\\/]* | ?:[\\/]*)
17410   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17411   ;;
17412   *)
17413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17414 for as_dir in $PATH
17415 do
17416   IFS=$as_save_IFS
17417   test -z "$as_dir" && as_dir=.
17418     for ac_exec_ext in '' $ac_executable_extensions; do
17419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17420     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17422     break 2
17423   fi
17424 done
17425   done
17426 IFS=$as_save_IFS
17427 
17428   ;;
17429 esac
17430 fi
17431 LDD=$ac_cv_path_LDD
17432 if test -n "$LDD"; then
17433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17434 $as_echo "$LDD" >&6; }
17435 else
17436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17437 $as_echo "no" >&6; }
17438 fi
17439 
17440 
17441   test -n "$LDD" && break
17442 done
17443 
17444   else
17445     # The variable is set, but is it from the command line or the environment?
17446 
17447     # Try to remove the string !LDD! from our list.
17448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17450       # If it failed, the variable was not from the command line. Ignore it,
17451       # but warn the user (except for BASH, which is always set by the calling BASH).
17452       if test "xLDD" != xBASH; then
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17454 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17455       fi
17456       # Try to locate tool using the code snippet
17457       for ac_prog in ldd
17458 do
17459   # Extract the first word of "$ac_prog", so it can be a program name with args.
17460 set dummy $ac_prog; ac_word=$2
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17462 $as_echo_n "checking for $ac_word... " >&6; }
17463 if ${ac_cv_path_LDD+:} false; then :
17464   $as_echo_n "(cached) " >&6
17465 else
17466   case $LDD in
17467   [\\/]* | ?:[\\/]*)
17468   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17469   ;;
17470   *)
17471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17473 do
17474   IFS=$as_save_IFS
17475   test -z "$as_dir" && as_dir=.
17476     for ac_exec_ext in '' $ac_executable_extensions; do
17477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17480     break 2
17481   fi
17482 done
17483   done
17484 IFS=$as_save_IFS
17485 
17486   ;;
17487 esac
17488 fi
17489 LDD=$ac_cv_path_LDD
17490 if test -n "$LDD"; then
17491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17492 $as_echo "$LDD" >&6; }
17493 else
17494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 $as_echo "no" >&6; }
17496 fi
17497 
17498 
17499   test -n "$LDD" && break
17500 done
17501 
17502     else
17503       # If it succeeded, then it was overridden by the user. We will use it
17504       # for the tool.
17505 
17506       # First remove it from the list of overridden variables, so we can test
17507       # for unknown variables in the end.
17508       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17509 
17510       # Check if the provided tool contains a complete path.
17511       tool_specified="$LDD"
17512       tool_basename="${tool_specified##*/}"
17513       if test "x$tool_basename" = "x$tool_specified"; then
17514         # A command without a complete path is provided, search $PATH.
17515         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17516 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17517         # Extract the first word of "$tool_basename", so it can be a program name with args.
17518 set dummy $tool_basename; ac_word=$2
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17520 $as_echo_n "checking for $ac_word... " >&6; }
17521 if ${ac_cv_path_LDD+:} false; then :
17522   $as_echo_n "(cached) " >&6
17523 else
17524   case $LDD in
17525   [\\/]* | ?:[\\/]*)
17526   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17527   ;;
17528   *)
17529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17530 for as_dir in $PATH
17531 do
17532   IFS=$as_save_IFS
17533   test -z "$as_dir" && as_dir=.
17534     for ac_exec_ext in '' $ac_executable_extensions; do
17535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17536     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17538     break 2
17539   fi
17540 done
17541   done
17542 IFS=$as_save_IFS
17543 
17544   ;;
17545 esac
17546 fi
17547 LDD=$ac_cv_path_LDD
17548 if test -n "$LDD"; then
17549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17550 $as_echo "$LDD" >&6; }
17551 else
17552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17553 $as_echo "no" >&6; }
17554 fi
17555 
17556 
17557         if test "x$LDD" = x; then
17558           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17559         fi
17560       else
17561         # Otherwise we believe it is a complete path. Use it as it is.
17562         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17563 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17565 $as_echo_n "checking for LDD... " >&6; }
17566         if test ! -x "$tool_specified"; then
17567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17568 $as_echo "not found" >&6; }
17569           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17570         fi
17571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17572 $as_echo "$tool_specified" >&6; }
17573       fi
17574     fi
17575   fi
17576 
17577 
17578   if test "x$LDD" = "x"; then
17579     # List shared lib dependencies is used for
17580     # debug output and checking for forbidden dependencies.
17581     # We can build without it.
17582     LDD="true"
17583   fi
17584 
17585 
17586   # Publish this variable in the help.
17587 
17588 
17589   if test "x$OTOOL" = x; then
17590     # The variable is not set by user, try to locate tool using the code snippet
17591     for ac_prog in otool
17592 do
17593   # Extract the first word of "$ac_prog", so it can be a program name with args.
17594 set dummy $ac_prog; ac_word=$2
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17596 $as_echo_n "checking for $ac_word... " >&6; }
17597 if ${ac_cv_path_OTOOL+:} false; then :
17598   $as_echo_n "(cached) " >&6
17599 else
17600   case $OTOOL in
17601   [\\/]* | ?:[\\/]*)
17602   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17603   ;;
17604   *)
17605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17606 for as_dir in $PATH
17607 do
17608   IFS=$as_save_IFS
17609   test -z "$as_dir" && as_dir=.
17610     for ac_exec_ext in '' $ac_executable_extensions; do
17611   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17612     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17614     break 2
17615   fi
17616 done
17617   done
17618 IFS=$as_save_IFS
17619 
17620   ;;
17621 esac
17622 fi
17623 OTOOL=$ac_cv_path_OTOOL
17624 if test -n "$OTOOL"; then
17625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17626 $as_echo "$OTOOL" >&6; }
17627 else
17628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17629 $as_echo "no" >&6; }
17630 fi
17631 
17632 
17633   test -n "$OTOOL" && break
17634 done
17635 
17636   else
17637     # The variable is set, but is it from the command line or the environment?
17638 
17639     # Try to remove the string !OTOOL! from our list.
17640     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17641     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17642       # If it failed, the variable was not from the command line. Ignore it,
17643       # but warn the user (except for BASH, which is always set by the calling BASH).
17644       if test "xOTOOL" != xBASH; then
17645         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17646 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17647       fi
17648       # Try to locate tool using the code snippet
17649       for ac_prog in otool
17650 do
17651   # Extract the first word of "$ac_prog", so it can be a program name with args.
17652 set dummy $ac_prog; ac_word=$2
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17654 $as_echo_n "checking for $ac_word... " >&6; }
17655 if ${ac_cv_path_OTOOL+:} false; then :
17656   $as_echo_n "(cached) " >&6
17657 else
17658   case $OTOOL in
17659   [\\/]* | ?:[\\/]*)
17660   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17661   ;;
17662   *)
17663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17664 for as_dir in $PATH
17665 do
17666   IFS=$as_save_IFS
17667   test -z "$as_dir" && as_dir=.
17668     for ac_exec_ext in '' $ac_executable_extensions; do
17669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17670     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17672     break 2
17673   fi
17674 done
17675   done
17676 IFS=$as_save_IFS
17677 
17678   ;;
17679 esac
17680 fi
17681 OTOOL=$ac_cv_path_OTOOL
17682 if test -n "$OTOOL"; then
17683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17684 $as_echo "$OTOOL" >&6; }
17685 else
17686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 $as_echo "no" >&6; }
17688 fi
17689 
17690 
17691   test -n "$OTOOL" && break
17692 done
17693 
17694     else
17695       # If it succeeded, then it was overridden by the user. We will use it
17696       # for the tool.
17697 
17698       # First remove it from the list of overridden variables, so we can test
17699       # for unknown variables in the end.
17700       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17701 
17702       # Check if the provided tool contains a complete path.
17703       tool_specified="$OTOOL"
17704       tool_basename="${tool_specified##*/}"
17705       if test "x$tool_basename" = "x$tool_specified"; then
17706         # A command without a complete path is provided, search $PATH.
17707         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17708 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17709         # Extract the first word of "$tool_basename", so it can be a program name with args.
17710 set dummy $tool_basename; ac_word=$2
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17712 $as_echo_n "checking for $ac_word... " >&6; }
17713 if ${ac_cv_path_OTOOL+:} false; then :
17714   $as_echo_n "(cached) " >&6
17715 else
17716   case $OTOOL in
17717   [\\/]* | ?:[\\/]*)
17718   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17719   ;;
17720   *)
17721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17722 for as_dir in $PATH
17723 do
17724   IFS=$as_save_IFS
17725   test -z "$as_dir" && as_dir=.
17726     for ac_exec_ext in '' $ac_executable_extensions; do
17727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17728     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17730     break 2
17731   fi
17732 done
17733   done
17734 IFS=$as_save_IFS
17735 
17736   ;;
17737 esac
17738 fi
17739 OTOOL=$ac_cv_path_OTOOL
17740 if test -n "$OTOOL"; then
17741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17742 $as_echo "$OTOOL" >&6; }
17743 else
17744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17745 $as_echo "no" >&6; }
17746 fi
17747 
17748 
17749         if test "x$OTOOL" = x; then
17750           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17751         fi
17752       else
17753         # Otherwise we believe it is a complete path. Use it as it is.
17754         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17755 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17756         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17757 $as_echo_n "checking for OTOOL... " >&6; }
17758         if test ! -x "$tool_specified"; then
17759           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17760 $as_echo "not found" >&6; }
17761           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17762         fi
17763         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17764 $as_echo "$tool_specified" >&6; }
17765       fi
17766     fi
17767   fi
17768 
17769 
17770   if test "x$OTOOL" = "x"; then
17771     OTOOL="true"
17772   fi
17773 
17774 
17775   # Publish this variable in the help.
17776 
17777 
17778   if test "x$READELF" = x; then
17779     # The variable is not set by user, try to locate tool using the code snippet
17780     for ac_prog in greadelf readelf
17781 do
17782   # Extract the first word of "$ac_prog", so it can be a program name with args.
17783 set dummy $ac_prog; ac_word=$2
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17785 $as_echo_n "checking for $ac_word... " >&6; }
17786 if ${ac_cv_path_READELF+:} false; then :
17787   $as_echo_n "(cached) " >&6
17788 else
17789   case $READELF in
17790   [\\/]* | ?:[\\/]*)
17791   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17792   ;;
17793   *)
17794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17795 for as_dir in $PATH
17796 do
17797   IFS=$as_save_IFS
17798   test -z "$as_dir" && as_dir=.
17799     for ac_exec_ext in '' $ac_executable_extensions; do
17800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17801     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17803     break 2
17804   fi
17805 done
17806   done
17807 IFS=$as_save_IFS
17808 
17809   ;;
17810 esac
17811 fi
17812 READELF=$ac_cv_path_READELF
17813 if test -n "$READELF"; then
17814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17815 $as_echo "$READELF" >&6; }
17816 else
17817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17818 $as_echo "no" >&6; }
17819 fi
17820 
17821 
17822   test -n "$READELF" && break
17823 done
17824 
17825   else
17826     # The variable is set, but is it from the command line or the environment?
17827 
17828     # Try to remove the string !READELF! from our list.
17829     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17830     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17831       # If it failed, the variable was not from the command line. Ignore it,
17832       # but warn the user (except for BASH, which is always set by the calling BASH).
17833       if test "xREADELF" != xBASH; then
17834         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17835 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17836       fi
17837       # Try to locate tool using the code snippet
17838       for ac_prog in greadelf readelf
17839 do
17840   # Extract the first word of "$ac_prog", so it can be a program name with args.
17841 set dummy $ac_prog; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17843 $as_echo_n "checking for $ac_word... " >&6; }
17844 if ${ac_cv_path_READELF+:} false; then :
17845   $as_echo_n "(cached) " >&6
17846 else
17847   case $READELF in
17848   [\\/]* | ?:[\\/]*)
17849   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17850   ;;
17851   *)
17852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17853 for as_dir in $PATH
17854 do
17855   IFS=$as_save_IFS
17856   test -z "$as_dir" && as_dir=.
17857     for ac_exec_ext in '' $ac_executable_extensions; do
17858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17859     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17861     break 2
17862   fi
17863 done
17864   done
17865 IFS=$as_save_IFS
17866 
17867   ;;
17868 esac
17869 fi
17870 READELF=$ac_cv_path_READELF
17871 if test -n "$READELF"; then
17872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17873 $as_echo "$READELF" >&6; }
17874 else
17875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17876 $as_echo "no" >&6; }
17877 fi
17878 
17879 
17880   test -n "$READELF" && break
17881 done
17882 
17883     else
17884       # If it succeeded, then it was overridden by the user. We will use it
17885       # for the tool.
17886 
17887       # First remove it from the list of overridden variables, so we can test
17888       # for unknown variables in the end.
17889       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17890 
17891       # Check if the provided tool contains a complete path.
17892       tool_specified="$READELF"
17893       tool_basename="${tool_specified##*/}"
17894       if test "x$tool_basename" = "x$tool_specified"; then
17895         # A command without a complete path is provided, search $PATH.
17896         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17897 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17898         # Extract the first word of "$tool_basename", so it can be a program name with args.
17899 set dummy $tool_basename; ac_word=$2
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17901 $as_echo_n "checking for $ac_word... " >&6; }
17902 if ${ac_cv_path_READELF+:} false; then :
17903   $as_echo_n "(cached) " >&6
17904 else
17905   case $READELF in
17906   [\\/]* | ?:[\\/]*)
17907   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17908   ;;
17909   *)
17910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17911 for as_dir in $PATH
17912 do
17913   IFS=$as_save_IFS
17914   test -z "$as_dir" && as_dir=.
17915     for ac_exec_ext in '' $ac_executable_extensions; do
17916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17917     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17919     break 2
17920   fi
17921 done
17922   done
17923 IFS=$as_save_IFS
17924 
17925   ;;
17926 esac
17927 fi
17928 READELF=$ac_cv_path_READELF
17929 if test -n "$READELF"; then
17930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17931 $as_echo "$READELF" >&6; }
17932 else
17933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17934 $as_echo "no" >&6; }
17935 fi
17936 
17937 
17938         if test "x$READELF" = x; then
17939           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17940         fi
17941       else
17942         # Otherwise we believe it is a complete path. Use it as it is.
17943         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17944 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17945         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17946 $as_echo_n "checking for READELF... " >&6; }
17947         if test ! -x "$tool_specified"; then
17948           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17949 $as_echo "not found" >&6; }
17950           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17951         fi
17952         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17953 $as_echo "$tool_specified" >&6; }
17954       fi
17955     fi
17956   fi
17957 
17958 
17959 
17960 
17961   # Publish this variable in the help.
17962 
17963 
17964   if test "x$HG" = x; then
17965     # The variable is not set by user, try to locate tool using the code snippet
17966     for ac_prog in hg
17967 do
17968   # Extract the first word of "$ac_prog", so it can be a program name with args.
17969 set dummy $ac_prog; ac_word=$2
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17971 $as_echo_n "checking for $ac_word... " >&6; }
17972 if ${ac_cv_path_HG+:} false; then :
17973   $as_echo_n "(cached) " >&6
17974 else
17975   case $HG in
17976   [\\/]* | ?:[\\/]*)
17977   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17978   ;;
17979   *)
17980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17981 for as_dir in $PATH
17982 do
17983   IFS=$as_save_IFS
17984   test -z "$as_dir" && as_dir=.
17985     for ac_exec_ext in '' $ac_executable_extensions; do
17986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17987     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17989     break 2
17990   fi
17991 done
17992   done
17993 IFS=$as_save_IFS
17994 
17995   ;;
17996 esac
17997 fi
17998 HG=$ac_cv_path_HG
17999 if test -n "$HG"; then
18000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18001 $as_echo "$HG" >&6; }
18002 else
18003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18004 $as_echo "no" >&6; }
18005 fi
18006 
18007 
18008   test -n "$HG" && break
18009 done
18010 
18011   else
18012     # The variable is set, but is it from the command line or the environment?
18013 
18014     # Try to remove the string !HG! from our list.
18015     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18016     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18017       # If it failed, the variable was not from the command line. Ignore it,
18018       # but warn the user (except for BASH, which is always set by the calling BASH).
18019       if test "xHG" != xBASH; then
18020         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18021 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18022       fi
18023       # Try to locate tool using the code snippet
18024       for ac_prog in hg
18025 do
18026   # Extract the first word of "$ac_prog", so it can be a program name with args.
18027 set dummy $ac_prog; ac_word=$2
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18029 $as_echo_n "checking for $ac_word... " >&6; }
18030 if ${ac_cv_path_HG+:} false; then :
18031   $as_echo_n "(cached) " >&6
18032 else
18033   case $HG in
18034   [\\/]* | ?:[\\/]*)
18035   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18036   ;;
18037   *)
18038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18039 for as_dir in $PATH
18040 do
18041   IFS=$as_save_IFS
18042   test -z "$as_dir" && as_dir=.
18043     for ac_exec_ext in '' $ac_executable_extensions; do
18044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18045     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18047     break 2
18048   fi
18049 done
18050   done
18051 IFS=$as_save_IFS
18052 
18053   ;;
18054 esac
18055 fi
18056 HG=$ac_cv_path_HG
18057 if test -n "$HG"; then
18058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18059 $as_echo "$HG" >&6; }
18060 else
18061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18062 $as_echo "no" >&6; }
18063 fi
18064 
18065 
18066   test -n "$HG" && break
18067 done
18068 
18069     else
18070       # If it succeeded, then it was overridden by the user. We will use it
18071       # for the tool.
18072 
18073       # First remove it from the list of overridden variables, so we can test
18074       # for unknown variables in the end.
18075       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18076 
18077       # Check if the provided tool contains a complete path.
18078       tool_specified="$HG"
18079       tool_basename="${tool_specified##*/}"
18080       if test "x$tool_basename" = "x$tool_specified"; then
18081         # A command without a complete path is provided, search $PATH.
18082         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18083 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18084         # Extract the first word of "$tool_basename", so it can be a program name with args.
18085 set dummy $tool_basename; ac_word=$2
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18087 $as_echo_n "checking for $ac_word... " >&6; }
18088 if ${ac_cv_path_HG+:} false; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   case $HG in
18092   [\\/]* | ?:[\\/]*)
18093   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18094   ;;
18095   *)
18096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18097 for as_dir in $PATH
18098 do
18099   IFS=$as_save_IFS
18100   test -z "$as_dir" && as_dir=.
18101     for ac_exec_ext in '' $ac_executable_extensions; do
18102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18103     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18105     break 2
18106   fi
18107 done
18108   done
18109 IFS=$as_save_IFS
18110 
18111   ;;
18112 esac
18113 fi
18114 HG=$ac_cv_path_HG
18115 if test -n "$HG"; then
18116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18117 $as_echo "$HG" >&6; }
18118 else
18119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18120 $as_echo "no" >&6; }
18121 fi
18122 
18123 
18124         if test "x$HG" = x; then
18125           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18126         fi
18127       else
18128         # Otherwise we believe it is a complete path. Use it as it is.
18129         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18130 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18131         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18132 $as_echo_n "checking for HG... " >&6; }
18133         if test ! -x "$tool_specified"; then
18134           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18135 $as_echo "not found" >&6; }
18136           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18137         fi
18138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18139 $as_echo "$tool_specified" >&6; }
18140       fi
18141     fi
18142   fi
18143 
18144 
18145 
18146 
18147   # Publish this variable in the help.
18148 
18149 
18150   if test "x$STAT" = x; then
18151     # The variable is not set by user, try to locate tool using the code snippet
18152     for ac_prog in stat
18153 do
18154   # Extract the first word of "$ac_prog", so it can be a program name with args.
18155 set dummy $ac_prog; ac_word=$2
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18157 $as_echo_n "checking for $ac_word... " >&6; }
18158 if ${ac_cv_path_STAT+:} false; then :
18159   $as_echo_n "(cached) " >&6
18160 else
18161   case $STAT in
18162   [\\/]* | ?:[\\/]*)
18163   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18164   ;;
18165   *)
18166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18167 for as_dir in $PATH
18168 do
18169   IFS=$as_save_IFS
18170   test -z "$as_dir" && as_dir=.
18171     for ac_exec_ext in '' $ac_executable_extensions; do
18172   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18173     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18174     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18175     break 2
18176   fi
18177 done
18178   done
18179 IFS=$as_save_IFS
18180 
18181   ;;
18182 esac
18183 fi
18184 STAT=$ac_cv_path_STAT
18185 if test -n "$STAT"; then
18186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18187 $as_echo "$STAT" >&6; }
18188 else
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18190 $as_echo "no" >&6; }
18191 fi
18192 
18193 
18194   test -n "$STAT" && break
18195 done
18196 
18197   else
18198     # The variable is set, but is it from the command line or the environment?
18199 
18200     # Try to remove the string !STAT! from our list.
18201     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18202     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18203       # If it failed, the variable was not from the command line. Ignore it,
18204       # but warn the user (except for BASH, which is always set by the calling BASH).
18205       if test "xSTAT" != xBASH; then
18206         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18207 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18208       fi
18209       # Try to locate tool using the code snippet
18210       for ac_prog in stat
18211 do
18212   # Extract the first word of "$ac_prog", so it can be a program name with args.
18213 set dummy $ac_prog; ac_word=$2
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18215 $as_echo_n "checking for $ac_word... " >&6; }
18216 if ${ac_cv_path_STAT+:} false; then :
18217   $as_echo_n "(cached) " >&6
18218 else
18219   case $STAT in
18220   [\\/]* | ?:[\\/]*)
18221   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18222   ;;
18223   *)
18224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18225 for as_dir in $PATH
18226 do
18227   IFS=$as_save_IFS
18228   test -z "$as_dir" && as_dir=.
18229     for ac_exec_ext in '' $ac_executable_extensions; do
18230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18231     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18233     break 2
18234   fi
18235 done
18236   done
18237 IFS=$as_save_IFS
18238 
18239   ;;
18240 esac
18241 fi
18242 STAT=$ac_cv_path_STAT
18243 if test -n "$STAT"; then
18244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18245 $as_echo "$STAT" >&6; }
18246 else
18247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18248 $as_echo "no" >&6; }
18249 fi
18250 
18251 
18252   test -n "$STAT" && break
18253 done
18254 
18255     else
18256       # If it succeeded, then it was overridden by the user. We will use it
18257       # for the tool.
18258 
18259       # First remove it from the list of overridden variables, so we can test
18260       # for unknown variables in the end.
18261       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18262 
18263       # Check if the provided tool contains a complete path.
18264       tool_specified="$STAT"
18265       tool_basename="${tool_specified##*/}"
18266       if test "x$tool_basename" = "x$tool_specified"; then
18267         # A command without a complete path is provided, search $PATH.
18268         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18269 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18270         # Extract the first word of "$tool_basename", so it can be a program name with args.
18271 set dummy $tool_basename; ac_word=$2
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18273 $as_echo_n "checking for $ac_word... " >&6; }
18274 if ${ac_cv_path_STAT+:} false; then :
18275   $as_echo_n "(cached) " >&6
18276 else
18277   case $STAT in
18278   [\\/]* | ?:[\\/]*)
18279   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18280   ;;
18281   *)
18282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18283 for as_dir in $PATH
18284 do
18285   IFS=$as_save_IFS
18286   test -z "$as_dir" && as_dir=.
18287     for ac_exec_ext in '' $ac_executable_extensions; do
18288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18289     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18291     break 2
18292   fi
18293 done
18294   done
18295 IFS=$as_save_IFS
18296 
18297   ;;
18298 esac
18299 fi
18300 STAT=$ac_cv_path_STAT
18301 if test -n "$STAT"; then
18302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18303 $as_echo "$STAT" >&6; }
18304 else
18305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 $as_echo "no" >&6; }
18307 fi
18308 
18309 
18310         if test "x$STAT" = x; then
18311           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18312         fi
18313       else
18314         # Otherwise we believe it is a complete path. Use it as it is.
18315         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18316 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18317         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18318 $as_echo_n "checking for STAT... " >&6; }
18319         if test ! -x "$tool_specified"; then
18320           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18321 $as_echo "not found" >&6; }
18322           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18323         fi
18324         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18325 $as_echo "$tool_specified" >&6; }
18326       fi
18327     fi
18328   fi
18329 
18330 
18331 
18332 
18333   # Publish this variable in the help.
18334 
18335 
18336   if test "x$TIME" = x; then
18337     # The variable is not set by user, try to locate tool using the code snippet
18338     for ac_prog in time
18339 do
18340   # Extract the first word of "$ac_prog", so it can be a program name with args.
18341 set dummy $ac_prog; ac_word=$2
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18343 $as_echo_n "checking for $ac_word... " >&6; }
18344 if ${ac_cv_path_TIME+:} false; then :
18345   $as_echo_n "(cached) " >&6
18346 else
18347   case $TIME in
18348   [\\/]* | ?:[\\/]*)
18349   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18350   ;;
18351   *)
18352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18353 for as_dir in $PATH
18354 do
18355   IFS=$as_save_IFS
18356   test -z "$as_dir" && as_dir=.
18357     for ac_exec_ext in '' $ac_executable_extensions; do
18358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18359     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18361     break 2
18362   fi
18363 done
18364   done
18365 IFS=$as_save_IFS
18366 
18367   ;;
18368 esac
18369 fi
18370 TIME=$ac_cv_path_TIME
18371 if test -n "$TIME"; then
18372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18373 $as_echo "$TIME" >&6; }
18374 else
18375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18376 $as_echo "no" >&6; }
18377 fi
18378 
18379 
18380   test -n "$TIME" && break
18381 done
18382 
18383   else
18384     # The variable is set, but is it from the command line or the environment?
18385 
18386     # Try to remove the string !TIME! from our list.
18387     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18388     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18389       # If it failed, the variable was not from the command line. Ignore it,
18390       # but warn the user (except for BASH, which is always set by the calling BASH).
18391       if test "xTIME" != xBASH; then
18392         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18393 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18394       fi
18395       # Try to locate tool using the code snippet
18396       for ac_prog in time
18397 do
18398   # Extract the first word of "$ac_prog", so it can be a program name with args.
18399 set dummy $ac_prog; ac_word=$2
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18401 $as_echo_n "checking for $ac_word... " >&6; }
18402 if ${ac_cv_path_TIME+:} false; then :
18403   $as_echo_n "(cached) " >&6
18404 else
18405   case $TIME in
18406   [\\/]* | ?:[\\/]*)
18407   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18408   ;;
18409   *)
18410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18411 for as_dir in $PATH
18412 do
18413   IFS=$as_save_IFS
18414   test -z "$as_dir" && as_dir=.
18415     for ac_exec_ext in '' $ac_executable_extensions; do
18416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18417     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18419     break 2
18420   fi
18421 done
18422   done
18423 IFS=$as_save_IFS
18424 
18425   ;;
18426 esac
18427 fi
18428 TIME=$ac_cv_path_TIME
18429 if test -n "$TIME"; then
18430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18431 $as_echo "$TIME" >&6; }
18432 else
18433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18434 $as_echo "no" >&6; }
18435 fi
18436 
18437 
18438   test -n "$TIME" && break
18439 done
18440 
18441     else
18442       # If it succeeded, then it was overridden by the user. We will use it
18443       # for the tool.
18444 
18445       # First remove it from the list of overridden variables, so we can test
18446       # for unknown variables in the end.
18447       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18448 
18449       # Check if the provided tool contains a complete path.
18450       tool_specified="$TIME"
18451       tool_basename="${tool_specified##*/}"
18452       if test "x$tool_basename" = "x$tool_specified"; then
18453         # A command without a complete path is provided, search $PATH.
18454         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18455 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18456         # Extract the first word of "$tool_basename", so it can be a program name with args.
18457 set dummy $tool_basename; ac_word=$2
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18459 $as_echo_n "checking for $ac_word... " >&6; }
18460 if ${ac_cv_path_TIME+:} false; then :
18461   $as_echo_n "(cached) " >&6
18462 else
18463   case $TIME in
18464   [\\/]* | ?:[\\/]*)
18465   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18466   ;;
18467   *)
18468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18469 for as_dir in $PATH
18470 do
18471   IFS=$as_save_IFS
18472   test -z "$as_dir" && as_dir=.
18473     for ac_exec_ext in '' $ac_executable_extensions; do
18474   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18475     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18477     break 2
18478   fi
18479 done
18480   done
18481 IFS=$as_save_IFS
18482 
18483   ;;
18484 esac
18485 fi
18486 TIME=$ac_cv_path_TIME
18487 if test -n "$TIME"; then
18488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18489 $as_echo "$TIME" >&6; }
18490 else
18491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18493 fi
18494 
18495 
18496         if test "x$TIME" = x; then
18497           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18498         fi
18499       else
18500         # Otherwise we believe it is a complete path. Use it as it is.
18501         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18502 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18504 $as_echo_n "checking for TIME... " >&6; }
18505         if test ! -x "$tool_specified"; then
18506           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18507 $as_echo "not found" >&6; }
18508           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18509         fi
18510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18511 $as_echo "$tool_specified" >&6; }
18512       fi
18513     fi
18514   fi
18515 
18516 
18517   # Check if it's GNU time
18518   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18519   if test "x$IS_GNU_TIME" != x; then
18520     IS_GNU_TIME=yes
18521   else
18522     IS_GNU_TIME=no
18523   fi
18524 
18525 
18526   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18527 
18528 
18529 
18530   # Publish this variable in the help.
18531 
18532 
18533   if test "x$COMM" = x; then
18534     # The variable is not set by user, try to locate tool using the code snippet
18535     for ac_prog in comm
18536 do
18537   # Extract the first word of "$ac_prog", so it can be a program name with args.
18538 set dummy $ac_prog; ac_word=$2
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18540 $as_echo_n "checking for $ac_word... " >&6; }
18541 if ${ac_cv_path_COMM+:} false; then :
18542   $as_echo_n "(cached) " >&6
18543 else
18544   case $COMM in
18545   [\\/]* | ?:[\\/]*)
18546   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18547   ;;
18548   *)
18549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18550 for as_dir in $PATH
18551 do
18552   IFS=$as_save_IFS
18553   test -z "$as_dir" && as_dir=.
18554     for ac_exec_ext in '' $ac_executable_extensions; do
18555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18556     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18558     break 2
18559   fi
18560 done
18561   done
18562 IFS=$as_save_IFS
18563 
18564   ;;
18565 esac
18566 fi
18567 COMM=$ac_cv_path_COMM
18568 if test -n "$COMM"; then
18569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18570 $as_echo "$COMM" >&6; }
18571 else
18572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18573 $as_echo "no" >&6; }
18574 fi
18575 
18576 
18577   test -n "$COMM" && break
18578 done
18579 
18580   else
18581     # The variable is set, but is it from the command line or the environment?
18582 
18583     # Try to remove the string !COMM! from our list.
18584     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18585     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18586       # If it failed, the variable was not from the command line. Ignore it,
18587       # but warn the user (except for BASH, which is always set by the calling BASH).
18588       if test "xCOMM" != xBASH; then
18589         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18590 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18591       fi
18592       # Try to locate tool using the code snippet
18593       for ac_prog in comm
18594 do
18595   # Extract the first word of "$ac_prog", so it can be a program name with args.
18596 set dummy $ac_prog; ac_word=$2
18597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18598 $as_echo_n "checking for $ac_word... " >&6; }
18599 if ${ac_cv_path_COMM+:} false; then :
18600   $as_echo_n "(cached) " >&6
18601 else
18602   case $COMM in
18603   [\\/]* | ?:[\\/]*)
18604   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18605   ;;
18606   *)
18607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18608 for as_dir in $PATH
18609 do
18610   IFS=$as_save_IFS
18611   test -z "$as_dir" && as_dir=.
18612     for ac_exec_ext in '' $ac_executable_extensions; do
18613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18614     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18616     break 2
18617   fi
18618 done
18619   done
18620 IFS=$as_save_IFS
18621 
18622   ;;
18623 esac
18624 fi
18625 COMM=$ac_cv_path_COMM
18626 if test -n "$COMM"; then
18627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18628 $as_echo "$COMM" >&6; }
18629 else
18630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18631 $as_echo "no" >&6; }
18632 fi
18633 
18634 
18635   test -n "$COMM" && break
18636 done
18637 
18638     else
18639       # If it succeeded, then it was overridden by the user. We will use it
18640       # for the tool.
18641 
18642       # First remove it from the list of overridden variables, so we can test
18643       # for unknown variables in the end.
18644       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18645 
18646       # Check if the provided tool contains a complete path.
18647       tool_specified="$COMM"
18648       tool_basename="${tool_specified##*/}"
18649       if test "x$tool_basename" = "x$tool_specified"; then
18650         # A command without a complete path is provided, search $PATH.
18651         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18652 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18653         # Extract the first word of "$tool_basename", so it can be a program name with args.
18654 set dummy $tool_basename; ac_word=$2
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18656 $as_echo_n "checking for $ac_word... " >&6; }
18657 if ${ac_cv_path_COMM+:} false; then :
18658   $as_echo_n "(cached) " >&6
18659 else
18660   case $COMM in
18661   [\\/]* | ?:[\\/]*)
18662   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18663   ;;
18664   *)
18665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18666 for as_dir in $PATH
18667 do
18668   IFS=$as_save_IFS
18669   test -z "$as_dir" && as_dir=.
18670     for ac_exec_ext in '' $ac_executable_extensions; do
18671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18672     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18674     break 2
18675   fi
18676 done
18677   done
18678 IFS=$as_save_IFS
18679 
18680   ;;
18681 esac
18682 fi
18683 COMM=$ac_cv_path_COMM
18684 if test -n "$COMM"; then
18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18686 $as_echo "$COMM" >&6; }
18687 else
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18690 fi
18691 
18692 
18693         if test "x$COMM" = x; then
18694           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18695         fi
18696       else
18697         # Otherwise we believe it is a complete path. Use it as it is.
18698         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18699 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18701 $as_echo_n "checking for COMM... " >&6; }
18702         if test ! -x "$tool_specified"; then
18703           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18704 $as_echo "not found" >&6; }
18705           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18706         fi
18707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18708 $as_echo "$tool_specified" >&6; }
18709       fi
18710     fi
18711   fi
18712 
18713 
18714 
18715   if test "x$COMM" = x; then
18716     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18717   fi
18718 
18719 
18720   fi
18721 
18722   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18723 
18724 
18725 
18726   # Publish this variable in the help.
18727 
18728 
18729   if test "x$DSYMUTIL" = x; then
18730     # The variable is not set by user, try to locate tool using the code snippet
18731     for ac_prog in dsymutil
18732 do
18733   # Extract the first word of "$ac_prog", so it can be a program name with args.
18734 set dummy $ac_prog; ac_word=$2
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18736 $as_echo_n "checking for $ac_word... " >&6; }
18737 if ${ac_cv_path_DSYMUTIL+:} false; then :
18738   $as_echo_n "(cached) " >&6
18739 else
18740   case $DSYMUTIL in
18741   [\\/]* | ?:[\\/]*)
18742   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18743   ;;
18744   *)
18745   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18746 for as_dir in $PATH
18747 do
18748   IFS=$as_save_IFS
18749   test -z "$as_dir" && as_dir=.
18750     for ac_exec_ext in '' $ac_executable_extensions; do
18751   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18752     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18754     break 2
18755   fi
18756 done
18757   done
18758 IFS=$as_save_IFS
18759 
18760   ;;
18761 esac
18762 fi
18763 DSYMUTIL=$ac_cv_path_DSYMUTIL
18764 if test -n "$DSYMUTIL"; then
18765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18766 $as_echo "$DSYMUTIL" >&6; }
18767 else
18768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18769 $as_echo "no" >&6; }
18770 fi
18771 
18772 
18773   test -n "$DSYMUTIL" && break
18774 done
18775 
18776   else
18777     # The variable is set, but is it from the command line or the environment?
18778 
18779     # Try to remove the string !DSYMUTIL! from our list.
18780     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18781     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18782       # If it failed, the variable was not from the command line. Ignore it,
18783       # but warn the user (except for BASH, which is always set by the calling BASH).
18784       if test "xDSYMUTIL" != xBASH; then
18785         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18786 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18787       fi
18788       # Try to locate tool using the code snippet
18789       for ac_prog in dsymutil
18790 do
18791   # Extract the first word of "$ac_prog", so it can be a program name with args.
18792 set dummy $ac_prog; ac_word=$2
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18794 $as_echo_n "checking for $ac_word... " >&6; }
18795 if ${ac_cv_path_DSYMUTIL+:} false; then :
18796   $as_echo_n "(cached) " >&6
18797 else
18798   case $DSYMUTIL in
18799   [\\/]* | ?:[\\/]*)
18800   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18801   ;;
18802   *)
18803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18804 for as_dir in $PATH
18805 do
18806   IFS=$as_save_IFS
18807   test -z "$as_dir" && as_dir=.
18808     for ac_exec_ext in '' $ac_executable_extensions; do
18809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18810     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18812     break 2
18813   fi
18814 done
18815   done
18816 IFS=$as_save_IFS
18817 
18818   ;;
18819 esac
18820 fi
18821 DSYMUTIL=$ac_cv_path_DSYMUTIL
18822 if test -n "$DSYMUTIL"; then
18823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18824 $as_echo "$DSYMUTIL" >&6; }
18825 else
18826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18827 $as_echo "no" >&6; }
18828 fi
18829 
18830 
18831   test -n "$DSYMUTIL" && break
18832 done
18833 
18834     else
18835       # If it succeeded, then it was overridden by the user. We will use it
18836       # for the tool.
18837 
18838       # First remove it from the list of overridden variables, so we can test
18839       # for unknown variables in the end.
18840       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18841 
18842       # Check if the provided tool contains a complete path.
18843       tool_specified="$DSYMUTIL"
18844       tool_basename="${tool_specified##*/}"
18845       if test "x$tool_basename" = "x$tool_specified"; then
18846         # A command without a complete path is provided, search $PATH.
18847         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18848 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18849         # Extract the first word of "$tool_basename", so it can be a program name with args.
18850 set dummy $tool_basename; ac_word=$2
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18852 $as_echo_n "checking for $ac_word... " >&6; }
18853 if ${ac_cv_path_DSYMUTIL+:} false; then :
18854   $as_echo_n "(cached) " >&6
18855 else
18856   case $DSYMUTIL in
18857   [\\/]* | ?:[\\/]*)
18858   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18859   ;;
18860   *)
18861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18862 for as_dir in $PATH
18863 do
18864   IFS=$as_save_IFS
18865   test -z "$as_dir" && as_dir=.
18866     for ac_exec_ext in '' $ac_executable_extensions; do
18867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18868     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18870     break 2
18871   fi
18872 done
18873   done
18874 IFS=$as_save_IFS
18875 
18876   ;;
18877 esac
18878 fi
18879 DSYMUTIL=$ac_cv_path_DSYMUTIL
18880 if test -n "$DSYMUTIL"; then
18881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18882 $as_echo "$DSYMUTIL" >&6; }
18883 else
18884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18885 $as_echo "no" >&6; }
18886 fi
18887 
18888 
18889         if test "x$DSYMUTIL" = x; then
18890           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18891         fi
18892       else
18893         # Otherwise we believe it is a complete path. Use it as it is.
18894         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18895 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18896         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18897 $as_echo_n "checking for DSYMUTIL... " >&6; }
18898         if test ! -x "$tool_specified"; then
18899           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18900 $as_echo "not found" >&6; }
18901           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18902         fi
18903         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18904 $as_echo "$tool_specified" >&6; }
18905       fi
18906     fi
18907   fi
18908 
18909 
18910 
18911   if test "x$DSYMUTIL" = x; then
18912     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18913   fi
18914 
18915 
18916 
18917 
18918 
18919   # Publish this variable in the help.
18920 
18921 
18922   if test "x$XATTR" = x; then
18923     # The variable is not set by user, try to locate tool using the code snippet
18924     for ac_prog in xattr
18925 do
18926   # Extract the first word of "$ac_prog", so it can be a program name with args.
18927 set dummy $ac_prog; ac_word=$2
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18929 $as_echo_n "checking for $ac_word... " >&6; }
18930 if ${ac_cv_path_XATTR+:} false; then :
18931   $as_echo_n "(cached) " >&6
18932 else
18933   case $XATTR in
18934   [\\/]* | ?:[\\/]*)
18935   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18936   ;;
18937   *)
18938   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18939 for as_dir in $PATH
18940 do
18941   IFS=$as_save_IFS
18942   test -z "$as_dir" && as_dir=.
18943     for ac_exec_ext in '' $ac_executable_extensions; do
18944   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18945     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18947     break 2
18948   fi
18949 done
18950   done
18951 IFS=$as_save_IFS
18952 
18953   ;;
18954 esac
18955 fi
18956 XATTR=$ac_cv_path_XATTR
18957 if test -n "$XATTR"; then
18958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18959 $as_echo "$XATTR" >&6; }
18960 else
18961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18962 $as_echo "no" >&6; }
18963 fi
18964 
18965 
18966   test -n "$XATTR" && break
18967 done
18968 
18969   else
18970     # The variable is set, but is it from the command line or the environment?
18971 
18972     # Try to remove the string !XATTR! from our list.
18973     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18974     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18975       # If it failed, the variable was not from the command line. Ignore it,
18976       # but warn the user (except for BASH, which is always set by the calling BASH).
18977       if test "xXATTR" != xBASH; then
18978         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18979 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18980       fi
18981       # Try to locate tool using the code snippet
18982       for ac_prog in xattr
18983 do
18984   # Extract the first word of "$ac_prog", so it can be a program name with args.
18985 set dummy $ac_prog; ac_word=$2
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18987 $as_echo_n "checking for $ac_word... " >&6; }
18988 if ${ac_cv_path_XATTR+:} false; then :
18989   $as_echo_n "(cached) " >&6
18990 else
18991   case $XATTR in
18992   [\\/]* | ?:[\\/]*)
18993   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18994   ;;
18995   *)
18996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997 for as_dir in $PATH
18998 do
18999   IFS=$as_save_IFS
19000   test -z "$as_dir" && as_dir=.
19001     for ac_exec_ext in '' $ac_executable_extensions; do
19002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19003     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19005     break 2
19006   fi
19007 done
19008   done
19009 IFS=$as_save_IFS
19010 
19011   ;;
19012 esac
19013 fi
19014 XATTR=$ac_cv_path_XATTR
19015 if test -n "$XATTR"; then
19016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19017 $as_echo "$XATTR" >&6; }
19018 else
19019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19020 $as_echo "no" >&6; }
19021 fi
19022 
19023 
19024   test -n "$XATTR" && break
19025 done
19026 
19027     else
19028       # If it succeeded, then it was overridden by the user. We will use it
19029       # for the tool.
19030 
19031       # First remove it from the list of overridden variables, so we can test
19032       # for unknown variables in the end.
19033       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19034 
19035       # Check if the provided tool contains a complete path.
19036       tool_specified="$XATTR"
19037       tool_basename="${tool_specified##*/}"
19038       if test "x$tool_basename" = "x$tool_specified"; then
19039         # A command without a complete path is provided, search $PATH.
19040         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19041 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19042         # Extract the first word of "$tool_basename", so it can be a program name with args.
19043 set dummy $tool_basename; ac_word=$2
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19045 $as_echo_n "checking for $ac_word... " >&6; }
19046 if ${ac_cv_path_XATTR+:} false; then :
19047   $as_echo_n "(cached) " >&6
19048 else
19049   case $XATTR in
19050   [\\/]* | ?:[\\/]*)
19051   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19052   ;;
19053   *)
19054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055 for as_dir in $PATH
19056 do
19057   IFS=$as_save_IFS
19058   test -z "$as_dir" && as_dir=.
19059     for ac_exec_ext in '' $ac_executable_extensions; do
19060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19061     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19063     break 2
19064   fi
19065 done
19066   done
19067 IFS=$as_save_IFS
19068 
19069   ;;
19070 esac
19071 fi
19072 XATTR=$ac_cv_path_XATTR
19073 if test -n "$XATTR"; then
19074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19075 $as_echo "$XATTR" >&6; }
19076 else
19077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19078 $as_echo "no" >&6; }
19079 fi
19080 
19081 
19082         if test "x$XATTR" = x; then
19083           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19084         fi
19085       else
19086         # Otherwise we believe it is a complete path. Use it as it is.
19087         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19088 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19089         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19090 $as_echo_n "checking for XATTR... " >&6; }
19091         if test ! -x "$tool_specified"; then
19092           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19093 $as_echo "not found" >&6; }
19094           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19095         fi
19096         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19097 $as_echo "$tool_specified" >&6; }
19098       fi
19099     fi
19100   fi
19101 
19102 
19103 
19104   if test "x$XATTR" = x; then
19105     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19106   fi
19107 
19108 
19109 
19110 
19111   # Publish this variable in the help.
19112 
19113 
19114   if test "x$CODESIGN" = x; then
19115     # The variable is not set by user, try to locate tool using the code snippet
19116     for ac_prog in codesign
19117 do
19118   # Extract the first word of "$ac_prog", so it can be a program name with args.
19119 set dummy $ac_prog; ac_word=$2
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19121 $as_echo_n "checking for $ac_word... " >&6; }
19122 if ${ac_cv_path_CODESIGN+:} false; then :
19123   $as_echo_n "(cached) " >&6
19124 else
19125   case $CODESIGN in
19126   [\\/]* | ?:[\\/]*)
19127   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19128   ;;
19129   *)
19130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19131 for as_dir in $PATH
19132 do
19133   IFS=$as_save_IFS
19134   test -z "$as_dir" && as_dir=.
19135     for ac_exec_ext in '' $ac_executable_extensions; do
19136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19137     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19139     break 2
19140   fi
19141 done
19142   done
19143 IFS=$as_save_IFS
19144 
19145   ;;
19146 esac
19147 fi
19148 CODESIGN=$ac_cv_path_CODESIGN
19149 if test -n "$CODESIGN"; then
19150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19151 $as_echo "$CODESIGN" >&6; }
19152 else
19153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19154 $as_echo "no" >&6; }
19155 fi
19156 
19157 
19158   test -n "$CODESIGN" && break
19159 done
19160 
19161   else
19162     # The variable is set, but is it from the command line or the environment?
19163 
19164     # Try to remove the string !CODESIGN! from our list.
19165     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19166     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19167       # If it failed, the variable was not from the command line. Ignore it,
19168       # but warn the user (except for BASH, which is always set by the calling BASH).
19169       if test "xCODESIGN" != xBASH; then
19170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19171 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19172       fi
19173       # Try to locate tool using the code snippet
19174       for ac_prog in codesign
19175 do
19176   # Extract the first word of "$ac_prog", so it can be a program name with args.
19177 set dummy $ac_prog; ac_word=$2
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19179 $as_echo_n "checking for $ac_word... " >&6; }
19180 if ${ac_cv_path_CODESIGN+:} false; then :
19181   $as_echo_n "(cached) " >&6
19182 else
19183   case $CODESIGN in
19184   [\\/]* | ?:[\\/]*)
19185   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19186   ;;
19187   *)
19188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19189 for as_dir in $PATH
19190 do
19191   IFS=$as_save_IFS
19192   test -z "$as_dir" && as_dir=.
19193     for ac_exec_ext in '' $ac_executable_extensions; do
19194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19195     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19197     break 2
19198   fi
19199 done
19200   done
19201 IFS=$as_save_IFS
19202 
19203   ;;
19204 esac
19205 fi
19206 CODESIGN=$ac_cv_path_CODESIGN
19207 if test -n "$CODESIGN"; then
19208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19209 $as_echo "$CODESIGN" >&6; }
19210 else
19211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213 fi
19214 
19215 
19216   test -n "$CODESIGN" && break
19217 done
19218 
19219     else
19220       # If it succeeded, then it was overridden by the user. We will use it
19221       # for the tool.
19222 
19223       # First remove it from the list of overridden variables, so we can test
19224       # for unknown variables in the end.
19225       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19226 
19227       # Check if the provided tool contains a complete path.
19228       tool_specified="$CODESIGN"
19229       tool_basename="${tool_specified##*/}"
19230       if test "x$tool_basename" = "x$tool_specified"; then
19231         # A command without a complete path is provided, search $PATH.
19232         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19233 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19234         # Extract the first word of "$tool_basename", so it can be a program name with args.
19235 set dummy $tool_basename; ac_word=$2
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19237 $as_echo_n "checking for $ac_word... " >&6; }
19238 if ${ac_cv_path_CODESIGN+:} false; then :
19239   $as_echo_n "(cached) " >&6
19240 else
19241   case $CODESIGN in
19242   [\\/]* | ?:[\\/]*)
19243   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19244   ;;
19245   *)
19246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19247 for as_dir in $PATH
19248 do
19249   IFS=$as_save_IFS
19250   test -z "$as_dir" && as_dir=.
19251     for ac_exec_ext in '' $ac_executable_extensions; do
19252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19253     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19255     break 2
19256   fi
19257 done
19258   done
19259 IFS=$as_save_IFS
19260 
19261   ;;
19262 esac
19263 fi
19264 CODESIGN=$ac_cv_path_CODESIGN
19265 if test -n "$CODESIGN"; then
19266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19267 $as_echo "$CODESIGN" >&6; }
19268 else
19269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19271 fi
19272 
19273 
19274         if test "x$CODESIGN" = x; then
19275           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19276         fi
19277       else
19278         # Otherwise we believe it is a complete path. Use it as it is.
19279         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19280 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19282 $as_echo_n "checking for CODESIGN... " >&6; }
19283         if test ! -x "$tool_specified"; then
19284           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19285 $as_echo "not found" >&6; }
19286           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19287         fi
19288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19289 $as_echo "$tool_specified" >&6; }
19290       fi
19291     fi
19292   fi
19293 
19294 
19295     if test "x$CODESIGN" != "x"; then
19296       # Verify that the openjdk_codesign certificate is present
19297       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19298 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19299       rm -f codesign-testfile
19300       touch codesign-testfile
19301       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19302       rm -f codesign-testfile
19303       if test "x$CODESIGN" = x; then
19304         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19305 $as_echo "no" >&6; }
19306       else
19307         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19309       fi
19310     fi
19311   fi
19312 
19313 
19314 # Check if pkg-config is available.
19315 
19316 
19317 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19318         if test -n "$ac_tool_prefix"; then
19319   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19320 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19322 $as_echo_n "checking for $ac_word... " >&6; }
19323 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19324   $as_echo_n "(cached) " >&6
19325 else
19326   case $PKG_CONFIG in
19327   [\\/]* | ?:[\\/]*)
19328   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19329   ;;
19330   *)
19331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19332 for as_dir in $PATH
19333 do
19334   IFS=$as_save_IFS
19335   test -z "$as_dir" && as_dir=.
19336     for ac_exec_ext in '' $ac_executable_extensions; do
19337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19338     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19340     break 2
19341   fi
19342 done
19343   done
19344 IFS=$as_save_IFS
19345 
19346   ;;
19347 esac
19348 fi
19349 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19350 if test -n "$PKG_CONFIG"; then
19351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19352 $as_echo "$PKG_CONFIG" >&6; }
19353 else
19354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19355 $as_echo "no" >&6; }
19356 fi
19357 
19358 
19359 fi
19360 if test -z "$ac_cv_path_PKG_CONFIG"; then
19361   ac_pt_PKG_CONFIG=$PKG_CONFIG
19362   # Extract the first word of "pkg-config", so it can be a program name with args.
19363 set dummy pkg-config; ac_word=$2
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19365 $as_echo_n "checking for $ac_word... " >&6; }
19366 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19367   $as_echo_n "(cached) " >&6
19368 else
19369   case $ac_pt_PKG_CONFIG in
19370   [\\/]* | ?:[\\/]*)
19371   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19372   ;;
19373   *)
19374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19375 for as_dir in $PATH
19376 do
19377   IFS=$as_save_IFS
19378   test -z "$as_dir" && as_dir=.
19379     for ac_exec_ext in '' $ac_executable_extensions; do
19380   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19381     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19383     break 2
19384   fi
19385 done
19386   done
19387 IFS=$as_save_IFS
19388 
19389   ;;
19390 esac
19391 fi
19392 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19393 if test -n "$ac_pt_PKG_CONFIG"; then
19394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19395 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19396 else
19397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19398 $as_echo "no" >&6; }
19399 fi
19400 
19401   if test "x$ac_pt_PKG_CONFIG" = x; then
19402     PKG_CONFIG=""
19403   else
19404     case $cross_compiling:$ac_tool_warned in
19405 yes:)
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19408 ac_tool_warned=yes ;;
19409 esac
19410     PKG_CONFIG=$ac_pt_PKG_CONFIG
19411   fi
19412 else
19413   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19414 fi
19415 
19416 fi
19417 if test -n "$PKG_CONFIG"; then
19418         _pkg_min_version=0.9.0
19419         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19420 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19421         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19422                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19423 $as_echo "yes" >&6; }
19424         else
19425                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19426 $as_echo "no" >&6; }
19427                 PKG_CONFIG=""
19428         fi
19429 
19430 fi
19431 
19432 # After basic tools have been setup, we can check build os specific details.
19433 
19434   ###############################################################################
19435 
19436   # Note that this is the build platform OS version!
19437 
19438   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19439   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19440   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19441   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19442 
19443 
19444 
19445 
19446 
19447 # Setup builddeps, for automatic downloading of tools we need.
19448 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19449 # boot-jdk setup, but we need to have basic tools setup first.
19450 
19451 
19452 # Check whether --with-builddeps-conf was given.
19453 if test "${with_builddeps_conf+set}" = set; then :
19454   withval=$with_builddeps_conf;
19455 fi
19456 
19457 
19458 
19459 # Check whether --with-builddeps-server was given.
19460 if test "${with_builddeps_server+set}" = set; then :
19461   withval=$with_builddeps_server;
19462 fi
19463 
19464 
19465 
19466 # Check whether --with-builddeps-dir was given.
19467 if test "${with_builddeps_dir+set}" = set; then :
19468   withval=$with_builddeps_dir;
19469 else
19470   with_builddeps_dir=/localhome/builddeps
19471 fi
19472 
19473 
19474 
19475 # Check whether --with-builddeps-group was given.
19476 if test "${with_builddeps_group+set}" = set; then :
19477   withval=$with_builddeps_group;
19478 fi
19479 
19480 
19481 
19482 
19483   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19484     if test "x$with_builddeps_conf" != x; then
19485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19486 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19487       builddepsfile=$with_builddeps_conf
19488       if test -s $builddepsfile; then
19489         . $builddepsfile
19490         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19491 $as_echo "loaded!" >&6; }
19492       else
19493         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19494       fi
19495     else
19496       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19497 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19498       builddepsfile=`mktemp`
19499       touch $builddepsfile
19500       # Put all found confs into a single file.
19501       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19502       # Source the file to acquire the variables
19503       if test -s $builddepsfile; then
19504         . $builddepsfile
19505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19506 $as_echo "found at least one!" >&6; }
19507       else
19508         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19509       fi
19510     fi
19511     # Create build and target names that use _ instead of "-" and ".".
19512     # This is necessary to use them in variable names.
19513     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19514     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19515     # Extract rewrite information for build and target
19516     eval rewritten_build=\${REWRITE_${build_var}}
19517     if test "x$rewritten_build" = x; then
19518       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19519       echo Build stays the same $rewritten_build
19520     else
19521       echo Rewriting build for builddeps into $rewritten_build
19522     fi
19523     eval rewritten_target=\${REWRITE_${target_var}}
19524     if test "x$rewritten_target" = x; then
19525       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19526       echo Target stays the same $rewritten_target
19527     else
19528       echo Rewriting target for builddeps into $rewritten_target
19529     fi
19530     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19531     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19532   fi
19533   for ac_prog in 7z unzip
19534 do
19535   # Extract the first word of "$ac_prog", so it can be a program name with args.
19536 set dummy $ac_prog; ac_word=$2
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19538 $as_echo_n "checking for $ac_word... " >&6; }
19539 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19540   $as_echo_n "(cached) " >&6
19541 else
19542   if test -n "$BDEPS_UNZIP"; then
19543   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19544 else
19545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19546 for as_dir in $PATH
19547 do
19548   IFS=$as_save_IFS
19549   test -z "$as_dir" && as_dir=.
19550     for ac_exec_ext in '' $ac_executable_extensions; do
19551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19552     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19554     break 2
19555   fi
19556 done
19557   done
19558 IFS=$as_save_IFS
19559 
19560 fi
19561 fi
19562 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19563 if test -n "$BDEPS_UNZIP"; then
19564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19565 $as_echo "$BDEPS_UNZIP" >&6; }
19566 else
19567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19568 $as_echo "no" >&6; }
19569 fi
19570 
19571 
19572   test -n "$BDEPS_UNZIP" && break
19573 done
19574 
19575   if test "x$BDEPS_UNZIP" = x7z; then
19576     BDEPS_UNZIP="7z x"
19577   fi
19578 
19579   for ac_prog in wget lftp ftp
19580 do
19581   # Extract the first word of "$ac_prog", so it can be a program name with args.
19582 set dummy $ac_prog; ac_word=$2
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19584 $as_echo_n "checking for $ac_word... " >&6; }
19585 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19586   $as_echo_n "(cached) " >&6
19587 else
19588   if test -n "$BDEPS_FTP"; then
19589   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19590 else
19591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19592 for as_dir in $PATH
19593 do
19594   IFS=$as_save_IFS
19595   test -z "$as_dir" && as_dir=.
19596     for ac_exec_ext in '' $ac_executable_extensions; do
19597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19598     ac_cv_prog_BDEPS_FTP="$ac_prog"
19599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19600     break 2
19601   fi
19602 done
19603   done
19604 IFS=$as_save_IFS
19605 
19606 fi
19607 fi
19608 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19609 if test -n "$BDEPS_FTP"; then
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19611 $as_echo "$BDEPS_FTP" >&6; }
19612 else
19613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614 $as_echo "no" >&6; }
19615 fi
19616 
19617 
19618   test -n "$BDEPS_FTP" && break
19619 done
19620 
19621 
19622 
19623 ###############################################################################
19624 #
19625 # Determine OpenJDK variants, options and version numbers.
19626 #
19627 ###############################################################################
19628 
19629 # We need build & target for this.
19630 
19631 
19632   ###############################################################################
19633   #
19634   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19635   # We always build headless support.
19636   #
19637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19638 $as_echo_n "checking headful support... " >&6; }
19639   # Check whether --enable-headful was given.
19640 if test "${enable_headful+set}" = set; then :
19641   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19642 else
19643   SUPPORT_HEADFUL=yes
19644 fi
19645 
19646 
19647   SUPPORT_HEADLESS=yes
19648   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19649 
19650   if test "x$SUPPORT_HEADFUL" = xyes; then
19651     # We are building both headful and headless.
19652     headful_msg="include support for both headful and headless"
19653   fi
19654 
19655   if test "x$SUPPORT_HEADFUL" = xno; then
19656     # Thus we are building headless only.
19657     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19658     headful_msg="headless only"
19659   fi
19660 
19661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19662 $as_echo "$headful_msg" >&6; }
19663 
19664 
19665 
19666 
19667 
19668   # Control wether Hotspot runs Queens test after build.
19669   # Check whether --enable-hotspot-test-in-build was given.
19670 if test "${enable_hotspot_test_in_build+set}" = set; then :
19671   enableval=$enable_hotspot_test_in_build;
19672 else
19673   enable_hotspot_test_in_build=no
19674 fi
19675 
19676   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19677     TEST_IN_BUILD=true
19678   else
19679     TEST_IN_BUILD=false
19680   fi
19681 
19682 
19683   ###############################################################################
19684   #
19685   # Choose cacerts source file
19686   #
19687 
19688 # Check whether --with-cacerts-file was given.
19689 if test "${with_cacerts_file+set}" = set; then :
19690   withval=$with_cacerts_file;
19691 fi
19692 
19693   if test "x$with_cacerts_file" != x; then
19694     CACERTS_FILE=$with_cacerts_file
19695   else
19696     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19697   fi
19698 
19699 
19700   ###############################################################################
19701   #
19702   # Enable or disable unlimited crypto
19703   #
19704   # Check whether --enable-unlimited-crypto was given.
19705 if test "${enable_unlimited_crypto+set}" = set; then :
19706   enableval=$enable_unlimited_crypto;
19707 else
19708   enable_unlimited_crypto=no
19709 fi
19710 
19711   if test "x$enable_unlimited_crypto" = "xyes"; then
19712     UNLIMITED_CRYPTO=true
19713   else
19714     UNLIMITED_CRYPTO=false
19715   fi
19716 
19717 
19718   ###############################################################################
19719   #
19720   # Enable or disable the elliptic curve crypto implementation
19721   #
19722 
19723 
19724   ###############################################################################
19725   #
19726   # --enable-rmiconnector-iiop
19727   #
19728   # Check whether --enable-rmiconnector-iiop was given.
19729 if test "${enable_rmiconnector_iiop+set}" = set; then :
19730   enableval=$enable_rmiconnector_iiop;
19731 fi
19732 
19733   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19734     RMICONNECTOR_IIOP=true
19735   else
19736     RMICONNECTOR_IIOP=false
19737   fi
19738 
19739 
19740   ###############################################################################
19741   #
19742   # Compress jars
19743   #
19744   COMPRESS_JARS=false
19745 
19746 
19747 
19748 
19749   # Source the version numbers
19750   . $AUTOCONF_DIR/version-numbers
19751 
19752   # Get the settings from parameters
19753 
19754 # Check whether --with-milestone was given.
19755 if test "${with_milestone+set}" = set; then :
19756   withval=$with_milestone;
19757 fi
19758 
19759   if test "x$with_milestone" = xyes; then
19760     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19761   elif test "x$with_milestone" != x; then
19762     MILESTONE="$with_milestone"
19763   fi
19764   if test "x$MILESTONE" = x; then
19765     MILESTONE=internal
19766   fi
19767 
19768 
19769 # Check whether --with-update-version was given.
19770 if test "${with_update_version+set}" = set; then :
19771   withval=$with_update_version;
19772 fi
19773 
19774   if test "x$with_update_version" = xyes; then
19775     as_fn_error $? "Update version must have a value" "$LINENO" 5
19776   elif test "x$with_update_version" != x; then
19777     JDK_UPDATE_VERSION="$with_update_version"
19778     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19779     # to a bug in expr (which reduces it to just X). To work around this, we
19780     # always add a 0 to one digit update versions.
19781     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19782       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19783     fi
19784   fi
19785 
19786 
19787 # Check whether --with-user-release-suffix was given.
19788 if test "${with_user_release_suffix+set}" = set; then :
19789   withval=$with_user_release_suffix;
19790 fi
19791 
19792   if test "x$with_user_release_suffix" = xyes; then
19793     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19794   elif test "x$with_user_release_suffix" != x; then
19795     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19796   fi
19797 
19798 
19799 # Check whether --with-build-number was given.
19800 if test "${with_build_number+set}" = set; then :
19801   withval=$with_build_number;
19802 fi
19803 
19804   if test "x$with_build_number" = xyes; then
19805     as_fn_error $? "Build number must have a value" "$LINENO" 5
19806   elif test "x$with_build_number" != x; then
19807     JDK_BUILD_NUMBER="$with_build_number"
19808   fi
19809   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19810   if test "x$JDK_BUILD_NUMBER" = x; then
19811     JDK_BUILD_NUMBER=b00
19812     if test "x$USER_RELEASE_SUFFIX" = x; then
19813       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19814       # Avoid [:alnum:] since it depends on the locale.
19815       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19816       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19817     fi
19818   fi
19819 
19820   # Now set the JDK version, milestone, build number etc.
19821 
19822 
19823 
19824 
19825 
19826 
19827 
19828 
19829 
19830 
19831 
19832 
19833 
19834 
19835 
19836   COPYRIGHT_YEAR=`date +'%Y'`
19837 
19838 
19839   if test "x$JDK_UPDATE_VERSION" != x; then
19840     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19841   else
19842     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19843   fi
19844 
19845 
19846   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19847 
19848 
19849 
19850 ###############################################################################
19851 #
19852 # Setup BootJDK, used to bootstrap the build.
19853 #
19854 ###############################################################################
19855 
19856 
19857   BOOT_JDK_FOUND=no
19858 
19859 # Check whether --with-boot-jdk was given.
19860 if test "${with_boot_jdk+set}" = set; then :
19861   withval=$with_boot_jdk;
19862 fi
19863 
19864 
19865   # We look for the Boot JDK through various means, going from more certain to
19866   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19867   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19868   # must check if this is indeed valid; otherwise we'll continue looking.
19869 
19870   # Test: Is bootjdk explicitely set by command line arguments?
19871 
19872   if test "x$BOOT_JDK_FOUND" = xno; then
19873     # Now execute the test
19874 
19875   if test "x$with_boot_jdk" != x; then
19876     BOOT_JDK=$with_boot_jdk
19877     BOOT_JDK_FOUND=maybe
19878     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19879 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19880   fi
19881 
19882 
19883     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19884     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19885       # Do we have a bin/java?
19886       if test ! -x "$BOOT_JDK/bin/java"; then
19887         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19889         BOOT_JDK_FOUND=no
19890       else
19891         # Do we have a bin/javac?
19892         if test ! -x "$BOOT_JDK/bin/javac"; then
19893           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19895           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19896 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19897           BOOT_JDK_FOUND=no
19898         else
19899           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19900           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19901             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19902 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19903             BOOT_JDK_FOUND=no
19904           else
19905             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19906             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19907 
19908             # Extra M4 quote needed to protect [] in grep expression.
19909             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
19910             if test "x$FOUND_CORRECT_VERSION" = x; then
19911               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19912 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19913               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
19914 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
19915               BOOT_JDK_FOUND=no
19916             else
19917               # We're done! :-)
19918               BOOT_JDK_FOUND=yes
19919 
19920   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19921 
19922   # Input might be given as Windows format, start by converting to
19923   # unix format.
19924   path="$BOOT_JDK"
19925   new_path=`$CYGPATH -u "$path"`
19926 
19927   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19928   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19929   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19930   # "foo.exe" is OK but "foo" is an error.
19931   #
19932   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19933   # It is also a way to make sure we got the proper file name for the real test later on.
19934   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19935   if test "x$test_shortpath" = x; then
19936     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19938     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19939   fi
19940 
19941   # Call helper function which possibly converts this using DOS-style short mode.
19942   # If so, the updated path is stored in $new_path.
19943 
19944   input_path="$new_path"
19945   # Check if we need to convert this using DOS-style short mode. If the path
19946   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19947   # take no chances and rewrite it.
19948   # Note: m4 eats our [], so we need to use [ and ] instead.
19949   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19950   if test "x$has_forbidden_chars" != x; then
19951     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19952     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19953     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19954     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19955       # Going to short mode and back again did indeed matter. Since short mode is
19956       # case insensitive, let's make it lowercase to improve readability.
19957       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19958       # Now convert it back to Unix-stile (cygpath)
19959       input_path=`$CYGPATH -u "$shortmode_path"`
19960       new_path="$input_path"
19961     fi
19962   fi
19963 
19964   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19965   if test "x$test_cygdrive_prefix" = x; then
19966     # As a simple fix, exclude /usr/bin since it's not a real path.
19967     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19968       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19969       # a path prefixed by /cygdrive for fixpath to work.
19970       new_path="$CYGWIN_ROOT_PATH$input_path"
19971     fi
19972   fi
19973 
19974 
19975   if test "x$path" != "x$new_path"; then
19976     BOOT_JDK="$new_path"
19977     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19978 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19979   fi
19980 
19981   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19982 
19983   path="$BOOT_JDK"
19984   has_colon=`$ECHO $path | $GREP ^.:`
19985   new_path="$path"
19986   if test "x$has_colon" = x; then
19987     # Not in mixed or Windows style, start by that.
19988     new_path=`cmd //c echo $path`
19989   fi
19990 
19991 
19992   input_path="$new_path"
19993   # Check if we need to convert this using DOS-style short mode. If the path
19994   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19995   # take no chances and rewrite it.
19996   # Note: m4 eats our [], so we need to use [ and ] instead.
19997   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19998   if test "x$has_forbidden_chars" != x; then
19999     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20000     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20001   fi
20002 
20003 
20004   windows_path="$new_path"
20005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20006     unix_path=`$CYGPATH -u "$windows_path"`
20007     new_path="$unix_path"
20008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20010     new_path="$unix_path"
20011   fi
20012 
20013   if test "x$path" != "x$new_path"; then
20014     BOOT_JDK="$new_path"
20015     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20016 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20017   fi
20018 
20019   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20020   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20021 
20022   else
20023     # We're on a posix platform. Hooray! :)
20024     path="$BOOT_JDK"
20025     has_space=`$ECHO "$path" | $GREP " "`
20026     if test "x$has_space" != x; then
20027       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20028 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20029       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20030     fi
20031 
20032     # Use eval to expand a potential ~
20033     eval path="$path"
20034     if test ! -f "$path" && test ! -d "$path"; then
20035       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20036     fi
20037 
20038     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20039   fi
20040 
20041               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20042 $as_echo_n "checking for Boot JDK... " >&6; }
20043               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20044 $as_echo "$BOOT_JDK" >&6; }
20045               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20046 $as_echo_n "checking Boot JDK version... " >&6; }
20047               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20048               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20049 $as_echo "$BOOT_JDK_VERSION" >&6; }
20050             fi # end check jdk version
20051           fi # end check rt.jar
20052         fi # end check javac
20053       fi # end check java
20054     fi # end check boot jdk found
20055   fi
20056 
20057   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20058     # Having specified an argument which is incorrect will produce an instant failure;
20059     # we should not go on looking
20060     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20061   fi
20062 
20063   # Test: Is bootjdk available from builddeps?
20064 
20065   if test "x$BOOT_JDK_FOUND" = xno; then
20066     # Now execute the test
20067 
20068 
20069 
20070   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20071     # Source the builddeps file again, to make sure it uses the latest variables!
20072     . $builddepsfile
20073     # Look for a target and build machine specific resource!
20074     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20075     if test "x$resource" = x; then
20076       # Ok, lets instead look for a target specific resource
20077       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20078     fi
20079     if test "x$resource" = x; then
20080       # Ok, lets instead look for a build specific resource
20081       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20082     fi
20083     if test "x$resource" = x; then
20084       # Ok, lets instead look for a generic resource
20085       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20086       resource=${builddep_bootjdk}
20087     fi
20088     if test "x$resource" != x; then
20089       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20090 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20091       # If the resource in the builddeps.conf file is an existing directory,
20092       # for example /java/linux/cups
20093       if test -d ${resource}; then
20094         depdir=${resource}
20095       else
20096 
20097   # bootjdk is for example mymodule
20098   # $resource is for example libs/general/libmymod_1_2_3.zip
20099   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20100   # $with_builddeps_dir is for example /localhome/builddeps
20101   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20102   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20103   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20104   filename=`basename $resource`
20105   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20106   filebase=${filename%%.*}
20107   extension=${filename#*.}
20108   installdir=$with_builddeps_dir/$filebase
20109   if test ! -f $installdir/$filename.unpacked; then
20110     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20111 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20112     if test ! -d $installdir; then
20113       mkdir -p $installdir
20114     fi
20115     if test ! -d $installdir; then
20116       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20117     fi
20118     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20119     touch $tmpfile
20120     if test ! -f $tmpfile; then
20121       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20122     fi
20123 
20124   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20125   # $tmpfile is the local file name for the downloaded file.
20126   VALID_TOOL=no
20127   if test "x$BDEPS_FTP" = xwget; then
20128     VALID_TOOL=yes
20129     wget -O $tmpfile $with_builddeps_server/$resource
20130   fi
20131   if test "x$BDEPS_FTP" = xlftp; then
20132     VALID_TOOL=yes
20133     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20134   fi
20135   if test "x$BDEPS_FTP" = xftp; then
20136     VALID_TOOL=yes
20137     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20138     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20139     FTPUSERPWD=${FTPSERVER%%@*}
20140     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20141       FTPUSER=${userpwd%%:*}
20142       FTPPWD=${userpwd#*@}
20143       FTPSERVER=${FTPSERVER#*@}
20144     else
20145       FTPUSER=ftp
20146       FTPPWD=ftp
20147     fi
20148     # the "pass" command does not work on some
20149     # ftp clients (read ftp.exe) but if it works,
20150     # passive mode is better!
20151     ( \
20152         echo "user $FTPUSER $FTPPWD"        ; \
20153         echo "pass"                         ; \
20154         echo "bin"                          ; \
20155         echo "get $FTPPATH $tmpfile"              ; \
20156     ) | ftp -in $FTPSERVER
20157   fi
20158   if test "x$VALID_TOOL" != xyes; then
20159     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20160   fi
20161 
20162     mv $tmpfile $installdir/$filename
20163     if test ! -s $installdir/$filename; then
20164       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20165     fi
20166     case "$extension" in
20167       zip)  echo "Unzipping $installdir/$filename..."
20168         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20169         ;;
20170       tar.gz) echo "Untaring $installdir/$filename..."
20171         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20172         ;;
20173       tgz) echo "Untaring $installdir/$filename..."
20174         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20175         ;;
20176       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20177         ;;
20178     esac
20179   fi
20180   if test -f $installdir/$filename.unpacked; then
20181     depdir=$installdir
20182   fi
20183 
20184       fi
20185       # Source the builddeps file again, because in the previous command, the depdir
20186       # was updated to point at the current build dependency install directory.
20187       . $builddepsfile
20188       # Now extract variables from the builddeps.conf files.
20189       theroot=${builddep_bootjdk_ROOT}
20190       thecflags=${builddep_bootjdk_CFLAGS}
20191       thelibs=${builddep_bootjdk_LIBS}
20192       if test "x$depdir" = x; then
20193         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20194       fi
20195       BOOT_JDK=$depdir
20196       if test "x$theroot" != x; then
20197         BOOT_JDK="$theroot"
20198       fi
20199       if test "x$thecflags" != x; then
20200         BOOT_JDK_CFLAGS="$thecflags"
20201       fi
20202       if test "x$thelibs" != x; then
20203         BOOT_JDK_LIBS="$thelibs"
20204       fi
20205       BOOT_JDK_FOUND=maybe
20206       else BOOT_JDK_FOUND=no
20207 
20208     fi
20209     else BOOT_JDK_FOUND=no
20210 
20211   fi
20212 
20213 
20214 
20215     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20216     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20217       # Do we have a bin/java?
20218       if test ! -x "$BOOT_JDK/bin/java"; then
20219         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20220 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20221         BOOT_JDK_FOUND=no
20222       else
20223         # Do we have a bin/javac?
20224         if test ! -x "$BOOT_JDK/bin/javac"; then
20225           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20226 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20227           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20228 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20229           BOOT_JDK_FOUND=no
20230         else
20231           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20232           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20233             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20234 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20235             BOOT_JDK_FOUND=no
20236           else
20237             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20238             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20239 
20240             # Extra M4 quote needed to protect [] in grep expression.
20241             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20242             if test "x$FOUND_CORRECT_VERSION" = x; then
20243               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20244 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20245               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20246 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20247               BOOT_JDK_FOUND=no
20248             else
20249               # We're done! :-)
20250               BOOT_JDK_FOUND=yes
20251 
20252   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20253 
20254   # Input might be given as Windows format, start by converting to
20255   # unix format.
20256   path="$BOOT_JDK"
20257   new_path=`$CYGPATH -u "$path"`
20258 
20259   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20260   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20261   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20262   # "foo.exe" is OK but "foo" is an error.
20263   #
20264   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20265   # It is also a way to make sure we got the proper file name for the real test later on.
20266   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20267   if test "x$test_shortpath" = x; then
20268     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20269 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20270     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20271   fi
20272 
20273   # Call helper function which possibly converts this using DOS-style short mode.
20274   # If so, the updated path is stored in $new_path.
20275 
20276   input_path="$new_path"
20277   # Check if we need to convert this using DOS-style short mode. If the path
20278   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20279   # take no chances and rewrite it.
20280   # Note: m4 eats our [], so we need to use [ and ] instead.
20281   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20282   if test "x$has_forbidden_chars" != x; then
20283     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20284     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20285     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20286     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20287       # Going to short mode and back again did indeed matter. Since short mode is
20288       # case insensitive, let's make it lowercase to improve readability.
20289       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20290       # Now convert it back to Unix-stile (cygpath)
20291       input_path=`$CYGPATH -u "$shortmode_path"`
20292       new_path="$input_path"
20293     fi
20294   fi
20295 
20296   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20297   if test "x$test_cygdrive_prefix" = x; then
20298     # As a simple fix, exclude /usr/bin since it's not a real path.
20299     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20300       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20301       # a path prefixed by /cygdrive for fixpath to work.
20302       new_path="$CYGWIN_ROOT_PATH$input_path"
20303     fi
20304   fi
20305 
20306 
20307   if test "x$path" != "x$new_path"; then
20308     BOOT_JDK="$new_path"
20309     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20310 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20311   fi
20312 
20313   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20314 
20315   path="$BOOT_JDK"
20316   has_colon=`$ECHO $path | $GREP ^.:`
20317   new_path="$path"
20318   if test "x$has_colon" = x; then
20319     # Not in mixed or Windows style, start by that.
20320     new_path=`cmd //c echo $path`
20321   fi
20322 
20323 
20324   input_path="$new_path"
20325   # Check if we need to convert this using DOS-style short mode. If the path
20326   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20327   # take no chances and rewrite it.
20328   # Note: m4 eats our [], so we need to use [ and ] instead.
20329   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20330   if test "x$has_forbidden_chars" != x; then
20331     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20332     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20333   fi
20334 
20335 
20336   windows_path="$new_path"
20337   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20338     unix_path=`$CYGPATH -u "$windows_path"`
20339     new_path="$unix_path"
20340   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20341     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20342     new_path="$unix_path"
20343   fi
20344 
20345   if test "x$path" != "x$new_path"; then
20346     BOOT_JDK="$new_path"
20347     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20348 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20349   fi
20350 
20351   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20352   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20353 
20354   else
20355     # We're on a posix platform. Hooray! :)
20356     path="$BOOT_JDK"
20357     has_space=`$ECHO "$path" | $GREP " "`
20358     if test "x$has_space" != x; then
20359       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20360 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20361       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20362     fi
20363 
20364     # Use eval to expand a potential ~
20365     eval path="$path"
20366     if test ! -f "$path" && test ! -d "$path"; then
20367       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20368     fi
20369 
20370     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20371   fi
20372 
20373               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20374 $as_echo_n "checking for Boot JDK... " >&6; }
20375               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20376 $as_echo "$BOOT_JDK" >&6; }
20377               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20378 $as_echo_n "checking Boot JDK version... " >&6; }
20379               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20380               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20381 $as_echo "$BOOT_JDK_VERSION" >&6; }
20382             fi # end check jdk version
20383           fi # end check rt.jar
20384         fi # end check javac
20385       fi # end check java
20386     fi # end check boot jdk found
20387   fi
20388 
20389 
20390   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20391 
20392   if test "x$BOOT_JDK_FOUND" = xno; then
20393     # Now execute the test
20394 
20395   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20396     # First check at user selected default
20397 
20398   if test "x$BOOT_JDK_FOUND" = xno; then
20399     # Now execute the test
20400 
20401   if test -x /usr/libexec/java_home; then
20402     BOOT_JDK=`/usr/libexec/java_home `
20403     BOOT_JDK_FOUND=maybe
20404     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20405 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20406   fi
20407 
20408 
20409     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20410     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20411       # Do we have a bin/java?
20412       if test ! -x "$BOOT_JDK/bin/java"; then
20413         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20415         BOOT_JDK_FOUND=no
20416       else
20417         # Do we have a bin/javac?
20418         if test ! -x "$BOOT_JDK/bin/javac"; then
20419           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20421           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20422 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20423           BOOT_JDK_FOUND=no
20424         else
20425           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20426           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20427             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20429             BOOT_JDK_FOUND=no
20430           else
20431             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20432             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20433 
20434             # Extra M4 quote needed to protect [] in grep expression.
20435             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20436             if test "x$FOUND_CORRECT_VERSION" = x; then
20437               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20439               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20440 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20441               BOOT_JDK_FOUND=no
20442             else
20443               # We're done! :-)
20444               BOOT_JDK_FOUND=yes
20445 
20446   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20447 
20448   # Input might be given as Windows format, start by converting to
20449   # unix format.
20450   path="$BOOT_JDK"
20451   new_path=`$CYGPATH -u "$path"`
20452 
20453   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20454   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20455   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20456   # "foo.exe" is OK but "foo" is an error.
20457   #
20458   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20459   # It is also a way to make sure we got the proper file name for the real test later on.
20460   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20461   if test "x$test_shortpath" = x; then
20462     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20463 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20464     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20465   fi
20466 
20467   # Call helper function which possibly converts this using DOS-style short mode.
20468   # If so, the updated path is stored in $new_path.
20469 
20470   input_path="$new_path"
20471   # Check if we need to convert this using DOS-style short mode. If the path
20472   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20473   # take no chances and rewrite it.
20474   # Note: m4 eats our [], so we need to use [ and ] instead.
20475   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20476   if test "x$has_forbidden_chars" != x; then
20477     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20478     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20479     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20480     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20481       # Going to short mode and back again did indeed matter. Since short mode is
20482       # case insensitive, let's make it lowercase to improve readability.
20483       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20484       # Now convert it back to Unix-stile (cygpath)
20485       input_path=`$CYGPATH -u "$shortmode_path"`
20486       new_path="$input_path"
20487     fi
20488   fi
20489 
20490   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20491   if test "x$test_cygdrive_prefix" = x; then
20492     # As a simple fix, exclude /usr/bin since it's not a real path.
20493     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20494       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20495       # a path prefixed by /cygdrive for fixpath to work.
20496       new_path="$CYGWIN_ROOT_PATH$input_path"
20497     fi
20498   fi
20499 
20500 
20501   if test "x$path" != "x$new_path"; then
20502     BOOT_JDK="$new_path"
20503     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20504 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20505   fi
20506 
20507   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20508 
20509   path="$BOOT_JDK"
20510   has_colon=`$ECHO $path | $GREP ^.:`
20511   new_path="$path"
20512   if test "x$has_colon" = x; then
20513     # Not in mixed or Windows style, start by that.
20514     new_path=`cmd //c echo $path`
20515   fi
20516 
20517 
20518   input_path="$new_path"
20519   # Check if we need to convert this using DOS-style short mode. If the path
20520   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20521   # take no chances and rewrite it.
20522   # Note: m4 eats our [], so we need to use [ and ] instead.
20523   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20524   if test "x$has_forbidden_chars" != x; then
20525     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20526     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20527   fi
20528 
20529 
20530   windows_path="$new_path"
20531   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20532     unix_path=`$CYGPATH -u "$windows_path"`
20533     new_path="$unix_path"
20534   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20535     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20536     new_path="$unix_path"
20537   fi
20538 
20539   if test "x$path" != "x$new_path"; then
20540     BOOT_JDK="$new_path"
20541     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20542 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20543   fi
20544 
20545   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20546   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20547 
20548   else
20549     # We're on a posix platform. Hooray! :)
20550     path="$BOOT_JDK"
20551     has_space=`$ECHO "$path" | $GREP " "`
20552     if test "x$has_space" != x; then
20553       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20554 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20555       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20556     fi
20557 
20558     # Use eval to expand a potential ~
20559     eval path="$path"
20560     if test ! -f "$path" && test ! -d "$path"; then
20561       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20562     fi
20563 
20564     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20565   fi
20566 
20567               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20568 $as_echo_n "checking for Boot JDK... " >&6; }
20569               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20570 $as_echo "$BOOT_JDK" >&6; }
20571               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20572 $as_echo_n "checking Boot JDK version... " >&6; }
20573               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20574               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20575 $as_echo "$BOOT_JDK_VERSION" >&6; }
20576             fi # end check jdk version
20577           fi # end check rt.jar
20578         fi # end check javac
20579       fi # end check java
20580     fi # end check boot jdk found
20581   fi
20582 
20583     # If that did not work out (e.g. too old), try explicit versions instead
20584 
20585   if test "x$BOOT_JDK_FOUND" = xno; then
20586     # Now execute the test
20587 
20588   if test -x /usr/libexec/java_home; then
20589     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20590     BOOT_JDK_FOUND=maybe
20591     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20592 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20593   fi
20594 
20595 
20596     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20597     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20598       # Do we have a bin/java?
20599       if test ! -x "$BOOT_JDK/bin/java"; then
20600         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20602         BOOT_JDK_FOUND=no
20603       else
20604         # Do we have a bin/javac?
20605         if test ! -x "$BOOT_JDK/bin/javac"; then
20606           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20607 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20608           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20609 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20610           BOOT_JDK_FOUND=no
20611         else
20612           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20613           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20614             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20616             BOOT_JDK_FOUND=no
20617           else
20618             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20619             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20620 
20621             # Extra M4 quote needed to protect [] in grep expression.
20622             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20623             if test "x$FOUND_CORRECT_VERSION" = x; then
20624               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20626               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20627 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20628               BOOT_JDK_FOUND=no
20629             else
20630               # We're done! :-)
20631               BOOT_JDK_FOUND=yes
20632 
20633   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20634 
20635   # Input might be given as Windows format, start by converting to
20636   # unix format.
20637   path="$BOOT_JDK"
20638   new_path=`$CYGPATH -u "$path"`
20639 
20640   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20641   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20642   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20643   # "foo.exe" is OK but "foo" is an error.
20644   #
20645   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20646   # It is also a way to make sure we got the proper file name for the real test later on.
20647   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20648   if test "x$test_shortpath" = x; then
20649     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20650 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20651     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20652   fi
20653 
20654   # Call helper function which possibly converts this using DOS-style short mode.
20655   # If so, the updated path is stored in $new_path.
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     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20666     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20667     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20668       # Going to short mode and back again did indeed matter. Since short mode is
20669       # case insensitive, let's make it lowercase to improve readability.
20670       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20671       # Now convert it back to Unix-stile (cygpath)
20672       input_path=`$CYGPATH -u "$shortmode_path"`
20673       new_path="$input_path"
20674     fi
20675   fi
20676 
20677   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20678   if test "x$test_cygdrive_prefix" = x; then
20679     # As a simple fix, exclude /usr/bin since it's not a real path.
20680     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20681       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20682       # a path prefixed by /cygdrive for fixpath to work.
20683       new_path="$CYGWIN_ROOT_PATH$input_path"
20684     fi
20685   fi
20686 
20687 
20688   if test "x$path" != "x$new_path"; then
20689     BOOT_JDK="$new_path"
20690     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20691 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20692   fi
20693 
20694   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20695 
20696   path="$BOOT_JDK"
20697   has_colon=`$ECHO $path | $GREP ^.:`
20698   new_path="$path"
20699   if test "x$has_colon" = x; then
20700     # Not in mixed or Windows style, start by that.
20701     new_path=`cmd //c echo $path`
20702   fi
20703 
20704 
20705   input_path="$new_path"
20706   # Check if we need to convert this using DOS-style short mode. If the path
20707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20708   # take no chances and rewrite it.
20709   # Note: m4 eats our [], so we need to use [ and ] instead.
20710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20711   if test "x$has_forbidden_chars" != x; then
20712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20713     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20714   fi
20715 
20716 
20717   windows_path="$new_path"
20718   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20719     unix_path=`$CYGPATH -u "$windows_path"`
20720     new_path="$unix_path"
20721   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20722     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20723     new_path="$unix_path"
20724   fi
20725 
20726   if test "x$path" != "x$new_path"; then
20727     BOOT_JDK="$new_path"
20728     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20729 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20730   fi
20731 
20732   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20733   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20734 
20735   else
20736     # We're on a posix platform. Hooray! :)
20737     path="$BOOT_JDK"
20738     has_space=`$ECHO "$path" | $GREP " "`
20739     if test "x$has_space" != x; then
20740       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20741 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20742       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20743     fi
20744 
20745     # Use eval to expand a potential ~
20746     eval path="$path"
20747     if test ! -f "$path" && test ! -d "$path"; then
20748       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20749     fi
20750 
20751     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20752   fi
20753 
20754               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20755 $as_echo_n "checking for Boot JDK... " >&6; }
20756               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20757 $as_echo "$BOOT_JDK" >&6; }
20758               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20759 $as_echo_n "checking Boot JDK version... " >&6; }
20760               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20761               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20762 $as_echo "$BOOT_JDK_VERSION" >&6; }
20763             fi # end check jdk version
20764           fi # end check rt.jar
20765         fi # end check javac
20766       fi # end check java
20767     fi # end check boot jdk found
20768   fi
20769 
20770 
20771   if test "x$BOOT_JDK_FOUND" = xno; then
20772     # Now execute the test
20773 
20774   if test -x /usr/libexec/java_home; then
20775     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20776     BOOT_JDK_FOUND=maybe
20777     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20778 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20779   fi
20780 
20781 
20782     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20783     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20784       # Do we have a bin/java?
20785       if test ! -x "$BOOT_JDK/bin/java"; then
20786         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20787 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20788         BOOT_JDK_FOUND=no
20789       else
20790         # Do we have a bin/javac?
20791         if test ! -x "$BOOT_JDK/bin/javac"; then
20792           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20794           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20795 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20796           BOOT_JDK_FOUND=no
20797         else
20798           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20799           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20800             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20801 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20802             BOOT_JDK_FOUND=no
20803           else
20804             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20805             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20806 
20807             # Extra M4 quote needed to protect [] in grep expression.
20808             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20809             if test "x$FOUND_CORRECT_VERSION" = x; then
20810               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20812               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20813 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
20814               BOOT_JDK_FOUND=no
20815             else
20816               # We're done! :-)
20817               BOOT_JDK_FOUND=yes
20818 
20819   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20820 
20821   # Input might be given as Windows format, start by converting to
20822   # unix format.
20823   path="$BOOT_JDK"
20824   new_path=`$CYGPATH -u "$path"`
20825 
20826   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20827   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20828   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20829   # "foo.exe" is OK but "foo" is an error.
20830   #
20831   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20832   # It is also a way to make sure we got the proper file name for the real test later on.
20833   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20834   if test "x$test_shortpath" = x; then
20835     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20836 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20837     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20838   fi
20839 
20840   # Call helper function which possibly converts this using DOS-style short mode.
20841   # If so, the updated path is stored in $new_path.
20842 
20843   input_path="$new_path"
20844   # Check if we need to convert this using DOS-style short mode. If the path
20845   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20846   # take no chances and rewrite it.
20847   # Note: m4 eats our [], so we need to use [ and ] instead.
20848   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20849   if test "x$has_forbidden_chars" != x; then
20850     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20851     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20852     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20853     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20854       # Going to short mode and back again did indeed matter. Since short mode is
20855       # case insensitive, let's make it lowercase to improve readability.
20856       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20857       # Now convert it back to Unix-stile (cygpath)
20858       input_path=`$CYGPATH -u "$shortmode_path"`
20859       new_path="$input_path"
20860     fi
20861   fi
20862 
20863   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20864   if test "x$test_cygdrive_prefix" = x; then
20865     # As a simple fix, exclude /usr/bin since it's not a real path.
20866     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20867       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20868       # a path prefixed by /cygdrive for fixpath to work.
20869       new_path="$CYGWIN_ROOT_PATH$input_path"
20870     fi
20871   fi
20872 
20873 
20874   if test "x$path" != "x$new_path"; then
20875     BOOT_JDK="$new_path"
20876     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20877 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20878   fi
20879 
20880   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20881 
20882   path="$BOOT_JDK"
20883   has_colon=`$ECHO $path | $GREP ^.:`
20884   new_path="$path"
20885   if test "x$has_colon" = x; then
20886     # Not in mixed or Windows style, start by that.
20887     new_path=`cmd //c echo $path`
20888   fi
20889 
20890 
20891   input_path="$new_path"
20892   # Check if we need to convert this using DOS-style short mode. If the path
20893   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20894   # take no chances and rewrite it.
20895   # Note: m4 eats our [], so we need to use [ and ] instead.
20896   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20897   if test "x$has_forbidden_chars" != x; then
20898     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20899     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20900   fi
20901 
20902 
20903   windows_path="$new_path"
20904   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20905     unix_path=`$CYGPATH -u "$windows_path"`
20906     new_path="$unix_path"
20907   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20908     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20909     new_path="$unix_path"
20910   fi
20911 
20912   if test "x$path" != "x$new_path"; then
20913     BOOT_JDK="$new_path"
20914     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20915 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20916   fi
20917 
20918   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20919   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20920 
20921   else
20922     # We're on a posix platform. Hooray! :)
20923     path="$BOOT_JDK"
20924     has_space=`$ECHO "$path" | $GREP " "`
20925     if test "x$has_space" != x; then
20926       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20927 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20928       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20929     fi
20930 
20931     # Use eval to expand a potential ~
20932     eval path="$path"
20933     if test ! -f "$path" && test ! -d "$path"; then
20934       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20935     fi
20936 
20937     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20938   fi
20939 
20940               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20941 $as_echo_n "checking for Boot JDK... " >&6; }
20942               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20943 $as_echo "$BOOT_JDK" >&6; }
20944               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20945 $as_echo_n "checking Boot JDK version... " >&6; }
20946               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20947               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20948 $as_echo "$BOOT_JDK_VERSION" >&6; }
20949             fi # end check jdk version
20950           fi # end check rt.jar
20951         fi # end check javac
20952       fi # end check java
20953     fi # end check boot jdk found
20954   fi
20955 
20956 
20957   if test "x$BOOT_JDK_FOUND" = xno; then
20958     # Now execute the test
20959 
20960   if test -x /usr/libexec/java_home; then
20961     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20962     BOOT_JDK_FOUND=maybe
20963     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20964 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20965   fi
20966 
20967 
20968     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20969     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20970       # Do we have a bin/java?
20971       if test ! -x "$BOOT_JDK/bin/java"; then
20972         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20974         BOOT_JDK_FOUND=no
20975       else
20976         # Do we have a bin/javac?
20977         if test ! -x "$BOOT_JDK/bin/javac"; then
20978           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20979 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20980           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20981 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20982           BOOT_JDK_FOUND=no
20983         else
20984           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20985           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20986             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20988             BOOT_JDK_FOUND=no
20989           else
20990             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20991             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20992 
20993             # Extra M4 quote needed to protect [] in grep expression.
20994             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
20995             if test "x$FOUND_CORRECT_VERSION" = x; then
20996               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20998               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
20999 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21000               BOOT_JDK_FOUND=no
21001             else
21002               # We're done! :-)
21003               BOOT_JDK_FOUND=yes
21004 
21005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21006 
21007   # Input might be given as Windows format, start by converting to
21008   # unix format.
21009   path="$BOOT_JDK"
21010   new_path=`$CYGPATH -u "$path"`
21011 
21012   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21013   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21014   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21015   # "foo.exe" is OK but "foo" is an error.
21016   #
21017   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21018   # It is also a way to make sure we got the proper file name for the real test later on.
21019   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21020   if test "x$test_shortpath" = x; then
21021     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21022 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21023     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21024   fi
21025 
21026   # Call helper function which possibly converts this using DOS-style short mode.
21027   # If so, the updated path is stored in $new_path.
21028 
21029   input_path="$new_path"
21030   # Check if we need to convert this using DOS-style short mode. If the path
21031   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21032   # take no chances and rewrite it.
21033   # Note: m4 eats our [], so we need to use [ and ] instead.
21034   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21035   if test "x$has_forbidden_chars" != x; then
21036     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21037     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21038     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21039     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21040       # Going to short mode and back again did indeed matter. Since short mode is
21041       # case insensitive, let's make it lowercase to improve readability.
21042       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21043       # Now convert it back to Unix-stile (cygpath)
21044       input_path=`$CYGPATH -u "$shortmode_path"`
21045       new_path="$input_path"
21046     fi
21047   fi
21048 
21049   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21050   if test "x$test_cygdrive_prefix" = x; then
21051     # As a simple fix, exclude /usr/bin since it's not a real path.
21052     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21053       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21054       # a path prefixed by /cygdrive for fixpath to work.
21055       new_path="$CYGWIN_ROOT_PATH$input_path"
21056     fi
21057   fi
21058 
21059 
21060   if test "x$path" != "x$new_path"; then
21061     BOOT_JDK="$new_path"
21062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21063 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21064   fi
21065 
21066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21067 
21068   path="$BOOT_JDK"
21069   has_colon=`$ECHO $path | $GREP ^.:`
21070   new_path="$path"
21071   if test "x$has_colon" = x; then
21072     # Not in mixed or Windows style, start by that.
21073     new_path=`cmd //c echo $path`
21074   fi
21075 
21076 
21077   input_path="$new_path"
21078   # Check if we need to convert this using DOS-style short mode. If the path
21079   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21080   # take no chances and rewrite it.
21081   # Note: m4 eats our [], so we need to use [ and ] instead.
21082   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21083   if test "x$has_forbidden_chars" != x; then
21084     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21085     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21086   fi
21087 
21088 
21089   windows_path="$new_path"
21090   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21091     unix_path=`$CYGPATH -u "$windows_path"`
21092     new_path="$unix_path"
21093   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21094     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21095     new_path="$unix_path"
21096   fi
21097 
21098   if test "x$path" != "x$new_path"; then
21099     BOOT_JDK="$new_path"
21100     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21101 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21102   fi
21103 
21104   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21105   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21106 
21107   else
21108     # We're on a posix platform. Hooray! :)
21109     path="$BOOT_JDK"
21110     has_space=`$ECHO "$path" | $GREP " "`
21111     if test "x$has_space" != x; then
21112       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21113 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21114       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21115     fi
21116 
21117     # Use eval to expand a potential ~
21118     eval path="$path"
21119     if test ! -f "$path" && test ! -d "$path"; then
21120       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21121     fi
21122 
21123     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21124   fi
21125 
21126               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21127 $as_echo_n "checking for Boot JDK... " >&6; }
21128               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21129 $as_echo "$BOOT_JDK" >&6; }
21130               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21131 $as_echo_n "checking Boot JDK version... " >&6; }
21132               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21133               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21134 $as_echo "$BOOT_JDK_VERSION" >&6; }
21135             fi # end check jdk version
21136           fi # end check rt.jar
21137         fi # end check javac
21138       fi # end check java
21139     fi # end check boot jdk found
21140   fi
21141 
21142   fi
21143 
21144 
21145     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21146     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21147       # Do we have a bin/java?
21148       if test ! -x "$BOOT_JDK/bin/java"; then
21149         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21150 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21151         BOOT_JDK_FOUND=no
21152       else
21153         # Do we have a bin/javac?
21154         if test ! -x "$BOOT_JDK/bin/javac"; then
21155           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21157           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21158 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21159           BOOT_JDK_FOUND=no
21160         else
21161           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21162           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21163             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21164 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21165             BOOT_JDK_FOUND=no
21166           else
21167             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21168             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21169 
21170             # Extra M4 quote needed to protect [] in grep expression.
21171             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21172             if test "x$FOUND_CORRECT_VERSION" = x; then
21173               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21174 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21175               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21176 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21177               BOOT_JDK_FOUND=no
21178             else
21179               # We're done! :-)
21180               BOOT_JDK_FOUND=yes
21181 
21182   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21183 
21184   # Input might be given as Windows format, start by converting to
21185   # unix format.
21186   path="$BOOT_JDK"
21187   new_path=`$CYGPATH -u "$path"`
21188 
21189   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21190   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21191   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21192   # "foo.exe" is OK but "foo" is an error.
21193   #
21194   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21195   # It is also a way to make sure we got the proper file name for the real test later on.
21196   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21197   if test "x$test_shortpath" = x; then
21198     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21199 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21200     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21201   fi
21202 
21203   # Call helper function which possibly converts this using DOS-style short mode.
21204   # If so, the updated path is stored in $new_path.
21205 
21206   input_path="$new_path"
21207   # Check if we need to convert this using DOS-style short mode. If the path
21208   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21209   # take no chances and rewrite it.
21210   # Note: m4 eats our [], so we need to use [ and ] instead.
21211   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21212   if test "x$has_forbidden_chars" != x; then
21213     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21214     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21215     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21216     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21217       # Going to short mode and back again did indeed matter. Since short mode is
21218       # case insensitive, let's make it lowercase to improve readability.
21219       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21220       # Now convert it back to Unix-stile (cygpath)
21221       input_path=`$CYGPATH -u "$shortmode_path"`
21222       new_path="$input_path"
21223     fi
21224   fi
21225 
21226   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21227   if test "x$test_cygdrive_prefix" = x; then
21228     # As a simple fix, exclude /usr/bin since it's not a real path.
21229     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21230       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21231       # a path prefixed by /cygdrive for fixpath to work.
21232       new_path="$CYGWIN_ROOT_PATH$input_path"
21233     fi
21234   fi
21235 
21236 
21237   if test "x$path" != "x$new_path"; then
21238     BOOT_JDK="$new_path"
21239     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21240 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21241   fi
21242 
21243   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21244 
21245   path="$BOOT_JDK"
21246   has_colon=`$ECHO $path | $GREP ^.:`
21247   new_path="$path"
21248   if test "x$has_colon" = x; then
21249     # Not in mixed or Windows style, start by that.
21250     new_path=`cmd //c echo $path`
21251   fi
21252 
21253 
21254   input_path="$new_path"
21255   # Check if we need to convert this using DOS-style short mode. If the path
21256   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21257   # take no chances and rewrite it.
21258   # Note: m4 eats our [], so we need to use [ and ] instead.
21259   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21260   if test "x$has_forbidden_chars" != x; then
21261     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21262     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21263   fi
21264 
21265 
21266   windows_path="$new_path"
21267   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21268     unix_path=`$CYGPATH -u "$windows_path"`
21269     new_path="$unix_path"
21270   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21271     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21272     new_path="$unix_path"
21273   fi
21274 
21275   if test "x$path" != "x$new_path"; then
21276     BOOT_JDK="$new_path"
21277     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21278 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21279   fi
21280 
21281   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21282   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21283 
21284   else
21285     # We're on a posix platform. Hooray! :)
21286     path="$BOOT_JDK"
21287     has_space=`$ECHO "$path" | $GREP " "`
21288     if test "x$has_space" != 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 $? "Spaces are not allowed in this path." "$LINENO" 5
21292     fi
21293 
21294     # Use eval to expand a potential ~
21295     eval path="$path"
21296     if test ! -f "$path" && test ! -d "$path"; then
21297       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21298     fi
21299 
21300     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21301   fi
21302 
21303               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21304 $as_echo_n "checking for Boot JDK... " >&6; }
21305               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21306 $as_echo "$BOOT_JDK" >&6; }
21307               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21308 $as_echo_n "checking Boot JDK version... " >&6; }
21309               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21310               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21311 $as_echo "$BOOT_JDK_VERSION" >&6; }
21312             fi # end check jdk version
21313           fi # end check rt.jar
21314         fi # end check javac
21315       fi # end check java
21316     fi # end check boot jdk found
21317   fi
21318 
21319 
21320   # Test: Is $JAVA_HOME set?
21321 
21322   if test "x$BOOT_JDK_FOUND" = xno; then
21323     # Now execute the test
21324 
21325   if test "x$JAVA_HOME" != x; then
21326     JAVA_HOME_PROCESSED="$JAVA_HOME"
21327 
21328   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21329 
21330   # Input might be given as Windows format, start by converting to
21331   # unix format.
21332   path="$JAVA_HOME_PROCESSED"
21333   new_path=`$CYGPATH -u "$path"`
21334 
21335   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21336   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21337   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21338   # "foo.exe" is OK but "foo" is an error.
21339   #
21340   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21341   # It is also a way to make sure we got the proper file name for the real test later on.
21342   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21343   if test "x$test_shortpath" = x; then
21344     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21345 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21346     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21347   fi
21348 
21349   # Call helper function which possibly converts this using DOS-style short mode.
21350   # If so, the updated path is stored in $new_path.
21351 
21352   input_path="$new_path"
21353   # Check if we need to convert this using DOS-style short mode. If the path
21354   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21355   # take no chances and rewrite it.
21356   # Note: m4 eats our [], so we need to use [ and ] instead.
21357   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21358   if test "x$has_forbidden_chars" != x; then
21359     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21360     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21361     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21362     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21363       # Going to short mode and back again did indeed matter. Since short mode is
21364       # case insensitive, let's make it lowercase to improve readability.
21365       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21366       # Now convert it back to Unix-stile (cygpath)
21367       input_path=`$CYGPATH -u "$shortmode_path"`
21368       new_path="$input_path"
21369     fi
21370   fi
21371 
21372   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21373   if test "x$test_cygdrive_prefix" = x; then
21374     # As a simple fix, exclude /usr/bin since it's not a real path.
21375     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21376       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21377       # a path prefixed by /cygdrive for fixpath to work.
21378       new_path="$CYGWIN_ROOT_PATH$input_path"
21379     fi
21380   fi
21381 
21382 
21383   if test "x$path" != "x$new_path"; then
21384     JAVA_HOME_PROCESSED="$new_path"
21385     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21386 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21387   fi
21388 
21389   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21390 
21391   path="$JAVA_HOME_PROCESSED"
21392   has_colon=`$ECHO $path | $GREP ^.:`
21393   new_path="$path"
21394   if test "x$has_colon" = x; then
21395     # Not in mixed or Windows style, start by that.
21396     new_path=`cmd //c echo $path`
21397   fi
21398 
21399 
21400   input_path="$new_path"
21401   # Check if we need to convert this using DOS-style short mode. If the path
21402   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21403   # take no chances and rewrite it.
21404   # Note: m4 eats our [], so we need to use [ and ] instead.
21405   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21406   if test "x$has_forbidden_chars" != x; then
21407     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21408     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21409   fi
21410 
21411 
21412   windows_path="$new_path"
21413   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21414     unix_path=`$CYGPATH -u "$windows_path"`
21415     new_path="$unix_path"
21416   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21417     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21418     new_path="$unix_path"
21419   fi
21420 
21421   if test "x$path" != "x$new_path"; then
21422     JAVA_HOME_PROCESSED="$new_path"
21423     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21424 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21425   fi
21426 
21427   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21428   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21429 
21430   else
21431     # We're on a posix platform. Hooray! :)
21432     path="$JAVA_HOME_PROCESSED"
21433     has_space=`$ECHO "$path" | $GREP " "`
21434     if test "x$has_space" != x; then
21435       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21436 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21437       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21438     fi
21439 
21440     # Use eval to expand a potential ~
21441     eval path="$path"
21442     if test ! -f "$path" && test ! -d "$path"; then
21443       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21444     fi
21445 
21446     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21447   fi
21448 
21449     if test ! -d "$JAVA_HOME_PROCESSED"; then
21450       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21451 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21452     else
21453       # Aha, the user has set a JAVA_HOME
21454       # let us use that as the Boot JDK.
21455       BOOT_JDK="$JAVA_HOME_PROCESSED"
21456       BOOT_JDK_FOUND=maybe
21457       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21458 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21459     fi
21460   fi
21461 
21462 
21463     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21464     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21465       # Do we have a bin/java?
21466       if test ! -x "$BOOT_JDK/bin/java"; then
21467         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21469         BOOT_JDK_FOUND=no
21470       else
21471         # Do we have a bin/javac?
21472         if test ! -x "$BOOT_JDK/bin/javac"; then
21473           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21474 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21475           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21476 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21477           BOOT_JDK_FOUND=no
21478         else
21479           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21480           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21481             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21482 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21483             BOOT_JDK_FOUND=no
21484           else
21485             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21486             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21487 
21488             # Extra M4 quote needed to protect [] in grep expression.
21489             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21490             if test "x$FOUND_CORRECT_VERSION" = x; then
21491               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21492 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21493               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21494 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21495               BOOT_JDK_FOUND=no
21496             else
21497               # We're done! :-)
21498               BOOT_JDK_FOUND=yes
21499 
21500   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21501 
21502   # Input might be given as Windows format, start by converting to
21503   # unix format.
21504   path="$BOOT_JDK"
21505   new_path=`$CYGPATH -u "$path"`
21506 
21507   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21508   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21509   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21510   # "foo.exe" is OK but "foo" is an error.
21511   #
21512   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21513   # It is also a way to make sure we got the proper file name for the real test later on.
21514   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21515   if test "x$test_shortpath" = x; then
21516     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21518     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21519   fi
21520 
21521   # Call helper function which possibly converts this using DOS-style short mode.
21522   # If so, the updated path is stored in $new_path.
21523 
21524   input_path="$new_path"
21525   # Check if we need to convert this using DOS-style short mode. If the path
21526   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21527   # take no chances and rewrite it.
21528   # Note: m4 eats our [], so we need to use [ and ] instead.
21529   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21530   if test "x$has_forbidden_chars" != x; then
21531     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21532     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21533     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21534     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21535       # Going to short mode and back again did indeed matter. Since short mode is
21536       # case insensitive, let's make it lowercase to improve readability.
21537       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21538       # Now convert it back to Unix-stile (cygpath)
21539       input_path=`$CYGPATH -u "$shortmode_path"`
21540       new_path="$input_path"
21541     fi
21542   fi
21543 
21544   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21545   if test "x$test_cygdrive_prefix" = x; then
21546     # As a simple fix, exclude /usr/bin since it's not a real path.
21547     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21548       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21549       # a path prefixed by /cygdrive for fixpath to work.
21550       new_path="$CYGWIN_ROOT_PATH$input_path"
21551     fi
21552   fi
21553 
21554 
21555   if test "x$path" != "x$new_path"; then
21556     BOOT_JDK="$new_path"
21557     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21558 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21559   fi
21560 
21561   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21562 
21563   path="$BOOT_JDK"
21564   has_colon=`$ECHO $path | $GREP ^.:`
21565   new_path="$path"
21566   if test "x$has_colon" = x; then
21567     # Not in mixed or Windows style, start by that.
21568     new_path=`cmd //c echo $path`
21569   fi
21570 
21571 
21572   input_path="$new_path"
21573   # Check if we need to convert this using DOS-style short mode. If the path
21574   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21575   # take no chances and rewrite it.
21576   # Note: m4 eats our [], so we need to use [ and ] instead.
21577   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21578   if test "x$has_forbidden_chars" != x; then
21579     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21580     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21581   fi
21582 
21583 
21584   windows_path="$new_path"
21585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21586     unix_path=`$CYGPATH -u "$windows_path"`
21587     new_path="$unix_path"
21588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21589     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21590     new_path="$unix_path"
21591   fi
21592 
21593   if test "x$path" != "x$new_path"; then
21594     BOOT_JDK="$new_path"
21595     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21596 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21597   fi
21598 
21599   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21600   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21601 
21602   else
21603     # We're on a posix platform. Hooray! :)
21604     path="$BOOT_JDK"
21605     has_space=`$ECHO "$path" | $GREP " "`
21606     if test "x$has_space" != x; then
21607       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21609       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21610     fi
21611 
21612     # Use eval to expand a potential ~
21613     eval path="$path"
21614     if test ! -f "$path" && test ! -d "$path"; then
21615       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21616     fi
21617 
21618     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21619   fi
21620 
21621               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21622 $as_echo_n "checking for Boot JDK... " >&6; }
21623               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21624 $as_echo "$BOOT_JDK" >&6; }
21625               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21626 $as_echo_n "checking Boot JDK version... " >&6; }
21627               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21628               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21629 $as_echo "$BOOT_JDK_VERSION" >&6; }
21630             fi # end check jdk version
21631           fi # end check rt.jar
21632         fi # end check javac
21633       fi # end check java
21634     fi # end check boot jdk found
21635   fi
21636 
21637 
21638   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21639 
21640   if test "x$BOOT_JDK_FOUND" = xno; then
21641     # Now execute the test
21642 
21643   # Extract the first word of "javac", so it can be a program name with args.
21644 set dummy javac; ac_word=$2
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21646 $as_echo_n "checking for $ac_word... " >&6; }
21647 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21648   $as_echo_n "(cached) " >&6
21649 else
21650   case $JAVAC_CHECK in
21651   [\\/]* | ?:[\\/]*)
21652   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21653   ;;
21654   *)
21655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21656 for as_dir in $PATH
21657 do
21658   IFS=$as_save_IFS
21659   test -z "$as_dir" && as_dir=.
21660     for ac_exec_ext in '' $ac_executable_extensions; do
21661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21662     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21664     break 2
21665   fi
21666 done
21667   done
21668 IFS=$as_save_IFS
21669 
21670   ;;
21671 esac
21672 fi
21673 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21674 if test -n "$JAVAC_CHECK"; then
21675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21676 $as_echo "$JAVAC_CHECK" >&6; }
21677 else
21678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21679 $as_echo "no" >&6; }
21680 fi
21681 
21682 
21683   # Extract the first word of "java", so it can be a program name with args.
21684 set dummy java; ac_word=$2
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21686 $as_echo_n "checking for $ac_word... " >&6; }
21687 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21688   $as_echo_n "(cached) " >&6
21689 else
21690   case $JAVA_CHECK in
21691   [\\/]* | ?:[\\/]*)
21692   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21693   ;;
21694   *)
21695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21696 for as_dir in $PATH
21697 do
21698   IFS=$as_save_IFS
21699   test -z "$as_dir" && as_dir=.
21700     for ac_exec_ext in '' $ac_executable_extensions; do
21701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21702     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21704     break 2
21705   fi
21706 done
21707   done
21708 IFS=$as_save_IFS
21709 
21710   ;;
21711 esac
21712 fi
21713 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21714 if test -n "$JAVA_CHECK"; then
21715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21716 $as_echo "$JAVA_CHECK" >&6; }
21717 else
21718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21719 $as_echo "no" >&6; }
21720 fi
21721 
21722 
21723   BINARY="$JAVAC_CHECK"
21724   if test "x$JAVAC_CHECK" = x; then
21725     BINARY="$JAVA_CHECK"
21726   fi
21727   if test "x$BINARY" != x; then
21728     # So there is a java(c) binary, it might be part of a JDK.
21729     # Lets find the JDK/JRE directory by following symbolic links.
21730     # Linux/GNU systems often have links from /usr/bin/java to
21731     # /etc/alternatives/java to the real JDK binary.
21732 
21733   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21734     # Follow a chain of symbolic links. Use readlink
21735     # where it exists, else fall back to horribly
21736     # complicated shell code.
21737     if test "x$READLINK_TESTED" != yes; then
21738       # On MacOSX there is a readlink tool with a different
21739       # purpose than the GNU readlink tool. Check the found readlink.
21740       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21741       if test "x$ISGNU" = x; then
21742         # A readlink that we do not know how to use.
21743         # Are there other non-GNU readlinks out there?
21744         READLINK_TESTED=yes
21745         READLINK=
21746       fi
21747     fi
21748 
21749     if test "x$READLINK" != x; then
21750       BINARY=`$READLINK -f $BINARY`
21751     else
21752       # Save the current directory for restoring afterwards
21753       STARTDIR=$PWD
21754       COUNTER=0
21755       sym_link_dir=`$DIRNAME $BINARY`
21756       sym_link_file=`$BASENAME $BINARY`
21757       cd $sym_link_dir
21758       # Use -P flag to resolve symlinks in directories.
21759       cd `$THEPWDCMD -P`
21760       sym_link_dir=`$THEPWDCMD -P`
21761       # Resolve file symlinks
21762       while test $COUNTER -lt 20; do
21763         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21764         if test "x$ISLINK" == x; then
21765           # This is not a symbolic link! We are done!
21766           break
21767         fi
21768         # Again resolve directory symlinks since the target of the just found
21769         # link could be in a different directory
21770         cd `$DIRNAME $ISLINK`
21771         sym_link_dir=`$THEPWDCMD -P`
21772         sym_link_file=`$BASENAME $ISLINK`
21773         let COUNTER=COUNTER+1
21774       done
21775       cd $STARTDIR
21776       BINARY=$sym_link_dir/$sym_link_file
21777     fi
21778   fi
21779 
21780     BOOT_JDK=`dirname "$BINARY"`
21781     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21782     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21783       # Looks like we found ourselves an JDK
21784       BOOT_JDK_FOUND=maybe
21785       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21786 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21787     fi
21788   fi
21789 
21790 
21791     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21792     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21793       # Do we have a bin/java?
21794       if test ! -x "$BOOT_JDK/bin/java"; then
21795         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21797         BOOT_JDK_FOUND=no
21798       else
21799         # Do we have a bin/javac?
21800         if test ! -x "$BOOT_JDK/bin/javac"; then
21801           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21803           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21804 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21805           BOOT_JDK_FOUND=no
21806         else
21807           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21808           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21809             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21811             BOOT_JDK_FOUND=no
21812           else
21813             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21814             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21815 
21816             # Extra M4 quote needed to protect [] in grep expression.
21817             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
21818             if test "x$FOUND_CORRECT_VERSION" = x; then
21819               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21821               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
21822 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
21823               BOOT_JDK_FOUND=no
21824             else
21825               # We're done! :-)
21826               BOOT_JDK_FOUND=yes
21827 
21828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21829 
21830   # Input might be given as Windows format, start by converting to
21831   # unix format.
21832   path="$BOOT_JDK"
21833   new_path=`$CYGPATH -u "$path"`
21834 
21835   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21836   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21837   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21838   # "foo.exe" is OK but "foo" is an error.
21839   #
21840   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21841   # It is also a way to make sure we got the proper file name for the real test later on.
21842   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21843   if test "x$test_shortpath" = x; then
21844     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21845 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21846     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21847   fi
21848 
21849   # Call helper function which possibly converts this using DOS-style short mode.
21850   # If so, the updated path is stored in $new_path.
21851 
21852   input_path="$new_path"
21853   # Check if we need to convert this using DOS-style short mode. If the path
21854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21855   # take no chances and rewrite it.
21856   # Note: m4 eats our [], so we need to use [ and ] instead.
21857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21858   if test "x$has_forbidden_chars" != x; then
21859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21860     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21861     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21862     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21863       # Going to short mode and back again did indeed matter. Since short mode is
21864       # case insensitive, let's make it lowercase to improve readability.
21865       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21866       # Now convert it back to Unix-stile (cygpath)
21867       input_path=`$CYGPATH -u "$shortmode_path"`
21868       new_path="$input_path"
21869     fi
21870   fi
21871 
21872   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21873   if test "x$test_cygdrive_prefix" = x; then
21874     # As a simple fix, exclude /usr/bin since it's not a real path.
21875     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21876       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21877       # a path prefixed by /cygdrive for fixpath to work.
21878       new_path="$CYGWIN_ROOT_PATH$input_path"
21879     fi
21880   fi
21881 
21882 
21883   if test "x$path" != "x$new_path"; then
21884     BOOT_JDK="$new_path"
21885     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21886 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21887   fi
21888 
21889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21890 
21891   path="$BOOT_JDK"
21892   has_colon=`$ECHO $path | $GREP ^.:`
21893   new_path="$path"
21894   if test "x$has_colon" = x; then
21895     # Not in mixed or Windows style, start by that.
21896     new_path=`cmd //c echo $path`
21897   fi
21898 
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     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21909   fi
21910 
21911 
21912   windows_path="$new_path"
21913   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21914     unix_path=`$CYGPATH -u "$windows_path"`
21915     new_path="$unix_path"
21916   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21917     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21918     new_path="$unix_path"
21919   fi
21920 
21921   if test "x$path" != "x$new_path"; then
21922     BOOT_JDK="$new_path"
21923     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21924 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21925   fi
21926 
21927   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21928   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21929 
21930   else
21931     # We're on a posix platform. Hooray! :)
21932     path="$BOOT_JDK"
21933     has_space=`$ECHO "$path" | $GREP " "`
21934     if test "x$has_space" != x; then
21935       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21937       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21938     fi
21939 
21940     # Use eval to expand a potential ~
21941     eval path="$path"
21942     if test ! -f "$path" && test ! -d "$path"; then
21943       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21944     fi
21945 
21946     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21947   fi
21948 
21949               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21950 $as_echo_n "checking for Boot JDK... " >&6; }
21951               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21952 $as_echo "$BOOT_JDK" >&6; }
21953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21954 $as_echo_n "checking Boot JDK version... " >&6; }
21955               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21956               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21957 $as_echo "$BOOT_JDK_VERSION" >&6; }
21958             fi # end check jdk version
21959           fi # end check rt.jar
21960         fi # end check javac
21961       fi # end check java
21962     fi # end check boot jdk found
21963   fi
21964 
21965 
21966   # Test: Is there a JDK installed in default, well-known locations?
21967 
21968   if test "x$BOOT_JDK_FOUND" = xno; then
21969     # Now execute the test
21970 
21971   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21972 
21973   if test "x$BOOT_JDK_FOUND" = xno; then
21974     # Now execute the test
21975 
21976   if test "x$ProgramW6432" != x; then
21977     VIRTUAL_DIR="$ProgramW6432/Java"
21978 
21979   windows_path="$VIRTUAL_DIR"
21980   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21981     unix_path=`$CYGPATH -u "$windows_path"`
21982     VIRTUAL_DIR="$unix_path"
21983   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21984     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21985     VIRTUAL_DIR="$unix_path"
21986   fi
21987 
21988 
21989   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21990   BOOT_JDK_SUFFIX=""
21991   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21992   if test "x$ALL_JDKS_FOUND" != x; then
21993     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21994 
21995   if test "x$BOOT_JDK_FOUND" = xno; then
21996     # Now execute the test
21997 
21998         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21999         if test -d "$BOOT_JDK"; then
22000           BOOT_JDK_FOUND=maybe
22001           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22002 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22003         fi
22004 
22005 
22006     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22007     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22008       # Do we have a bin/java?
22009       if test ! -x "$BOOT_JDK/bin/java"; then
22010         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22011 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22012         BOOT_JDK_FOUND=no
22013       else
22014         # Do we have a bin/javac?
22015         if test ! -x "$BOOT_JDK/bin/javac"; then
22016           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22017 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22018           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22019 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22020           BOOT_JDK_FOUND=no
22021         else
22022           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22023           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22024             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22026             BOOT_JDK_FOUND=no
22027           else
22028             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22029             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22030 
22031             # Extra M4 quote needed to protect [] in grep expression.
22032             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22033             if test "x$FOUND_CORRECT_VERSION" = x; then
22034               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22036               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22037 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22038               BOOT_JDK_FOUND=no
22039             else
22040               # We're done! :-)
22041               BOOT_JDK_FOUND=yes
22042 
22043   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22044 
22045   # Input might be given as Windows format, start by converting to
22046   # unix format.
22047   path="$BOOT_JDK"
22048   new_path=`$CYGPATH -u "$path"`
22049 
22050   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22051   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22052   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22053   # "foo.exe" is OK but "foo" is an error.
22054   #
22055   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22056   # It is also a way to make sure we got the proper file name for the real test later on.
22057   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22058   if test "x$test_shortpath" = x; then
22059     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22060 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22061     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22062   fi
22063 
22064   # Call helper function which possibly converts this using DOS-style short mode.
22065   # If so, the updated path is stored in $new_path.
22066 
22067   input_path="$new_path"
22068   # Check if we need to convert this using DOS-style short mode. If the path
22069   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22070   # take no chances and rewrite it.
22071   # Note: m4 eats our [], so we need to use [ and ] instead.
22072   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22073   if test "x$has_forbidden_chars" != x; then
22074     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22075     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22076     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22077     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22078       # Going to short mode and back again did indeed matter. Since short mode is
22079       # case insensitive, let's make it lowercase to improve readability.
22080       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22081       # Now convert it back to Unix-stile (cygpath)
22082       input_path=`$CYGPATH -u "$shortmode_path"`
22083       new_path="$input_path"
22084     fi
22085   fi
22086 
22087   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22088   if test "x$test_cygdrive_prefix" = x; then
22089     # As a simple fix, exclude /usr/bin since it's not a real path.
22090     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22091       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22092       # a path prefixed by /cygdrive for fixpath to work.
22093       new_path="$CYGWIN_ROOT_PATH$input_path"
22094     fi
22095   fi
22096 
22097 
22098   if test "x$path" != "x$new_path"; then
22099     BOOT_JDK="$new_path"
22100     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22101 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22102   fi
22103 
22104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22105 
22106   path="$BOOT_JDK"
22107   has_colon=`$ECHO $path | $GREP ^.:`
22108   new_path="$path"
22109   if test "x$has_colon" = x; then
22110     # Not in mixed or Windows style, start by that.
22111     new_path=`cmd //c echo $path`
22112   fi
22113 
22114 
22115   input_path="$new_path"
22116   # Check if we need to convert this using DOS-style short mode. If the path
22117   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22118   # take no chances and rewrite it.
22119   # Note: m4 eats our [], so we need to use [ and ] instead.
22120   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22121   if test "x$has_forbidden_chars" != x; then
22122     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22123     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22124   fi
22125 
22126 
22127   windows_path="$new_path"
22128   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22129     unix_path=`$CYGPATH -u "$windows_path"`
22130     new_path="$unix_path"
22131   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22132     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22133     new_path="$unix_path"
22134   fi
22135 
22136   if test "x$path" != "x$new_path"; then
22137     BOOT_JDK="$new_path"
22138     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22139 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22140   fi
22141 
22142   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22143   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22144 
22145   else
22146     # We're on a posix platform. Hooray! :)
22147     path="$BOOT_JDK"
22148     has_space=`$ECHO "$path" | $GREP " "`
22149     if test "x$has_space" != x; then
22150       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22151 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22152       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22153     fi
22154 
22155     # Use eval to expand a potential ~
22156     eval path="$path"
22157     if test ! -f "$path" && test ! -d "$path"; then
22158       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22159     fi
22160 
22161     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22162   fi
22163 
22164               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22165 $as_echo_n "checking for Boot JDK... " >&6; }
22166               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22167 $as_echo "$BOOT_JDK" >&6; }
22168               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22169 $as_echo_n "checking Boot JDK version... " >&6; }
22170               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22171               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22172 $as_echo "$BOOT_JDK_VERSION" >&6; }
22173             fi # end check jdk version
22174           fi # end check rt.jar
22175         fi # end check javac
22176       fi # end check java
22177     fi # end check boot jdk found
22178   fi
22179 
22180     done
22181   fi
22182 
22183   fi
22184 
22185 
22186     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22187     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22188       # Do we have a bin/java?
22189       if test ! -x "$BOOT_JDK/bin/java"; then
22190         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22191 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22192         BOOT_JDK_FOUND=no
22193       else
22194         # Do we have a bin/javac?
22195         if test ! -x "$BOOT_JDK/bin/javac"; then
22196           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22198           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22199 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22200           BOOT_JDK_FOUND=no
22201         else
22202           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22203           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22204             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22205 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22206             BOOT_JDK_FOUND=no
22207           else
22208             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22209             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22210 
22211             # Extra M4 quote needed to protect [] in grep expression.
22212             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22213             if test "x$FOUND_CORRECT_VERSION" = x; then
22214               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22216               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22217 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22218               BOOT_JDK_FOUND=no
22219             else
22220               # We're done! :-)
22221               BOOT_JDK_FOUND=yes
22222 
22223   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22224 
22225   # Input might be given as Windows format, start by converting to
22226   # unix format.
22227   path="$BOOT_JDK"
22228   new_path=`$CYGPATH -u "$path"`
22229 
22230   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22231   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22232   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22233   # "foo.exe" is OK but "foo" is an error.
22234   #
22235   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22236   # It is also a way to make sure we got the proper file name for the real test later on.
22237   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22238   if test "x$test_shortpath" = x; then
22239     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22240 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22241     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22242   fi
22243 
22244   # Call helper function which possibly converts this using DOS-style short mode.
22245   # If so, the updated path is stored in $new_path.
22246 
22247   input_path="$new_path"
22248   # Check if we need to convert this using DOS-style short mode. If the path
22249   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22250   # take no chances and rewrite it.
22251   # Note: m4 eats our [], so we need to use [ and ] instead.
22252   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22253   if test "x$has_forbidden_chars" != x; then
22254     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22255     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22256     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22257     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22258       # Going to short mode and back again did indeed matter. Since short mode is
22259       # case insensitive, let's make it lowercase to improve readability.
22260       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22261       # Now convert it back to Unix-stile (cygpath)
22262       input_path=`$CYGPATH -u "$shortmode_path"`
22263       new_path="$input_path"
22264     fi
22265   fi
22266 
22267   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22268   if test "x$test_cygdrive_prefix" = x; then
22269     # As a simple fix, exclude /usr/bin since it's not a real path.
22270     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22271       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22272       # a path prefixed by /cygdrive for fixpath to work.
22273       new_path="$CYGWIN_ROOT_PATH$input_path"
22274     fi
22275   fi
22276 
22277 
22278   if test "x$path" != "x$new_path"; then
22279     BOOT_JDK="$new_path"
22280     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22281 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22282   fi
22283 
22284   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22285 
22286   path="$BOOT_JDK"
22287   has_colon=`$ECHO $path | $GREP ^.:`
22288   new_path="$path"
22289   if test "x$has_colon" = x; then
22290     # Not in mixed or Windows style, start by that.
22291     new_path=`cmd //c echo $path`
22292   fi
22293 
22294 
22295   input_path="$new_path"
22296   # Check if we need to convert this using DOS-style short mode. If the path
22297   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22298   # take no chances and rewrite it.
22299   # Note: m4 eats our [], so we need to use [ and ] instead.
22300   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22301   if test "x$has_forbidden_chars" != x; then
22302     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22303     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22304   fi
22305 
22306 
22307   windows_path="$new_path"
22308   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22309     unix_path=`$CYGPATH -u "$windows_path"`
22310     new_path="$unix_path"
22311   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22312     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22313     new_path="$unix_path"
22314   fi
22315 
22316   if test "x$path" != "x$new_path"; then
22317     BOOT_JDK="$new_path"
22318     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22319 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22320   fi
22321 
22322   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22323   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22324 
22325   else
22326     # We're on a posix platform. Hooray! :)
22327     path="$BOOT_JDK"
22328     has_space=`$ECHO "$path" | $GREP " "`
22329     if test "x$has_space" != x; then
22330       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22331 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22332       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22333     fi
22334 
22335     # Use eval to expand a potential ~
22336     eval path="$path"
22337     if test ! -f "$path" && test ! -d "$path"; then
22338       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22339     fi
22340 
22341     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22342   fi
22343 
22344               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22345 $as_echo_n "checking for Boot JDK... " >&6; }
22346               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22347 $as_echo "$BOOT_JDK" >&6; }
22348               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22349 $as_echo_n "checking Boot JDK version... " >&6; }
22350               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22351               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22352 $as_echo "$BOOT_JDK_VERSION" >&6; }
22353             fi # end check jdk version
22354           fi # end check rt.jar
22355         fi # end check javac
22356       fi # end check java
22357     fi # end check boot jdk found
22358   fi
22359 
22360 
22361   if test "x$BOOT_JDK_FOUND" = xno; then
22362     # Now execute the test
22363 
22364   if test "x$PROGRAMW6432" != x; then
22365     VIRTUAL_DIR="$PROGRAMW6432/Java"
22366 
22367   windows_path="$VIRTUAL_DIR"
22368   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22369     unix_path=`$CYGPATH -u "$windows_path"`
22370     VIRTUAL_DIR="$unix_path"
22371   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22372     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22373     VIRTUAL_DIR="$unix_path"
22374   fi
22375 
22376 
22377   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22378   BOOT_JDK_SUFFIX=""
22379   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22380   if test "x$ALL_JDKS_FOUND" != x; then
22381     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22382 
22383   if test "x$BOOT_JDK_FOUND" = xno; then
22384     # Now execute the test
22385 
22386         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22387         if test -d "$BOOT_JDK"; then
22388           BOOT_JDK_FOUND=maybe
22389           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22390 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22391         fi
22392 
22393 
22394     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22395     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22396       # Do we have a bin/java?
22397       if test ! -x "$BOOT_JDK/bin/java"; then
22398         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22399 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22400         BOOT_JDK_FOUND=no
22401       else
22402         # Do we have a bin/javac?
22403         if test ! -x "$BOOT_JDK/bin/javac"; then
22404           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22405 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22406           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22407 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22408           BOOT_JDK_FOUND=no
22409         else
22410           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22411           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22412             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22414             BOOT_JDK_FOUND=no
22415           else
22416             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22417             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22418 
22419             # Extra M4 quote needed to protect [] in grep expression.
22420             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22421             if test "x$FOUND_CORRECT_VERSION" = x; then
22422               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22424               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22425 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22426               BOOT_JDK_FOUND=no
22427             else
22428               # We're done! :-)
22429               BOOT_JDK_FOUND=yes
22430 
22431   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22432 
22433   # Input might be given as Windows format, start by converting to
22434   # unix format.
22435   path="$BOOT_JDK"
22436   new_path=`$CYGPATH -u "$path"`
22437 
22438   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22439   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22440   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22441   # "foo.exe" is OK but "foo" is an error.
22442   #
22443   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22444   # It is also a way to make sure we got the proper file name for the real test later on.
22445   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22446   if test "x$test_shortpath" = x; then
22447     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22448 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22449     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22450   fi
22451 
22452   # Call helper function which possibly converts this using DOS-style short mode.
22453   # If so, the updated path is stored in $new_path.
22454 
22455   input_path="$new_path"
22456   # Check if we need to convert this using DOS-style short mode. If the path
22457   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22458   # take no chances and rewrite it.
22459   # Note: m4 eats our [], so we need to use [ and ] instead.
22460   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22461   if test "x$has_forbidden_chars" != x; then
22462     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22463     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22464     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22465     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22466       # Going to short mode and back again did indeed matter. Since short mode is
22467       # case insensitive, let's make it lowercase to improve readability.
22468       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22469       # Now convert it back to Unix-stile (cygpath)
22470       input_path=`$CYGPATH -u "$shortmode_path"`
22471       new_path="$input_path"
22472     fi
22473   fi
22474 
22475   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22476   if test "x$test_cygdrive_prefix" = x; then
22477     # As a simple fix, exclude /usr/bin since it's not a real path.
22478     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22479       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22480       # a path prefixed by /cygdrive for fixpath to work.
22481       new_path="$CYGWIN_ROOT_PATH$input_path"
22482     fi
22483   fi
22484 
22485 
22486   if test "x$path" != "x$new_path"; then
22487     BOOT_JDK="$new_path"
22488     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22489 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22490   fi
22491 
22492   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22493 
22494   path="$BOOT_JDK"
22495   has_colon=`$ECHO $path | $GREP ^.:`
22496   new_path="$path"
22497   if test "x$has_colon" = x; then
22498     # Not in mixed or Windows style, start by that.
22499     new_path=`cmd //c echo $path`
22500   fi
22501 
22502 
22503   input_path="$new_path"
22504   # Check if we need to convert this using DOS-style short mode. If the path
22505   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22506   # take no chances and rewrite it.
22507   # Note: m4 eats our [], so we need to use [ and ] instead.
22508   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22509   if test "x$has_forbidden_chars" != x; then
22510     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22511     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22512   fi
22513 
22514 
22515   windows_path="$new_path"
22516   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22517     unix_path=`$CYGPATH -u "$windows_path"`
22518     new_path="$unix_path"
22519   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22520     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22521     new_path="$unix_path"
22522   fi
22523 
22524   if test "x$path" != "x$new_path"; then
22525     BOOT_JDK="$new_path"
22526     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22527 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22528   fi
22529 
22530   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22531   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22532 
22533   else
22534     # We're on a posix platform. Hooray! :)
22535     path="$BOOT_JDK"
22536     has_space=`$ECHO "$path" | $GREP " "`
22537     if test "x$has_space" != x; then
22538       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22539 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22540       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22541     fi
22542 
22543     # Use eval to expand a potential ~
22544     eval path="$path"
22545     if test ! -f "$path" && test ! -d "$path"; then
22546       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22547     fi
22548 
22549     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22550   fi
22551 
22552               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22553 $as_echo_n "checking for Boot JDK... " >&6; }
22554               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22555 $as_echo "$BOOT_JDK" >&6; }
22556               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22557 $as_echo_n "checking Boot JDK version... " >&6; }
22558               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22559               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22560 $as_echo "$BOOT_JDK_VERSION" >&6; }
22561             fi # end check jdk version
22562           fi # end check rt.jar
22563         fi # end check javac
22564       fi # end check java
22565     fi # end check boot jdk found
22566   fi
22567 
22568     done
22569   fi
22570 
22571   fi
22572 
22573 
22574     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22575     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22576       # Do we have a bin/java?
22577       if test ! -x "$BOOT_JDK/bin/java"; then
22578         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22580         BOOT_JDK_FOUND=no
22581       else
22582         # Do we have a bin/javac?
22583         if test ! -x "$BOOT_JDK/bin/javac"; then
22584           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22586           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22587 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22588           BOOT_JDK_FOUND=no
22589         else
22590           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22591           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22592             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22593 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22594             BOOT_JDK_FOUND=no
22595           else
22596             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22597             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22598 
22599             # Extra M4 quote needed to protect [] in grep expression.
22600             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22601             if test "x$FOUND_CORRECT_VERSION" = x; then
22602               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22603 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22604               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22605 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22606               BOOT_JDK_FOUND=no
22607             else
22608               # We're done! :-)
22609               BOOT_JDK_FOUND=yes
22610 
22611   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22612 
22613   # Input might be given as Windows format, start by converting to
22614   # unix format.
22615   path="$BOOT_JDK"
22616   new_path=`$CYGPATH -u "$path"`
22617 
22618   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22619   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22620   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22621   # "foo.exe" is OK but "foo" is an error.
22622   #
22623   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22624   # It is also a way to make sure we got the proper file name for the real test later on.
22625   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22626   if test "x$test_shortpath" = x; then
22627     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22628 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22629     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22630   fi
22631 
22632   # Call helper function which possibly converts this using DOS-style short mode.
22633   # If so, the updated path is stored in $new_path.
22634 
22635   input_path="$new_path"
22636   # Check if we need to convert this using DOS-style short mode. If the path
22637   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22638   # take no chances and rewrite it.
22639   # Note: m4 eats our [], so we need to use [ and ] instead.
22640   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22641   if test "x$has_forbidden_chars" != x; then
22642     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22643     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22644     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22645     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22646       # Going to short mode and back again did indeed matter. Since short mode is
22647       # case insensitive, let's make it lowercase to improve readability.
22648       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22649       # Now convert it back to Unix-stile (cygpath)
22650       input_path=`$CYGPATH -u "$shortmode_path"`
22651       new_path="$input_path"
22652     fi
22653   fi
22654 
22655   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22656   if test "x$test_cygdrive_prefix" = x; then
22657     # As a simple fix, exclude /usr/bin since it's not a real path.
22658     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22659       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22660       # a path prefixed by /cygdrive for fixpath to work.
22661       new_path="$CYGWIN_ROOT_PATH$input_path"
22662     fi
22663   fi
22664 
22665 
22666   if test "x$path" != "x$new_path"; then
22667     BOOT_JDK="$new_path"
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22669 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22670   fi
22671 
22672   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22673 
22674   path="$BOOT_JDK"
22675   has_colon=`$ECHO $path | $GREP ^.:`
22676   new_path="$path"
22677   if test "x$has_colon" = x; then
22678     # Not in mixed or Windows style, start by that.
22679     new_path=`cmd //c echo $path`
22680   fi
22681 
22682 
22683   input_path="$new_path"
22684   # Check if we need to convert this using DOS-style short mode. If the path
22685   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22686   # take no chances and rewrite it.
22687   # Note: m4 eats our [], so we need to use [ and ] instead.
22688   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22689   if test "x$has_forbidden_chars" != x; then
22690     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22691     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22692   fi
22693 
22694 
22695   windows_path="$new_path"
22696   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22697     unix_path=`$CYGPATH -u "$windows_path"`
22698     new_path="$unix_path"
22699   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22700     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22701     new_path="$unix_path"
22702   fi
22703 
22704   if test "x$path" != "x$new_path"; then
22705     BOOT_JDK="$new_path"
22706     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22707 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22708   fi
22709 
22710   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22711   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22712 
22713   else
22714     # We're on a posix platform. Hooray! :)
22715     path="$BOOT_JDK"
22716     has_space=`$ECHO "$path" | $GREP " "`
22717     if test "x$has_space" != x; then
22718       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22719 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22720       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22721     fi
22722 
22723     # Use eval to expand a potential ~
22724     eval path="$path"
22725     if test ! -f "$path" && test ! -d "$path"; then
22726       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22727     fi
22728 
22729     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22730   fi
22731 
22732               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22733 $as_echo_n "checking for Boot JDK... " >&6; }
22734               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22735 $as_echo "$BOOT_JDK" >&6; }
22736               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22737 $as_echo_n "checking Boot JDK version... " >&6; }
22738               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22739               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22740 $as_echo "$BOOT_JDK_VERSION" >&6; }
22741             fi # end check jdk version
22742           fi # end check rt.jar
22743         fi # end check javac
22744       fi # end check java
22745     fi # end check boot jdk found
22746   fi
22747 
22748 
22749   if test "x$BOOT_JDK_FOUND" = xno; then
22750     # Now execute the test
22751 
22752   if test "x$PROGRAMFILES" != x; then
22753     VIRTUAL_DIR="$PROGRAMFILES/Java"
22754 
22755   windows_path="$VIRTUAL_DIR"
22756   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22757     unix_path=`$CYGPATH -u "$windows_path"`
22758     VIRTUAL_DIR="$unix_path"
22759   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22760     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22761     VIRTUAL_DIR="$unix_path"
22762   fi
22763 
22764 
22765   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22766   BOOT_JDK_SUFFIX=""
22767   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22768   if test "x$ALL_JDKS_FOUND" != x; then
22769     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22770 
22771   if test "x$BOOT_JDK_FOUND" = xno; then
22772     # Now execute the test
22773 
22774         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22775         if test -d "$BOOT_JDK"; then
22776           BOOT_JDK_FOUND=maybe
22777           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22778 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22779         fi
22780 
22781 
22782     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22783     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22784       # Do we have a bin/java?
22785       if test ! -x "$BOOT_JDK/bin/java"; then
22786         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22787 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22788         BOOT_JDK_FOUND=no
22789       else
22790         # Do we have a bin/javac?
22791         if test ! -x "$BOOT_JDK/bin/javac"; then
22792           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22794           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22795 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22796           BOOT_JDK_FOUND=no
22797         else
22798           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22799           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22800             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22801 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22802             BOOT_JDK_FOUND=no
22803           else
22804             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22805             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22806 
22807             # Extra M4 quote needed to protect [] in grep expression.
22808             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22809             if test "x$FOUND_CORRECT_VERSION" = x; then
22810               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22812               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22813 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22814               BOOT_JDK_FOUND=no
22815             else
22816               # We're done! :-)
22817               BOOT_JDK_FOUND=yes
22818 
22819   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22820 
22821   # Input might be given as Windows format, start by converting to
22822   # unix format.
22823   path="$BOOT_JDK"
22824   new_path=`$CYGPATH -u "$path"`
22825 
22826   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22827   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22828   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22829   # "foo.exe" is OK but "foo" is an error.
22830   #
22831   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22832   # It is also a way to make sure we got the proper file name for the real test later on.
22833   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22834   if test "x$test_shortpath" = x; then
22835     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22836 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22837     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22838   fi
22839 
22840   # Call helper function which possibly converts this using DOS-style short mode.
22841   # If so, the updated path is stored in $new_path.
22842 
22843   input_path="$new_path"
22844   # Check if we need to convert this using DOS-style short mode. If the path
22845   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22846   # take no chances and rewrite it.
22847   # Note: m4 eats our [], so we need to use [ and ] instead.
22848   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22849   if test "x$has_forbidden_chars" != x; then
22850     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22851     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22852     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22853     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22854       # Going to short mode and back again did indeed matter. Since short mode is
22855       # case insensitive, let's make it lowercase to improve readability.
22856       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22857       # Now convert it back to Unix-stile (cygpath)
22858       input_path=`$CYGPATH -u "$shortmode_path"`
22859       new_path="$input_path"
22860     fi
22861   fi
22862 
22863   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22864   if test "x$test_cygdrive_prefix" = x; then
22865     # As a simple fix, exclude /usr/bin since it's not a real path.
22866     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22867       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22868       # a path prefixed by /cygdrive for fixpath to work.
22869       new_path="$CYGWIN_ROOT_PATH$input_path"
22870     fi
22871   fi
22872 
22873 
22874   if test "x$path" != "x$new_path"; then
22875     BOOT_JDK="$new_path"
22876     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22877 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22878   fi
22879 
22880   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22881 
22882   path="$BOOT_JDK"
22883   has_colon=`$ECHO $path | $GREP ^.:`
22884   new_path="$path"
22885   if test "x$has_colon" = x; then
22886     # Not in mixed or Windows style, start by that.
22887     new_path=`cmd //c echo $path`
22888   fi
22889 
22890 
22891   input_path="$new_path"
22892   # Check if we need to convert this using DOS-style short mode. If the path
22893   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22894   # take no chances and rewrite it.
22895   # Note: m4 eats our [], so we need to use [ and ] instead.
22896   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22897   if test "x$has_forbidden_chars" != x; then
22898     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22899     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22900   fi
22901 
22902 
22903   windows_path="$new_path"
22904   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22905     unix_path=`$CYGPATH -u "$windows_path"`
22906     new_path="$unix_path"
22907   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22908     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22909     new_path="$unix_path"
22910   fi
22911 
22912   if test "x$path" != "x$new_path"; then
22913     BOOT_JDK="$new_path"
22914     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22915 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22916   fi
22917 
22918   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22919   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22920 
22921   else
22922     # We're on a posix platform. Hooray! :)
22923     path="$BOOT_JDK"
22924     has_space=`$ECHO "$path" | $GREP " "`
22925     if test "x$has_space" != x; then
22926       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22927 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22928       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22929     fi
22930 
22931     # Use eval to expand a potential ~
22932     eval path="$path"
22933     if test ! -f "$path" && test ! -d "$path"; then
22934       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22935     fi
22936 
22937     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22938   fi
22939 
22940               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22941 $as_echo_n "checking for Boot JDK... " >&6; }
22942               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22943 $as_echo "$BOOT_JDK" >&6; }
22944               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22945 $as_echo_n "checking Boot JDK version... " >&6; }
22946               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22947               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22948 $as_echo "$BOOT_JDK_VERSION" >&6; }
22949             fi # end check jdk version
22950           fi # end check rt.jar
22951         fi # end check javac
22952       fi # end check java
22953     fi # end check boot jdk found
22954   fi
22955 
22956     done
22957   fi
22958 
22959   fi
22960 
22961 
22962     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22963     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22964       # Do we have a bin/java?
22965       if test ! -x "$BOOT_JDK/bin/java"; then
22966         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22967 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22968         BOOT_JDK_FOUND=no
22969       else
22970         # Do we have a bin/javac?
22971         if test ! -x "$BOOT_JDK/bin/javac"; then
22972           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22973 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22974           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22975 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22976           BOOT_JDK_FOUND=no
22977         else
22978           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22979           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22980             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22981 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22982             BOOT_JDK_FOUND=no
22983           else
22984             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22985             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22986 
22987             # Extra M4 quote needed to protect [] in grep expression.
22988             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
22989             if test "x$FOUND_CORRECT_VERSION" = x; then
22990               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22991 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22992               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
22993 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
22994               BOOT_JDK_FOUND=no
22995             else
22996               # We're done! :-)
22997               BOOT_JDK_FOUND=yes
22998 
22999   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23000 
23001   # Input might be given as Windows format, start by converting to
23002   # unix format.
23003   path="$BOOT_JDK"
23004   new_path=`$CYGPATH -u "$path"`
23005 
23006   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23007   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23008   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23009   # "foo.exe" is OK but "foo" is an error.
23010   #
23011   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23012   # It is also a way to make sure we got the proper file name for the real test later on.
23013   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23014   if test "x$test_shortpath" = x; then
23015     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23016 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23017     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23018   fi
23019 
23020   # Call helper function which possibly converts this using DOS-style short mode.
23021   # If so, the updated path is stored in $new_path.
23022 
23023   input_path="$new_path"
23024   # Check if we need to convert this using DOS-style short mode. If the path
23025   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23026   # take no chances and rewrite it.
23027   # Note: m4 eats our [], so we need to use [ and ] instead.
23028   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23029   if test "x$has_forbidden_chars" != x; then
23030     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23031     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23032     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23033     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23034       # Going to short mode and back again did indeed matter. Since short mode is
23035       # case insensitive, let's make it lowercase to improve readability.
23036       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23037       # Now convert it back to Unix-stile (cygpath)
23038       input_path=`$CYGPATH -u "$shortmode_path"`
23039       new_path="$input_path"
23040     fi
23041   fi
23042 
23043   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23044   if test "x$test_cygdrive_prefix" = x; then
23045     # As a simple fix, exclude /usr/bin since it's not a real path.
23046     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23047       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23048       # a path prefixed by /cygdrive for fixpath to work.
23049       new_path="$CYGWIN_ROOT_PATH$input_path"
23050     fi
23051   fi
23052 
23053 
23054   if test "x$path" != "x$new_path"; then
23055     BOOT_JDK="$new_path"
23056     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23057 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23058   fi
23059 
23060   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23061 
23062   path="$BOOT_JDK"
23063   has_colon=`$ECHO $path | $GREP ^.:`
23064   new_path="$path"
23065   if test "x$has_colon" = x; then
23066     # Not in mixed or Windows style, start by that.
23067     new_path=`cmd //c echo $path`
23068   fi
23069 
23070 
23071   input_path="$new_path"
23072   # Check if we need to convert this using DOS-style short mode. If the path
23073   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23074   # take no chances and rewrite it.
23075   # Note: m4 eats our [], so we need to use [ and ] instead.
23076   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23077   if test "x$has_forbidden_chars" != x; then
23078     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23079     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23080   fi
23081 
23082 
23083   windows_path="$new_path"
23084   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23085     unix_path=`$CYGPATH -u "$windows_path"`
23086     new_path="$unix_path"
23087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23088     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23089     new_path="$unix_path"
23090   fi
23091 
23092   if test "x$path" != "x$new_path"; then
23093     BOOT_JDK="$new_path"
23094     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23095 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23096   fi
23097 
23098   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23099   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23100 
23101   else
23102     # We're on a posix platform. Hooray! :)
23103     path="$BOOT_JDK"
23104     has_space=`$ECHO "$path" | $GREP " "`
23105     if test "x$has_space" != x; then
23106       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23107 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23108       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23109     fi
23110 
23111     # Use eval to expand a potential ~
23112     eval path="$path"
23113     if test ! -f "$path" && test ! -d "$path"; then
23114       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23115     fi
23116 
23117     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23118   fi
23119 
23120               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23121 $as_echo_n "checking for Boot JDK... " >&6; }
23122               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23123 $as_echo "$BOOT_JDK" >&6; }
23124               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23125 $as_echo_n "checking Boot JDK version... " >&6; }
23126               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23127               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23128 $as_echo "$BOOT_JDK_VERSION" >&6; }
23129             fi # end check jdk version
23130           fi # end check rt.jar
23131         fi # end check javac
23132       fi # end check java
23133     fi # end check boot jdk found
23134   fi
23135 
23136 
23137   if test "x$BOOT_JDK_FOUND" = xno; then
23138     # Now execute the test
23139 
23140   if test "x$ProgramFiles" != x; then
23141     VIRTUAL_DIR="$ProgramFiles/Java"
23142 
23143   windows_path="$VIRTUAL_DIR"
23144   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23145     unix_path=`$CYGPATH -u "$windows_path"`
23146     VIRTUAL_DIR="$unix_path"
23147   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23148     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23149     VIRTUAL_DIR="$unix_path"
23150   fi
23151 
23152 
23153   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
23154   BOOT_JDK_SUFFIX=""
23155   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23156   if test "x$ALL_JDKS_FOUND" != x; then
23157     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23158 
23159   if test "x$BOOT_JDK_FOUND" = xno; then
23160     # Now execute the test
23161 
23162         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23163         if test -d "$BOOT_JDK"; then
23164           BOOT_JDK_FOUND=maybe
23165           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23166 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23167         fi
23168 
23169 
23170     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23171     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23172       # Do we have a bin/java?
23173       if test ! -x "$BOOT_JDK/bin/java"; then
23174         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23175 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23176         BOOT_JDK_FOUND=no
23177       else
23178         # Do we have a bin/javac?
23179         if test ! -x "$BOOT_JDK/bin/javac"; then
23180           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23181 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23182           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23183 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23184           BOOT_JDK_FOUND=no
23185         else
23186           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23187           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23188             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23189 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23190             BOOT_JDK_FOUND=no
23191           else
23192             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23193             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23194 
23195             # Extra M4 quote needed to protect [] in grep expression.
23196             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23197             if test "x$FOUND_CORRECT_VERSION" = x; then
23198               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23200               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23201 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23202               BOOT_JDK_FOUND=no
23203             else
23204               # We're done! :-)
23205               BOOT_JDK_FOUND=yes
23206 
23207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23208 
23209   # Input might be given as Windows format, start by converting to
23210   # unix format.
23211   path="$BOOT_JDK"
23212   new_path=`$CYGPATH -u "$path"`
23213 
23214   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23215   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23216   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23217   # "foo.exe" is OK but "foo" is an error.
23218   #
23219   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23220   # It is also a way to make sure we got the proper file name for the real test later on.
23221   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23222   if test "x$test_shortpath" = x; then
23223     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23224 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23225     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23226   fi
23227 
23228   # Call helper function which possibly converts this using DOS-style short mode.
23229   # If so, the updated path is stored in $new_path.
23230 
23231   input_path="$new_path"
23232   # Check if we need to convert this using DOS-style short mode. If the path
23233   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23234   # take no chances and rewrite it.
23235   # Note: m4 eats our [], so we need to use [ and ] instead.
23236   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23237   if test "x$has_forbidden_chars" != x; then
23238     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23239     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23240     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23241     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23242       # Going to short mode and back again did indeed matter. Since short mode is
23243       # case insensitive, let's make it lowercase to improve readability.
23244       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23245       # Now convert it back to Unix-stile (cygpath)
23246       input_path=`$CYGPATH -u "$shortmode_path"`
23247       new_path="$input_path"
23248     fi
23249   fi
23250 
23251   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23252   if test "x$test_cygdrive_prefix" = x; then
23253     # As a simple fix, exclude /usr/bin since it's not a real path.
23254     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23255       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23256       # a path prefixed by /cygdrive for fixpath to work.
23257       new_path="$CYGWIN_ROOT_PATH$input_path"
23258     fi
23259   fi
23260 
23261 
23262   if test "x$path" != "x$new_path"; then
23263     BOOT_JDK="$new_path"
23264     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23265 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23266   fi
23267 
23268   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23269 
23270   path="$BOOT_JDK"
23271   has_colon=`$ECHO $path | $GREP ^.:`
23272   new_path="$path"
23273   if test "x$has_colon" = x; then
23274     # Not in mixed or Windows style, start by that.
23275     new_path=`cmd //c echo $path`
23276   fi
23277 
23278 
23279   input_path="$new_path"
23280   # Check if we need to convert this using DOS-style short mode. If the path
23281   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23282   # take no chances and rewrite it.
23283   # Note: m4 eats our [], so we need to use [ and ] instead.
23284   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23285   if test "x$has_forbidden_chars" != x; then
23286     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23287     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23288   fi
23289 
23290 
23291   windows_path="$new_path"
23292   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23293     unix_path=`$CYGPATH -u "$windows_path"`
23294     new_path="$unix_path"
23295   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23296     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23297     new_path="$unix_path"
23298   fi
23299 
23300   if test "x$path" != "x$new_path"; then
23301     BOOT_JDK="$new_path"
23302     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23303 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23304   fi
23305 
23306   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23307   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23308 
23309   else
23310     # We're on a posix platform. Hooray! :)
23311     path="$BOOT_JDK"
23312     has_space=`$ECHO "$path" | $GREP " "`
23313     if test "x$has_space" != x; then
23314       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23315 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23316       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23317     fi
23318 
23319     # Use eval to expand a potential ~
23320     eval path="$path"
23321     if test ! -f "$path" && test ! -d "$path"; then
23322       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23323     fi
23324 
23325     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23326   fi
23327 
23328               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23329 $as_echo_n "checking for Boot JDK... " >&6; }
23330               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23331 $as_echo "$BOOT_JDK" >&6; }
23332               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23333 $as_echo_n "checking Boot JDK version... " >&6; }
23334               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23335               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23336 $as_echo "$BOOT_JDK_VERSION" >&6; }
23337             fi # end check jdk version
23338           fi # end check rt.jar
23339         fi # end check javac
23340       fi # end check java
23341     fi # end check boot jdk found
23342   fi
23343 
23344     done
23345   fi
23346 
23347   fi
23348 
23349 
23350     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23351     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23352       # Do we have a bin/java?
23353       if test ! -x "$BOOT_JDK/bin/java"; then
23354         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23355 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23356         BOOT_JDK_FOUND=no
23357       else
23358         # Do we have a bin/javac?
23359         if test ! -x "$BOOT_JDK/bin/javac"; then
23360           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23361 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23362           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23363 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23364           BOOT_JDK_FOUND=no
23365         else
23366           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23367           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23368             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23370             BOOT_JDK_FOUND=no
23371           else
23372             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23373             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23374 
23375             # Extra M4 quote needed to protect [] in grep expression.
23376             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23377             if test "x$FOUND_CORRECT_VERSION" = x; then
23378               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23380               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23381 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23382               BOOT_JDK_FOUND=no
23383             else
23384               # We're done! :-)
23385               BOOT_JDK_FOUND=yes
23386 
23387   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23388 
23389   # Input might be given as Windows format, start by converting to
23390   # unix format.
23391   path="$BOOT_JDK"
23392   new_path=`$CYGPATH -u "$path"`
23393 
23394   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23395   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23396   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23397   # "foo.exe" is OK but "foo" is an error.
23398   #
23399   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23400   # It is also a way to make sure we got the proper file name for the real test later on.
23401   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23402   if test "x$test_shortpath" = x; then
23403     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23404 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23405     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23406   fi
23407 
23408   # Call helper function which possibly converts this using DOS-style short mode.
23409   # If so, the updated path is stored in $new_path.
23410 
23411   input_path="$new_path"
23412   # Check if we need to convert this using DOS-style short mode. If the path
23413   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23414   # take no chances and rewrite it.
23415   # Note: m4 eats our [], so we need to use [ and ] instead.
23416   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23417   if test "x$has_forbidden_chars" != x; then
23418     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23419     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23420     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23421     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23422       # Going to short mode and back again did indeed matter. Since short mode is
23423       # case insensitive, let's make it lowercase to improve readability.
23424       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23425       # Now convert it back to Unix-stile (cygpath)
23426       input_path=`$CYGPATH -u "$shortmode_path"`
23427       new_path="$input_path"
23428     fi
23429   fi
23430 
23431   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23432   if test "x$test_cygdrive_prefix" = x; then
23433     # As a simple fix, exclude /usr/bin since it's not a real path.
23434     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23435       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23436       # a path prefixed by /cygdrive for fixpath to work.
23437       new_path="$CYGWIN_ROOT_PATH$input_path"
23438     fi
23439   fi
23440 
23441 
23442   if test "x$path" != "x$new_path"; then
23443     BOOT_JDK="$new_path"
23444     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23445 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23446   fi
23447 
23448   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23449 
23450   path="$BOOT_JDK"
23451   has_colon=`$ECHO $path | $GREP ^.:`
23452   new_path="$path"
23453   if test "x$has_colon" = x; then
23454     # Not in mixed or Windows style, start by that.
23455     new_path=`cmd //c echo $path`
23456   fi
23457 
23458 
23459   input_path="$new_path"
23460   # Check if we need to convert this using DOS-style short mode. If the path
23461   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23462   # take no chances and rewrite it.
23463   # Note: m4 eats our [], so we need to use [ and ] instead.
23464   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23465   if test "x$has_forbidden_chars" != x; then
23466     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23467     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23468   fi
23469 
23470 
23471   windows_path="$new_path"
23472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23473     unix_path=`$CYGPATH -u "$windows_path"`
23474     new_path="$unix_path"
23475   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23476     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23477     new_path="$unix_path"
23478   fi
23479 
23480   if test "x$path" != "x$new_path"; then
23481     BOOT_JDK="$new_path"
23482     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23483 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23484   fi
23485 
23486   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23487   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23488 
23489   else
23490     # We're on a posix platform. Hooray! :)
23491     path="$BOOT_JDK"
23492     has_space=`$ECHO "$path" | $GREP " "`
23493     if test "x$has_space" != x; then
23494       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23495 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23496       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23497     fi
23498 
23499     # Use eval to expand a potential ~
23500     eval path="$path"
23501     if test ! -f "$path" && test ! -d "$path"; then
23502       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23503     fi
23504 
23505     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23506   fi
23507 
23508               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23509 $as_echo_n "checking for Boot JDK... " >&6; }
23510               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23511 $as_echo "$BOOT_JDK" >&6; }
23512               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23513 $as_echo_n "checking Boot JDK version... " >&6; }
23514               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23515               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23516 $as_echo "$BOOT_JDK_VERSION" >&6; }
23517             fi # end check jdk version
23518           fi # end check rt.jar
23519         fi # end check javac
23520       fi # end check java
23521     fi # end check boot jdk found
23522   fi
23523 
23524 
23525   if test "x$BOOT_JDK_FOUND" = xno; then
23526     # Now execute the test
23527 
23528   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23529   BOOT_JDK_SUFFIX=""
23530   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23531   if test "x$ALL_JDKS_FOUND" != x; then
23532     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23533 
23534   if test "x$BOOT_JDK_FOUND" = xno; then
23535     # Now execute the test
23536 
23537         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23538         if test -d "$BOOT_JDK"; then
23539           BOOT_JDK_FOUND=maybe
23540           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23541 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23542         fi
23543 
23544 
23545     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23546     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23547       # Do we have a bin/java?
23548       if test ! -x "$BOOT_JDK/bin/java"; then
23549         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23551         BOOT_JDK_FOUND=no
23552       else
23553         # Do we have a bin/javac?
23554         if test ! -x "$BOOT_JDK/bin/javac"; then
23555           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23557           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23558 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23559           BOOT_JDK_FOUND=no
23560         else
23561           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23562           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23563             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23564 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23565             BOOT_JDK_FOUND=no
23566           else
23567             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23568             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23569 
23570             # Extra M4 quote needed to protect [] in grep expression.
23571             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23572             if test "x$FOUND_CORRECT_VERSION" = x; then
23573               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23574 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23575               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23576 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23577               BOOT_JDK_FOUND=no
23578             else
23579               # We're done! :-)
23580               BOOT_JDK_FOUND=yes
23581 
23582   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23583 
23584   # Input might be given as Windows format, start by converting to
23585   # unix format.
23586   path="$BOOT_JDK"
23587   new_path=`$CYGPATH -u "$path"`
23588 
23589   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23590   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23591   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23592   # "foo.exe" is OK but "foo" is an error.
23593   #
23594   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23595   # It is also a way to make sure we got the proper file name for the real test later on.
23596   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23597   if test "x$test_shortpath" = x; then
23598     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23599 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23600     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23601   fi
23602 
23603   # Call helper function which possibly converts this using DOS-style short mode.
23604   # If so, the updated path is stored in $new_path.
23605 
23606   input_path="$new_path"
23607   # Check if we need to convert this using DOS-style short mode. If the path
23608   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23609   # take no chances and rewrite it.
23610   # Note: m4 eats our [], so we need to use [ and ] instead.
23611   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23612   if test "x$has_forbidden_chars" != x; then
23613     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23614     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23615     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23616     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23617       # Going to short mode and back again did indeed matter. Since short mode is
23618       # case insensitive, let's make it lowercase to improve readability.
23619       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23620       # Now convert it back to Unix-stile (cygpath)
23621       input_path=`$CYGPATH -u "$shortmode_path"`
23622       new_path="$input_path"
23623     fi
23624   fi
23625 
23626   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23627   if test "x$test_cygdrive_prefix" = x; then
23628     # As a simple fix, exclude /usr/bin since it's not a real path.
23629     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23630       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23631       # a path prefixed by /cygdrive for fixpath to work.
23632       new_path="$CYGWIN_ROOT_PATH$input_path"
23633     fi
23634   fi
23635 
23636 
23637   if test "x$path" != "x$new_path"; then
23638     BOOT_JDK="$new_path"
23639     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23640 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23641   fi
23642 
23643   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23644 
23645   path="$BOOT_JDK"
23646   has_colon=`$ECHO $path | $GREP ^.:`
23647   new_path="$path"
23648   if test "x$has_colon" = x; then
23649     # Not in mixed or Windows style, start by that.
23650     new_path=`cmd //c echo $path`
23651   fi
23652 
23653 
23654   input_path="$new_path"
23655   # Check if we need to convert this using DOS-style short mode. If the path
23656   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23657   # take no chances and rewrite it.
23658   # Note: m4 eats our [], so we need to use [ and ] instead.
23659   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23660   if test "x$has_forbidden_chars" != x; then
23661     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23662     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23663   fi
23664 
23665 
23666   windows_path="$new_path"
23667   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23668     unix_path=`$CYGPATH -u "$windows_path"`
23669     new_path="$unix_path"
23670   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23671     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23672     new_path="$unix_path"
23673   fi
23674 
23675   if test "x$path" != "x$new_path"; then
23676     BOOT_JDK="$new_path"
23677     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23678 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23679   fi
23680 
23681   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23682   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23683 
23684   else
23685     # We're on a posix platform. Hooray! :)
23686     path="$BOOT_JDK"
23687     has_space=`$ECHO "$path" | $GREP " "`
23688     if test "x$has_space" != x; then
23689       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23690 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23691       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23692     fi
23693 
23694     # Use eval to expand a potential ~
23695     eval path="$path"
23696     if test ! -f "$path" && test ! -d "$path"; then
23697       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23698     fi
23699 
23700     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23701   fi
23702 
23703               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23704 $as_echo_n "checking for Boot JDK... " >&6; }
23705               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23706 $as_echo "$BOOT_JDK" >&6; }
23707               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23708 $as_echo_n "checking Boot JDK version... " >&6; }
23709               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23710               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23711 $as_echo "$BOOT_JDK_VERSION" >&6; }
23712             fi # end check jdk version
23713           fi # end check rt.jar
23714         fi # end check javac
23715       fi # end check java
23716     fi # end check boot jdk found
23717   fi
23718 
23719     done
23720   fi
23721 
23722 
23723     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23724     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23725       # Do we have a bin/java?
23726       if test ! -x "$BOOT_JDK/bin/java"; then
23727         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23728 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23729         BOOT_JDK_FOUND=no
23730       else
23731         # Do we have a bin/javac?
23732         if test ! -x "$BOOT_JDK/bin/javac"; then
23733           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23735           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23736 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23737           BOOT_JDK_FOUND=no
23738         else
23739           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23740           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23741             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23742 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23743             BOOT_JDK_FOUND=no
23744           else
23745             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23746             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23747 
23748             # Extra M4 quote needed to protect [] in grep expression.
23749             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23750             if test "x$FOUND_CORRECT_VERSION" = x; then
23751               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23753               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23754 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23755               BOOT_JDK_FOUND=no
23756             else
23757               # We're done! :-)
23758               BOOT_JDK_FOUND=yes
23759 
23760   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23761 
23762   # Input might be given as Windows format, start by converting to
23763   # unix format.
23764   path="$BOOT_JDK"
23765   new_path=`$CYGPATH -u "$path"`
23766 
23767   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23768   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23769   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23770   # "foo.exe" is OK but "foo" is an error.
23771   #
23772   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23773   # It is also a way to make sure we got the proper file name for the real test later on.
23774   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23775   if test "x$test_shortpath" = x; then
23776     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23777 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23778     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23779   fi
23780 
23781   # Call helper function which possibly converts this using DOS-style short mode.
23782   # If so, the updated path is stored in $new_path.
23783 
23784   input_path="$new_path"
23785   # Check if we need to convert this using DOS-style short mode. If the path
23786   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23787   # take no chances and rewrite it.
23788   # Note: m4 eats our [], so we need to use [ and ] instead.
23789   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23790   if test "x$has_forbidden_chars" != x; then
23791     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23792     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23793     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23794     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23795       # Going to short mode and back again did indeed matter. Since short mode is
23796       # case insensitive, let's make it lowercase to improve readability.
23797       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23798       # Now convert it back to Unix-stile (cygpath)
23799       input_path=`$CYGPATH -u "$shortmode_path"`
23800       new_path="$input_path"
23801     fi
23802   fi
23803 
23804   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23805   if test "x$test_cygdrive_prefix" = x; then
23806     # As a simple fix, exclude /usr/bin since it's not a real path.
23807     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23808       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23809       # a path prefixed by /cygdrive for fixpath to work.
23810       new_path="$CYGWIN_ROOT_PATH$input_path"
23811     fi
23812   fi
23813 
23814 
23815   if test "x$path" != "x$new_path"; then
23816     BOOT_JDK="$new_path"
23817     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23818 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23819   fi
23820 
23821   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23822 
23823   path="$BOOT_JDK"
23824   has_colon=`$ECHO $path | $GREP ^.:`
23825   new_path="$path"
23826   if test "x$has_colon" = x; then
23827     # Not in mixed or Windows style, start by that.
23828     new_path=`cmd //c echo $path`
23829   fi
23830 
23831 
23832   input_path="$new_path"
23833   # Check if we need to convert this using DOS-style short mode. If the path
23834   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23835   # take no chances and rewrite it.
23836   # Note: m4 eats our [], so we need to use [ and ] instead.
23837   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23838   if test "x$has_forbidden_chars" != x; then
23839     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23840     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23841   fi
23842 
23843 
23844   windows_path="$new_path"
23845   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23846     unix_path=`$CYGPATH -u "$windows_path"`
23847     new_path="$unix_path"
23848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23849     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23850     new_path="$unix_path"
23851   fi
23852 
23853   if test "x$path" != "x$new_path"; then
23854     BOOT_JDK="$new_path"
23855     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23856 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23857   fi
23858 
23859   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23860   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23861 
23862   else
23863     # We're on a posix platform. Hooray! :)
23864     path="$BOOT_JDK"
23865     has_space=`$ECHO "$path" | $GREP " "`
23866     if test "x$has_space" != x; then
23867       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23868 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23869       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23870     fi
23871 
23872     # Use eval to expand a potential ~
23873     eval path="$path"
23874     if test ! -f "$path" && test ! -d "$path"; then
23875       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23876     fi
23877 
23878     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23879   fi
23880 
23881               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23882 $as_echo_n "checking for Boot JDK... " >&6; }
23883               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23884 $as_echo "$BOOT_JDK" >&6; }
23885               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23886 $as_echo_n "checking Boot JDK version... " >&6; }
23887               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23888               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23889 $as_echo "$BOOT_JDK_VERSION" >&6; }
23890             fi # end check jdk version
23891           fi # end check rt.jar
23892         fi # end check javac
23893       fi # end check java
23894     fi # end check boot jdk found
23895   fi
23896 
23897   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23898 
23899   if test "x$BOOT_JDK_FOUND" = xno; then
23900     # Now execute the test
23901 
23902   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23903   BOOT_JDK_SUFFIX="/Contents/Home"
23904   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23905   if test "x$ALL_JDKS_FOUND" != x; then
23906     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23907 
23908   if test "x$BOOT_JDK_FOUND" = xno; then
23909     # Now execute the test
23910 
23911         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23912         if test -d "$BOOT_JDK"; then
23913           BOOT_JDK_FOUND=maybe
23914           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23915 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23916         fi
23917 
23918 
23919     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23920     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23921       # Do we have a bin/java?
23922       if test ! -x "$BOOT_JDK/bin/java"; then
23923         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23924 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23925         BOOT_JDK_FOUND=no
23926       else
23927         # Do we have a bin/javac?
23928         if test ! -x "$BOOT_JDK/bin/javac"; then
23929           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23931           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23932 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23933           BOOT_JDK_FOUND=no
23934         else
23935           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23936           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23937             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23938 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23939             BOOT_JDK_FOUND=no
23940           else
23941             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23942             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23943 
23944             # Extra M4 quote needed to protect [] in grep expression.
23945             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
23946             if test "x$FOUND_CORRECT_VERSION" = x; then
23947               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23948 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23949               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
23950 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
23951               BOOT_JDK_FOUND=no
23952             else
23953               # We're done! :-)
23954               BOOT_JDK_FOUND=yes
23955 
23956   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23957 
23958   # Input might be given as Windows format, start by converting to
23959   # unix format.
23960   path="$BOOT_JDK"
23961   new_path=`$CYGPATH -u "$path"`
23962 
23963   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23964   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23965   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23966   # "foo.exe" is OK but "foo" is an error.
23967   #
23968   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23969   # It is also a way to make sure we got the proper file name for the real test later on.
23970   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23971   if test "x$test_shortpath" = x; then
23972     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23973 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23974     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23975   fi
23976 
23977   # Call helper function which possibly converts this using DOS-style short mode.
23978   # If so, the updated path is stored in $new_path.
23979 
23980   input_path="$new_path"
23981   # Check if we need to convert this using DOS-style short mode. If the path
23982   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23983   # take no chances and rewrite it.
23984   # Note: m4 eats our [], so we need to use [ and ] instead.
23985   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23986   if test "x$has_forbidden_chars" != x; then
23987     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23988     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23989     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23990     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23991       # Going to short mode and back again did indeed matter. Since short mode is
23992       # case insensitive, let's make it lowercase to improve readability.
23993       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23994       # Now convert it back to Unix-stile (cygpath)
23995       input_path=`$CYGPATH -u "$shortmode_path"`
23996       new_path="$input_path"
23997     fi
23998   fi
23999 
24000   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24001   if test "x$test_cygdrive_prefix" = x; then
24002     # As a simple fix, exclude /usr/bin since it's not a real path.
24003     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24004       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24005       # a path prefixed by /cygdrive for fixpath to work.
24006       new_path="$CYGWIN_ROOT_PATH$input_path"
24007     fi
24008   fi
24009 
24010 
24011   if test "x$path" != "x$new_path"; then
24012     BOOT_JDK="$new_path"
24013     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24014 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24015   fi
24016 
24017   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24018 
24019   path="$BOOT_JDK"
24020   has_colon=`$ECHO $path | $GREP ^.:`
24021   new_path="$path"
24022   if test "x$has_colon" = x; then
24023     # Not in mixed or Windows style, start by that.
24024     new_path=`cmd //c echo $path`
24025   fi
24026 
24027 
24028   input_path="$new_path"
24029   # Check if we need to convert this using DOS-style short mode. If the path
24030   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24031   # take no chances and rewrite it.
24032   # Note: m4 eats our [], so we need to use [ and ] instead.
24033   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24034   if test "x$has_forbidden_chars" != x; then
24035     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24036     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24037   fi
24038 
24039 
24040   windows_path="$new_path"
24041   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24042     unix_path=`$CYGPATH -u "$windows_path"`
24043     new_path="$unix_path"
24044   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24045     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24046     new_path="$unix_path"
24047   fi
24048 
24049   if test "x$path" != "x$new_path"; then
24050     BOOT_JDK="$new_path"
24051     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24052 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24053   fi
24054 
24055   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24056   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24057 
24058   else
24059     # We're on a posix platform. Hooray! :)
24060     path="$BOOT_JDK"
24061     has_space=`$ECHO "$path" | $GREP " "`
24062     if test "x$has_space" != x; then
24063       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24064 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24065       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24066     fi
24067 
24068     # Use eval to expand a potential ~
24069     eval path="$path"
24070     if test ! -f "$path" && test ! -d "$path"; then
24071       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24072     fi
24073 
24074     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24075   fi
24076 
24077               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24078 $as_echo_n "checking for Boot JDK... " >&6; }
24079               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24080 $as_echo "$BOOT_JDK" >&6; }
24081               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24082 $as_echo_n "checking Boot JDK version... " >&6; }
24083               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24084               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24085 $as_echo "$BOOT_JDK_VERSION" >&6; }
24086             fi # end check jdk version
24087           fi # end check rt.jar
24088         fi # end check javac
24089       fi # end check java
24090     fi # end check boot jdk found
24091   fi
24092 
24093     done
24094   fi
24095 
24096 
24097     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24098     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24099       # Do we have a bin/java?
24100       if test ! -x "$BOOT_JDK/bin/java"; then
24101         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24103         BOOT_JDK_FOUND=no
24104       else
24105         # Do we have a bin/javac?
24106         if test ! -x "$BOOT_JDK/bin/javac"; then
24107           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24109           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24110 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24111           BOOT_JDK_FOUND=no
24112         else
24113           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24114           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24115             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24117             BOOT_JDK_FOUND=no
24118           else
24119             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24120             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24121 
24122             # Extra M4 quote needed to protect [] in grep expression.
24123             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24124             if test "x$FOUND_CORRECT_VERSION" = x; then
24125               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24127               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24128 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24129               BOOT_JDK_FOUND=no
24130             else
24131               # We're done! :-)
24132               BOOT_JDK_FOUND=yes
24133 
24134   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24135 
24136   # Input might be given as Windows format, start by converting to
24137   # unix format.
24138   path="$BOOT_JDK"
24139   new_path=`$CYGPATH -u "$path"`
24140 
24141   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24142   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24143   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24144   # "foo.exe" is OK but "foo" is an error.
24145   #
24146   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24147   # It is also a way to make sure we got the proper file name for the real test later on.
24148   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24149   if test "x$test_shortpath" = x; then
24150     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24151 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24152     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24153   fi
24154 
24155   # Call helper function which possibly converts this using DOS-style short mode.
24156   # If so, the updated path is stored in $new_path.
24157 
24158   input_path="$new_path"
24159   # Check if we need to convert this using DOS-style short mode. If the path
24160   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24161   # take no chances and rewrite it.
24162   # Note: m4 eats our [], so we need to use [ and ] instead.
24163   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24164   if test "x$has_forbidden_chars" != x; then
24165     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24166     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24167     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24168     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24169       # Going to short mode and back again did indeed matter. Since short mode is
24170       # case insensitive, let's make it lowercase to improve readability.
24171       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24172       # Now convert it back to Unix-stile (cygpath)
24173       input_path=`$CYGPATH -u "$shortmode_path"`
24174       new_path="$input_path"
24175     fi
24176   fi
24177 
24178   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24179   if test "x$test_cygdrive_prefix" = x; then
24180     # As a simple fix, exclude /usr/bin since it's not a real path.
24181     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24182       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24183       # a path prefixed by /cygdrive for fixpath to work.
24184       new_path="$CYGWIN_ROOT_PATH$input_path"
24185     fi
24186   fi
24187 
24188 
24189   if test "x$path" != "x$new_path"; then
24190     BOOT_JDK="$new_path"
24191     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24192 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24193   fi
24194 
24195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24196 
24197   path="$BOOT_JDK"
24198   has_colon=`$ECHO $path | $GREP ^.:`
24199   new_path="$path"
24200   if test "x$has_colon" = x; then
24201     # Not in mixed or Windows style, start by that.
24202     new_path=`cmd //c echo $path`
24203   fi
24204 
24205 
24206   input_path="$new_path"
24207   # Check if we need to convert this using DOS-style short mode. If the path
24208   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24209   # take no chances and rewrite it.
24210   # Note: m4 eats our [], so we need to use [ and ] instead.
24211   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24212   if test "x$has_forbidden_chars" != x; then
24213     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24214     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24215   fi
24216 
24217 
24218   windows_path="$new_path"
24219   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24220     unix_path=`$CYGPATH -u "$windows_path"`
24221     new_path="$unix_path"
24222   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24223     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24224     new_path="$unix_path"
24225   fi
24226 
24227   if test "x$path" != "x$new_path"; then
24228     BOOT_JDK="$new_path"
24229     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24230 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24231   fi
24232 
24233   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24234   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24235 
24236   else
24237     # We're on a posix platform. Hooray! :)
24238     path="$BOOT_JDK"
24239     has_space=`$ECHO "$path" | $GREP " "`
24240     if test "x$has_space" != x; then
24241       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24242 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24243       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24244     fi
24245 
24246     # Use eval to expand a potential ~
24247     eval path="$path"
24248     if test ! -f "$path" && test ! -d "$path"; then
24249       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24250     fi
24251 
24252     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24253   fi
24254 
24255               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24256 $as_echo_n "checking for Boot JDK... " >&6; }
24257               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24258 $as_echo "$BOOT_JDK" >&6; }
24259               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24260 $as_echo_n "checking Boot JDK version... " >&6; }
24261               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24262               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24263 $as_echo "$BOOT_JDK_VERSION" >&6; }
24264             fi # end check jdk version
24265           fi # end check rt.jar
24266         fi # end check javac
24267       fi # end check java
24268     fi # end check boot jdk found
24269   fi
24270 
24271 
24272   if test "x$BOOT_JDK_FOUND" = xno; then
24273     # Now execute the test
24274 
24275   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24276   BOOT_JDK_SUFFIX="/Contents/Home"
24277   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24278   if test "x$ALL_JDKS_FOUND" != x; then
24279     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24280 
24281   if test "x$BOOT_JDK_FOUND" = xno; then
24282     # Now execute the test
24283 
24284         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24285         if test -d "$BOOT_JDK"; then
24286           BOOT_JDK_FOUND=maybe
24287           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24288 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24289         fi
24290 
24291 
24292     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24293     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24294       # Do we have a bin/java?
24295       if test ! -x "$BOOT_JDK/bin/java"; then
24296         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24298         BOOT_JDK_FOUND=no
24299       else
24300         # Do we have a bin/javac?
24301         if test ! -x "$BOOT_JDK/bin/javac"; then
24302           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24303 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24304           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24305 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24306           BOOT_JDK_FOUND=no
24307         else
24308           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24309           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24310             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24311 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24312             BOOT_JDK_FOUND=no
24313           else
24314             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24315             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24316 
24317             # Extra M4 quote needed to protect [] in grep expression.
24318             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24319             if test "x$FOUND_CORRECT_VERSION" = x; then
24320               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24322               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24323 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24324               BOOT_JDK_FOUND=no
24325             else
24326               # We're done! :-)
24327               BOOT_JDK_FOUND=yes
24328 
24329   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24330 
24331   # Input might be given as Windows format, start by converting to
24332   # unix format.
24333   path="$BOOT_JDK"
24334   new_path=`$CYGPATH -u "$path"`
24335 
24336   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24337   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24338   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24339   # "foo.exe" is OK but "foo" is an error.
24340   #
24341   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24342   # It is also a way to make sure we got the proper file name for the real test later on.
24343   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24344   if test "x$test_shortpath" = x; then
24345     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24346 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24347     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24348   fi
24349 
24350   # Call helper function which possibly converts this using DOS-style short mode.
24351   # If so, the updated path is stored in $new_path.
24352 
24353   input_path="$new_path"
24354   # Check if we need to convert this using DOS-style short mode. If the path
24355   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24356   # take no chances and rewrite it.
24357   # Note: m4 eats our [], so we need to use [ and ] instead.
24358   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24359   if test "x$has_forbidden_chars" != x; then
24360     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24361     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24362     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24363     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24364       # Going to short mode and back again did indeed matter. Since short mode is
24365       # case insensitive, let's make it lowercase to improve readability.
24366       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24367       # Now convert it back to Unix-stile (cygpath)
24368       input_path=`$CYGPATH -u "$shortmode_path"`
24369       new_path="$input_path"
24370     fi
24371   fi
24372 
24373   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24374   if test "x$test_cygdrive_prefix" = x; then
24375     # As a simple fix, exclude /usr/bin since it's not a real path.
24376     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24377       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24378       # a path prefixed by /cygdrive for fixpath to work.
24379       new_path="$CYGWIN_ROOT_PATH$input_path"
24380     fi
24381   fi
24382 
24383 
24384   if test "x$path" != "x$new_path"; then
24385     BOOT_JDK="$new_path"
24386     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24387 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24388   fi
24389 
24390   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24391 
24392   path="$BOOT_JDK"
24393   has_colon=`$ECHO $path | $GREP ^.:`
24394   new_path="$path"
24395   if test "x$has_colon" = x; then
24396     # Not in mixed or Windows style, start by that.
24397     new_path=`cmd //c echo $path`
24398   fi
24399 
24400 
24401   input_path="$new_path"
24402   # Check if we need to convert this using DOS-style short mode. If the path
24403   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24404   # take no chances and rewrite it.
24405   # Note: m4 eats our [], so we need to use [ and ] instead.
24406   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24407   if test "x$has_forbidden_chars" != x; then
24408     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24409     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24410   fi
24411 
24412 
24413   windows_path="$new_path"
24414   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24415     unix_path=`$CYGPATH -u "$windows_path"`
24416     new_path="$unix_path"
24417   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24418     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24419     new_path="$unix_path"
24420   fi
24421 
24422   if test "x$path" != "x$new_path"; then
24423     BOOT_JDK="$new_path"
24424     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24425 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24426   fi
24427 
24428   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24429   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24430 
24431   else
24432     # We're on a posix platform. Hooray! :)
24433     path="$BOOT_JDK"
24434     has_space=`$ECHO "$path" | $GREP " "`
24435     if test "x$has_space" != x; then
24436       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24437 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24438       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24439     fi
24440 
24441     # Use eval to expand a potential ~
24442     eval path="$path"
24443     if test ! -f "$path" && test ! -d "$path"; then
24444       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24445     fi
24446 
24447     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24448   fi
24449 
24450               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24451 $as_echo_n "checking for Boot JDK... " >&6; }
24452               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24453 $as_echo "$BOOT_JDK" >&6; }
24454               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24455 $as_echo_n "checking Boot JDK version... " >&6; }
24456               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24457               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24458 $as_echo "$BOOT_JDK_VERSION" >&6; }
24459             fi # end check jdk version
24460           fi # end check rt.jar
24461         fi # end check javac
24462       fi # end check java
24463     fi # end check boot jdk found
24464   fi
24465 
24466     done
24467   fi
24468 
24469 
24470     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24471     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24472       # Do we have a bin/java?
24473       if test ! -x "$BOOT_JDK/bin/java"; then
24474         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24475 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24476         BOOT_JDK_FOUND=no
24477       else
24478         # Do we have a bin/javac?
24479         if test ! -x "$BOOT_JDK/bin/javac"; then
24480           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24482           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24483 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24484           BOOT_JDK_FOUND=no
24485         else
24486           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24487           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24488             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24490             BOOT_JDK_FOUND=no
24491           else
24492             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24493             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24494 
24495             # Extra M4 quote needed to protect [] in grep expression.
24496             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24497             if test "x$FOUND_CORRECT_VERSION" = x; then
24498               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24500               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24501 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24502               BOOT_JDK_FOUND=no
24503             else
24504               # We're done! :-)
24505               BOOT_JDK_FOUND=yes
24506 
24507   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24508 
24509   # Input might be given as Windows format, start by converting to
24510   # unix format.
24511   path="$BOOT_JDK"
24512   new_path=`$CYGPATH -u "$path"`
24513 
24514   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24515   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24516   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24517   # "foo.exe" is OK but "foo" is an error.
24518   #
24519   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24520   # It is also a way to make sure we got the proper file name for the real test later on.
24521   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24522   if test "x$test_shortpath" = x; then
24523     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24524 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24525     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24526   fi
24527 
24528   # Call helper function which possibly converts this using DOS-style short mode.
24529   # If so, the updated path is stored in $new_path.
24530 
24531   input_path="$new_path"
24532   # Check if we need to convert this using DOS-style short mode. If the path
24533   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24534   # take no chances and rewrite it.
24535   # Note: m4 eats our [], so we need to use [ and ] instead.
24536   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24537   if test "x$has_forbidden_chars" != x; then
24538     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24539     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24540     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24541     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24542       # Going to short mode and back again did indeed matter. Since short mode is
24543       # case insensitive, let's make it lowercase to improve readability.
24544       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24545       # Now convert it back to Unix-stile (cygpath)
24546       input_path=`$CYGPATH -u "$shortmode_path"`
24547       new_path="$input_path"
24548     fi
24549   fi
24550 
24551   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24552   if test "x$test_cygdrive_prefix" = x; then
24553     # As a simple fix, exclude /usr/bin since it's not a real path.
24554     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24555       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24556       # a path prefixed by /cygdrive for fixpath to work.
24557       new_path="$CYGWIN_ROOT_PATH$input_path"
24558     fi
24559   fi
24560 
24561 
24562   if test "x$path" != "x$new_path"; then
24563     BOOT_JDK="$new_path"
24564     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24565 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24566   fi
24567 
24568   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24569 
24570   path="$BOOT_JDK"
24571   has_colon=`$ECHO $path | $GREP ^.:`
24572   new_path="$path"
24573   if test "x$has_colon" = x; then
24574     # Not in mixed or Windows style, start by that.
24575     new_path=`cmd //c echo $path`
24576   fi
24577 
24578 
24579   input_path="$new_path"
24580   # Check if we need to convert this using DOS-style short mode. If the path
24581   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24582   # take no chances and rewrite it.
24583   # Note: m4 eats our [], so we need to use [ and ] instead.
24584   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24585   if test "x$has_forbidden_chars" != x; then
24586     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24587     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24588   fi
24589 
24590 
24591   windows_path="$new_path"
24592   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24593     unix_path=`$CYGPATH -u "$windows_path"`
24594     new_path="$unix_path"
24595   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24596     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24597     new_path="$unix_path"
24598   fi
24599 
24600   if test "x$path" != "x$new_path"; then
24601     BOOT_JDK="$new_path"
24602     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24603 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24604   fi
24605 
24606   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24607   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24608 
24609   else
24610     # We're on a posix platform. Hooray! :)
24611     path="$BOOT_JDK"
24612     has_space=`$ECHO "$path" | $GREP " "`
24613     if test "x$has_space" != x; then
24614       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24615 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24616       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24617     fi
24618 
24619     # Use eval to expand a potential ~
24620     eval path="$path"
24621     if test ! -f "$path" && test ! -d "$path"; then
24622       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24623     fi
24624 
24625     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24626   fi
24627 
24628               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24629 $as_echo_n "checking for Boot JDK... " >&6; }
24630               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24631 $as_echo "$BOOT_JDK" >&6; }
24632               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24633 $as_echo_n "checking Boot JDK version... " >&6; }
24634               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24635               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24636 $as_echo "$BOOT_JDK_VERSION" >&6; }
24637             fi # end check jdk version
24638           fi # end check rt.jar
24639         fi # end check javac
24640       fi # end check java
24641     fi # end check boot jdk found
24642   fi
24643 
24644   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24645 
24646   if test "x$BOOT_JDK_FOUND" = xno; then
24647     # Now execute the test
24648 
24649   BOOT_JDK_PREFIX="/usr/lib/jvm"
24650   BOOT_JDK_SUFFIX=""
24651   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24652   if test "x$ALL_JDKS_FOUND" != x; then
24653     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24654 
24655   if test "x$BOOT_JDK_FOUND" = xno; then
24656     # Now execute the test
24657 
24658         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24659         if test -d "$BOOT_JDK"; then
24660           BOOT_JDK_FOUND=maybe
24661           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24662 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24663         fi
24664 
24665 
24666     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24667     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24668       # Do we have a bin/java?
24669       if test ! -x "$BOOT_JDK/bin/java"; then
24670         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24671 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24672         BOOT_JDK_FOUND=no
24673       else
24674         # Do we have a bin/javac?
24675         if test ! -x "$BOOT_JDK/bin/javac"; then
24676           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24678           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24679 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24680           BOOT_JDK_FOUND=no
24681         else
24682           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24683           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24684             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24685 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24686             BOOT_JDK_FOUND=no
24687           else
24688             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24689             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24690 
24691             # Extra M4 quote needed to protect [] in grep expression.
24692             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[89]\.'`
24693             if test "x$FOUND_CORRECT_VERSION" = x; then
24694               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24695 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24696               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5
24697 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;}
24698               BOOT_JDK_FOUND=no
24699             else
24700               # We're done! :-)
24701               BOOT_JDK_FOUND=yes
24702 
24703   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24704 
24705   # Input might be given as Windows format, start by converting to
24706   # unix format.
24707   path="$BOOT_JDK"
24708   new_path=`$CYGPATH -u "$path"`
24709 
24710   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24711   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24712   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24713   # "foo.exe" is OK but "foo" is an error.
24714   #
24715   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24716   # It is also a way to make sure we got the proper file name for the real test later on.
24717   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24718   if test "x$test_shortpath" = x; then
24719     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24720 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24721     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24722   fi
24723 
24724   # Call helper function which possibly converts this using DOS-style short mode.
24725   # If so, the updated path is stored in $new_path.
24726 
24727   input_path="$new_path"
24728   # Check if we need to convert this using DOS-style short mode. If the path
24729   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24730   # take no chances and rewrite it.
24731   # Note: m4 eats our [], so we need to use [ and ] instead.
24732   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24733   if test "x$has_forbidden_chars" != x; then
24734     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24735     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24736     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24737     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24738       # Going to short mode and back again did indeed matter. Since short mode is
24739       # case insensitive, let's make it lowercase to improve readability.
24740       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24741       # Now convert it back to Unix-stile (cygpath)
24742       input_path=`$CYGPATH -u "$shortmode_path"`
24743       new_path="$input_path"
24744     fi
24745   fi
24746 
24747   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
2474