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_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 OPENWIN_HOME
 668 X_EXTRA_LIBS
 669 X_LIBS
 670 X_PRE_LIBS
 671 X_CFLAGS
 672 XMKMF
 673 FIXPATH
 674 ZIP_DEBUGINFO_FILES
 675 ENABLE_DEBUG_SYMBOLS
 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 677 ZERO_ARCHFLAG
 678 LDFLAGS_CXX_JDK
 679 LDFLAGS_JDKEXE_SUFFIX
 680 LDFLAGS_JDKLIB_SUFFIX
 681 LDFLAGS_JDKEXE
 682 LDFLAGS_JDKLIB
 683 CXXFLAGS_JDKEXE
 684 CXXFLAGS_JDKLIB
 685 CFLAGS_JDKEXE
 686 CFLAGS_JDKLIB
 687 MACOSX_VERSION_MIN
 688 LEGACY_EXTRA_LDFLAGS
 689 LEGACY_EXTRA_CXXFLAGS
 690 LEGACY_EXTRA_CFLAGS
 691 CXX_O_FLAG_NONE
 692 CXX_O_FLAG_NORM
 693 CXX_O_FLAG_HI
 694 CXX_O_FLAG_HIGHEST
 695 C_O_FLAG_NONE
 696 C_O_FLAG_NORM
 697 C_O_FLAG_HI
 698 C_O_FLAG_HIGHEST
 699 CXXFLAGS_DEBUG_SYMBOLS
 700 CFLAGS_DEBUG_SYMBOLS
 701 CXX_FLAG_DEPS
 702 C_FLAG_DEPS
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SET_SHARED_LIBRARY_ORIGIN
 706 SET_EXECUTABLE_ORIGIN
 707 SHARED_LIBRARY_FLAGS
 708 CXX_FLAG_REORDER
 709 C_FLAG_REORDER
 710 RC_FLAGS
 711 AR_OUT_OPTION
 712 LD_OUT_OPTION
 713 EXE_OUT_OPTION
 714 CC_OUT_OPTION
 715 POST_MCS_CMD
 716 POST_STRIP_CMD
 717 ARFLAGS
 718 COMPILER_TARGET_BITS_FLAG
 719 JT_HOME
 720 JTREGEXE
 721 USING_BROKEN_SUSE_LD
 722 PACKAGE_PATH
 723 LDEXECXX
 724 LDEXE
 725 USE_CLANG
 726 HOTSPOT_LD
 727 HOTSPOT_CXX
 728 HOTSPOT_RC
 729 HOTSPOT_MT
 730 BUILD_LD
 731 BUILD_CXX
 732 BUILD_CC
 733 ac_ct_OBJDUMP
 734 OBJDUMP
 735 ac_ct_OBJCOPY
 736 OBJCOPY
 737 ac_ct_NM
 738 ac_ct_STRIP
 739 MCS
 740 GNM
 741 NM
 742 STRIP
 743 DUMPBIN
 744 RC
 745 MT
 746 LIPO
 747 ac_ct_OBJC
 748 OBJCFLAGS
 749 OBJC
 750 ac_ct_AR
 751 AR
 752 AS
 753 LDCXX
 754 LD
 755 CXXCPP
 756 CPP
 757 ac_ct_CXX
 758 CXXFLAGS
 759 CXX
 760 ac_ct_PROPER_COMPILER_CXX
 761 PROPER_COMPILER_CXX
 762 TOOLS_DIR_CXX
 763 POTENTIAL_CXX
 764 OBJEXT
 765 EXEEXT
 766 ac_ct_CC
 767 CPPFLAGS
 768 LDFLAGS
 769 CFLAGS
 770 CC
 771 ac_ct_PROPER_COMPILER_CC
 772 PROPER_COMPILER_CC
 773 TOOLS_DIR_CC
 774 POTENTIAL_CC
 775 VS_PATH
 776 VS_LIB
 777 VS_INCLUDE
 778 CYGWIN_LINK
 779 EXE_SUFFIX
 780 OBJ_SUFFIX
 781 STATIC_LIBRARY
 782 SHARED_LIBRARY
 783 STATIC_LIBRARY_SUFFIX
 784 SHARED_LIBRARY_SUFFIX
 785 LIBRARY_PREFIX
 786 TOOLCHAIN_TYPE
 787 BUILD_HOTSPOT
 788 HOTSPOT_DIST
 789 BUILD_OUTPUT
 790 OVERRIDE_SRC_ROOT
 791 ADD_SRC_ROOT
 792 JDK_TOPDIR
 793 NASHORN_TOPDIR
 794 HOTSPOT_TOPDIR
 795 JAXWS_TOPDIR
 796 JAXP_TOPDIR
 797 CORBA_TOPDIR
 798 LANGTOOLS_TOPDIR
 799 JAVA_FLAGS_SMALL
 800 JAVA_FLAGS_BIG
 801 JAVA_FLAGS
 802 JAVAC_FLAGS
 803 BOOT_JDK_SOURCETARGET
 804 JARSIGNER
 805 NATIVE2ASCII
 806 JAR
 807 JAVAH
 808 JAVAC
 809 JAVA
 810 BOOT_JDK
 811 BOOT_TOOLSJAR
 812 BOOT_RTJAR
 813 JAVA_CHECK
 814 JAVAC_CHECK
 815 COOKED_BUILD_NUMBER
 816 JDK_VERSION
 817 COPYRIGHT_YEAR
 818 MACOSX_BUNDLE_ID_BASE
 819 MACOSX_BUNDLE_NAME_BASE
 820 COMPANY_NAME
 821 JDK_RC_PLATFORM_NAME
 822 PRODUCT_SUFFIX
 823 PRODUCT_NAME
 824 LAUNCHER_NAME
 825 MILESTONE
 826 JDK_BUILD_NUMBER
 827 JDK_UPDATE_VERSION
 828 JDK_MICRO_VERSION
 829 JDK_MINOR_VERSION
 830 JDK_MAJOR_VERSION
 831 USER_RELEASE_SUFFIX
 832 COMPRESS_JARS
 833 RMICONNECTOR_IIOP
 834 UNLIMITED_CRYPTO
 835 CACERTS_FILE
 836 TEST_IN_BUILD
 837 BUILD_HEADLESS
 838 SUPPORT_HEADFUL
 839 SUPPORT_HEADLESS
 840 BDEPS_FTP
 841 BDEPS_UNZIP
 842 OS_VERSION_MICRO
 843 OS_VERSION_MINOR
 844 OS_VERSION_MAJOR
 845 PKG_CONFIG
 846 CODESIGN
 847 XATTR
 848 DSYMUTIL
 849 IS_GNU_TIME
 850 TIME
 851 STAT
 852 HG
 853 READELF
 854 OTOOL
 855 LDD
 856 ZIP
 857 UNZIP
 858 FIND_DELETE
 859 MAKE
 860 CHECK_TOOLSDIR_MAKE
 861 CHECK_TOOLSDIR_GMAKE
 862 CHECK_MAKE
 863 CHECK_GMAKE
 864 PKGHANDLER
 865 OUTPUT_ROOT
 866 CONF_NAME
 867 SPEC
 868 BUILD_VARIANT_RELEASE
 869 DEBUG_CLASSFILES
 870 FASTDEBUG
 871 VARIANT
 872 DEBUG_LEVEL
 873 MACOSX_UNIVERSAL
 874 INCLUDE_SA
 875 JVM_VARIANT_CORE
 876 JVM_VARIANT_ZEROSHARK
 877 JVM_VARIANT_ZERO
 878 JVM_VARIANT_KERNEL
 879 JVM_VARIANT_MINIMAL1
 880 JVM_VARIANT_CLIENT
 881 JVM_VARIANT_SERVER
 882 JVM_VARIANTS
 883 JVM_INTERPRETER
 884 JDK_VARIANT
 885 SET_OPENJDK
 886 BUILD_LOG_WRAPPER
 887 BUILD_LOG_PREVIOUS
 888 BUILD_LOG
 889 SYS_ROOT
 890 TOPDIR
 891 PATH_SEP
 892 ZERO_ARCHDEF
 893 DEFINE_CROSS_COMPILE_ARCH
 894 LP64
 895 OPENJDK_TARGET_OS_EXPORT_DIR
 896 OPENJDK_TARGET_OS_API_DIR
 897 OPENJDK_TARGET_CPU_JLI_CFLAGS
 898 OPENJDK_TARGET_CPU_OSARCH
 899 OPENJDK_TARGET_CPU_ISADIR
 900 OPENJDK_TARGET_CPU_LIBDIR
 901 OPENJDK_TARGET_CPU_LEGACY_LIB
 902 OPENJDK_TARGET_CPU_LEGACY
 903 REQUIRED_OS_VERSION
 904 REQUIRED_OS_NAME
 905 COMPILE_TYPE
 906 OPENJDK_TARGET_CPU_ENDIAN
 907 OPENJDK_TARGET_CPU_BITS
 908 OPENJDK_TARGET_CPU_ARCH
 909 OPENJDK_TARGET_CPU
 910 OPENJDK_TARGET_OS_API
 911 OPENJDK_TARGET_OS
 912 OPENJDK_BUILD_CPU_ENDIAN
 913 OPENJDK_BUILD_CPU_BITS
 914 OPENJDK_BUILD_CPU_ARCH
 915 OPENJDK_BUILD_CPU
 916 OPENJDK_BUILD_OS_API
 917 OPENJDK_BUILD_OS
 918 OPENJDK_BUILD_AUTOCONF_NAME
 919 OPENJDK_TARGET_AUTOCONF_NAME
 920 target_os
 921 target_vendor
 922 target_cpu
 923 target
 924 host_os
 925 host_vendor
 926 host_cpu
 927 host
 928 build_os
 929 build_vendor
 930 build_cpu
 931 build
 932 SETFILE
 933 DF
 934 READLINK
 935 CYGPATH
 936 SED
 937 FGREP
 938 EGREP
 939 GREP
 940 AWK
 941 XARGS
 942 WHICH
 943 WC
 944 UNIQ
 945 UNAME
 946 TR
 947 TOUCH
 948 TEE
 949 TAR
 950 TAIL
 951 SORT
 952 SH
 953 RM
 954 PRINTF
 955 NAWK
 956 MV
 957 MKTEMP
 958 MKDIR
 959 LS
 960 LN
 961 HEAD
 962 FIND
 963 FILE
 964 EXPR
 965 ECHO
 966 DIRNAME
 967 DIFF
 968 DATE
 969 CUT
 970 CPIO
 971 CP
 972 COMM
 973 CMP
 974 CHMOD
 975 CAT
 976 BASH
 977 BASENAME
 978 DATE_WHEN_CONFIGURED
 979 CONFIGURE_COMMAND_LINE
 980 target_alias
 981 host_alias
 982 build_alias
 983 LIBS
 984 ECHO_T
 985 ECHO_N
 986 ECHO_C
 987 DEFS
 988 mandir
 989 localedir
 990 libdir
 991 psdir
 992 pdfdir
 993 dvidir
 994 htmldir
 995 infodir
 996 docdir
 997 oldincludedir
 998 includedir
 999 localstatedir
1000 sharedstatedir
1001 sysconfdir
1002 datadir
1003 datarootdir
1004 libexecdir
1005 sbindir
1006 bindir
1007 program_transform_name
1008 prefix
1009 exec_prefix
1010 PACKAGE_URL
1011 PACKAGE_BUGREPORT
1012 PACKAGE_STRING
1013 PACKAGE_VERSION
1014 PACKAGE_TARNAME
1015 PACKAGE_NAME
1016 PATH_SEPARATOR
1017 SHELL'
1018 ac_subst_files=''
1019 ac_user_opts='
1020 enable_option_checking
1021 with_target_bits
1022 with_sys_root
1023 with_tools_dir
1024 with_devkit
1025 enable_openjdk_only
1026 with_custom_make_dir
1027 with_jdk_variant
1028 with_jvm_interpreter
1029 with_jvm_variants
1030 enable_debug
1031 with_debug_level
1032 with_conf_name
1033 with_builddeps_conf
1034 with_builddeps_server
1035 with_builddeps_dir
1036 with_builddeps_group
1037 enable_headful
1038 enable_hotspot_test_in_build
1039 with_cacerts_file
1040 enable_unlimited_crypto
1041 enable_rmiconnector_iiop
1042 with_milestone
1043 with_update_version
1044 with_user_release_suffix
1045 with_build_number
1046 with_boot_jdk
1047 with_boot_jdk_jvmargs
1048 with_add_source_root
1049 with_override_source_root
1050 with_adds_and_overrides
1051 with_override_langtools
1052 with_override_corba
1053 with_override_jaxp
1054 with_override_jaxws
1055 with_override_hotspot
1056 with_override_nashorn
1057 with_override_jdk
1058 with_import_hotspot
1059 with_toolchain_type
1060 with_jtreg
1061 with_extra_cflags
1062 with_extra_cxxflags
1063 with_extra_ldflags
1064 enable_debug_symbols
1065 enable_zip_debug_info
1066 enable_macosx_runtime_support
1067 with_x
1068 with_cups
1069 with_cups_include
1070 with_freetype
1071 with_freetype_include
1072 with_freetype_lib
1073 enable_freetype_bundling
1074 with_alsa
1075 with_alsa_include
1076 with_alsa_lib
1077 with_giflib
1078 with_libpng
1079 with_zlib
1080 with_stdc__lib
1081 with_msvcr_dll
1082 with_dxsdk
1083 with_dxsdk_lib
1084 with_dxsdk_include
1085 with_num_cores
1086 with_memory_size
1087 with_jobs
1088 with_sjavac_server_java
1089 enable_sjavac
1090 enable_precompiled_headers
1091 enable_ccache
1092 with_ccache_dir
1093 '
1094       ac_precious_vars='build_alias
1095 host_alias
1096 target_alias
1097 BASENAME
1098 BASH
1099 CAT
1100 CHMOD
1101 CMP
1102 COMM
1103 CP
1104 CPIO
1105 CUT
1106 DATE
1107 DIFF
1108 DIRNAME
1109 ECHO
1110 EXPR
1111 FILE
1112 FIND
1113 HEAD
1114 LN
1115 LS
1116 MKDIR
1117 MKTEMP
1118 MV
1119 NAWK
1120 PRINTF
1121 RM
1122 SH
1123 SORT
1124 TAIL
1125 TAR
1126 TEE
1127 TOUCH
1128 TR
1129 UNAME
1130 UNIQ
1131 WC
1132 WHICH
1133 XARGS
1134 AWK
1135 GREP
1136 EGREP
1137 FGREP
1138 SED
1139 CYGPATH
1140 READLINK
1141 DF
1142 SETFILE
1143 UNZIP
1144 ZIP
1145 LDD
1146 OTOOL
1147 READELF
1148 HG
1149 STAT
1150 TIME
1151 DSYMUTIL
1152 XATTR
1153 CODESIGN
1154 PKG_CONFIG
1155 JAVA
1156 JAVAC
1157 JAVAH
1158 JAR
1159 NATIVE2ASCII
1160 JARSIGNER
1161 CC
1162 CFLAGS
1163 LDFLAGS
1164 LIBS
1165 CPPFLAGS
1166 CXX
1167 CXXFLAGS
1168 CCC
1169 CPP
1170 CXXCPP
1171 AS
1172 AR
1173 OBJC
1174 OBJCFLAGS
1175 LIPO
1176 STRIP
1177 NM
1178 GNM
1179 MCS
1180 OBJCOPY
1181 OBJDUMP
1182 BUILD_CC
1183 BUILD_CXX
1184 BUILD_LD
1185 JTREGEXE
1186 XMKMF
1187 FREETYPE_CFLAGS
1188 FREETYPE_LIBS
1189 ALSA_CFLAGS
1190 ALSA_LIBS
1191 PNG_CFLAGS
1192 PNG_LIBS
1193 LIBFFI_CFLAGS
1194 LIBFFI_LIBS
1195 CCACHE'
1196 
1197 
1198 # Initialize some variables set by options.
1199 ac_init_help=
1200 ac_init_version=false
1201 ac_unrecognized_opts=
1202 ac_unrecognized_sep=
1203 # The variables have the same names as the options, with
1204 # dashes changed to underlines.
1205 cache_file=/dev/null
1206 exec_prefix=NONE
1207 no_create=
1208 no_recursion=
1209 prefix=NONE
1210 program_prefix=NONE
1211 program_suffix=NONE
1212 program_transform_name=s,x,x,
1213 silent=
1214 site=
1215 srcdir=
1216 verbose=
1217 x_includes=NONE
1218 x_libraries=NONE
1219 
1220 # Installation directory options.
1221 # These are left unexpanded so users can "make install exec_prefix=/foo"
1222 # and all the variables that are supposed to be based on exec_prefix
1223 # by default will actually change.
1224 # Use braces instead of parens because sh, perl, etc. also accept them.
1225 # (The list follows the same order as the GNU Coding Standards.)
1226 bindir='${exec_prefix}/bin'
1227 sbindir='${exec_prefix}/sbin'
1228 libexecdir='${exec_prefix}/libexec'
1229 datarootdir='${prefix}/share'
1230 datadir='${datarootdir}'
1231 sysconfdir='${prefix}/etc'
1232 sharedstatedir='${prefix}/com'
1233 localstatedir='${prefix}/var'
1234 includedir='${prefix}/include'
1235 oldincludedir='/usr/include'
1236 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237 infodir='${datarootdir}/info'
1238 htmldir='${docdir}'
1239 dvidir='${docdir}'
1240 pdfdir='${docdir}'
1241 psdir='${docdir}'
1242 libdir='${exec_prefix}/lib'
1243 localedir='${datarootdir}/locale'
1244 mandir='${datarootdir}/man'
1245 
1246 ac_prev=
1247 ac_dashdash=
1248 for ac_option
1249 do
1250   # If the previous option needs an argument, assign it.
1251   if test -n "$ac_prev"; then
1252     eval $ac_prev=\$ac_option
1253     ac_prev=
1254     continue
1255   fi
1256 
1257   case $ac_option in
1258   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259   *=)   ac_optarg= ;;
1260   *)    ac_optarg=yes ;;
1261   esac
1262 
1263   # Accept the important Cygnus configure options, so we can diagnose typos.
1264 
1265   case $ac_dashdash$ac_option in
1266   --)
1267     ac_dashdash=yes ;;
1268 
1269   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270     ac_prev=bindir ;;
1271   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272     bindir=$ac_optarg ;;
1273 
1274   -build | --build | --buil | --bui | --bu)
1275     ac_prev=build_alias ;;
1276   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277     build_alias=$ac_optarg ;;
1278 
1279   -cache-file | --cache-file | --cache-fil | --cache-fi \
1280   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281     ac_prev=cache_file ;;
1282   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284     cache_file=$ac_optarg ;;
1285 
1286   --config-cache | -C)
1287     cache_file=config.cache ;;
1288 
1289   -datadir | --datadir | --datadi | --datad)
1290     ac_prev=datadir ;;
1291   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292     datadir=$ac_optarg ;;
1293 
1294   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295   | --dataroo | --dataro | --datar)
1296     ac_prev=datarootdir ;;
1297   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299     datarootdir=$ac_optarg ;;
1300 
1301   -disable-* | --disable-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid feature name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "enable_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval enable_$ac_useropt=no ;;
1316 
1317   -docdir | --docdir | --docdi | --doc | --do)
1318     ac_prev=docdir ;;
1319   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320     docdir=$ac_optarg ;;
1321 
1322   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323     ac_prev=dvidir ;;
1324   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325     dvidir=$ac_optarg ;;
1326 
1327   -enable-* | --enable-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331       as_fn_error $? "invalid feature name: $ac_useropt"
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "enable_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval enable_$ac_useropt=\$ac_optarg ;;
1342 
1343   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345   | --exec | --exe | --ex)
1346     ac_prev=exec_prefix ;;
1347   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349   | --exec=* | --exe=* | --ex=*)
1350     exec_prefix=$ac_optarg ;;
1351 
1352   -gas | --gas | --ga | --g)
1353     # Obsolete; use --with-gas.
1354     with_gas=yes ;;
1355 
1356   -help | --help | --hel | --he | -h)
1357     ac_init_help=long ;;
1358   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359     ac_init_help=recursive ;;
1360   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361     ac_init_help=short ;;
1362 
1363   -host | --host | --hos | --ho)
1364     ac_prev=host_alias ;;
1365   -host=* | --host=* | --hos=* | --ho=*)
1366     host_alias=$ac_optarg ;;
1367 
1368   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369     ac_prev=htmldir ;;
1370   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371   | --ht=*)
1372     htmldir=$ac_optarg ;;
1373 
1374   -includedir | --includedir | --includedi | --included | --include \
1375   | --includ | --inclu | --incl | --inc)
1376     ac_prev=includedir ;;
1377   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378   | --includ=* | --inclu=* | --incl=* | --inc=*)
1379     includedir=$ac_optarg ;;
1380 
1381   -infodir | --infodir | --infodi | --infod | --info | --inf)
1382     ac_prev=infodir ;;
1383   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384     infodir=$ac_optarg ;;
1385 
1386   -libdir | --libdir | --libdi | --libd)
1387     ac_prev=libdir ;;
1388   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389     libdir=$ac_optarg ;;
1390 
1391   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392   | --libexe | --libex | --libe)
1393     ac_prev=libexecdir ;;
1394   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395   | --libexe=* | --libex=* | --libe=*)
1396     libexecdir=$ac_optarg ;;
1397 
1398   -localedir | --localedir | --localedi | --localed | --locale)
1399     ac_prev=localedir ;;
1400   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401     localedir=$ac_optarg ;;
1402 
1403   -localstatedir | --localstatedir | --localstatedi | --localstated \
1404   | --localstate | --localstat | --localsta | --localst | --locals)
1405     ac_prev=localstatedir ;;
1406   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408     localstatedir=$ac_optarg ;;
1409 
1410   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411     ac_prev=mandir ;;
1412   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413     mandir=$ac_optarg ;;
1414 
1415   -nfp | --nfp | --nf)
1416     # Obsolete; use --without-fp.
1417     with_fp=no ;;
1418 
1419   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420   | --no-cr | --no-c | -n)
1421     no_create=yes ;;
1422 
1423   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425     no_recursion=yes ;;
1426 
1427   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429   | --oldin | --oldi | --old | --ol | --o)
1430     ac_prev=oldincludedir ;;
1431   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434     oldincludedir=$ac_optarg ;;
1435 
1436   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437     ac_prev=prefix ;;
1438   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439     prefix=$ac_optarg ;;
1440 
1441   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442   | --program-pre | --program-pr | --program-p)
1443     ac_prev=program_prefix ;;
1444   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446     program_prefix=$ac_optarg ;;
1447 
1448   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449   | --program-suf | --program-su | --program-s)
1450     ac_prev=program_suffix ;;
1451   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453     program_suffix=$ac_optarg ;;
1454 
1455   -program-transform-name | --program-transform-name \
1456   | --program-transform-nam | --program-transform-na \
1457   | --program-transform-n | --program-transform- \
1458   | --program-transform | --program-transfor \
1459   | --program-transfo | --program-transf \
1460   | --program-trans | --program-tran \
1461   | --progr-tra | --program-tr | --program-t)
1462     ac_prev=program_transform_name ;;
1463   -program-transform-name=* | --program-transform-name=* \
1464   | --program-transform-nam=* | --program-transform-na=* \
1465   | --program-transform-n=* | --program-transform-=* \
1466   | --program-transform=* | --program-transfor=* \
1467   | --program-transfo=* | --program-transf=* \
1468   | --program-trans=* | --program-tran=* \
1469   | --progr-tra=* | --program-tr=* | --program-t=*)
1470     program_transform_name=$ac_optarg ;;
1471 
1472   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473     ac_prev=pdfdir ;;
1474   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475     pdfdir=$ac_optarg ;;
1476 
1477   -psdir | --psdir | --psdi | --psd | --ps)
1478     ac_prev=psdir ;;
1479   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480     psdir=$ac_optarg ;;
1481 
1482   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483   | -silent | --silent | --silen | --sile | --sil)
1484     silent=yes ;;
1485 
1486   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487     ac_prev=sbindir ;;
1488   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489   | --sbi=* | --sb=*)
1490     sbindir=$ac_optarg ;;
1491 
1492   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494   | --sharedst | --shareds | --shared | --share | --shar \
1495   | --sha | --sh)
1496     ac_prev=sharedstatedir ;;
1497   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500   | --sha=* | --sh=*)
1501     sharedstatedir=$ac_optarg ;;
1502 
1503   -site | --site | --sit)
1504     ac_prev=site ;;
1505   -site=* | --site=* | --sit=*)
1506     site=$ac_optarg ;;
1507 
1508   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509     ac_prev=srcdir ;;
1510   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511     srcdir=$ac_optarg ;;
1512 
1513   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514   | --syscon | --sysco | --sysc | --sys | --sy)
1515     ac_prev=sysconfdir ;;
1516   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518     sysconfdir=$ac_optarg ;;
1519 
1520   -target | --target | --targe | --targ | --tar | --ta | --t)
1521     ac_prev=target_alias ;;
1522   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523     target_alias=$ac_optarg ;;
1524 
1525   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526     verbose=yes ;;
1527 
1528   -version | --version | --versio | --versi | --vers | -V)
1529     ac_init_version=: ;;
1530 
1531   -with-* | --with-*)
1532     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533     # Reject names that are not valid shell variable names.
1534     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1535       as_fn_error $? "invalid package name: $ac_useropt"
1536     ac_useropt_orig=$ac_useropt
1537     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538     case $ac_user_opts in
1539       *"
1540 "with_$ac_useropt"
1541 "*) ;;
1542       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543          ac_unrecognized_sep=', ';;
1544     esac
1545     eval with_$ac_useropt=\$ac_optarg ;;
1546 
1547   -without-* | --without-*)
1548     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549     # Reject names that are not valid shell variable names.
1550     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1551       as_fn_error $? "invalid package name: $ac_useropt"
1552     ac_useropt_orig=$ac_useropt
1553     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554     case $ac_user_opts in
1555       *"
1556 "with_$ac_useropt"
1557 "*) ;;
1558       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559          ac_unrecognized_sep=', ';;
1560     esac
1561     eval with_$ac_useropt=no ;;
1562 
1563   --x)
1564     # Obsolete; use --with-x.
1565     with_x=yes ;;
1566 
1567   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568   | --x-incl | --x-inc | --x-in | --x-i)
1569     ac_prev=x_includes ;;
1570   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572     x_includes=$ac_optarg ;;
1573 
1574   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576     ac_prev=x_libraries ;;
1577   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579     x_libraries=$ac_optarg ;;
1580 
1581   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582 Try \`$0 --help' for more information"
1583     ;;
1584 
1585   *=*)
1586     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587     # Reject names that are not valid shell variable names.
1588     case $ac_envvar in #(
1589       '' | [0-9]* | *[!_$as_cr_alnum]* )
1590       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1591     esac
1592     eval $ac_envvar=\$ac_optarg
1593     export $ac_envvar ;;
1594 
1595   *)
1596     # FIXME: should be removed in autoconf 3.0.
1597     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1600     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1601     ;;
1602 
1603   esac
1604 done
1605 
1606 if test -n "$ac_prev"; then
1607   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1608   as_fn_error $? "missing argument to $ac_option"
1609 fi
1610 
1611 if test -n "$ac_unrecognized_opts"; then
1612   case $enable_option_checking in
1613     no) ;;
1614     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1615     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616   esac
1617 fi
1618 
1619 # Check all directory arguments for consistency.
1620 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621                 datadir sysconfdir sharedstatedir localstatedir includedir \
1622                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623                 libdir localedir mandir
1624 do
1625   eval ac_val=\$$ac_var
1626   # Remove trailing slashes.
1627   case $ac_val in
1628     */ )
1629       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630       eval $ac_var=\$ac_val;;
1631   esac
1632   # Be sure to have absolute directory names.
1633   case $ac_val in
1634     [\\/$]* | ?:[\\/]* )  continue;;
1635     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636   esac
1637   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1638 done
1639 
1640 # There might be people who depend on the old broken behavior: `$host'
1641 # used to hold the argument of --host etc.
1642 # FIXME: To remove some day.
1643 build=$build_alias
1644 host=$host_alias
1645 target=$target_alias
1646 
1647 # FIXME: To remove some day.
1648 if test "x$host_alias" != x; then
1649   if test "x$build_alias" = x; then
1650     cross_compiling=maybe
1651   elif test "x$build_alias" != "x$host_alias"; then
1652     cross_compiling=yes
1653   fi
1654 fi
1655 
1656 ac_tool_prefix=
1657 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1658 
1659 test "$silent" = yes && exec 6>/dev/null
1660 
1661 
1662 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1663 ac_ls_di=`ls -di .` &&
1664 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1665   as_fn_error $? "working directory cannot be determined"
1666 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1667   as_fn_error $? "pwd does not report name of working directory"
1668 
1669 
1670 # Find the source files, if location was not specified.
1671 if test -z "$srcdir"; then
1672   ac_srcdir_defaulted=yes
1673   # Try the directory containing this script, then the parent directory.
1674   ac_confdir=`$as_dirname -- "$as_myself" ||
1675 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1676          X"$as_myself" : 'X\(//\)[^/]' \| \
1677          X"$as_myself" : 'X\(//\)$' \| \
1678          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1679 $as_echo X"$as_myself" |
1680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1681             s//\1/
1682             q
1683           }
1684           /^X\(\/\/\)[^/].*/{
1685             s//\1/
1686             q
1687           }
1688           /^X\(\/\/\)$/{
1689             s//\1/
1690             q
1691           }
1692           /^X\(\/\).*/{
1693             s//\1/
1694             q
1695           }
1696           s/.*/./; q'`
1697   srcdir=$ac_confdir
1698   if test ! -r "$srcdir/$ac_unique_file"; then
1699     srcdir=..
1700   fi
1701 else
1702   ac_srcdir_defaulted=no
1703 fi
1704 if test ! -r "$srcdir/$ac_unique_file"; then
1705   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1706   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1707 fi
1708 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1709 ac_abs_confdir=`(
1710         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1711         pwd)`
1712 # When building in place, set srcdir=.
1713 if test "$ac_abs_confdir" = "$ac_pwd"; then
1714   srcdir=.
1715 fi
1716 # Remove unnecessary trailing slashes from srcdir.
1717 # Double slashes in file names in object file debugging info
1718 # mess up M-x gdb in Emacs.
1719 case $srcdir in
1720 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1721 esac
1722 for ac_var in $ac_precious_vars; do
1723   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1724   eval ac_env_${ac_var}_value=\$${ac_var}
1725   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1726   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1727 done
1728 
1729 #
1730 # Report the --help message.
1731 #
1732 if test "$ac_init_help" = "long"; then
1733   # Omit some internal or obsolete options to make the list less imposing.
1734   # This message is too long to be a string in the A/UX 3.1 sh.
1735   cat <<_ACEOF
1736 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1737 
1738 Usage: $0 [OPTION]... [VAR=VALUE]...
1739 
1740 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1741 VAR=VALUE.  See below for descriptions of some of the useful variables.
1742 
1743 Defaults for the options are specified in brackets.
1744 
1745 Configuration:
1746   -h, --help              display this help and exit
1747       --help=short        display options specific to this package
1748       --help=recursive    display the short help of all the included packages
1749   -V, --version           display version information and exit
1750   -q, --quiet, --silent   do not print \`checking ...' messages
1751       --cache-file=FILE   cache test results in FILE [disabled]
1752   -C, --config-cache      alias for \`--cache-file=config.cache'
1753   -n, --no-create         do not create output files
1754       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1755 
1756 Installation directories:
1757   --prefix=PREFIX         install architecture-independent files in PREFIX
1758                           [$ac_default_prefix]
1759   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1760                           [PREFIX]
1761 
1762 By default, \`make install' will install all the files in
1763 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1764 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1765 for instance \`--prefix=\$HOME'.
1766 
1767 For better control, use the options below.
1768 
1769 Fine tuning of the installation directories:
1770   --bindir=DIR            user executables [EPREFIX/bin]
1771   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1772   --libexecdir=DIR        program executables [EPREFIX/libexec]
1773   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1774   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1775   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1776   --libdir=DIR            object code libraries [EPREFIX/lib]
1777   --includedir=DIR        C header files [PREFIX/include]
1778   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1779   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1780   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1781   --infodir=DIR           info documentation [DATAROOTDIR/info]
1782   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1783   --mandir=DIR            man documentation [DATAROOTDIR/man]
1784   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1785   --htmldir=DIR           html documentation [DOCDIR]
1786   --dvidir=DIR            dvi documentation [DOCDIR]
1787   --pdfdir=DIR            pdf documentation [DOCDIR]
1788   --psdir=DIR             ps documentation [DOCDIR]
1789 _ACEOF
1790 
1791   cat <<\_ACEOF
1792 
1793 X features:
1794   --x-includes=DIR    X include files are in DIR
1795   --x-libraries=DIR   X library files are in DIR
1796 
1797 System types:
1798   --build=BUILD     configure for building on BUILD [guessed]
1799   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1800   --target=TARGET   configure for building compilers for TARGET [HOST]
1801 _ACEOF
1802 fi
1803 
1804 if test -n "$ac_init_help"; then
1805   case $ac_init_help in
1806      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1807    esac
1808   cat <<\_ACEOF
1809 
1810 Optional Features:
1811   --disable-option-checking  ignore unrecognized --enable/--with options
1812   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1813   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1814   --enable-openjdk-only   suppress building custom source even if present
1815                           [disabled]
1816   --enable-debug          set the debug level to fastdebug (shorthand for
1817                           --with-debug-level=fastdebug) [disabled]
1818   --disable-headful       disable building headful support (graphical UI
1819                           support) [enabled]
1820   --enable-hotspot-test-in-build
1821                           run the Queens test after Hotspot build [disabled]
1822   --enable-unlimited-crypto
1823                           Enable unlimited crypto policy [disabled]
1824   --enable-rmiconnector-iiop
1825                           enable the JMX RMIConnector iiop transport
1826                           [disabled]
1827   --disable-debug-symbols disable generation of debug symbols [enabled]
1828   --disable-zip-debug-info
1829                           disable zipping of debug-info files [enabled]
1830   --enable-macosx-runtime-support
1831                           Deprecated. Option is kept for backwards
1832                           compatibility and is ignored
1833   --disable-freetype-bundling
1834                           disable bundling of the freetype library with the
1835                           build result [enabled on Windows or when using
1836                           --with-freetype, disabled otherwise]
1837   --enable-sjavac         use sjavac to do fast incremental compiles
1838                           [disabled]
1839   --disable-precompiled-headers
1840                           disable using precompiled headers when compiling C++
1841                           [enabled]
1842   --enable-ccache         enable using ccache to speed up recompilations
1843                           [disabled]
1844 
1845 Optional Packages:
1846   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1847   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1848   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1849                           support it), e.g. --with-target-bits=32 [guessed]
1850   --with-sys-root         pass this sys-root to the compilers and tools (for
1851                           cross-compiling)
1852   --with-tools-dir        search this directory for compilers and tools (for
1853                           cross-compiling)
1854   --with-devkit           use this directory as base for tools-dir and
1855                           sys-root (for cross-compiling)
1856   --with-custom-make-dir  Deprecated. Option is kept for backwards
1857                           compatibility and is ignored
1858   --with-jdk-variant      JDK variant to build (normal) [normal]
1859   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1860   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1861                           client, minimal1, kernel, zero, zeroshark, core)
1862                           [server]
1863   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1864                           [release]
1865   --with-conf-name        use this as the name of the configuration [generated
1866                           from important configuration options]
1867   --with-builddeps-conf   use this configuration file for the builddeps
1868   --with-builddeps-server download and use build dependencies from this server
1869                           url
1870   --with-builddeps-dir    store downloaded build dependencies here
1871                           [/localhome/builddeps]
1872   --with-builddeps-group  chgrp the downloaded build dependencies to this
1873                           group
1874   --with-cacerts-file     specify alternative cacerts file
1875   --with-milestone        Set milestone value for build [internal]
1876   --with-update-version   Set update version value for build [b00]
1877   --with-user-release-suffix
1878                           Add a custom string to the version string if build
1879                           number is not set.[username_builddateb00]
1880   --with-build-number     Set build number value for build [b00]
1881   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1882   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1883                           invocations of boot JDK, overriding the default
1884                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1885                           -enableassertions"
1886   --with-add-source-root  for each and every source directory, look in this
1887                           additional source root for the same directory; if it
1888                           exists and have files in it, include it in the build
1889   --with-override-source-root
1890                           for each and every source directory, look in this
1891                           override source root for the same directory; if it
1892                           exists, use that directory instead and ignore the
1893                           directory in the original source root
1894   --with-adds-and-overrides
1895                           use the subdirs 'adds' and 'overrides' in the
1896                           specified directory as add-source-root and
1897                           override-source-root
1898   --with-override-langtools
1899                           use this langtools dir for the build
1900   --with-override-corba   use this corba dir for the build
1901   --with-override-jaxp    use this jaxp dir for the build
1902   --with-override-jaxws   use this jaxws dir for the build
1903   --with-override-hotspot use this hotspot dir for the build
1904   --with-override-nashorn use this nashorn dir for the build
1905   --with-override-jdk     use this jdk dir for the build
1906   --with-import-hotspot   import hotspot binaries from this jdk image or
1907                           hotspot build dist dir instead of building from
1908                           source
1909   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1910                           to show possible values [platform dependent]
1911   --with-jtreg            Regression Test Harness [probed]
1912   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1913   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1914   --with-extra-ldflags    extra flags to be used when linking jdk
1915   --with-x                use the X Window System
1916   --with-cups             specify prefix directory for the cups package
1917                           (expecting the headers under PATH/include)
1918   --with-cups-include     specify directory for the cups include files
1919   --with-freetype         specify prefix directory for the freetype package
1920                           (expecting the libraries under PATH/lib and the
1921                           headers under PATH/include)
1922   --with-freetype-include specify directory for the freetype include files
1923   --with-freetype-lib     specify directory for the freetype library
1924   --with-alsa             specify prefix directory for the alsa package
1925                           (expecting the libraries under PATH/lib and the
1926                           headers under PATH/include)
1927   --with-alsa-include     specify directory for the alsa include files
1928   --with-alsa-lib         specify directory for the alsa library
1929   --with-giflib           use giflib from build system or OpenJDK source
1930                           (system, bundled) [bundled]
1931   --with-libpng           use libpng from build system or OpenJDK source
1932                           (system, bundled) [bundled]
1933   --with-zlib             use zlib from build system or OpenJDK source
1934                           (system, bundled) [bundled]
1935   --with-stdc++lib=<static>,<dynamic>,<default>
1936                           force linking of the C++ runtime on Linux to either
1937                           static or dynamic, default is static with dynamic as
1938                           fallback
1939   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1940                           only) [probed]
1941   --with-dxsdk            Deprecated. Option is kept for backwards
1942                           compatibility and is ignored
1943   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1944                           compatibility and is ignored
1945   --with-dxsdk-include    Deprecated. Option is kept for backwards
1946                           compatibility and is ignored
1947   --with-num-cores        number of cores in the build system, e.g.
1948                           --with-num-cores=8 [probed]
1949   --with-memory-size      memory (in MB) available in the build system, e.g.
1950                           --with-memory-size=1024 [probed]
1951   --with-jobs             number of parallel jobs to let make run [calculated
1952                           based on cores and memory]
1953   --with-sjavac-server-java
1954                           use this java binary for running the sjavac
1955                           background server [Boot JDK java]
1956   --with-ccache-dir       where to store ccache files [~/.ccache]
1957 
1958 Some influential environment variables:
1959   BASENAME    Override default value for BASENAME
1960   BASH        Override default value for BASH
1961   CAT         Override default value for CAT
1962   CHMOD       Override default value for CHMOD
1963   CMP         Override default value for CMP
1964   COMM        Override default value for COMM
1965   CP          Override default value for CP
1966   CPIO        Override default value for CPIO
1967   CUT         Override default value for CUT
1968   DATE        Override default value for DATE
1969   DIFF        Override default value for DIFF
1970   DIRNAME     Override default value for DIRNAME
1971   ECHO        Override default value for ECHO
1972   EXPR        Override default value for EXPR
1973   FILE        Override default value for FILE
1974   FIND        Override default value for FIND
1975   HEAD        Override default value for HEAD
1976   LN          Override default value for LN
1977   LS          Override default value for LS
1978   MKDIR       Override default value for MKDIR
1979   MKTEMP      Override default value for MKTEMP
1980   MV          Override default value for MV
1981   NAWK        Override default value for NAWK
1982   PRINTF      Override default value for PRINTF
1983   RM          Override default value for RM
1984   SH          Override default value for SH
1985   SORT        Override default value for SORT
1986   TAIL        Override default value for TAIL
1987   TAR         Override default value for TAR
1988   TEE         Override default value for TEE
1989   TOUCH       Override default value for TOUCH
1990   TR          Override default value for TR
1991   UNAME       Override default value for UNAME
1992   UNIQ        Override default value for UNIQ
1993   WC          Override default value for WC
1994   WHICH       Override default value for WHICH
1995   XARGS       Override default value for XARGS
1996   AWK         Override default value for AWK
1997   GREP        Override default value for GREP
1998   EGREP       Override default value for EGREP
1999   FGREP       Override default value for FGREP
2000   SED         Override default value for SED
2001   CYGPATH     Override default value for CYGPATH
2002   READLINK    Override default value for READLINK
2003   DF          Override default value for DF
2004   SETFILE     Override default value for SETFILE
2005   UNZIP       Override default value for UNZIP
2006   ZIP         Override default value for ZIP
2007   LDD         Override default value for LDD
2008   OTOOL       Override default value for OTOOL
2009   READELF     Override default value for READELF
2010   HG          Override default value for HG
2011   STAT        Override default value for STAT
2012   TIME        Override default value for TIME
2013   DSYMUTIL    Override default value for DSYMUTIL
2014   XATTR       Override default value for XATTR
2015   CODESIGN    Override default value for CODESIGN
2016   PKG_CONFIG  path to pkg-config utility
2017   JAVA        Override default value for JAVA
2018   JAVAC       Override default value for JAVAC
2019   JAVAH       Override default value for JAVAH
2020   JAR         Override default value for JAR
2021   NATIVE2ASCII
2022               Override default value for NATIVE2ASCII
2023   JARSIGNER   Override default value for JARSIGNER
2024   CC          C compiler command
2025   CFLAGS      C compiler flags
2026   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2027               nonstandard directory <lib dir>
2028   LIBS        libraries to pass to the linker, e.g. -l<library>
2029   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2030               you have headers in a nonstandard directory <include dir>
2031   CXX         C++ compiler command
2032   CXXFLAGS    C++ compiler flags
2033   CPP         C preprocessor
2034   CXXCPP      C++ preprocessor
2035   AS          Override default value for AS
2036   AR          Override default value for AR
2037   OBJC        Objective C compiler command
2038   OBJCFLAGS   Objective C compiler flags
2039   LIPO        Override default value for LIPO
2040   STRIP       Override default value for STRIP
2041   NM          Override default value for NM
2042   GNM         Override default value for GNM
2043   MCS         Override default value for MCS
2044   OBJCOPY     Override default value for OBJCOPY
2045   OBJDUMP     Override default value for OBJDUMP
2046   BUILD_CC    Override default value for BUILD_CC
2047   BUILD_CXX   Override default value for BUILD_CXX
2048   BUILD_LD    Override default value for BUILD_LD
2049   JTREGEXE    Override default value for JTREGEXE
2050   XMKMF       Path to xmkmf, Makefile generator for X Window System
2051   FREETYPE_CFLAGS
2052               C compiler flags for FREETYPE, overriding pkg-config
2053   FREETYPE_LIBS
2054               linker flags for FREETYPE, overriding pkg-config
2055   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2056   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2057   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2058   PNG_LIBS    linker flags for PNG, overriding pkg-config
2059   LIBFFI_CFLAGS
2060               C compiler flags for LIBFFI, overriding pkg-config
2061   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2062   CCACHE      Override default value for CCACHE
2063 
2064 Use these variables to override the choices made by `configure' or to help
2065 it to find libraries and programs with nonstandard names/locations.
2066 
2067 Report bugs to <build-dev@openjdk.java.net>.
2068 OpenJDK home page: <http://openjdk.java.net>.
2069 _ACEOF
2070 ac_status=$?
2071 fi
2072 
2073 if test "$ac_init_help" = "recursive"; then
2074   # If there are subdirs, report their specific --help.
2075   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2076     test -d "$ac_dir" ||
2077       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2078       continue
2079     ac_builddir=.
2080 
2081 case "$ac_dir" in
2082 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2083 *)
2084   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2085   # A ".." for each directory in $ac_dir_suffix.
2086   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2087   case $ac_top_builddir_sub in
2088   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2089   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2090   esac ;;
2091 esac
2092 ac_abs_top_builddir=$ac_pwd
2093 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2094 # for backward compatibility:
2095 ac_top_builddir=$ac_top_build_prefix
2096 
2097 case $srcdir in
2098   .)  # We are building in place.
2099     ac_srcdir=.
2100     ac_top_srcdir=$ac_top_builddir_sub
2101     ac_abs_top_srcdir=$ac_pwd ;;
2102   [\\/]* | ?:[\\/]* )  # Absolute name.
2103     ac_srcdir=$srcdir$ac_dir_suffix;
2104     ac_top_srcdir=$srcdir
2105     ac_abs_top_srcdir=$srcdir ;;
2106   *) # Relative name.
2107     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2108     ac_top_srcdir=$ac_top_build_prefix$srcdir
2109     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2110 esac
2111 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2112 
2113     cd "$ac_dir" || { ac_status=$?; continue; }
2114     # Check for guested configure.
2115     if test -f "$ac_srcdir/configure.gnu"; then
2116       echo &&
2117       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2118     elif test -f "$ac_srcdir/configure"; then
2119       echo &&
2120       $SHELL "$ac_srcdir/configure" --help=recursive
2121     else
2122       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2123     fi || ac_status=$?
2124     cd "$ac_pwd" || { ac_status=$?; break; }
2125   done
2126 fi
2127 
2128 test -n "$ac_init_help" && exit $ac_status
2129 if $ac_init_version; then
2130   cat <<\_ACEOF
2131 OpenJDK configure jdk9
2132 generated by GNU Autoconf 2.69
2133 
2134 Copyright (C) 2012 Free Software Foundation, Inc.
2135 This configure script is free software; the Free Software Foundation
2136 gives unlimited permission to copy, distribute and modify it.
2137 _ACEOF
2138   exit
2139 fi
2140 
2141 ## ------------------------ ##
2142 ## Autoconf initialization. ##
2143 ## ------------------------ ##
2144 
2145 # ac_fn_c_try_compile LINENO
2146 # --------------------------
2147 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2148 ac_fn_c_try_compile ()
2149 {
2150   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2151   rm -f conftest.$ac_objext
2152   if { { ac_try="$ac_compile"
2153 case "(($ac_try" in
2154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2155   *) ac_try_echo=$ac_try;;
2156 esac
2157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2158 $as_echo "$ac_try_echo"; } >&5
2159   (eval "$ac_compile") 2>conftest.err
2160   ac_status=$?
2161   if test -s conftest.err; then
2162     grep -v '^ *+' conftest.err >conftest.er1
2163     cat conftest.er1 >&5
2164     mv -f conftest.er1 conftest.err
2165   fi
2166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2167   test $ac_status = 0; } && {
2168          test -z "$ac_c_werror_flag" ||
2169          test ! -s conftest.err
2170        } && test -s conftest.$ac_objext; then :
2171   ac_retval=0
2172 else
2173   $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2175 
2176         ac_retval=1
2177 fi
2178   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179   as_fn_set_status $ac_retval
2180 
2181 } # ac_fn_c_try_compile
2182 
2183 # ac_fn_cxx_try_compile LINENO
2184 # ----------------------------
2185 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_cxx_try_compile ()
2187 {
2188   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189   rm -f conftest.$ac_objext
2190   if { { ac_try="$ac_compile"
2191 case "(($ac_try" in
2192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193   *) ac_try_echo=$ac_try;;
2194 esac
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197   (eval "$ac_compile") 2>conftest.err
2198   ac_status=$?
2199   if test -s conftest.err; then
2200     grep -v '^ *+' conftest.err >conftest.er1
2201     cat conftest.er1 >&5
2202     mv -f conftest.er1 conftest.err
2203   fi
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; } && {
2206          test -z "$ac_cxx_werror_flag" ||
2207          test ! -s conftest.err
2208        } && test -s conftest.$ac_objext; then :
2209   ac_retval=0
2210 else
2211   $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2213 
2214         ac_retval=1
2215 fi
2216   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217   as_fn_set_status $ac_retval
2218 
2219 } # ac_fn_cxx_try_compile
2220 
2221 # ac_fn_c_try_cpp LINENO
2222 # ----------------------
2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224 ac_fn_c_try_cpp ()
2225 {
2226   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227   if { { ac_try="$ac_cpp conftest.$ac_ext"
2228 case "(($ac_try" in
2229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230   *) ac_try_echo=$ac_try;;
2231 esac
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235   ac_status=$?
2236   if test -s conftest.err; then
2237     grep -v '^ *+' conftest.err >conftest.er1
2238     cat conftest.er1 >&5
2239     mv -f conftest.er1 conftest.err
2240   fi
2241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242   test $ac_status = 0; } > conftest.i && {
2243          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244          test ! -s conftest.err
2245        }; then :
2246   ac_retval=0
2247 else
2248   $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2250 
2251     ac_retval=1
2252 fi
2253   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254   as_fn_set_status $ac_retval
2255 
2256 } # ac_fn_c_try_cpp
2257 
2258 # ac_fn_cxx_try_cpp LINENO
2259 # ------------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_try_cpp ()
2262 {
2263   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264   if { { ac_try="$ac_cpp conftest.$ac_ext"
2265 case "(($ac_try" in
2266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267   *) ac_try_echo=$ac_try;;
2268 esac
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2272   ac_status=$?
2273   if test -s conftest.err; then
2274     grep -v '^ *+' conftest.err >conftest.er1
2275     cat conftest.er1 >&5
2276     mv -f conftest.er1 conftest.err
2277   fi
2278   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279   test $ac_status = 0; } > conftest.i && {
2280          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2281          test ! -s conftest.err
2282        }; then :
2283   ac_retval=0
2284 else
2285   $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287 
2288     ac_retval=1
2289 fi
2290   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291   as_fn_set_status $ac_retval
2292 
2293 } # ac_fn_cxx_try_cpp
2294 
2295 # ac_fn_objc_try_compile LINENO
2296 # -----------------------------
2297 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2298 ac_fn_objc_try_compile ()
2299 {
2300   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301   rm -f conftest.$ac_objext
2302   if { { ac_try="$ac_compile"
2303 case "(($ac_try" in
2304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305   *) ac_try_echo=$ac_try;;
2306 esac
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309   (eval "$ac_compile") 2>conftest.err
2310   ac_status=$?
2311   if test -s conftest.err; then
2312     grep -v '^ *+' conftest.err >conftest.er1
2313     cat conftest.er1 >&5
2314     mv -f conftest.er1 conftest.err
2315   fi
2316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317   test $ac_status = 0; } && {
2318          test -z "$ac_objc_werror_flag" ||
2319          test ! -s conftest.err
2320        } && test -s conftest.$ac_objext; then :
2321   ac_retval=0
2322 else
2323   $as_echo "$as_me: failed program was:" >&5
2324 sed 's/^/| /' conftest.$ac_ext >&5
2325 
2326         ac_retval=1
2327 fi
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329   as_fn_set_status $ac_retval
2330 
2331 } # ac_fn_objc_try_compile
2332 
2333 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2334 # ---------------------------------------------------------
2335 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2336 # the include files in INCLUDES and setting the cache variable VAR
2337 # accordingly.
2338 ac_fn_cxx_check_header_mongrel ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   if eval \${$3+:} false; then :
2342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval \${$3+:} false; then :
2345   $as_echo_n "(cached) " >&6
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 else
2351   # Is the header compilable?
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2353 $as_echo_n "checking $2 usability... " >&6; }
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 #include <$2>
2358 _ACEOF
2359 if ac_fn_cxx_try_compile "$LINENO"; then :
2360   ac_header_compiler=yes
2361 else
2362   ac_header_compiler=no
2363 fi
2364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2366 $as_echo "$ac_header_compiler" >&6; }
2367 
2368 # Is the header present?
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2370 $as_echo_n "checking $2 presence... " >&6; }
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 #include <$2>
2374 _ACEOF
2375 if ac_fn_cxx_try_cpp "$LINENO"; then :
2376   ac_header_preproc=yes
2377 else
2378   ac_header_preproc=no
2379 fi
2380 rm -f conftest.err conftest.i conftest.$ac_ext
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2382 $as_echo "$ac_header_preproc" >&6; }
2383 
2384 # So?  What about this header?
2385 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2386   yes:no: )
2387     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2388 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2389     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2390 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2391     ;;
2392   no:yes:* )
2393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2394 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2395     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2396 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2397     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2398 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2400 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403 ( $as_echo "## ----------------------------------------- ##
2404 ## Report this to build-dev@openjdk.java.net ##
2405 ## ----------------------------------------- ##"
2406      ) | sed "s/^/$as_me: WARNING:     /" >&2
2407     ;;
2408 esac
2409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410 $as_echo_n "checking for $2... " >&6; }
2411 if eval \${$3+:} false; then :
2412   $as_echo_n "(cached) " >&6
2413 else
2414   eval "$3=\$ac_header_compiler"
2415 fi
2416 eval ac_res=\$$3
2417                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418 $as_echo "$ac_res" >&6; }
2419 fi
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421 
2422 } # ac_fn_cxx_check_header_mongrel
2423 
2424 # ac_fn_cxx_try_run LINENO
2425 # ------------------------
2426 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2427 # that executables *can* be run.
2428 ac_fn_cxx_try_run ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   if { { ac_try="$ac_link"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438   (eval "$ac_link") 2>&5
2439   ac_status=$?
2440   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2441   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2442   { { case "(($ac_try" in
2443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2444   *) ac_try_echo=$ac_try;;
2445 esac
2446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2447 $as_echo "$ac_try_echo"; } >&5
2448   (eval "$ac_try") 2>&5
2449   ac_status=$?
2450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2451   test $ac_status = 0; }; }; then :
2452   ac_retval=0
2453 else
2454   $as_echo "$as_me: program exited with status $ac_status" >&5
2455        $as_echo "$as_me: failed program was:" >&5
2456 sed 's/^/| /' conftest.$ac_ext >&5
2457 
2458        ac_retval=$ac_status
2459 fi
2460   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2461   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2462   as_fn_set_status $ac_retval
2463 
2464 } # ac_fn_cxx_try_run
2465 
2466 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2467 # ---------------------------------------------------------
2468 # Tests whether HEADER exists and can be compiled using the include files in
2469 # INCLUDES, setting the cache variable VAR accordingly.
2470 ac_fn_cxx_check_header_compile ()
2471 {
2472   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2474 $as_echo_n "checking for $2... " >&6; }
2475 if eval \${$3+:} false; then :
2476   $as_echo_n "(cached) " >&6
2477 else
2478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2479 /* end confdefs.h.  */
2480 $4
2481 #include <$2>
2482 _ACEOF
2483 if ac_fn_cxx_try_compile "$LINENO"; then :
2484   eval "$3=yes"
2485 else
2486   eval "$3=no"
2487 fi
2488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2489 fi
2490 eval ac_res=\$$3
2491                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2492 $as_echo "$ac_res" >&6; }
2493   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2494 
2495 } # ac_fn_cxx_check_header_compile
2496 
2497 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2498 # ----------------------------------------------
2499 # Tries to find the compile-time value of EXPR in a program that includes
2500 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2501 # computed
2502 ac_fn_cxx_compute_int ()
2503 {
2504   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2505   if test "$cross_compiling" = yes; then
2506     # Depending upon the size, compute the lo and hi bounds.
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h.  */
2509 $4
2510 int
2511 main ()
2512 {
2513 static int test_array [1 - 2 * !(($2) >= 0)];
2514 test_array [0] = 0;
2515 return test_array [0];
2516 
2517   ;
2518   return 0;
2519 }
2520 _ACEOF
2521 if ac_fn_cxx_try_compile "$LINENO"; then :
2522   ac_lo=0 ac_mid=0
2523   while :; do
2524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h.  */
2526 $4
2527 int
2528 main ()
2529 {
2530 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2531 test_array [0] = 0;
2532 return test_array [0];
2533 
2534   ;
2535   return 0;
2536 }
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539   ac_hi=$ac_mid; break
2540 else
2541   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2542                         if test $ac_lo -le $ac_mid; then
2543                           ac_lo= ac_hi=
2544                           break
2545                         fi
2546                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2547 fi
2548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549   done
2550 else
2551   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h.  */
2553 $4
2554 int
2555 main ()
2556 {
2557 static int test_array [1 - 2 * !(($2) < 0)];
2558 test_array [0] = 0;
2559 return test_array [0];
2560 
2561   ;
2562   return 0;
2563 }
2564 _ACEOF
2565 if ac_fn_cxx_try_compile "$LINENO"; then :
2566   ac_hi=-1 ac_mid=-1
2567   while :; do
2568     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h.  */
2570 $4
2571 int
2572 main ()
2573 {
2574 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2575 test_array [0] = 0;
2576 return test_array [0];
2577 
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_cxx_try_compile "$LINENO"; then :
2583   ac_lo=$ac_mid; break
2584 else
2585   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2586                         if test $ac_mid -le $ac_hi; then
2587                           ac_lo= ac_hi=
2588                           break
2589                         fi
2590                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593   done
2594 else
2595   ac_lo= ac_hi=
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 # Binary search between lo and hi bounds.
2601 while test "x$ac_lo" != "x$ac_hi"; do
2602   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2603   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h.  */
2605 $4
2606 int
2607 main ()
2608 {
2609 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 test_array [0] = 0;
2611 return test_array [0];
2612 
2613   ;
2614   return 0;
2615 }
2616 _ACEOF
2617 if ac_fn_cxx_try_compile "$LINENO"; then :
2618   ac_hi=$ac_mid
2619 else
2620   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 done
2624 case $ac_lo in #((
2625 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2626 '') ac_retval=1 ;;
2627 esac
2628   else
2629     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630 /* end confdefs.h.  */
2631 $4
2632 static long int longval () { return $2; }
2633 static unsigned long int ulongval () { return $2; }
2634 #include <stdio.h>
2635 #include <stdlib.h>
2636 int
2637 main ()
2638 {
2639 
2640   FILE *f = fopen ("conftest.val", "w");
2641   if (! f)
2642     return 1;
2643   if (($2) < 0)
2644     {
2645       long int i = longval ();
2646       if (i != ($2))
2647         return 1;
2648       fprintf (f, "%ld", i);
2649     }
2650   else
2651     {
2652       unsigned long int i = ulongval ();
2653       if (i != ($2))
2654         return 1;
2655       fprintf (f, "%lu", i);
2656     }
2657   /* Do not output a trailing newline, as this causes \r\n confusion
2658      on some platforms.  */
2659   return ferror (f) || fclose (f) != 0;
2660 
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 if ac_fn_cxx_try_run "$LINENO"; then :
2666   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2667 else
2668   ac_retval=1
2669 fi
2670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2671   conftest.$ac_objext conftest.beam conftest.$ac_ext
2672 rm -f conftest.val
2673 
2674   fi
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676   as_fn_set_status $ac_retval
2677 
2678 } # ac_fn_cxx_compute_int
2679 
2680 # ac_fn_cxx_try_link LINENO
2681 # -------------------------
2682 # Try to link conftest.$ac_ext, and return whether this succeeded.
2683 ac_fn_cxx_try_link ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   rm -f conftest.$ac_objext conftest$ac_exeext
2687   if { { ac_try="$ac_link"
2688 case "(($ac_try" in
2689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690   *) ac_try_echo=$ac_try;;
2691 esac
2692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2693 $as_echo "$ac_try_echo"; } >&5
2694   (eval "$ac_link") 2>conftest.err
2695   ac_status=$?
2696   if test -s conftest.err; then
2697     grep -v '^ *+' conftest.err >conftest.er1
2698     cat conftest.er1 >&5
2699     mv -f conftest.er1 conftest.err
2700   fi
2701   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2702   test $ac_status = 0; } && {
2703          test -z "$ac_cxx_werror_flag" ||
2704          test ! -s conftest.err
2705        } && test -s conftest$ac_exeext && {
2706          test "$cross_compiling" = yes ||
2707          test -x conftest$ac_exeext
2708        }; then :
2709   ac_retval=0
2710 else
2711   $as_echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713 
2714         ac_retval=1
2715 fi
2716   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2717   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2718   # interfere with the next link command; also delete a directory that is
2719   # left behind by Apple's compiler.  We do this before executing the actions.
2720   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2721   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722   as_fn_set_status $ac_retval
2723 
2724 } # ac_fn_cxx_try_link
2725 
2726 # ac_fn_cxx_check_func LINENO FUNC VAR
2727 # ------------------------------------
2728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2729 ac_fn_cxx_check_func ()
2730 {
2731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2733 $as_echo_n "checking for $2... " >&6; }
2734 if eval \${$3+:} false; then :
2735   $as_echo_n "(cached) " >&6
2736 else
2737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h.  */
2739 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2741 #define $2 innocuous_$2
2742 
2743 /* System header to define __stub macros and hopefully few prototypes,
2744     which can conflict with char $2 (); below.
2745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2746     <limits.h> exists even on freestanding compilers.  */
2747 
2748 #ifdef __STDC__
2749 # include <limits.h>
2750 #else
2751 # include <assert.h>
2752 #endif
2753 
2754 #undef $2
2755 
2756 /* Override any GCC internal prototype to avoid an error.
2757    Use char because int might match the return type of a GCC
2758    builtin and then its argument prototype would still apply.  */
2759 #ifdef __cplusplus
2760 extern "C"
2761 #endif
2762 char $2 ();
2763 /* The GNU C library defines this for functions which it implements
2764     to always fail with ENOSYS.  Some functions are actually named
2765     something starting with __ and the normal name is an alias.  */
2766 #if defined __stub_$2 || defined __stub___$2
2767 choke me
2768 #endif
2769 
2770 int
2771 main ()
2772 {
2773 return $2 ();
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_cxx_try_link "$LINENO"; then :
2779   eval "$3=yes"
2780 else
2781   eval "$3=no"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext \
2784     conftest$ac_exeext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2790 
2791 } # ac_fn_cxx_check_func
2792 
2793 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2794 # -------------------------------------------------------
2795 # Tests whether HEADER exists and can be compiled using the include files in
2796 # INCLUDES, setting the cache variable VAR accordingly.
2797 ac_fn_c_check_header_compile ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2801 $as_echo_n "checking for $2... " >&6; }
2802 if eval \${$3+:} false; then :
2803   $as_echo_n "(cached) " >&6
2804 else
2805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h.  */
2807 $4
2808 #include <$2>
2809 _ACEOF
2810 if ac_fn_c_try_compile "$LINENO"; then :
2811   eval "$3=yes"
2812 else
2813   eval "$3=no"
2814 fi
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 fi
2817 eval ac_res=\$$3
2818                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2819 $as_echo "$ac_res" >&6; }
2820   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2821 
2822 } # ac_fn_c_check_header_compile
2823 cat >config.log <<_ACEOF
2824 This file contains any messages produced by compilers while
2825 running configure, to aid debugging if configure makes a mistake.
2826 
2827 It was created by OpenJDK $as_me jdk9, which was
2828 generated by GNU Autoconf 2.69.  Invocation command line was
2829 
2830   $ $0 $@
2831 
2832 _ACEOF
2833 exec 5>>config.log
2834 {
2835 cat <<_ASUNAME
2836 ## --------- ##
2837 ## Platform. ##
2838 ## --------- ##
2839 
2840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2845 
2846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2847 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2848 
2849 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2850 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2852 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2853 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2854 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2855 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2856 
2857 _ASUNAME
2858 
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862   IFS=$as_save_IFS
2863   test -z "$as_dir" && as_dir=.
2864     $as_echo "PATH: $as_dir"
2865   done
2866 IFS=$as_save_IFS
2867 
2868 } >&5
2869 
2870 cat >&5 <<_ACEOF
2871 
2872 
2873 ## ----------- ##
2874 ## Core tests. ##
2875 ## ----------- ##
2876 
2877 _ACEOF
2878 
2879 
2880 # Keep a trace of the command line.
2881 # Strip out --no-create and --no-recursion so they do not pile up.
2882 # Strip out --silent because we don't want to record it for future runs.
2883 # Also quote any args containing shell meta-characters.
2884 # Make two passes to allow for proper duplicate-argument suppression.
2885 ac_configure_args=
2886 ac_configure_args0=
2887 ac_configure_args1=
2888 ac_must_keep_next=false
2889 for ac_pass in 1 2
2890 do
2891   for ac_arg
2892   do
2893     case $ac_arg in
2894     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2895     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2896     | -silent | --silent | --silen | --sile | --sil)
2897       continue ;;
2898     *\'*)
2899       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2900     esac
2901     case $ac_pass in
2902     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2903     2)
2904       as_fn_append ac_configure_args1 " '$ac_arg'"
2905       if test $ac_must_keep_next = true; then
2906         ac_must_keep_next=false # Got value, back to normal.
2907       else
2908         case $ac_arg in
2909           *=* | --config-cache | -C | -disable-* | --disable-* \
2910           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2911           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2912           | -with-* | --with-* | -without-* | --without-* | --x)
2913             case "$ac_configure_args0 " in
2914               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2915             esac
2916             ;;
2917           -* ) ac_must_keep_next=true ;;
2918         esac
2919       fi
2920       as_fn_append ac_configure_args " '$ac_arg'"
2921       ;;
2922     esac
2923   done
2924 done
2925 { ac_configure_args0=; unset ac_configure_args0;}
2926 { ac_configure_args1=; unset ac_configure_args1;}
2927 
2928 # When interrupted or exit'd, cleanup temporary files, and complete
2929 # config.log.  We remove comments because anyway the quotes in there
2930 # would cause problems or look ugly.
2931 # WARNING: Use '\'' to represent an apostrophe within the trap.
2932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2933 trap 'exit_status=$?
2934   # Save into config.log some information that might help in debugging.
2935   {
2936     echo
2937 
2938     $as_echo "## ---------------- ##
2939 ## Cache variables. ##
2940 ## ---------------- ##"
2941     echo
2942     # The following way of writing the cache mishandles newlines in values,
2943 (
2944   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2945     eval ac_val=\$$ac_var
2946     case $ac_val in #(
2947     *${as_nl}*)
2948       case $ac_var in #(
2949       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2951       esac
2952       case $ac_var in #(
2953       _ | IFS | as_nl) ;; #(
2954       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2955       *) { eval $ac_var=; unset $ac_var;} ;;
2956       esac ;;
2957     esac
2958   done
2959   (set) 2>&1 |
2960     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2961     *${as_nl}ac_space=\ *)
2962       sed -n \
2963         "s/'\''/'\''\\\\'\'''\''/g;
2964           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2965       ;; #(
2966     *)
2967       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2968       ;;
2969     esac |
2970     sort
2971 )
2972     echo
2973 
2974     $as_echo "## ----------------- ##
2975 ## Output variables. ##
2976 ## ----------------- ##"
2977     echo
2978     for ac_var in $ac_subst_vars
2979     do
2980       eval ac_val=\$$ac_var
2981       case $ac_val in
2982       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2983       esac
2984       $as_echo "$ac_var='\''$ac_val'\''"
2985     done | sort
2986     echo
2987 
2988     if test -n "$ac_subst_files"; then
2989       $as_echo "## ------------------- ##
2990 ## File substitutions. ##
2991 ## ------------------- ##"
2992       echo
2993       for ac_var in $ac_subst_files
2994       do
2995         eval ac_val=\$$ac_var
2996         case $ac_val in
2997         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2998         esac
2999         $as_echo "$ac_var='\''$ac_val'\''"
3000       done | sort
3001       echo
3002     fi
3003 
3004     if test -s confdefs.h; then
3005       $as_echo "## ----------- ##
3006 ## confdefs.h. ##
3007 ## ----------- ##"
3008       echo
3009       cat confdefs.h
3010       echo
3011     fi
3012     test "$ac_signal" != 0 &&
3013       $as_echo "$as_me: caught signal $ac_signal"
3014     $as_echo "$as_me: exit $exit_status"
3015   } >&5
3016   rm -f core *.core core.conftest.* &&
3017     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3018     exit $exit_status
3019 ' 0
3020 for ac_signal in 1 2 13 15; do
3021   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3022 done
3023 ac_signal=0
3024 
3025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3026 rm -f -r conftest* confdefs.h
3027 
3028 $as_echo "/* confdefs.h */" > confdefs.h
3029 
3030 # Predefined preprocessor variables.
3031 
3032 cat >>confdefs.h <<_ACEOF
3033 #define PACKAGE_NAME "$PACKAGE_NAME"
3034 _ACEOF
3035 
3036 cat >>confdefs.h <<_ACEOF
3037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3038 _ACEOF
3039 
3040 cat >>confdefs.h <<_ACEOF
3041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3042 _ACEOF
3043 
3044 cat >>confdefs.h <<_ACEOF
3045 #define PACKAGE_STRING "$PACKAGE_STRING"
3046 _ACEOF
3047 
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3050 _ACEOF
3051 
3052 cat >>confdefs.h <<_ACEOF
3053 #define PACKAGE_URL "$PACKAGE_URL"
3054 _ACEOF
3055 
3056 
3057 # Let the site file select an alternate cache file if it wants to.
3058 # Prefer an explicitly selected file to automatically selected ones.
3059 ac_site_file1=NONE
3060 ac_site_file2=NONE
3061 if test -n "$CONFIG_SITE"; then
3062   # We do not want a PATH search for config.site.
3063   case $CONFIG_SITE in #((
3064     -*)  ac_site_file1=./$CONFIG_SITE;;
3065     */*) ac_site_file1=$CONFIG_SITE;;
3066     *)   ac_site_file1=./$CONFIG_SITE;;
3067   esac
3068 elif test "x$prefix" != xNONE; then
3069   ac_site_file1=$prefix/share/config.site
3070   ac_site_file2=$prefix/etc/config.site
3071 else
3072   ac_site_file1=$ac_default_prefix/share/config.site
3073   ac_site_file2=$ac_default_prefix/etc/config.site
3074 fi
3075 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3076 do
3077   test "x$ac_site_file" = xNONE && continue
3078   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3079     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3080 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3081     sed 's/^/| /' "$ac_site_file" >&5
3082     . "$ac_site_file" \
3083       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $? "failed to load site script $ac_site_file
3086 See \`config.log' for more details" "$LINENO" 5; }
3087   fi
3088 done
3089 
3090 if test -r "$cache_file"; then
3091   # Some versions of bash will fail to source /dev/null (special files
3092   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3093   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3094     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3095 $as_echo "$as_me: loading cache $cache_file" >&6;}
3096     case $cache_file in
3097       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3098       *)                      . "./$cache_file";;
3099     esac
3100   fi
3101 else
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3103 $as_echo "$as_me: creating cache $cache_file" >&6;}
3104   >$cache_file
3105 fi
3106 
3107 # Check that the precious variables saved in the cache have kept the same
3108 # value.
3109 ac_cache_corrupted=false
3110 for ac_var in $ac_precious_vars; do
3111   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3112   eval ac_new_set=\$ac_env_${ac_var}_set
3113   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3114   eval ac_new_val=\$ac_env_${ac_var}_value
3115   case $ac_old_set,$ac_new_set in
3116     set,)
3117       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3119       ac_cache_corrupted=: ;;
3120     ,set)
3121       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3123       ac_cache_corrupted=: ;;
3124     ,);;
3125     *)
3126       if test "x$ac_old_val" != "x$ac_new_val"; then
3127         # differences in whitespace do not lead to failure.
3128         ac_old_val_w=`echo x $ac_old_val`
3129         ac_new_val_w=`echo x $ac_new_val`
3130         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3131           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3133           ac_cache_corrupted=:
3134         else
3135           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3137           eval $ac_var=\$ac_old_val
3138         fi
3139         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3140 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3141         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3142 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3143       fi;;
3144   esac
3145   # Pass precious variables to config.status.
3146   if test "$ac_new_set" = set; then
3147     case $ac_new_val in
3148     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3149     *) ac_arg=$ac_var=$ac_new_val ;;
3150     esac
3151     case " $ac_configure_args " in
3152       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3153       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154     esac
3155   fi
3156 done
3157 if $ac_cache_corrupted; then
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3162   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3163 fi
3164 ## -------------------- ##
3165 ## Main body of script. ##
3166 ## -------------------- ##
3167 
3168 ac_ext=c
3169 ac_cpp='$CPP $CPPFLAGS'
3170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 
3174 
3175 
3176 ac_aux_dir=
3177 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3178   if test -f "$ac_dir/install-sh"; then
3179     ac_aux_dir=$ac_dir
3180     ac_install_sh="$ac_aux_dir/install-sh -c"
3181     break
3182   elif test -f "$ac_dir/install.sh"; then
3183     ac_aux_dir=$ac_dir
3184     ac_install_sh="$ac_aux_dir/install.sh -c"
3185     break
3186   elif test -f "$ac_dir/shtool"; then
3187     ac_aux_dir=$ac_dir
3188     ac_install_sh="$ac_aux_dir/shtool install -c"
3189     break
3190   fi
3191 done
3192 if test -z "$ac_aux_dir"; then
3193   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
3194 fi
3195 
3196 # These three variables are undocumented and unsupported,
3197 # and are intended to be withdrawn in a future Autoconf release.
3198 # They can cause serious problems if a builder's source tree is in a directory
3199 # whose full name contains unusual characters.
3200 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3201 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3202 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3203 
3204 
3205 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3206 
3207 #
3208 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3209 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3210 #
3211 # This code is free software; you can redistribute it and/or modify it
3212 # under the terms of the GNU General Public License version 2 only, as
3213 # published by the Free Software Foundation.  Oracle designates this
3214 # particular file as subject to the "Classpath" exception as provided
3215 # by Oracle in the LICENSE file that accompanied this code.
3216 #
3217 # This code is distributed in the hope that it will be useful, but WITHOUT
3218 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3219 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3220 # version 2 for more details (a copy is included in the LICENSE file that
3221 # accompanied this code).
3222 #
3223 # You should have received a copy of the GNU General Public License version
3224 # 2 along with this work; if not, write to the Free Software Foundation,
3225 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3226 #
3227 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3228 # or visit www.oracle.com if you need additional information or have any
3229 # questions.
3230 #
3231 
3232 #
3233 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3234 #
3235 # This program is free software; you can redistribute it and/or modify
3236 # it under the terms of the GNU General Public License as published by
3237 # the Free Software Foundation; either version 2 of the License, or
3238 # (at your option) any later version.
3239 #
3240 # This program is distributed in the hope that it will be useful, but
3241 # WITHOUT ANY WARRANTY; without even the implied warranty of
3242 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3243 # General Public License for more details.
3244 #
3245 # You should have received a copy of the GNU General Public License
3246 # along with this program; if not, write to the Free Software
3247 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3248 #
3249 # As a special exception to the GNU General Public License, if you
3250 # distribute this file as part of a program that contains a
3251 # configuration script generated by Autoconf, you may include it under
3252 # the same distribution terms that you use for the rest of that program.
3253 
3254 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3255 # ----------------------------------
3256 # PKG_PROG_PKG_CONFIG
3257 
3258 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3259 #
3260 # Check to see whether a particular set of modules exists.  Similar
3261 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3262 #
3263 #
3264 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3265 # this or PKG_CHECK_MODULES is called, or make sure to call
3266 # PKG_CHECK_EXISTS manually
3267 # --------------------------------------------------------------
3268 
3269 
3270 
3271 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3272 # ---------------------------------------------
3273 # _PKG_CONFIG
3274 
3275 # _PKG_SHORT_ERRORS_SUPPORTED
3276 # -----------------------------
3277 # _PKG_SHORT_ERRORS_SUPPORTED
3278 
3279 
3280 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3281 # [ACTION-IF-NOT-FOUND])
3282 #
3283 #
3284 # Note that if there is a possibility the first call to
3285 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3286 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3287 #
3288 #
3289 # --------------------------------------------------------------
3290 # PKG_CHECK_MODULES
3291 
3292 
3293 # Include these first...
3294 #
3295 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3296 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3297 #
3298 # This code is free software; you can redistribute it and/or modify it
3299 # under the terms of the GNU General Public License version 2 only, as
3300 # published by the Free Software Foundation.  Oracle designates this
3301 # particular file as subject to the "Classpath" exception as provided
3302 # by Oracle in the LICENSE file that accompanied this code.
3303 #
3304 # This code is distributed in the hope that it will be useful, but WITHOUT
3305 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3306 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3307 # version 2 for more details (a copy is included in the LICENSE file that
3308 # accompanied this code).
3309 #
3310 # You should have received a copy of the GNU General Public License version
3311 # 2 along with this work; if not, write to the Free Software Foundation,
3312 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3313 #
3314 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3315 # or visit www.oracle.com if you need additional information or have any
3316 # questions.
3317 #
3318 
3319 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3320 # If so, then append $1 to $2 \
3321 # Also set JVM_ARG_OK to true/false depending on outcome.
3322 
3323 
3324 # Appends a string to a path variable, only adding the : when needed.
3325 
3326 
3327 # This will make sure the given variable points to a full and proper
3328 # path. This means:
3329 # 1) There will be no spaces in the path. On posix platforms,
3330 #    spaces in the path will result in an error. On Windows,
3331 #    the path will be rewritten using short-style to be space-free.
3332 # 2) The path will be absolute, and it will be in unix-style (on
3333 #     cygwin).
3334 # $1: The name of the variable to fix
3335 
3336 
3337 # This will make sure the given variable points to a executable
3338 # with a full and proper path. This means:
3339 # 1) There will be no spaces in the path. On posix platforms,
3340 #    spaces in the path will result in an error. On Windows,
3341 #    the path will be rewritten using short-style to be space-free.
3342 # 2) The path will be absolute, and it will be in unix-style (on
3343 #     cygwin).
3344 # Any arguments given to the executable is preserved.
3345 # If the input variable does not have a directory specification, then
3346 # it need to be in the PATH.
3347 # $1: The name of the variable to fix
3348 
3349 
3350 
3351 
3352 # Register a --with argument but mark it as deprecated
3353 # $1: The name of the with argument to deprecate, not including --with-
3354 
3355 
3356 # Register a --enable argument but mark it as deprecated
3357 # $1: The name of the with argument to deprecate, not including --enable-
3358 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3359 
3360 
3361 
3362 
3363 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3364 # $1: variable to check
3365 
3366 
3367 # Check that there are no unprocessed overridden variables left.
3368 # If so, they are an incorrect argument and we will exit with an error.
3369 
3370 
3371 # Setup a tool for the given variable. If correctly specified by the user,
3372 # use that value, otherwise search for the tool using the supplied code snippet.
3373 # $1: variable to set
3374 # $2: code snippet to call to look for the tool
3375 
3376 
3377 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3378 # $1: variable to set
3379 # $2: executable name (or list of names) to look for
3380 
3381 
3382 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3383 # $1: variable to set
3384 # $2: executable name (or list of names) to look for
3385 
3386 
3387 # Like BASIC_PATH_PROGS but fails if no tool was found.
3388 # $1: variable to set
3389 # $2: executable name (or list of names) to look for
3390 
3391 
3392 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3393 # $1: variable to set
3394 # $2: autoconf macro to call to look for the special tool
3395 
3396 
3397 # Setup the most fundamental tools that relies on not much else to set up,
3398 # but is used by much of the early bootstrap code.
3399 
3400 
3401 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3402 
3403 
3404 
3405 
3406 
3407 
3408 
3409 #%%% Simple tools %%%
3410 
3411 # Check if we have found a usable version of make
3412 # $1: the path to a potential make binary (or empty)
3413 # $2: the description on how we found this
3414 
3415 
3416 # Goes looking for a usable version of GNU make.
3417 
3418 
3419 
3420 
3421 
3422 
3423 # Check if build directory is on local disk. If not possible to determine,
3424 # we prefer to claim it's local.
3425 # Argument 1: directory to test
3426 # Argument 2: what to do if it is on local disk
3427 # Argument 3: what to do otherwise (remote disk or failure)
3428 
3429 
3430 # Check that source files have basic read permissions set. This might
3431 # not be the case in cygwin in certain conditions.
3432 
3433 
3434 
3435 
3436 #
3437 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3438 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3439 #
3440 # This code is free software; you can redistribute it and/or modify it
3441 # under the terms of the GNU General Public License version 2 only, as
3442 # published by the Free Software Foundation.  Oracle designates this
3443 # particular file as subject to the "Classpath" exception as provided
3444 # by Oracle in the LICENSE file that accompanied this code.
3445 #
3446 # This code is distributed in the hope that it will be useful, but WITHOUT
3447 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3448 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3449 # version 2 for more details (a copy is included in the LICENSE file that
3450 # accompanied this code).
3451 #
3452 # You should have received a copy of the GNU General Public License version
3453 # 2 along with this work; if not, write to the Free Software Foundation,
3454 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3455 #
3456 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3457 # or visit www.oracle.com if you need additional information or have any
3458 # questions.
3459 #
3460 
3461 
3462 
3463 
3464 
3465 # Helper function which possibly converts a path using DOS-style short mode.
3466 # If so, the updated path is stored in $new_path.
3467 # $1: The path to check
3468 
3469 
3470 # Helper function which possibly converts a path using DOS-style short mode.
3471 # If so, the updated path is stored in $new_path.
3472 # $1: The path to check
3473 
3474 
3475 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3476 # and could probably be heavily simplified. However, all changes in this
3477 # area tend to need lot of testing in different scenarios, and in lack of
3478 # proper unit testing, cleaning this up has not been deemed worth the effort
3479 # at the moment.
3480 
3481 
3482 
3483 
3484 
3485 
3486 
3487 
3488 
3489 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3490 
3491 
3492 
3493 
3494 #
3495 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3496 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3497 #
3498 # This code is free software; you can redistribute it and/or modify it
3499 # under the terms of the GNU General Public License version 2 only, as
3500 # published by the Free Software Foundation.  Oracle designates this
3501 # particular file as subject to the "Classpath" exception as provided
3502 # by Oracle in the LICENSE file that accompanied this code.
3503 #
3504 # This code is distributed in the hope that it will be useful, but WITHOUT
3505 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3506 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3507 # version 2 for more details (a copy is included in the LICENSE file that
3508 # accompanied this code).
3509 #
3510 # You should have received a copy of the GNU General Public License version
3511 # 2 along with this work; if not, write to the Free Software Foundation,
3512 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3513 #
3514 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3515 # or visit www.oracle.com if you need additional information or have any
3516 # questions.
3517 #
3518 
3519 
3520 
3521 
3522 
3523 
3524 
3525 
3526 
3527 
3528 
3529 # ... then the rest
3530 #
3531 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3532 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3533 #
3534 # This code is free software; you can redistribute it and/or modify it
3535 # under the terms of the GNU General Public License version 2 only, as
3536 # published by the Free Software Foundation.  Oracle designates this
3537 # particular file as subject to the "Classpath" exception as provided
3538 # by Oracle in the LICENSE file that accompanied this code.
3539 #
3540 # This code is distributed in the hope that it will be useful, but WITHOUT
3541 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3542 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3543 # version 2 for more details (a copy is included in the LICENSE file that
3544 # accompanied this code).
3545 #
3546 # You should have received a copy of the GNU General Public License version
3547 # 2 along with this work; if not, write to the Free Software Foundation,
3548 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3549 #
3550 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3551 # or visit www.oracle.com if you need additional information or have any
3552 # questions.
3553 #
3554 
3555 ########################################################################
3556 # This file handles detection of the Boot JDK. The Boot JDK detection
3557 # process has been developed as a response to solve a complex real-world
3558 # problem. Initially, it was simple, but it has grown as platform after
3559 # platform, idiosyncracy after idiosyncracy has been supported.
3560 #
3561 # The basic idea is this:
3562 # 1) You need an acceptable *) JDK to use as a Boot JDK
3563 # 2) There are several ways to locate a JDK, that are mostly platform
3564 #    dependent **)
3565 # 3) You can have multiple JDKs installed
3566 # 4) If possible, configure should try to dig out an acceptable JDK
3567 #    automatically, without having to resort to command-line options
3568 #
3569 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3570 #     javac) and not a JRE, etc.
3571 #
3572 # **) On Windows we typically use a well-known path.
3573 #     On MacOSX we typically use the tool java_home.
3574 #     On Linux we typically find javac in the $PATH, and then follow a
3575 #     chain of symlinks that often ends up in a real JDK.
3576 #
3577 # This leads to the code where we check in different ways to locate a
3578 # JDK, and if one is found, check if it is acceptable. If not, we print
3579 # our reasons for rejecting it (useful when debugging non-working
3580 # configure situations) and continue checking the next one.
3581 ########################################################################
3582 
3583 # Execute the check given as argument, and verify the result
3584 # If the Boot JDK was previously found, do nothing
3585 # $1 A command line (typically autoconf macro) to execute
3586 
3587 
3588 # Test: Is bootjdk explicitely set by command line arguments?
3589 
3590 
3591 # Test: Is bootjdk available from builddeps?
3592 
3593 
3594 # Test: Is $JAVA_HOME set?
3595 
3596 
3597 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3598 
3599 
3600 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3601 # $1: Argument to the java_home binary (optional)
3602 
3603 
3604 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3605 
3606 
3607 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3608 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3609 # $1 = Path to directory containing jdk installations.
3610 # $2 = String to append to the found JDK directory to get the proper JDK home
3611 
3612 
3613 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3614 # environmental variable as base for where to look.
3615 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3616 
3617 
3618 # Test: Is there a JDK installed in default, well-known locations?
3619 
3620 
3621 # Check that a command-line tool in the Boot JDK is correct
3622 # $1 = name of variable to assign
3623 # $2 = name of binary
3624 
3625 
3626 ###############################################################################
3627 #
3628 # We need a Boot JDK to bootstrap the build.
3629 #
3630 
3631 
3632 
3633 
3634 
3635 #
3636 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3637 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3638 #
3639 # This code is free software; you can redistribute it and/or modify it
3640 # under the terms of the GNU General Public License version 2 only, as
3641 # published by the Free Software Foundation.  Oracle designates this
3642 # particular file as subject to the "Classpath" exception as provided
3643 # by Oracle in the LICENSE file that accompanied this code.
3644 #
3645 # This code is distributed in the hope that it will be useful, but WITHOUT
3646 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3647 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3648 # version 2 for more details (a copy is included in the LICENSE file that
3649 # accompanied this code).
3650 #
3651 # You should have received a copy of the GNU General Public License version
3652 # 2 along with this work; if not, write to the Free Software Foundation,
3653 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3654 #
3655 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3656 # or visit www.oracle.com if you need additional information or have any
3657 # questions.
3658 #
3659 
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 
3678 
3679 #
3680 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3681 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3682 #
3683 # This code is free software; you can redistribute it and/or modify it
3684 # under the terms of the GNU General Public License version 2 only, as
3685 # published by the Free Software Foundation.  Oracle designates this
3686 # particular file as subject to the "Classpath" exception as provided
3687 # by Oracle in the LICENSE file that accompanied this code.
3688 #
3689 # This code is distributed in the hope that it will be useful, but WITHOUT
3690 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3691 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3692 # version 2 for more details (a copy is included in the LICENSE file that
3693 # accompanied this code).
3694 #
3695 # You should have received a copy of the GNU General Public License version
3696 # 2 along with this work; if not, write to the Free Software Foundation,
3697 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3698 #
3699 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3700 # or visit www.oracle.com if you need additional information or have any
3701 # questions.
3702 #
3703 
3704 
3705 
3706 
3707 
3708 # Documentation on common flags used for solstudio in HIGHEST.
3709 #
3710 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3711 #          done with care, there are some assumptions below that need to
3712 #          be understood about the use of pointers, and IEEE behavior.
3713 #
3714 # -fns: Use non-standard floating point mode (not IEEE 754)
3715 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3716 # -fsingle: Use single precision floating point with 'float'
3717 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3718 #   (Source with excessing pointer casting and data access with mixed
3719 #    pointer types are not recommended)
3720 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3721 #   (If you expect perfect errno behavior, do not use this)
3722 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3723 # -xrestrict: Pointer parameters to functions do not overlap
3724 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3725 #    If you pass in multiple pointers to the same data, do not use this)
3726 # -xlibmil: Inline some library routines
3727 #   (If you expect perfect errno behavior, do not use this)
3728 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3729 #   (If you expect perfect errno behavior, do not use this)
3730 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3731 
3732     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3733     # Bug?
3734     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3735     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3736     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3737     #fi
3738 
3739 
3740 
3741 
3742 
3743 
3744 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3745 #                                   [RUN-IF-FALSE])
3746 # ------------------------------------------------------------
3747 # Check that the c and c++ compilers support an argument
3748 
3749 
3750 
3751 
3752 #
3753 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3754 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3755 #
3756 # This code is free software; you can redistribute it and/or modify it
3757 # under the terms of the GNU General Public License version 2 only, as
3758 # published by the Free Software Foundation.  Oracle designates this
3759 # particular file as subject to the "Classpath" exception as provided
3760 # by Oracle in the LICENSE file that accompanied this code.
3761 #
3762 # This code is distributed in the hope that it will be useful, but WITHOUT
3763 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3764 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3765 # version 2 for more details (a copy is included in the LICENSE file that
3766 # accompanied this code).
3767 #
3768 # You should have received a copy of the GNU General Public License version
3769 # 2 along with this work; if not, write to the Free Software Foundation,
3770 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3771 #
3772 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3773 # or visit www.oracle.com if you need additional information or have any
3774 # questions.
3775 #
3776 
3777 
3778 
3779 
3780 
3781 cygwin_help() {
3782   case $1 in
3783     unzip)
3784       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3785       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3786       ;;
3787     zip)
3788       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3789       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3790       ;;
3791     make)
3792       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3793       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3794       ;;
3795     freetype)
3796       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3797         HELP_MSG="To install freetype, run:
3798 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3799 chmod +x /tmp/freetype-setup.exe
3800 /tmp/freetype-setup.exe
3801 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3802 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3803       else
3804         HELP_MSG="You need to build a 64-bit version of freetype.
3805 This is not readily available.
3806 You can find source code and build instructions on
3807 http://www.freetype.org/
3808 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3809       fi
3810       ;;
3811   esac
3812 }
3813 
3814 msys_help() {
3815   PKGHANDLER_COMMAND=""
3816 }
3817 
3818 apt_help() {
3819   case $1 in
3820     devkit)
3821       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3822     openjdk)
3823       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3824     alsa)
3825       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3826     cups)
3827       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3828     freetype)
3829       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3830     pulse)
3831       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3832     x11)
3833       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3834     ccache)
3835       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3836   esac
3837 }
3838 
3839 yum_help() {
3840   case $1 in
3841     devkit)
3842       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3843     openjdk)
3844       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3845     alsa)
3846       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3847     cups)
3848       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3849     freetype)
3850       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3851     pulse)
3852       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3853     x11)
3854       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3855     ccache)
3856       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3857   esac
3858 }
3859 
3860 port_help() {
3861   PKGHANDLER_COMMAND=""
3862 }
3863 
3864 pkgutil_help() {
3865   PKGHANDLER_COMMAND=""
3866 }
3867 
3868 pkgadd_help() {
3869   PKGHANDLER_COMMAND=""
3870 }
3871 
3872 # This function will check if we're called from the "configure" wrapper while
3873 # printing --help. If so, we will print out additional information that can
3874 # only be extracted within the autoconf script, and then exit. This must be
3875 # called at the very beginning in configure.ac.
3876 
3877 
3878 
3879 
3880 #
3881 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3882 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3883 #
3884 # This code is free software; you can redistribute it and/or modify it
3885 # under the terms of the GNU General Public License version 2 only, as
3886 # published by the Free Software Foundation.  Oracle designates this
3887 # particular file as subject to the "Classpath" exception as provided
3888 # by Oracle in the LICENSE file that accompanied this code.
3889 #
3890 # This code is distributed in the hope that it will be useful, but WITHOUT
3891 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3892 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3893 # version 2 for more details (a copy is included in the LICENSE file that
3894 # accompanied this code).
3895 #
3896 # You should have received a copy of the GNU General Public License version
3897 # 2 along with this work; if not, write to the Free Software Foundation,
3898 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3899 #
3900 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3901 # or visit www.oracle.com if you need additional information or have any
3902 # questions.
3903 #
3904 
3905 
3906 
3907 
3908 
3909 
3910 
3911 
3912 
3913 
3914 ###############################################################################
3915 #
3916 # Should we build only OpenJDK even if closed sources are present?
3917 #
3918 
3919 
3920 
3921 
3922 ###############################################################################
3923 #
3924 # Setup version numbers
3925 #
3926 
3927 
3928 
3929 
3930 
3931 
3932 #
3933 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3934 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3935 #
3936 # This code is free software; you can redistribute it and/or modify it
3937 # under the terms of the GNU General Public License version 2 only, as
3938 # published by the Free Software Foundation.  Oracle designates this
3939 # particular file as subject to the "Classpath" exception as provided
3940 # by Oracle in the LICENSE file that accompanied this code.
3941 #
3942 # This code is distributed in the hope that it will be useful, but WITHOUT
3943 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3944 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3945 # version 2 for more details (a copy is included in the LICENSE file that
3946 # accompanied this code).
3947 #
3948 # You should have received a copy of the GNU General Public License version
3949 # 2 along with this work; if not, write to the Free Software Foundation,
3950 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3951 #
3952 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3953 # or visit www.oracle.com if you need additional information or have any
3954 # questions.
3955 #
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 
3975 #
3976 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3977 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3978 #
3979 # This code is free software; you can redistribute it and/or modify it
3980 # under the terms of the GNU General Public License version 2 only, as
3981 # published by the Free Software Foundation.  Oracle designates this
3982 # particular file as subject to the "Classpath" exception as provided
3983 # by Oracle in the LICENSE file that accompanied this code.
3984 #
3985 # This code is distributed in the hope that it will be useful, but WITHOUT
3986 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3987 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3988 # version 2 for more details (a copy is included in the LICENSE file that
3989 # accompanied this code).
3990 #
3991 # You should have received a copy of the GNU General Public License version
3992 # 2 along with this work; if not, write to the Free Software Foundation,
3993 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3994 #
3995 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3996 # or visit www.oracle.com if you need additional information or have any
3997 # questions.
3998 #
3999 
4000 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4001 # Converts autoconf style CPU name to OpenJDK style, into
4002 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4003 
4004 
4005 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4006 # Converts autoconf style OS name to OpenJDK style, into
4007 # VAR_OS and VAR_OS_API.
4008 
4009 
4010 # Expects $host_os $host_cpu $build_os and $build_cpu
4011 # and $with_target_bits to have been setup!
4012 #
4013 # Translate the standard triplet(quadruplet) definition
4014 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4015 # OPENJDK_BUILD_OS, etc.
4016 
4017 
4018 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4019 # accordingly. Must be done after setting up build and target system, but before
4020 # doing anything else with these values.
4021 
4022 
4023 # Setup the legacy variables, for controlling the old makefiles.
4024 #
4025 
4026 
4027 
4028 
4029 #%%% Build and target systems %%%
4030 
4031 
4032 
4033 
4034 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4035 # Add -mX to various FLAGS variables.
4036 
4037 
4038 
4039 
4040 
4041 
4042 #
4043 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4044 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4045 #
4046 # This code is free software; you can redistribute it and/or modify it
4047 # under the terms of the GNU General Public License version 2 only, as
4048 # published by the Free Software Foundation.  Oracle designates this
4049 # particular file as subject to the "Classpath" exception as provided
4050 # by Oracle in the LICENSE file that accompanied this code.
4051 #
4052 # This code is distributed in the hope that it will be useful, but WITHOUT
4053 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4054 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4055 # version 2 for more details (a copy is included in the LICENSE file that
4056 # accompanied this code).
4057 #
4058 # You should have received a copy of the GNU General Public License version
4059 # 2 along with this work; if not, write to the Free Software Foundation,
4060 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4061 #
4062 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4063 # or visit www.oracle.com if you need additional information or have any
4064 # questions.
4065 #
4066 
4067 
4068 
4069 
4070 
4071 
4072 
4073 
4074 #
4075 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4076 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4077 #
4078 # This code is free software; you can redistribute it and/or modify it
4079 # under the terms of the GNU General Public License version 2 only, as
4080 # published by the Free Software Foundation.  Oracle designates this
4081 # particular file as subject to the "Classpath" exception as provided
4082 # by Oracle in the LICENSE file that accompanied this code.
4083 #
4084 # This code is distributed in the hope that it will be useful, but WITHOUT
4085 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4086 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4087 # version 2 for more details (a copy is included in the LICENSE file that
4088 # accompanied this code).
4089 #
4090 # You should have received a copy of the GNU General Public License version
4091 # 2 along with this work; if not, write to the Free Software Foundation,
4092 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4093 #
4094 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4095 # or visit www.oracle.com if you need additional information or have any
4096 # questions.
4097 #
4098 
4099 ########################################################################
4100 # This file is responsible for detecting, verifying and setting up the
4101 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4102 # proper paths to the binaries, but it will not setup any flags.
4103 #
4104 # The binaries used is determined by the toolchain type, which is the family of
4105 # compilers and related tools that are used.
4106 ########################################################################
4107 
4108 
4109 # All valid toolchains, regardless of platform (used by help.m4)
4110 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4111 
4112 # These toolchains are valid on different platforms
4113 VALID_TOOLCHAINS_linux="gcc clang"
4114 VALID_TOOLCHAINS_solaris="solstudio"
4115 VALID_TOOLCHAINS_macosx="gcc clang"
4116 VALID_TOOLCHAINS_aix="xlc"
4117 VALID_TOOLCHAINS_windows="microsoft"
4118 
4119 # Toolchain descriptions
4120 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4121 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4122 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4123 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4124 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4125 
4126 # Setup a number of variables describing how native output files are
4127 # named on this platform/toolchain.
4128 
4129 
4130 # Determine which toolchain type to use, and make sure it is valid for this
4131 # platform. Setup various information about the selected toolchain.
4132 
4133 
4134 # Before we start detecting the toolchain executables, we might need some
4135 # special setup, e.g. additional paths etc.
4136 
4137 
4138 # Restore path, etc
4139 
4140 
4141 # Check if a compiler is of the toolchain type we expect, and save the version
4142 # information from it. If the compiler does not match the expected type,
4143 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4144 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4145 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4146 #
4147 # $1 = compiler to test (CC or CXX)
4148 # $2 = human readable name of compiler (C or C++)
4149 
4150 
4151 # Try to locate the given C or C++ compiler in the path, or otherwise.
4152 #
4153 # $1 = compiler to test (CC or CXX)
4154 # $2 = human readable name of compiler (C or C++)
4155 # $3 = list of compiler names to search for
4156 
4157 
4158 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4159 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4160 # archiver (AR). Verify that the compilers are correct according to the
4161 # toolchain type.
4162 
4163 
4164 # Setup additional tools that is considered a part of the toolchain, but not the
4165 # core part. Many of these are highly platform-specific and do not exist,
4166 # and/or are not needed on all platforms.
4167 
4168 
4169 # Setup the build tools (i.e, the compiler and linker used to build programs
4170 # that should be run on the build platform, not the target platform, as a build
4171 # helper). Since the non-cross-compile case uses the normal, target compilers
4172 # for this, we can only do this after these have been setup.
4173 
4174 
4175 # Setup legacy variables that are still needed as alternative ways to refer to
4176 # parts of the toolchain.
4177 
4178 
4179 # Do some additional checks on the detected tools.
4180 
4181 
4182 # Setup the JTReg Regression Test Harness.
4183 
4184 
4185 #
4186 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4187 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4188 #
4189 # This code is free software; you can redistribute it and/or modify it
4190 # under the terms of the GNU General Public License version 2 only, as
4191 # published by the Free Software Foundation.  Oracle designates this
4192 # particular file as subject to the "Classpath" exception as provided
4193 # by Oracle in the LICENSE file that accompanied this code.
4194 #
4195 # This code is distributed in the hope that it will be useful, but WITHOUT
4196 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4197 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4198 # version 2 for more details (a copy is included in the LICENSE file that
4199 # accompanied this code).
4200 #
4201 # You should have received a copy of the GNU General Public License version
4202 # 2 along with this work; if not, write to the Free Software Foundation,
4203 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4204 #
4205 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4206 # or visit www.oracle.com if you need additional information or have any
4207 # questions.
4208 #
4209 
4210 
4211 
4212 
4213 
4214 
4215 
4216 # Check if the VS env variables were setup prior to running configure.
4217 # If not, then find vcvarsall.bat and run it automatically, and integrate
4218 # the set env variables into the spec file.
4219 
4220 
4221 
4222 
4223 
4224 
4225 
4226 
4227 
4228 
4229 # This line needs to be here, verbatim, after all includes and the dummy hook
4230 # definitions. It is replaced with custom functionality when building
4231 # custom sources.
4232 #CUSTOM_AUTOCONF_INCLUDE
4233 
4234 # Do not change or remove the following line, it is needed for consistency checks:
4235 DATE_WHEN_GENERATED=1395358435
4236 
4237 ###############################################################################
4238 #
4239 # Initialization / Boot-strapping
4240 #
4241 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4242 # thus it jumps back and forth, each time gaining something needed later on.
4243 #
4244 ###############################################################################
4245 
4246 # If we are requested to print additional help, do that and then exit.
4247 # This must be the very first call.
4248 
4249   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4250     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4251     $PRINTF "Which are valid to use depends on the build platform.\n"
4252     for toolchain in $VALID_TOOLCHAINS_all; do
4253       # Use indirect variable referencing
4254       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4255       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4256       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4257     done
4258 
4259     # And now exit directly
4260     exit 0
4261   fi
4262 
4263 
4264 # Basic initialization that must happen first of all in the normal process.
4265 
4266   # Save the original command line. This is passed to us by the wrapper configure script.
4267 
4268   DATE_WHEN_CONFIGURED=`LANG=C date`
4269 
4270   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4271 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4272   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4273 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4274 
4275 
4276   # Start with tools that do not need have cross compilation support
4277   # and can be expected to be found in the default PATH. These tools are
4278   # used by configure. Nor are these tools expected to be found in the
4279   # devkit from the builddeps server either, since they are
4280   # needed to download the devkit.
4281 
4282   # First are all the simple required tools.
4283 
4284 
4285 
4286   # Publish this variable in the help.
4287 
4288 
4289   if test "x$BASENAME" = x; then
4290     # The variable is not set by user, try to locate tool using the code snippet
4291     for ac_prog in basename
4292 do
4293   # Extract the first word of "$ac_prog", so it can be a program name with args.
4294 set dummy $ac_prog; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if ${ac_cv_path_BASENAME+:} false; then :
4298   $as_echo_n "(cached) " >&6
4299 else
4300   case $BASENAME in
4301   [\\/]* | ?:[\\/]*)
4302   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4303   ;;
4304   *)
4305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310     for ac_exec_ext in '' $ac_executable_extensions; do
4311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4312     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317   done
4318 IFS=$as_save_IFS
4319 
4320   ;;
4321 esac
4322 fi
4323 BASENAME=$ac_cv_path_BASENAME
4324 if test -n "$BASENAME"; then
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4326 $as_echo "$BASENAME" >&6; }
4327 else
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 fi
4331 
4332 
4333   test -n "$BASENAME" && break
4334 done
4335 
4336   else
4337     # The variable is set, but is it from the command line or the environment?
4338 
4339     # Try to remove the string !BASENAME! from our list.
4340     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4341     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4342       # If it failed, the variable was not from the command line. Ignore it,
4343       # but warn the user (except for BASH, which is always set by the calling BASH).
4344       if test "xBASENAME" != xBASH; then
4345         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4346 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4347       fi
4348       # Try to locate tool using the code snippet
4349       for ac_prog in basename
4350 do
4351   # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if ${ac_cv_path_BASENAME+:} false; then :
4356   $as_echo_n "(cached) " >&6
4357 else
4358   case $BASENAME in
4359   [\\/]* | ?:[\\/]*)
4360   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4361   ;;
4362   *)
4363   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4364 for as_dir in $PATH
4365 do
4366   IFS=$as_save_IFS
4367   test -z "$as_dir" && as_dir=.
4368     for ac_exec_ext in '' $ac_executable_extensions; do
4369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4370     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4372     break 2
4373   fi
4374 done
4375   done
4376 IFS=$as_save_IFS
4377 
4378   ;;
4379 esac
4380 fi
4381 BASENAME=$ac_cv_path_BASENAME
4382 if test -n "$BASENAME"; then
4383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4384 $as_echo "$BASENAME" >&6; }
4385 else
4386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4388 fi
4389 
4390 
4391   test -n "$BASENAME" && break
4392 done
4393 
4394     else
4395       # If it succeeded, then it was overridden by the user. We will use it
4396       # for the tool.
4397 
4398       # First remove it from the list of overridden variables, so we can test
4399       # for unknown variables in the end.
4400       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4401 
4402       # Check if the provided tool contains a complete path.
4403       tool_specified="$BASENAME"
4404       tool_basename="${tool_specified##*/}"
4405       if test "x$tool_basename" = "x$tool_specified"; then
4406         # A command without a complete path is provided, search $PATH.
4407         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4408 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4409         # Extract the first word of "$tool_basename", so it can be a program name with args.
4410 set dummy $tool_basename; ac_word=$2
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4412 $as_echo_n "checking for $ac_word... " >&6; }
4413 if ${ac_cv_path_BASENAME+:} false; then :
4414   $as_echo_n "(cached) " >&6
4415 else
4416   case $BASENAME in
4417   [\\/]* | ?:[\\/]*)
4418   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4419   ;;
4420   *)
4421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4423 do
4424   IFS=$as_save_IFS
4425   test -z "$as_dir" && as_dir=.
4426     for ac_exec_ext in '' $ac_executable_extensions; do
4427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4428     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430     break 2
4431   fi
4432 done
4433   done
4434 IFS=$as_save_IFS
4435 
4436   ;;
4437 esac
4438 fi
4439 BASENAME=$ac_cv_path_BASENAME
4440 if test -n "$BASENAME"; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4442 $as_echo "$BASENAME" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446 fi
4447 
4448 
4449         if test "x$BASENAME" = x; then
4450           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4451         fi
4452       else
4453         # Otherwise we believe it is a complete path. Use it as it is.
4454         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4455 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4456         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4457 $as_echo_n "checking for BASENAME... " >&6; }
4458         if test ! -x "$tool_specified"; then
4459           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4460 $as_echo "not found" >&6; }
4461           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4462         fi
4463         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4464 $as_echo "$tool_specified" >&6; }
4465       fi
4466     fi
4467   fi
4468 
4469 
4470 
4471   if test "x$BASENAME" = x; then
4472     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4473   fi
4474 
4475 
4476 
4477 
4478 
4479   # Publish this variable in the help.
4480 
4481 
4482   if test "x$BASH" = x; then
4483     # The variable is not set by user, try to locate tool using the code snippet
4484     for ac_prog in bash
4485 do
4486   # Extract the first word of "$ac_prog", so it can be a program name with args.
4487 set dummy $ac_prog; ac_word=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_path_BASH+:} false; then :
4491   $as_echo_n "(cached) " >&6
4492 else
4493   case $BASH in
4494   [\\/]* | ?:[\\/]*)
4495   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4496   ;;
4497   *)
4498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510   done
4511 IFS=$as_save_IFS
4512 
4513   ;;
4514 esac
4515 fi
4516 BASH=$ac_cv_path_BASH
4517 if test -n "$BASH"; then
4518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4519 $as_echo "$BASH" >&6; }
4520 else
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4522 $as_echo "no" >&6; }
4523 fi
4524 
4525 
4526   test -n "$BASH" && break
4527 done
4528 
4529   else
4530     # The variable is set, but is it from the command line or the environment?
4531 
4532     # Try to remove the string !BASH! from our list.
4533     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4534     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4535       # If it failed, the variable was not from the command line. Ignore it,
4536       # but warn the user (except for BASH, which is always set by the calling BASH).
4537       if test "xBASH" != xBASH; then
4538         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4539 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4540       fi
4541       # Try to locate tool using the code snippet
4542       for ac_prog in bash
4543 do
4544   # Extract the first word of "$ac_prog", so it can be a program name with args.
4545 set dummy $ac_prog; ac_word=$2
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547 $as_echo_n "checking for $ac_word... " >&6; }
4548 if ${ac_cv_path_BASH+:} false; then :
4549   $as_echo_n "(cached) " >&6
4550 else
4551   case $BASH in
4552   [\\/]* | ?:[\\/]*)
4553   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4554   ;;
4555   *)
4556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568   done
4569 IFS=$as_save_IFS
4570 
4571   ;;
4572 esac
4573 fi
4574 BASH=$ac_cv_path_BASH
4575 if test -n "$BASH"; then
4576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4577 $as_echo "$BASH" >&6; }
4578 else
4579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582 
4583 
4584   test -n "$BASH" && break
4585 done
4586 
4587     else
4588       # If it succeeded, then it was overridden by the user. We will use it
4589       # for the tool.
4590 
4591       # First remove it from the list of overridden variables, so we can test
4592       # for unknown variables in the end.
4593       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4594 
4595       # Check if the provided tool contains a complete path.
4596       tool_specified="$BASH"
4597       tool_basename="${tool_specified##*/}"
4598       if test "x$tool_basename" = "x$tool_specified"; then
4599         # A command without a complete path is provided, search $PATH.
4600         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4601 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4602         # Extract the first word of "$tool_basename", so it can be a program name with args.
4603 set dummy $tool_basename; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if ${ac_cv_path_BASH+:} false; then :
4607   $as_echo_n "(cached) " >&6
4608 else
4609   case $BASH in
4610   [\\/]* | ?:[\\/]*)
4611   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4612   ;;
4613   *)
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_exec_ext in '' $ac_executable_extensions; do
4620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626   done
4627 IFS=$as_save_IFS
4628 
4629   ;;
4630 esac
4631 fi
4632 BASH=$ac_cv_path_BASH
4633 if test -n "$BASH"; then
4634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4635 $as_echo "$BASH" >&6; }
4636 else
4637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4639 fi
4640 
4641 
4642         if test "x$BASH" = x; then
4643           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4644         fi
4645       else
4646         # Otherwise we believe it is a complete path. Use it as it is.
4647         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4648 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4649         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4650 $as_echo_n "checking for BASH... " >&6; }
4651         if test ! -x "$tool_specified"; then
4652           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4653 $as_echo "not found" >&6; }
4654           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4655         fi
4656         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4657 $as_echo "$tool_specified" >&6; }
4658       fi
4659     fi
4660   fi
4661 
4662 
4663 
4664   if test "x$BASH" = x; then
4665     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4666   fi
4667 
4668 
4669 
4670 
4671 
4672   # Publish this variable in the help.
4673 
4674 
4675   if test "x$CAT" = x; then
4676     # The variable is not set by user, try to locate tool using the code snippet
4677     for ac_prog in cat
4678 do
4679   # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if ${ac_cv_path_CAT+:} false; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   case $CAT in
4687   [\\/]* | ?:[\\/]*)
4688   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4689   ;;
4690   *)
4691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694   IFS=$as_save_IFS
4695   test -z "$as_dir" && as_dir=.
4696     for ac_exec_ext in '' $ac_executable_extensions; do
4697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700     break 2
4701   fi
4702 done
4703   done
4704 IFS=$as_save_IFS
4705 
4706   ;;
4707 esac
4708 fi
4709 CAT=$ac_cv_path_CAT
4710 if test -n "$CAT"; then
4711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4712 $as_echo "$CAT" >&6; }
4713 else
4714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 $as_echo "no" >&6; }
4716 fi
4717 
4718 
4719   test -n "$CAT" && break
4720 done
4721 
4722   else
4723     # The variable is set, but is it from the command line or the environment?
4724 
4725     # Try to remove the string !CAT! from our list.
4726     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4727     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4728       # If it failed, the variable was not from the command line. Ignore it,
4729       # but warn the user (except for BASH, which is always set by the calling BASH).
4730       if test "xCAT" != xBASH; then
4731         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4732 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4733       fi
4734       # Try to locate tool using the code snippet
4735       for ac_prog in cat
4736 do
4737   # Extract the first word of "$ac_prog", so it can be a program name with args.
4738 set dummy $ac_prog; ac_word=$2
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740 $as_echo_n "checking for $ac_word... " >&6; }
4741 if ${ac_cv_path_CAT+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744   case $CAT in
4745   [\\/]* | ?:[\\/]*)
4746   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4747   ;;
4748   *)
4749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 for as_dir in $PATH
4751 do
4752   IFS=$as_save_IFS
4753   test -z "$as_dir" && as_dir=.
4754     for ac_exec_ext in '' $ac_executable_extensions; do
4755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4756     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758     break 2
4759   fi
4760 done
4761   done
4762 IFS=$as_save_IFS
4763 
4764   ;;
4765 esac
4766 fi
4767 CAT=$ac_cv_path_CAT
4768 if test -n "$CAT"; then
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4770 $as_echo "$CAT" >&6; }
4771 else
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 $as_echo "no" >&6; }
4774 fi
4775 
4776 
4777   test -n "$CAT" && break
4778 done
4779 
4780     else
4781       # If it succeeded, then it was overridden by the user. We will use it
4782       # for the tool.
4783 
4784       # First remove it from the list of overridden variables, so we can test
4785       # for unknown variables in the end.
4786       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4787 
4788       # Check if the provided tool contains a complete path.
4789       tool_specified="$CAT"
4790       tool_basename="${tool_specified##*/}"
4791       if test "x$tool_basename" = "x$tool_specified"; then
4792         # A command without a complete path is provided, search $PATH.
4793         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4794 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4795         # Extract the first word of "$tool_basename", so it can be a program name with args.
4796 set dummy $tool_basename; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if ${ac_cv_path_CAT+:} false; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   case $CAT in
4803   [\\/]* | ?:[\\/]*)
4804   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4805   ;;
4806   *)
4807   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4809 do
4810   IFS=$as_save_IFS
4811   test -z "$as_dir" && as_dir=.
4812     for ac_exec_ext in '' $ac_executable_extensions; do
4813   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4815     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819   done
4820 IFS=$as_save_IFS
4821 
4822   ;;
4823 esac
4824 fi
4825 CAT=$ac_cv_path_CAT
4826 if test -n "$CAT"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4828 $as_echo "$CAT" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833 
4834 
4835         if test "x$CAT" = x; then
4836           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4837         fi
4838       else
4839         # Otherwise we believe it is a complete path. Use it as it is.
4840         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4841 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4842         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4843 $as_echo_n "checking for CAT... " >&6; }
4844         if test ! -x "$tool_specified"; then
4845           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4846 $as_echo "not found" >&6; }
4847           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4848         fi
4849         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4850 $as_echo "$tool_specified" >&6; }
4851       fi
4852     fi
4853   fi
4854 
4855 
4856 
4857   if test "x$CAT" = x; then
4858     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4859   fi
4860 
4861 
4862 
4863 
4864 
4865   # Publish this variable in the help.
4866 
4867 
4868   if test "x$CHMOD" = x; then
4869     # The variable is not set by user, try to locate tool using the code snippet
4870     for ac_prog in chmod
4871 do
4872   # Extract the first word of "$ac_prog", so it can be a program name with args.
4873 set dummy $ac_prog; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if ${ac_cv_path_CHMOD+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   case $CHMOD in
4880   [\\/]* | ?:[\\/]*)
4881   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4882   ;;
4883   *)
4884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889     for ac_exec_ext in '' $ac_executable_extensions; do
4890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4891     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893     break 2
4894   fi
4895 done
4896   done
4897 IFS=$as_save_IFS
4898 
4899   ;;
4900 esac
4901 fi
4902 CHMOD=$ac_cv_path_CHMOD
4903 if test -n "$CHMOD"; then
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4905 $as_echo "$CHMOD" >&6; }
4906 else
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4908 $as_echo "no" >&6; }
4909 fi
4910 
4911 
4912   test -n "$CHMOD" && break
4913 done
4914 
4915   else
4916     # The variable is set, but is it from the command line or the environment?
4917 
4918     # Try to remove the string !CHMOD! from our list.
4919     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4920     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4921       # If it failed, the variable was not from the command line. Ignore it,
4922       # but warn the user (except for BASH, which is always set by the calling BASH).
4923       if test "xCHMOD" != xBASH; then
4924         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4925 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4926       fi
4927       # Try to locate tool using the code snippet
4928       for ac_prog in chmod
4929 do
4930   # Extract the first word of "$ac_prog", so it can be a program name with args.
4931 set dummy $ac_prog; ac_word=$2
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 $as_echo_n "checking for $ac_word... " >&6; }
4934 if ${ac_cv_path_CHMOD+:} false; then :
4935   $as_echo_n "(cached) " >&6
4936 else
4937   case $CHMOD in
4938   [\\/]* | ?:[\\/]*)
4939   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4940   ;;
4941   *)
4942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH
4944 do
4945   IFS=$as_save_IFS
4946   test -z "$as_dir" && as_dir=.
4947     for ac_exec_ext in '' $ac_executable_extensions; do
4948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4949     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951     break 2
4952   fi
4953 done
4954   done
4955 IFS=$as_save_IFS
4956 
4957   ;;
4958 esac
4959 fi
4960 CHMOD=$ac_cv_path_CHMOD
4961 if test -n "$CHMOD"; then
4962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4963 $as_echo "$CHMOD" >&6; }
4964 else
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966 $as_echo "no" >&6; }
4967 fi
4968 
4969 
4970   test -n "$CHMOD" && break
4971 done
4972 
4973     else
4974       # If it succeeded, then it was overridden by the user. We will use it
4975       # for the tool.
4976 
4977       # First remove it from the list of overridden variables, so we can test
4978       # for unknown variables in the end.
4979       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4980 
4981       # Check if the provided tool contains a complete path.
4982       tool_specified="$CHMOD"
4983       tool_basename="${tool_specified##*/}"
4984       if test "x$tool_basename" = "x$tool_specified"; then
4985         # A command without a complete path is provided, search $PATH.
4986         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4987 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4988         # Extract the first word of "$tool_basename", so it can be a program name with args.
4989 set dummy $tool_basename; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CHMOD+:} false; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $CHMOD in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014 
5015   ;;
5016 esac
5017 fi
5018 CHMOD=$ac_cv_path_CHMOD
5019 if test -n "$CHMOD"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5021 $as_echo "$CHMOD" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026 
5027 
5028         if test "x$CHMOD" = x; then
5029           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5030         fi
5031       else
5032         # Otherwise we believe it is a complete path. Use it as it is.
5033         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5034 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5036 $as_echo_n "checking for CHMOD... " >&6; }
5037         if test ! -x "$tool_specified"; then
5038           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5039 $as_echo "not found" >&6; }
5040           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5041         fi
5042         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5043 $as_echo "$tool_specified" >&6; }
5044       fi
5045     fi
5046   fi
5047 
5048 
5049 
5050   if test "x$CHMOD" = x; then
5051     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5052   fi
5053 
5054 
5055 
5056 
5057 
5058   # Publish this variable in the help.
5059 
5060 
5061   if test "x$CMP" = x; then
5062     # The variable is not set by user, try to locate tool using the code snippet
5063     for ac_prog in cmp
5064 do
5065   # Extract the first word of "$ac_prog", so it can be a program name with args.
5066 set dummy $ac_prog; ac_word=$2
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068 $as_echo_n "checking for $ac_word... " >&6; }
5069 if ${ac_cv_path_CMP+:} false; then :
5070   $as_echo_n "(cached) " >&6
5071 else
5072   case $CMP in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082     for ac_exec_ext in '' $ac_executable_extensions; do
5083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089   done
5090 IFS=$as_save_IFS
5091 
5092   ;;
5093 esac
5094 fi
5095 CMP=$ac_cv_path_CMP
5096 if test -n "$CMP"; then
5097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5098 $as_echo "$CMP" >&6; }
5099 else
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 fi
5103 
5104 
5105   test -n "$CMP" && break
5106 done
5107 
5108   else
5109     # The variable is set, but is it from the command line or the environment?
5110 
5111     # Try to remove the string !CMP! from our list.
5112     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5113     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5114       # If it failed, the variable was not from the command line. Ignore it,
5115       # but warn the user (except for BASH, which is always set by the calling BASH).
5116       if test "xCMP" != xBASH; then
5117         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5118 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5119       fi
5120       # Try to locate tool using the code snippet
5121       for ac_prog in cmp
5122 do
5123   # Extract the first word of "$ac_prog", so it can be a program name with args.
5124 set dummy $ac_prog; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_path_CMP+:} false; then :
5128   $as_echo_n "(cached) " >&6
5129 else
5130   case $CMP in
5131   [\\/]* | ?:[\\/]*)
5132   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5133   ;;
5134   *)
5135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138   IFS=$as_save_IFS
5139   test -z "$as_dir" && as_dir=.
5140     for ac_exec_ext in '' $ac_executable_extensions; do
5141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5142     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144     break 2
5145   fi
5146 done
5147   done
5148 IFS=$as_save_IFS
5149 
5150   ;;
5151 esac
5152 fi
5153 CMP=$ac_cv_path_CMP
5154 if test -n "$CMP"; then
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5156 $as_echo "$CMP" >&6; }
5157 else
5158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5160 fi
5161 
5162 
5163   test -n "$CMP" && break
5164 done
5165 
5166     else
5167       # If it succeeded, then it was overridden by the user. We will use it
5168       # for the tool.
5169 
5170       # First remove it from the list of overridden variables, so we can test
5171       # for unknown variables in the end.
5172       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5173 
5174       # Check if the provided tool contains a complete path.
5175       tool_specified="$CMP"
5176       tool_basename="${tool_specified##*/}"
5177       if test "x$tool_basename" = "x$tool_specified"; then
5178         # A command without a complete path is provided, search $PATH.
5179         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5180 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5181         # Extract the first word of "$tool_basename", so it can be a program name with args.
5182 set dummy $tool_basename; ac_word=$2
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184 $as_echo_n "checking for $ac_word... " >&6; }
5185 if ${ac_cv_path_CMP+:} false; then :
5186   $as_echo_n "(cached) " >&6
5187 else
5188   case $CMP in
5189   [\\/]* | ?:[\\/]*)
5190   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5191   ;;
5192   *)
5193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5195 do
5196   IFS=$as_save_IFS
5197   test -z "$as_dir" && as_dir=.
5198     for ac_exec_ext in '' $ac_executable_extensions; do
5199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202     break 2
5203   fi
5204 done
5205   done
5206 IFS=$as_save_IFS
5207 
5208   ;;
5209 esac
5210 fi
5211 CMP=$ac_cv_path_CMP
5212 if test -n "$CMP"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5214 $as_echo "$CMP" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219 
5220 
5221         if test "x$CMP" = x; then
5222           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5223         fi
5224       else
5225         # Otherwise we believe it is a complete path. Use it as it is.
5226         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5227 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5228         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5229 $as_echo_n "checking for CMP... " >&6; }
5230         if test ! -x "$tool_specified"; then
5231           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5232 $as_echo "not found" >&6; }
5233           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5234         fi
5235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5236 $as_echo "$tool_specified" >&6; }
5237       fi
5238     fi
5239   fi
5240 
5241 
5242 
5243   if test "x$CMP" = x; then
5244     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5245   fi
5246 
5247 
5248 
5249 
5250 
5251   # Publish this variable in the help.
5252 
5253 
5254   if test "x$COMM" = x; then
5255     # The variable is not set by user, try to locate tool using the code snippet
5256     for ac_prog in comm
5257 do
5258   # Extract the first word of "$ac_prog", so it can be a program name with args.
5259 set dummy $ac_prog; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if ${ac_cv_path_COMM+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   case $COMM in
5266   [\\/]* | ?:[\\/]*)
5267   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5268   ;;
5269   *)
5270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273   IFS=$as_save_IFS
5274   test -z "$as_dir" && as_dir=.
5275     for ac_exec_ext in '' $ac_executable_extensions; do
5276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279     break 2
5280   fi
5281 done
5282   done
5283 IFS=$as_save_IFS
5284 
5285   ;;
5286 esac
5287 fi
5288 COMM=$ac_cv_path_COMM
5289 if test -n "$COMM"; then
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5291 $as_echo "$COMM" >&6; }
5292 else
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5294 $as_echo "no" >&6; }
5295 fi
5296 
5297 
5298   test -n "$COMM" && break
5299 done
5300 
5301   else
5302     # The variable is set, but is it from the command line or the environment?
5303 
5304     # Try to remove the string !COMM! from our list.
5305     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5306     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5307       # If it failed, the variable was not from the command line. Ignore it,
5308       # but warn the user (except for BASH, which is always set by the calling BASH).
5309       if test "xCOMM" != xBASH; then
5310         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5311 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5312       fi
5313       # Try to locate tool using the code snippet
5314       for ac_prog in comm
5315 do
5316   # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_COMM+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $COMM in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342 
5343   ;;
5344 esac
5345 fi
5346 COMM=$ac_cv_path_COMM
5347 if test -n "$COMM"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5349 $as_echo "$COMM" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354 
5355 
5356   test -n "$COMM" && break
5357 done
5358 
5359     else
5360       # If it succeeded, then it was overridden by the user. We will use it
5361       # for the tool.
5362 
5363       # First remove it from the list of overridden variables, so we can test
5364       # for unknown variables in the end.
5365       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5366 
5367       # Check if the provided tool contains a complete path.
5368       tool_specified="$COMM"
5369       tool_basename="${tool_specified##*/}"
5370       if test "x$tool_basename" = "x$tool_specified"; then
5371         # A command without a complete path is provided, search $PATH.
5372         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5373 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5374         # Extract the first word of "$tool_basename", so it can be a program name with args.
5375 set dummy $tool_basename; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_path_COMM+:} false; then :
5379   $as_echo_n "(cached) " >&6
5380 else
5381   case $COMM in
5382   [\\/]* | ?:[\\/]*)
5383   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5384   ;;
5385   *)
5386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH
5388 do
5389   IFS=$as_save_IFS
5390   test -z "$as_dir" && as_dir=.
5391     for ac_exec_ext in '' $ac_executable_extensions; do
5392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5393     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395     break 2
5396   fi
5397 done
5398   done
5399 IFS=$as_save_IFS
5400 
5401   ;;
5402 esac
5403 fi
5404 COMM=$ac_cv_path_COMM
5405 if test -n "$COMM"; then
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5407 $as_echo "$COMM" >&6; }
5408 else
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5411 fi
5412 
5413 
5414         if test "x$COMM" = x; then
5415           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5416         fi
5417       else
5418         # Otherwise we believe it is a complete path. Use it as it is.
5419         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5420 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5421         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5422 $as_echo_n "checking for COMM... " >&6; }
5423         if test ! -x "$tool_specified"; then
5424           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5425 $as_echo "not found" >&6; }
5426           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5427         fi
5428         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5429 $as_echo "$tool_specified" >&6; }
5430       fi
5431     fi
5432   fi
5433 
5434 
5435 
5436   if test "x$COMM" = x; then
5437     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5438   fi
5439 
5440 
5441 
5442 
5443 
5444   # Publish this variable in the help.
5445 
5446 
5447   if test "x$CP" = x; then
5448     # The variable is not set by user, try to locate tool using the code snippet
5449     for ac_prog in cp
5450 do
5451   # Extract the first word of "$ac_prog", so it can be a program name with args.
5452 set dummy $ac_prog; ac_word=$2
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5454 $as_echo_n "checking for $ac_word... " >&6; }
5455 if ${ac_cv_path_CP+:} false; then :
5456   $as_echo_n "(cached) " >&6
5457 else
5458   case $CP in
5459   [\\/]* | ?:[\\/]*)
5460   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5461   ;;
5462   *)
5463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477 
5478   ;;
5479 esac
5480 fi
5481 CP=$ac_cv_path_CP
5482 if test -n "$CP"; then
5483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5484 $as_echo "$CP" >&6; }
5485 else
5486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489 
5490 
5491   test -n "$CP" && break
5492 done
5493 
5494   else
5495     # The variable is set, but is it from the command line or the environment?
5496 
5497     # Try to remove the string !CP! from our list.
5498     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5499     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5500       # If it failed, the variable was not from the command line. Ignore it,
5501       # but warn the user (except for BASH, which is always set by the calling BASH).
5502       if test "xCP" != xBASH; then
5503         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5504 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5505       fi
5506       # Try to locate tool using the code snippet
5507       for ac_prog in cp
5508 do
5509   # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_path_CP+:} false; then :
5514   $as_echo_n "(cached) " >&6
5515 else
5516   case $CP in
5517   [\\/]* | ?:[\\/]*)
5518   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5519   ;;
5520   *)
5521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522 for as_dir in $PATH
5523 do
5524   IFS=$as_save_IFS
5525   test -z "$as_dir" && as_dir=.
5526     for ac_exec_ext in '' $ac_executable_extensions; do
5527   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530     break 2
5531   fi
5532 done
5533   done
5534 IFS=$as_save_IFS
5535 
5536   ;;
5537 esac
5538 fi
5539 CP=$ac_cv_path_CP
5540 if test -n "$CP"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5542 $as_echo "$CP" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547 
5548 
5549   test -n "$CP" && break
5550 done
5551 
5552     else
5553       # If it succeeded, then it was overridden by the user. We will use it
5554       # for the tool.
5555 
5556       # First remove it from the list of overridden variables, so we can test
5557       # for unknown variables in the end.
5558       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5559 
5560       # Check if the provided tool contains a complete path.
5561       tool_specified="$CP"
5562       tool_basename="${tool_specified##*/}"
5563       if test "x$tool_basename" = "x$tool_specified"; then
5564         # A command without a complete path is provided, search $PATH.
5565         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5566 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5567         # Extract the first word of "$tool_basename", so it can be a program name with args.
5568 set dummy $tool_basename; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_path_CP+:} false; then :
5572   $as_echo_n "(cached) " >&6
5573 else
5574   case $CP in
5575   [\\/]* | ?:[\\/]*)
5576   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5577   ;;
5578   *)
5579   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5580 for as_dir in $PATH
5581 do
5582   IFS=$as_save_IFS
5583   test -z "$as_dir" && as_dir=.
5584     for ac_exec_ext in '' $ac_executable_extensions; do
5585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5588     break 2
5589   fi
5590 done
5591   done
5592 IFS=$as_save_IFS
5593 
5594   ;;
5595 esac
5596 fi
5597 CP=$ac_cv_path_CP
5598 if test -n "$CP"; then
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5600 $as_echo "$CP" >&6; }
5601 else
5602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605 
5606 
5607         if test "x$CP" = x; then
5608           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5609         fi
5610       else
5611         # Otherwise we believe it is a complete path. Use it as it is.
5612         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5613 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5614         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5615 $as_echo_n "checking for CP... " >&6; }
5616         if test ! -x "$tool_specified"; then
5617           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5618 $as_echo "not found" >&6; }
5619           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5620         fi
5621         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5622 $as_echo "$tool_specified" >&6; }
5623       fi
5624     fi
5625   fi
5626 
5627 
5628 
5629   if test "x$CP" = x; then
5630     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5631   fi
5632 
5633 
5634 
5635 
5636 
5637   # Publish this variable in the help.
5638 
5639 
5640   if test "x$CPIO" = x; then
5641     # The variable is not set by user, try to locate tool using the code snippet
5642     for ac_prog in cpio
5643 do
5644   # Extract the first word of "$ac_prog", so it can be a program name with args.
5645 set dummy $ac_prog; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_CPIO+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   case $CPIO in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670 
5671   ;;
5672 esac
5673 fi
5674 CPIO=$ac_cv_path_CPIO
5675 if test -n "$CPIO"; then
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5677 $as_echo "$CPIO" >&6; }
5678 else
5679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5681 fi
5682 
5683 
5684   test -n "$CPIO" && break
5685 done
5686 
5687   else
5688     # The variable is set, but is it from the command line or the environment?
5689 
5690     # Try to remove the string !CPIO! from our list.
5691     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5692     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5693       # If it failed, the variable was not from the command line. Ignore it,
5694       # but warn the user (except for BASH, which is always set by the calling BASH).
5695       if test "xCPIO" != xBASH; then
5696         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5697 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5698       fi
5699       # Try to locate tool using the code snippet
5700       for ac_prog in cpio
5701 do
5702   # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_path_CPIO+:} false; then :
5707   $as_echo_n "(cached) " >&6
5708 else
5709   case $CPIO in
5710   [\\/]* | ?:[\\/]*)
5711   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5712   ;;
5713   *)
5714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719     for ac_exec_ext in '' $ac_executable_extensions; do
5720   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5722     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5723     break 2
5724   fi
5725 done
5726   done
5727 IFS=$as_save_IFS
5728 
5729   ;;
5730 esac
5731 fi
5732 CPIO=$ac_cv_path_CPIO
5733 if test -n "$CPIO"; then
5734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5735 $as_echo "$CPIO" >&6; }
5736 else
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738 $as_echo "no" >&6; }
5739 fi
5740 
5741 
5742   test -n "$CPIO" && break
5743 done
5744 
5745     else
5746       # If it succeeded, then it was overridden by the user. We will use it
5747       # for the tool.
5748 
5749       # First remove it from the list of overridden variables, so we can test
5750       # for unknown variables in the end.
5751       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5752 
5753       # Check if the provided tool contains a complete path.
5754       tool_specified="$CPIO"
5755       tool_basename="${tool_specified##*/}"
5756       if test "x$tool_basename" = "x$tool_specified"; then
5757         # A command without a complete path is provided, search $PATH.
5758         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5759 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5760         # Extract the first word of "$tool_basename", so it can be a program name with args.
5761 set dummy $tool_basename; ac_word=$2
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5763 $as_echo_n "checking for $ac_word... " >&6; }
5764 if ${ac_cv_path_CPIO+:} false; then :
5765   $as_echo_n "(cached) " >&6
5766 else
5767   case $CPIO in
5768   [\\/]* | ?:[\\/]*)
5769   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5770   ;;
5771   *)
5772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5773 for as_dir in $PATH
5774 do
5775   IFS=$as_save_IFS
5776   test -z "$as_dir" && as_dir=.
5777     for ac_exec_ext in '' $ac_executable_extensions; do
5778   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5781     break 2
5782   fi
5783 done
5784   done
5785 IFS=$as_save_IFS
5786 
5787   ;;
5788 esac
5789 fi
5790 CPIO=$ac_cv_path_CPIO
5791 if test -n "$CPIO"; then
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5793 $as_echo "$CPIO" >&6; }
5794 else
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798 
5799 
5800         if test "x$CPIO" = x; then
5801           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5802         fi
5803       else
5804         # Otherwise we believe it is a complete path. Use it as it is.
5805         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5806 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5808 $as_echo_n "checking for CPIO... " >&6; }
5809         if test ! -x "$tool_specified"; then
5810           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5811 $as_echo "not found" >&6; }
5812           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5813         fi
5814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5815 $as_echo "$tool_specified" >&6; }
5816       fi
5817     fi
5818   fi
5819 
5820 
5821 
5822   if test "x$CPIO" = x; then
5823     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5824   fi
5825 
5826 
5827 
5828 
5829 
5830   # Publish this variable in the help.
5831 
5832 
5833   if test "x$CUT" = x; then
5834     # The variable is not set by user, try to locate tool using the code snippet
5835     for ac_prog in cut
5836 do
5837   # Extract the first word of "$ac_prog", so it can be a program name with args.
5838 set dummy $ac_prog; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_path_CUT+:} false; then :
5842   $as_echo_n "(cached) " >&6
5843 else
5844   case $CUT in
5845   [\\/]* | ?:[\\/]*)
5846   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5847   ;;
5848   *)
5849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 for as_dir in $PATH
5851 do
5852   IFS=$as_save_IFS
5853   test -z "$as_dir" && as_dir=.
5854     for ac_exec_ext in '' $ac_executable_extensions; do
5855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5856     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858     break 2
5859   fi
5860 done
5861   done
5862 IFS=$as_save_IFS
5863 
5864   ;;
5865 esac
5866 fi
5867 CUT=$ac_cv_path_CUT
5868 if test -n "$CUT"; then
5869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5870 $as_echo "$CUT" >&6; }
5871 else
5872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5873 $as_echo "no" >&6; }
5874 fi
5875 
5876 
5877   test -n "$CUT" && break
5878 done
5879 
5880   else
5881     # The variable is set, but is it from the command line or the environment?
5882 
5883     # Try to remove the string !CUT! from our list.
5884     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5885     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5886       # If it failed, the variable was not from the command line. Ignore it,
5887       # but warn the user (except for BASH, which is always set by the calling BASH).
5888       if test "xCUT" != xBASH; then
5889         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5890 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5891       fi
5892       # Try to locate tool using the code snippet
5893       for ac_prog in cut
5894 do
5895   # Extract the first word of "$ac_prog", so it can be a program name with args.
5896 set dummy $ac_prog; ac_word=$2
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5898 $as_echo_n "checking for $ac_word... " >&6; }
5899 if ${ac_cv_path_CUT+:} false; then :
5900   $as_echo_n "(cached) " >&6
5901 else
5902   case $CUT in
5903   [\\/]* | ?:[\\/]*)
5904   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5905   ;;
5906   *)
5907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5908 for as_dir in $PATH
5909 do
5910   IFS=$as_save_IFS
5911   test -z "$as_dir" && as_dir=.
5912     for ac_exec_ext in '' $ac_executable_extensions; do
5913   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5914     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5916     break 2
5917   fi
5918 done
5919   done
5920 IFS=$as_save_IFS
5921 
5922   ;;
5923 esac
5924 fi
5925 CUT=$ac_cv_path_CUT
5926 if test -n "$CUT"; then
5927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5928 $as_echo "$CUT" >&6; }
5929 else
5930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5931 $as_echo "no" >&6; }
5932 fi
5933 
5934 
5935   test -n "$CUT" && break
5936 done
5937 
5938     else
5939       # If it succeeded, then it was overridden by the user. We will use it
5940       # for the tool.
5941 
5942       # First remove it from the list of overridden variables, so we can test
5943       # for unknown variables in the end.
5944       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5945 
5946       # Check if the provided tool contains a complete path.
5947       tool_specified="$CUT"
5948       tool_basename="${tool_specified##*/}"
5949       if test "x$tool_basename" = "x$tool_specified"; then
5950         # A command without a complete path is provided, search $PATH.
5951         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5952 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5953         # Extract the first word of "$tool_basename", so it can be a program name with args.
5954 set dummy $tool_basename; ac_word=$2
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5956 $as_echo_n "checking for $ac_word... " >&6; }
5957 if ${ac_cv_path_CUT+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   case $CUT in
5961   [\\/]* | ?:[\\/]*)
5962   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5963   ;;
5964   *)
5965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 for as_dir in $PATH
5967 do
5968   IFS=$as_save_IFS
5969   test -z "$as_dir" && as_dir=.
5970     for ac_exec_ext in '' $ac_executable_extensions; do
5971   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5972     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974     break 2
5975   fi
5976 done
5977   done
5978 IFS=$as_save_IFS
5979 
5980   ;;
5981 esac
5982 fi
5983 CUT=$ac_cv_path_CUT
5984 if test -n "$CUT"; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5986 $as_echo "$CUT" >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991 
5992 
5993         if test "x$CUT" = x; then
5994           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5995         fi
5996       else
5997         # Otherwise we believe it is a complete path. Use it as it is.
5998         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5999 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
6000         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6001 $as_echo_n "checking for CUT... " >&6; }
6002         if test ! -x "$tool_specified"; then
6003           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6004 $as_echo "not found" >&6; }
6005           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6006         fi
6007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6008 $as_echo "$tool_specified" >&6; }
6009       fi
6010     fi
6011   fi
6012 
6013 
6014 
6015   if test "x$CUT" = x; then
6016     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6017   fi
6018 
6019 
6020 
6021 
6022 
6023   # Publish this variable in the help.
6024 
6025 
6026   if test "x$DATE" = x; then
6027     # The variable is not set by user, try to locate tool using the code snippet
6028     for ac_prog in date
6029 do
6030   # Extract the first word of "$ac_prog", so it can be a program name with args.
6031 set dummy $ac_prog; ac_word=$2
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6033 $as_echo_n "checking for $ac_word... " >&6; }
6034 if ${ac_cv_path_DATE+:} false; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   case $DATE in
6038   [\\/]* | ?:[\\/]*)
6039   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6040   ;;
6041   *)
6042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 for as_dir in $PATH
6044 do
6045   IFS=$as_save_IFS
6046   test -z "$as_dir" && as_dir=.
6047     for ac_exec_ext in '' $ac_executable_extensions; do
6048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6049     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051     break 2
6052   fi
6053 done
6054   done
6055 IFS=$as_save_IFS
6056 
6057   ;;
6058 esac
6059 fi
6060 DATE=$ac_cv_path_DATE
6061 if test -n "$DATE"; then
6062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6063 $as_echo "$DATE" >&6; }
6064 else
6065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 fi
6068 
6069 
6070   test -n "$DATE" && break
6071 done
6072 
6073   else
6074     # The variable is set, but is it from the command line or the environment?
6075 
6076     # Try to remove the string !DATE! from our list.
6077     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6078     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6079       # If it failed, the variable was not from the command line. Ignore it,
6080       # but warn the user (except for BASH, which is always set by the calling BASH).
6081       if test "xDATE" != xBASH; then
6082         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6083 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6084       fi
6085       # Try to locate tool using the code snippet
6086       for ac_prog in date
6087 do
6088   # Extract the first word of "$ac_prog", so it can be a program name with args.
6089 set dummy $ac_prog; ac_word=$2
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091 $as_echo_n "checking for $ac_word... " >&6; }
6092 if ${ac_cv_path_DATE+:} false; then :
6093   $as_echo_n "(cached) " >&6
6094 else
6095   case $DATE in
6096   [\\/]* | ?:[\\/]*)
6097   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6098   ;;
6099   *)
6100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 for as_dir in $PATH
6102 do
6103   IFS=$as_save_IFS
6104   test -z "$as_dir" && as_dir=.
6105     for ac_exec_ext in '' $ac_executable_extensions; do
6106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6109     break 2
6110   fi
6111 done
6112   done
6113 IFS=$as_save_IFS
6114 
6115   ;;
6116 esac
6117 fi
6118 DATE=$ac_cv_path_DATE
6119 if test -n "$DATE"; then
6120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6121 $as_echo "$DATE" >&6; }
6122 else
6123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6124 $as_echo "no" >&6; }
6125 fi
6126 
6127 
6128   test -n "$DATE" && break
6129 done
6130 
6131     else
6132       # If it succeeded, then it was overridden by the user. We will use it
6133       # for the tool.
6134 
6135       # First remove it from the list of overridden variables, so we can test
6136       # for unknown variables in the end.
6137       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6138 
6139       # Check if the provided tool contains a complete path.
6140       tool_specified="$DATE"
6141       tool_basename="${tool_specified##*/}"
6142       if test "x$tool_basename" = "x$tool_specified"; then
6143         # A command without a complete path is provided, search $PATH.
6144         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6145 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6146         # Extract the first word of "$tool_basename", so it can be a program name with args.
6147 set dummy $tool_basename; ac_word=$2
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if ${ac_cv_path_DATE+:} false; then :
6151   $as_echo_n "(cached) " >&6
6152 else
6153   case $DATE in
6154   [\\/]* | ?:[\\/]*)
6155   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6156   ;;
6157   *)
6158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 for as_dir in $PATH
6160 do
6161   IFS=$as_save_IFS
6162   test -z "$as_dir" && as_dir=.
6163     for ac_exec_ext in '' $ac_executable_extensions; do
6164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6165     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167     break 2
6168   fi
6169 done
6170   done
6171 IFS=$as_save_IFS
6172 
6173   ;;
6174 esac
6175 fi
6176 DATE=$ac_cv_path_DATE
6177 if test -n "$DATE"; then
6178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6179 $as_echo "$DATE" >&6; }
6180 else
6181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6182 $as_echo "no" >&6; }
6183 fi
6184 
6185 
6186         if test "x$DATE" = x; then
6187           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6188         fi
6189       else
6190         # Otherwise we believe it is a complete path. Use it as it is.
6191         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6192 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6193         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6194 $as_echo_n "checking for DATE... " >&6; }
6195         if test ! -x "$tool_specified"; then
6196           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6197 $as_echo "not found" >&6; }
6198           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6199         fi
6200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6201 $as_echo "$tool_specified" >&6; }
6202       fi
6203     fi
6204   fi
6205 
6206 
6207 
6208   if test "x$DATE" = x; then
6209     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6210   fi
6211 
6212 
6213 
6214 
6215 
6216   # Publish this variable in the help.
6217 
6218 
6219   if test "x$DIFF" = x; then
6220     # The variable is not set by user, try to locate tool using the code snippet
6221     for ac_prog in gdiff diff
6222 do
6223   # Extract the first word of "$ac_prog", so it can be a program name with args.
6224 set dummy $ac_prog; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_path_DIFF+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   case $DIFF in
6231   [\\/]* | ?:[\\/]*)
6232   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6233   ;;
6234   *)
6235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6236 for as_dir in $PATH
6237 do
6238   IFS=$as_save_IFS
6239   test -z "$as_dir" && as_dir=.
6240     for ac_exec_ext in '' $ac_executable_extensions; do
6241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6242     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6244     break 2
6245   fi
6246 done
6247   done
6248 IFS=$as_save_IFS
6249 
6250   ;;
6251 esac
6252 fi
6253 DIFF=$ac_cv_path_DIFF
6254 if test -n "$DIFF"; then
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6256 $as_echo "$DIFF" >&6; }
6257 else
6258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6259 $as_echo "no" >&6; }
6260 fi
6261 
6262 
6263   test -n "$DIFF" && break
6264 done
6265 
6266   else
6267     # The variable is set, but is it from the command line or the environment?
6268 
6269     # Try to remove the string !DIFF! from our list.
6270     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6271     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6272       # If it failed, the variable was not from the command line. Ignore it,
6273       # but warn the user (except for BASH, which is always set by the calling BASH).
6274       if test "xDIFF" != xBASH; then
6275         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6276 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6277       fi
6278       # Try to locate tool using the code snippet
6279       for ac_prog in gdiff diff
6280 do
6281   # Extract the first word of "$ac_prog", so it can be a program name with args.
6282 set dummy $ac_prog; ac_word=$2
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 $as_echo_n "checking for $ac_word... " >&6; }
6285 if ${ac_cv_path_DIFF+:} false; then :
6286   $as_echo_n "(cached) " >&6
6287 else
6288   case $DIFF in
6289   [\\/]* | ?:[\\/]*)
6290   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6291   ;;
6292   *)
6293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307 
6308   ;;
6309 esac
6310 fi
6311 DIFF=$ac_cv_path_DIFF
6312 if test -n "$DIFF"; then
6313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6314 $as_echo "$DIFF" >&6; }
6315 else
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6317 $as_echo "no" >&6; }
6318 fi
6319 
6320 
6321   test -n "$DIFF" && break
6322 done
6323 
6324     else
6325       # If it succeeded, then it was overridden by the user. We will use it
6326       # for the tool.
6327 
6328       # First remove it from the list of overridden variables, so we can test
6329       # for unknown variables in the end.
6330       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6331 
6332       # Check if the provided tool contains a complete path.
6333       tool_specified="$DIFF"
6334       tool_basename="${tool_specified##*/}"
6335       if test "x$tool_basename" = "x$tool_specified"; then
6336         # A command without a complete path is provided, search $PATH.
6337         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6338 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6339         # Extract the first word of "$tool_basename", so it can be a program name with args.
6340 set dummy $tool_basename; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_path_DIFF+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   case $DIFF in
6347   [\\/]* | ?:[\\/]*)
6348   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6349   ;;
6350   *)
6351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352 for as_dir in $PATH
6353 do
6354   IFS=$as_save_IFS
6355   test -z "$as_dir" && as_dir=.
6356     for ac_exec_ext in '' $ac_executable_extensions; do
6357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360     break 2
6361   fi
6362 done
6363   done
6364 IFS=$as_save_IFS
6365 
6366   ;;
6367 esac
6368 fi
6369 DIFF=$ac_cv_path_DIFF
6370 if test -n "$DIFF"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6372 $as_echo "$DIFF" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377 
6378 
6379         if test "x$DIFF" = x; then
6380           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6381         fi
6382       else
6383         # Otherwise we believe it is a complete path. Use it as it is.
6384         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6385 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6386         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6387 $as_echo_n "checking for DIFF... " >&6; }
6388         if test ! -x "$tool_specified"; then
6389           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6390 $as_echo "not found" >&6; }
6391           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6392         fi
6393         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6394 $as_echo "$tool_specified" >&6; }
6395       fi
6396     fi
6397   fi
6398 
6399 
6400 
6401   if test "x$DIFF" = x; then
6402     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6403   fi
6404 
6405 
6406 
6407 
6408 
6409   # Publish this variable in the help.
6410 
6411 
6412   if test "x$DIRNAME" = x; then
6413     # The variable is not set by user, try to locate tool using the code snippet
6414     for ac_prog in dirname
6415 do
6416   # Extract the first word of "$ac_prog", so it can be a program name with args.
6417 set dummy $ac_prog; ac_word=$2
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419 $as_echo_n "checking for $ac_word... " >&6; }
6420 if ${ac_cv_path_DIRNAME+:} false; then :
6421   $as_echo_n "(cached) " >&6
6422 else
6423   case $DIRNAME in
6424   [\\/]* | ?:[\\/]*)
6425   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6426   ;;
6427   *)
6428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6429 for as_dir in $PATH
6430 do
6431   IFS=$as_save_IFS
6432   test -z "$as_dir" && as_dir=.
6433     for ac_exec_ext in '' $ac_executable_extensions; do
6434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6435     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6437     break 2
6438   fi
6439 done
6440   done
6441 IFS=$as_save_IFS
6442 
6443   ;;
6444 esac
6445 fi
6446 DIRNAME=$ac_cv_path_DIRNAME
6447 if test -n "$DIRNAME"; then
6448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6449 $as_echo "$DIRNAME" >&6; }
6450 else
6451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454 
6455 
6456   test -n "$DIRNAME" && break
6457 done
6458 
6459   else
6460     # The variable is set, but is it from the command line or the environment?
6461 
6462     # Try to remove the string !DIRNAME! from our list.
6463     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6464     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6465       # If it failed, the variable was not from the command line. Ignore it,
6466       # but warn the user (except for BASH, which is always set by the calling BASH).
6467       if test "xDIRNAME" != xBASH; then
6468         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6469 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6470       fi
6471       # Try to locate tool using the code snippet
6472       for ac_prog in dirname
6473 do
6474   # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_path_DIRNAME+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   case $DIRNAME in
6482   [\\/]* | ?:[\\/]*)
6483   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6484   ;;
6485   *)
6486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489   IFS=$as_save_IFS
6490   test -z "$as_dir" && as_dir=.
6491     for ac_exec_ext in '' $ac_executable_extensions; do
6492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6495     break 2
6496   fi
6497 done
6498   done
6499 IFS=$as_save_IFS
6500 
6501   ;;
6502 esac
6503 fi
6504 DIRNAME=$ac_cv_path_DIRNAME
6505 if test -n "$DIRNAME"; then
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6507 $as_echo "$DIRNAME" >&6; }
6508 else
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; }
6511 fi
6512 
6513 
6514   test -n "$DIRNAME" && break
6515 done
6516 
6517     else
6518       # If it succeeded, then it was overridden by the user. We will use it
6519       # for the tool.
6520 
6521       # First remove it from the list of overridden variables, so we can test
6522       # for unknown variables in the end.
6523       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6524 
6525       # Check if the provided tool contains a complete path.
6526       tool_specified="$DIRNAME"
6527       tool_basename="${tool_specified##*/}"
6528       if test "x$tool_basename" = "x$tool_specified"; then
6529         # A command without a complete path is provided, search $PATH.
6530         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6531 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6532         # Extract the first word of "$tool_basename", so it can be a program name with args.
6533 set dummy $tool_basename; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_path_DIRNAME+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   case $DIRNAME in
6540   [\\/]* | ?:[\\/]*)
6541   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6542   ;;
6543   *)
6544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 for as_dir in $PATH
6546 do
6547   IFS=$as_save_IFS
6548   test -z "$as_dir" && as_dir=.
6549     for ac_exec_ext in '' $ac_executable_extensions; do
6550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6551     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6553     break 2
6554   fi
6555 done
6556   done
6557 IFS=$as_save_IFS
6558 
6559   ;;
6560 esac
6561 fi
6562 DIRNAME=$ac_cv_path_DIRNAME
6563 if test -n "$DIRNAME"; then
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6565 $as_echo "$DIRNAME" >&6; }
6566 else
6567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6568 $as_echo "no" >&6; }
6569 fi
6570 
6571 
6572         if test "x$DIRNAME" = x; then
6573           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6574         fi
6575       else
6576         # Otherwise we believe it is a complete path. Use it as it is.
6577         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6578 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6579         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6580 $as_echo_n "checking for DIRNAME... " >&6; }
6581         if test ! -x "$tool_specified"; then
6582           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6583 $as_echo "not found" >&6; }
6584           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6585         fi
6586         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6587 $as_echo "$tool_specified" >&6; }
6588       fi
6589     fi
6590   fi
6591 
6592 
6593 
6594   if test "x$DIRNAME" = x; then
6595     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6596   fi
6597 
6598 
6599 
6600 
6601 
6602   # Publish this variable in the help.
6603 
6604 
6605   if test "x$ECHO" = x; then
6606     # The variable is not set by user, try to locate tool using the code snippet
6607     for ac_prog in echo
6608 do
6609   # Extract the first word of "$ac_prog", so it can be a program name with args.
6610 set dummy $ac_prog; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_path_ECHO+:} false; then :
6614   $as_echo_n "(cached) " >&6
6615 else
6616   case $ECHO in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635 
6636   ;;
6637 esac
6638 fi
6639 ECHO=$ac_cv_path_ECHO
6640 if test -n "$ECHO"; then
6641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6642 $as_echo "$ECHO" >&6; }
6643 else
6644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6646 fi
6647 
6648 
6649   test -n "$ECHO" && break
6650 done
6651 
6652   else
6653     # The variable is set, but is it from the command line or the environment?
6654 
6655     # Try to remove the string !ECHO! from our list.
6656     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6657     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6658       # If it failed, the variable was not from the command line. Ignore it,
6659       # but warn the user (except for BASH, which is always set by the calling BASH).
6660       if test "xECHO" != xBASH; then
6661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6662 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6663       fi
6664       # Try to locate tool using the code snippet
6665       for ac_prog in echo
6666 do
6667   # Extract the first word of "$ac_prog", so it can be a program name with args.
6668 set dummy $ac_prog; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if ${ac_cv_path_ECHO+:} false; then :
6672   $as_echo_n "(cached) " >&6
6673 else
6674   case $ECHO in
6675   [\\/]* | ?:[\\/]*)
6676   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6677   ;;
6678   *)
6679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6681 do
6682   IFS=$as_save_IFS
6683   test -z "$as_dir" && as_dir=.
6684     for ac_exec_ext in '' $ac_executable_extensions; do
6685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6686     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688     break 2
6689   fi
6690 done
6691   done
6692 IFS=$as_save_IFS
6693 
6694   ;;
6695 esac
6696 fi
6697 ECHO=$ac_cv_path_ECHO
6698 if test -n "$ECHO"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6700 $as_echo "$ECHO" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705 
6706 
6707   test -n "$ECHO" && break
6708 done
6709 
6710     else
6711       # If it succeeded, then it was overridden by the user. We will use it
6712       # for the tool.
6713 
6714       # First remove it from the list of overridden variables, so we can test
6715       # for unknown variables in the end.
6716       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6717 
6718       # Check if the provided tool contains a complete path.
6719       tool_specified="$ECHO"
6720       tool_basename="${tool_specified##*/}"
6721       if test "x$tool_basename" = "x$tool_specified"; then
6722         # A command without a complete path is provided, search $PATH.
6723         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6724 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6725         # Extract the first word of "$tool_basename", so it can be a program name with args.
6726 set dummy $tool_basename; ac_word=$2
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6728 $as_echo_n "checking for $ac_word... " >&6; }
6729 if ${ac_cv_path_ECHO+:} false; then :
6730   $as_echo_n "(cached) " >&6
6731 else
6732   case $ECHO in
6733   [\\/]* | ?:[\\/]*)
6734   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6735   ;;
6736   *)
6737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742     for ac_exec_ext in '' $ac_executable_extensions; do
6743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749   done
6750 IFS=$as_save_IFS
6751 
6752   ;;
6753 esac
6754 fi
6755 ECHO=$ac_cv_path_ECHO
6756 if test -n "$ECHO"; then
6757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6758 $as_echo "$ECHO" >&6; }
6759 else
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761 $as_echo "no" >&6; }
6762 fi
6763 
6764 
6765         if test "x$ECHO" = x; then
6766           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6767         fi
6768       else
6769         # Otherwise we believe it is a complete path. Use it as it is.
6770         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6771 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6773 $as_echo_n "checking for ECHO... " >&6; }
6774         if test ! -x "$tool_specified"; then
6775           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6776 $as_echo "not found" >&6; }
6777           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6778         fi
6779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6780 $as_echo "$tool_specified" >&6; }
6781       fi
6782     fi
6783   fi
6784 
6785 
6786 
6787   if test "x$ECHO" = x; then
6788     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6789   fi
6790 
6791 
6792 
6793 
6794 
6795   # Publish this variable in the help.
6796 
6797 
6798   if test "x$EXPR" = x; then
6799     # The variable is not set by user, try to locate tool using the code snippet
6800     for ac_prog in expr
6801 do
6802   # Extract the first word of "$ac_prog", so it can be a program name with args.
6803 set dummy $ac_prog; ac_word=$2
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 $as_echo_n "checking for $ac_word... " >&6; }
6806 if ${ac_cv_path_EXPR+:} false; then :
6807   $as_echo_n "(cached) " >&6
6808 else
6809   case $EXPR in
6810   [\\/]* | ?:[\\/]*)
6811   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6812   ;;
6813   *)
6814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819     for ac_exec_ext in '' $ac_executable_extensions; do
6820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6821     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826   done
6827 IFS=$as_save_IFS
6828 
6829   ;;
6830 esac
6831 fi
6832 EXPR=$ac_cv_path_EXPR
6833 if test -n "$EXPR"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6835 $as_echo "$EXPR" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840 
6841 
6842   test -n "$EXPR" && break
6843 done
6844 
6845   else
6846     # The variable is set, but is it from the command line or the environment?
6847 
6848     # Try to remove the string !EXPR! from our list.
6849     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6850     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6851       # If it failed, the variable was not from the command line. Ignore it,
6852       # but warn the user (except for BASH, which is always set by the calling BASH).
6853       if test "xEXPR" != xBASH; then
6854         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6855 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6856       fi
6857       # Try to locate tool using the code snippet
6858       for ac_prog in expr
6859 do
6860   # Extract the first word of "$ac_prog", so it can be a program name with args.
6861 set dummy $ac_prog; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_path_EXPR+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   case $EXPR in
6868   [\\/]* | ?:[\\/]*)
6869   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6870   ;;
6871   *)
6872   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875   IFS=$as_save_IFS
6876   test -z "$as_dir" && as_dir=.
6877     for ac_exec_ext in '' $ac_executable_extensions; do
6878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6879     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6881     break 2
6882   fi
6883 done
6884   done
6885 IFS=$as_save_IFS
6886 
6887   ;;
6888 esac
6889 fi
6890 EXPR=$ac_cv_path_EXPR
6891 if test -n "$EXPR"; then
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6893 $as_echo "$EXPR" >&6; }
6894 else
6895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6896 $as_echo "no" >&6; }
6897 fi
6898 
6899 
6900   test -n "$EXPR" && break
6901 done
6902 
6903     else
6904       # If it succeeded, then it was overridden by the user. We will use it
6905       # for the tool.
6906 
6907       # First remove it from the list of overridden variables, so we can test
6908       # for unknown variables in the end.
6909       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6910 
6911       # Check if the provided tool contains a complete path.
6912       tool_specified="$EXPR"
6913       tool_basename="${tool_specified##*/}"
6914       if test "x$tool_basename" = "x$tool_specified"; then
6915         # A command without a complete path is provided, search $PATH.
6916         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6917 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6918         # Extract the first word of "$tool_basename", so it can be a program name with args.
6919 set dummy $tool_basename; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_path_EXPR+:} false; then :
6923   $as_echo_n "(cached) " >&6
6924 else
6925   case $EXPR in
6926   [\\/]* | ?:[\\/]*)
6927   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6928   ;;
6929   *)
6930   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6931 for as_dir in $PATH
6932 do
6933   IFS=$as_save_IFS
6934   test -z "$as_dir" && as_dir=.
6935     for ac_exec_ext in '' $ac_executable_extensions; do
6936   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6937     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6938     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6939     break 2
6940   fi
6941 done
6942   done
6943 IFS=$as_save_IFS
6944 
6945   ;;
6946 esac
6947 fi
6948 EXPR=$ac_cv_path_EXPR
6949 if test -n "$EXPR"; then
6950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6951 $as_echo "$EXPR" >&6; }
6952 else
6953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6955 fi
6956 
6957 
6958         if test "x$EXPR" = x; then
6959           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6960         fi
6961       else
6962         # Otherwise we believe it is a complete path. Use it as it is.
6963         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6964 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6965         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6966 $as_echo_n "checking for EXPR... " >&6; }
6967         if test ! -x "$tool_specified"; then
6968           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6969 $as_echo "not found" >&6; }
6970           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6971         fi
6972         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6973 $as_echo "$tool_specified" >&6; }
6974       fi
6975     fi
6976   fi
6977 
6978 
6979 
6980   if test "x$EXPR" = x; then
6981     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6982   fi
6983 
6984 
6985 
6986 
6987 
6988   # Publish this variable in the help.
6989 
6990 
6991   if test "x$FILE" = x; then
6992     # The variable is not set by user, try to locate tool using the code snippet
6993     for ac_prog in file
6994 do
6995   # Extract the first word of "$ac_prog", so it can be a program name with args.
6996 set dummy $ac_prog; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_path_FILE+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   case $FILE in
7003   [\\/]* | ?:[\\/]*)
7004   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7005   ;;
7006   *)
7007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7014     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019   done
7020 IFS=$as_save_IFS
7021 
7022   ;;
7023 esac
7024 fi
7025 FILE=$ac_cv_path_FILE
7026 if test -n "$FILE"; then
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7028 $as_echo "$FILE" >&6; }
7029 else
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7032 fi
7033 
7034 
7035   test -n "$FILE" && break
7036 done
7037 
7038   else
7039     # The variable is set, but is it from the command line or the environment?
7040 
7041     # Try to remove the string !FILE! from our list.
7042     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7043     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7044       # If it failed, the variable was not from the command line. Ignore it,
7045       # but warn the user (except for BASH, which is always set by the calling BASH).
7046       if test "xFILE" != xBASH; then
7047         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7048 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7049       fi
7050       # Try to locate tool using the code snippet
7051       for ac_prog in file
7052 do
7053   # Extract the first word of "$ac_prog", so it can be a program name with args.
7054 set dummy $ac_prog; ac_word=$2
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7056 $as_echo_n "checking for $ac_word... " >&6; }
7057 if ${ac_cv_path_FILE+:} false; then :
7058   $as_echo_n "(cached) " >&6
7059 else
7060   case $FILE in
7061   [\\/]* | ?:[\\/]*)
7062   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7063   ;;
7064   *)
7065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 for as_dir in $PATH
7067 do
7068   IFS=$as_save_IFS
7069   test -z "$as_dir" && as_dir=.
7070     for ac_exec_ext in '' $ac_executable_extensions; do
7071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7072     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7074     break 2
7075   fi
7076 done
7077   done
7078 IFS=$as_save_IFS
7079 
7080   ;;
7081 esac
7082 fi
7083 FILE=$ac_cv_path_FILE
7084 if test -n "$FILE"; then
7085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7086 $as_echo "$FILE" >&6; }
7087 else
7088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7089 $as_echo "no" >&6; }
7090 fi
7091 
7092 
7093   test -n "$FILE" && break
7094 done
7095 
7096     else
7097       # If it succeeded, then it was overridden by the user. We will use it
7098       # for the tool.
7099 
7100       # First remove it from the list of overridden variables, so we can test
7101       # for unknown variables in the end.
7102       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7103 
7104       # Check if the provided tool contains a complete path.
7105       tool_specified="$FILE"
7106       tool_basename="${tool_specified##*/}"
7107       if test "x$tool_basename" = "x$tool_specified"; then
7108         # A command without a complete path is provided, search $PATH.
7109         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7110 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7111         # Extract the first word of "$tool_basename", so it can be a program name with args.
7112 set dummy $tool_basename; ac_word=$2
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7114 $as_echo_n "checking for $ac_word... " >&6; }
7115 if ${ac_cv_path_FILE+:} false; then :
7116   $as_echo_n "(cached) " >&6
7117 else
7118   case $FILE in
7119   [\\/]* | ?:[\\/]*)
7120   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7121   ;;
7122   *)
7123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126   IFS=$as_save_IFS
7127   test -z "$as_dir" && as_dir=.
7128     for ac_exec_ext in '' $ac_executable_extensions; do
7129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7130     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7132     break 2
7133   fi
7134 done
7135   done
7136 IFS=$as_save_IFS
7137 
7138   ;;
7139 esac
7140 fi
7141 FILE=$ac_cv_path_FILE
7142 if test -n "$FILE"; then
7143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7144 $as_echo "$FILE" >&6; }
7145 else
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 $as_echo "no" >&6; }
7148 fi
7149 
7150 
7151         if test "x$FILE" = x; then
7152           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7153         fi
7154       else
7155         # Otherwise we believe it is a complete path. Use it as it is.
7156         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7157 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7158         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7159 $as_echo_n "checking for FILE... " >&6; }
7160         if test ! -x "$tool_specified"; then
7161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7162 $as_echo "not found" >&6; }
7163           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7164         fi
7165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7166 $as_echo "$tool_specified" >&6; }
7167       fi
7168     fi
7169   fi
7170 
7171 
7172 
7173   if test "x$FILE" = x; then
7174     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7175   fi
7176 
7177 
7178 
7179 
7180 
7181   # Publish this variable in the help.
7182 
7183 
7184   if test "x$FIND" = x; then
7185     # The variable is not set by user, try to locate tool using the code snippet
7186     for ac_prog in find
7187 do
7188   # Extract the first word of "$ac_prog", so it can be a program name with args.
7189 set dummy $ac_prog; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_path_FIND+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   case $FIND in
7196   [\\/]* | ?:[\\/]*)
7197   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7198   ;;
7199   *)
7200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205     for ac_exec_ext in '' $ac_executable_extensions; do
7206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212   done
7213 IFS=$as_save_IFS
7214 
7215   ;;
7216 esac
7217 fi
7218 FIND=$ac_cv_path_FIND
7219 if test -n "$FIND"; then
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7221 $as_echo "$FIND" >&6; }
7222 else
7223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7225 fi
7226 
7227 
7228   test -n "$FIND" && break
7229 done
7230 
7231   else
7232     # The variable is set, but is it from the command line or the environment?
7233 
7234     # Try to remove the string !FIND! from our list.
7235     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7236     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7237       # If it failed, the variable was not from the command line. Ignore it,
7238       # but warn the user (except for BASH, which is always set by the calling BASH).
7239       if test "xFIND" != xBASH; then
7240         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7241 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7242       fi
7243       # Try to locate tool using the code snippet
7244       for ac_prog in find
7245 do
7246   # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_path_FIND+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   case $FIND in
7254   [\\/]* | ?:[\\/]*)
7255   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7256   ;;
7257   *)
7258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7260 do
7261   IFS=$as_save_IFS
7262   test -z "$as_dir" && as_dir=.
7263     for ac_exec_ext in '' $ac_executable_extensions; do
7264   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7266     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267     break 2
7268   fi
7269 done
7270   done
7271 IFS=$as_save_IFS
7272 
7273   ;;
7274 esac
7275 fi
7276 FIND=$ac_cv_path_FIND
7277 if test -n "$FIND"; then
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7279 $as_echo "$FIND" >&6; }
7280 else
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 fi
7284 
7285 
7286   test -n "$FIND" && break
7287 done
7288 
7289     else
7290       # If it succeeded, then it was overridden by the user. We will use it
7291       # for the tool.
7292 
7293       # First remove it from the list of overridden variables, so we can test
7294       # for unknown variables in the end.
7295       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7296 
7297       # Check if the provided tool contains a complete path.
7298       tool_specified="$FIND"
7299       tool_basename="${tool_specified##*/}"
7300       if test "x$tool_basename" = "x$tool_specified"; then
7301         # A command without a complete path is provided, search $PATH.
7302         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7303 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7304         # Extract the first word of "$tool_basename", so it can be a program name with args.
7305 set dummy $tool_basename; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_path_FIND+:} false; then :
7309   $as_echo_n "(cached) " >&6
7310 else
7311   case $FIND in
7312   [\\/]* | ?:[\\/]*)
7313   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7314   ;;
7315   *)
7316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321     for ac_exec_ext in '' $ac_executable_extensions; do
7322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328   done
7329 IFS=$as_save_IFS
7330 
7331   ;;
7332 esac
7333 fi
7334 FIND=$ac_cv_path_FIND
7335 if test -n "$FIND"; then
7336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7337 $as_echo "$FIND" >&6; }
7338 else
7339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7340 $as_echo "no" >&6; }
7341 fi
7342 
7343 
7344         if test "x$FIND" = x; then
7345           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7346         fi
7347       else
7348         # Otherwise we believe it is a complete path. Use it as it is.
7349         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7350 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7351         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7352 $as_echo_n "checking for FIND... " >&6; }
7353         if test ! -x "$tool_specified"; then
7354           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7355 $as_echo "not found" >&6; }
7356           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7357         fi
7358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7359 $as_echo "$tool_specified" >&6; }
7360       fi
7361     fi
7362   fi
7363 
7364 
7365 
7366   if test "x$FIND" = x; then
7367     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7368   fi
7369 
7370 
7371 
7372 
7373 
7374   # Publish this variable in the help.
7375 
7376 
7377   if test "x$HEAD" = x; then
7378     # The variable is not set by user, try to locate tool using the code snippet
7379     for ac_prog in head
7380 do
7381   # Extract the first word of "$ac_prog", so it can be a program name with args.
7382 set dummy $ac_prog; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_path_HEAD+:} false; then :
7386   $as_echo_n "(cached) " >&6
7387 else
7388   case $HEAD in
7389   [\\/]* | ?:[\\/]*)
7390   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7391   ;;
7392   *)
7393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7394 for as_dir in $PATH
7395 do
7396   IFS=$as_save_IFS
7397   test -z "$as_dir" && as_dir=.
7398     for ac_exec_ext in '' $ac_executable_extensions; do
7399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7400     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7402     break 2
7403   fi
7404 done
7405   done
7406 IFS=$as_save_IFS
7407 
7408   ;;
7409 esac
7410 fi
7411 HEAD=$ac_cv_path_HEAD
7412 if test -n "$HEAD"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7414 $as_echo "$HEAD" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419 
7420 
7421   test -n "$HEAD" && break
7422 done
7423 
7424   else
7425     # The variable is set, but is it from the command line or the environment?
7426 
7427     # Try to remove the string !HEAD! from our list.
7428     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7429     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7430       # If it failed, the variable was not from the command line. Ignore it,
7431       # but warn the user (except for BASH, which is always set by the calling BASH).
7432       if test "xHEAD" != xBASH; then
7433         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7434 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7435       fi
7436       # Try to locate tool using the code snippet
7437       for ac_prog in head
7438 do
7439   # Extract the first word of "$ac_prog", so it can be a program name with args.
7440 set dummy $ac_prog; ac_word=$2
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442 $as_echo_n "checking for $ac_word... " >&6; }
7443 if ${ac_cv_path_HEAD+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   case $HEAD in
7447   [\\/]* | ?:[\\/]*)
7448   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7449   ;;
7450   *)
7451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7453 do
7454   IFS=$as_save_IFS
7455   test -z "$as_dir" && as_dir=.
7456     for ac_exec_ext in '' $ac_executable_extensions; do
7457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460     break 2
7461   fi
7462 done
7463   done
7464 IFS=$as_save_IFS
7465 
7466   ;;
7467 esac
7468 fi
7469 HEAD=$ac_cv_path_HEAD
7470 if test -n "$HEAD"; then
7471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7472 $as_echo "$HEAD" >&6; }
7473 else
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7476 fi
7477 
7478 
7479   test -n "$HEAD" && break
7480 done
7481 
7482     else
7483       # If it succeeded, then it was overridden by the user. We will use it
7484       # for the tool.
7485 
7486       # First remove it from the list of overridden variables, so we can test
7487       # for unknown variables in the end.
7488       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7489 
7490       # Check if the provided tool contains a complete path.
7491       tool_specified="$HEAD"
7492       tool_basename="${tool_specified##*/}"
7493       if test "x$tool_basename" = "x$tool_specified"; then
7494         # A command without a complete path is provided, search $PATH.
7495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7496 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7497         # Extract the first word of "$tool_basename", so it can be a program name with args.
7498 set dummy $tool_basename; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_path_HEAD+:} false; then :
7502   $as_echo_n "(cached) " >&6
7503 else
7504   case $HEAD in
7505   [\\/]* | ?:[\\/]*)
7506   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7507   ;;
7508   *)
7509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523 
7524   ;;
7525 esac
7526 fi
7527 HEAD=$ac_cv_path_HEAD
7528 if test -n "$HEAD"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7530 $as_echo "$HEAD" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535 
7536 
7537         if test "x$HEAD" = x; then
7538           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7539         fi
7540       else
7541         # Otherwise we believe it is a complete path. Use it as it is.
7542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7543 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7545 $as_echo_n "checking for HEAD... " >&6; }
7546         if test ! -x "$tool_specified"; then
7547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7548 $as_echo "not found" >&6; }
7549           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7550         fi
7551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7552 $as_echo "$tool_specified" >&6; }
7553       fi
7554     fi
7555   fi
7556 
7557 
7558 
7559   if test "x$HEAD" = x; then
7560     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7561   fi
7562 
7563 
7564 
7565 
7566 
7567   # Publish this variable in the help.
7568 
7569 
7570   if test "x$LN" = x; then
7571     # The variable is not set by user, try to locate tool using the code snippet
7572     for ac_prog in ln
7573 do
7574   # Extract the first word of "$ac_prog", so it can be a program name with args.
7575 set dummy $ac_prog; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_path_LN+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   case $LN in
7582   [\\/]* | ?:[\\/]*)
7583   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7584   ;;
7585   *)
7586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591     for ac_exec_ext in '' $ac_executable_extensions; do
7592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598   done
7599 IFS=$as_save_IFS
7600 
7601   ;;
7602 esac
7603 fi
7604 LN=$ac_cv_path_LN
7605 if test -n "$LN"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7607 $as_echo "$LN" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612 
7613 
7614   test -n "$LN" && break
7615 done
7616 
7617   else
7618     # The variable is set, but is it from the command line or the environment?
7619 
7620     # Try to remove the string !LN! from our list.
7621     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7622     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7623       # If it failed, the variable was not from the command line. Ignore it,
7624       # but warn the user (except for BASH, which is always set by the calling BASH).
7625       if test "xLN" != xBASH; then
7626         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7627 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7628       fi
7629       # Try to locate tool using the code snippet
7630       for ac_prog in ln
7631 do
7632   # Extract the first word of "$ac_prog", so it can be a program name with args.
7633 set dummy $ac_prog; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_path_LN+:} false; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639   case $LN in
7640   [\\/]* | ?:[\\/]*)
7641   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7642   ;;
7643   *)
7644   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645 for as_dir in $PATH
7646 do
7647   IFS=$as_save_IFS
7648   test -z "$as_dir" && as_dir=.
7649     for ac_exec_ext in '' $ac_executable_extensions; do
7650   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7651     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7652     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7653     break 2
7654   fi
7655 done
7656   done
7657 IFS=$as_save_IFS
7658 
7659   ;;
7660 esac
7661 fi
7662 LN=$ac_cv_path_LN
7663 if test -n "$LN"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7665 $as_echo "$LN" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670 
7671 
7672   test -n "$LN" && break
7673 done
7674 
7675     else
7676       # If it succeeded, then it was overridden by the user. We will use it
7677       # for the tool.
7678 
7679       # First remove it from the list of overridden variables, so we can test
7680       # for unknown variables in the end.
7681       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7682 
7683       # Check if the provided tool contains a complete path.
7684       tool_specified="$LN"
7685       tool_basename="${tool_specified##*/}"
7686       if test "x$tool_basename" = "x$tool_specified"; then
7687         # A command without a complete path is provided, search $PATH.
7688         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7689 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7690         # Extract the first word of "$tool_basename", so it can be a program name with args.
7691 set dummy $tool_basename; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_path_LN+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   case $LN in
7698   [\\/]* | ?:[\\/]*)
7699   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7700   ;;
7701   *)
7702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7704 do
7705   IFS=$as_save_IFS
7706   test -z "$as_dir" && as_dir=.
7707     for ac_exec_ext in '' $ac_executable_extensions; do
7708   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7710     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711     break 2
7712   fi
7713 done
7714   done
7715 IFS=$as_save_IFS
7716 
7717   ;;
7718 esac
7719 fi
7720 LN=$ac_cv_path_LN
7721 if test -n "$LN"; then
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7723 $as_echo "$LN" >&6; }
7724 else
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726 $as_echo "no" >&6; }
7727 fi
7728 
7729 
7730         if test "x$LN" = x; then
7731           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7732         fi
7733       else
7734         # Otherwise we believe it is a complete path. Use it as it is.
7735         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7736 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7737         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7738 $as_echo_n "checking for LN... " >&6; }
7739         if test ! -x "$tool_specified"; then
7740           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7741 $as_echo "not found" >&6; }
7742           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7743         fi
7744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7745 $as_echo "$tool_specified" >&6; }
7746       fi
7747     fi
7748   fi
7749 
7750 
7751 
7752   if test "x$LN" = x; then
7753     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7754   fi
7755 
7756 
7757 
7758 
7759 
7760   # Publish this variable in the help.
7761 
7762 
7763   if test "x$LS" = x; then
7764     # The variable is not set by user, try to locate tool using the code snippet
7765     for ac_prog in ls
7766 do
7767   # Extract the first word of "$ac_prog", so it can be a program name with args.
7768 set dummy $ac_prog; ac_word=$2
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7770 $as_echo_n "checking for $ac_word... " >&6; }
7771 if ${ac_cv_path_LS+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774   case $LS in
7775   [\\/]* | ?:[\\/]*)
7776   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7777   ;;
7778   *)
7779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 for as_dir in $PATH
7781 do
7782   IFS=$as_save_IFS
7783   test -z "$as_dir" && as_dir=.
7784     for ac_exec_ext in '' $ac_executable_extensions; do
7785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7788     break 2
7789   fi
7790 done
7791   done
7792 IFS=$as_save_IFS
7793 
7794   ;;
7795 esac
7796 fi
7797 LS=$ac_cv_path_LS
7798 if test -n "$LS"; then
7799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7800 $as_echo "$LS" >&6; }
7801 else
7802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7804 fi
7805 
7806 
7807   test -n "$LS" && break
7808 done
7809 
7810   else
7811     # The variable is set, but is it from the command line or the environment?
7812 
7813     # Try to remove the string !LS! from our list.
7814     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7815     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7816       # If it failed, the variable was not from the command line. Ignore it,
7817       # but warn the user (except for BASH, which is always set by the calling BASH).
7818       if test "xLS" != xBASH; then
7819         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7820 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7821       fi
7822       # Try to locate tool using the code snippet
7823       for ac_prog in ls
7824 do
7825   # Extract the first word of "$ac_prog", so it can be a program name with args.
7826 set dummy $ac_prog; ac_word=$2
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828 $as_echo_n "checking for $ac_word... " >&6; }
7829 if ${ac_cv_path_LS+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   case $LS in
7833   [\\/]* | ?:[\\/]*)
7834   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7835   ;;
7836   *)
7837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7839 do
7840   IFS=$as_save_IFS
7841   test -z "$as_dir" && as_dir=.
7842     for ac_exec_ext in '' $ac_executable_extensions; do
7843   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7844     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846     break 2
7847   fi
7848 done
7849   done
7850 IFS=$as_save_IFS
7851 
7852   ;;
7853 esac
7854 fi
7855 LS=$ac_cv_path_LS
7856 if test -n "$LS"; then
7857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7858 $as_echo "$LS" >&6; }
7859 else
7860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7861 $as_echo "no" >&6; }
7862 fi
7863 
7864 
7865   test -n "$LS" && break
7866 done
7867 
7868     else
7869       # If it succeeded, then it was overridden by the user. We will use it
7870       # for the tool.
7871 
7872       # First remove it from the list of overridden variables, so we can test
7873       # for unknown variables in the end.
7874       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7875 
7876       # Check if the provided tool contains a complete path.
7877       tool_specified="$LS"
7878       tool_basename="${tool_specified##*/}"
7879       if test "x$tool_basename" = "x$tool_specified"; then
7880         # A command without a complete path is provided, search $PATH.
7881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7882 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7883         # Extract the first word of "$tool_basename", so it can be a program name with args.
7884 set dummy $tool_basename; ac_word=$2
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7886 $as_echo_n "checking for $ac_word... " >&6; }
7887 if ${ac_cv_path_LS+:} false; then :
7888   $as_echo_n "(cached) " >&6
7889 else
7890   case $LS in
7891   [\\/]* | ?:[\\/]*)
7892   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7893   ;;
7894   *)
7895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7896 for as_dir in $PATH
7897 do
7898   IFS=$as_save_IFS
7899   test -z "$as_dir" && as_dir=.
7900     for ac_exec_ext in '' $ac_executable_extensions; do
7901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7902     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7904     break 2
7905   fi
7906 done
7907   done
7908 IFS=$as_save_IFS
7909 
7910   ;;
7911 esac
7912 fi
7913 LS=$ac_cv_path_LS
7914 if test -n "$LS"; then
7915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7916 $as_echo "$LS" >&6; }
7917 else
7918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7920 fi
7921 
7922 
7923         if test "x$LS" = x; then
7924           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7925         fi
7926       else
7927         # Otherwise we believe it is a complete path. Use it as it is.
7928         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7929 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7931 $as_echo_n "checking for LS... " >&6; }
7932         if test ! -x "$tool_specified"; then
7933           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7934 $as_echo "not found" >&6; }
7935           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7936         fi
7937         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7938 $as_echo "$tool_specified" >&6; }
7939       fi
7940     fi
7941   fi
7942 
7943 
7944 
7945   if test "x$LS" = x; then
7946     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7947   fi
7948 
7949 
7950 
7951 
7952 
7953   # Publish this variable in the help.
7954 
7955 
7956   if test "x$MKDIR" = x; then
7957     # The variable is not set by user, try to locate tool using the code snippet
7958     for ac_prog in mkdir
7959 do
7960   # Extract the first word of "$ac_prog", so it can be a program name with args.
7961 set dummy $ac_prog; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_path_MKDIR+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   case $MKDIR in
7968   [\\/]* | ?:[\\/]*)
7969   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7970   ;;
7971   *)
7972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975   IFS=$as_save_IFS
7976   test -z "$as_dir" && as_dir=.
7977     for ac_exec_ext in '' $ac_executable_extensions; do
7978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7979     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981     break 2
7982   fi
7983 done
7984   done
7985 IFS=$as_save_IFS
7986 
7987   ;;
7988 esac
7989 fi
7990 MKDIR=$ac_cv_path_MKDIR
7991 if test -n "$MKDIR"; then
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7993 $as_echo "$MKDIR" >&6; }
7994 else
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998 
7999 
8000   test -n "$MKDIR" && break
8001 done
8002 
8003   else
8004     # The variable is set, but is it from the command line or the environment?
8005 
8006     # Try to remove the string !MKDIR! from our list.
8007     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8008     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8009       # If it failed, the variable was not from the command line. Ignore it,
8010       # but warn the user (except for BASH, which is always set by the calling BASH).
8011       if test "xMKDIR" != xBASH; then
8012         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8013 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8014       fi
8015       # Try to locate tool using the code snippet
8016       for ac_prog in mkdir
8017 do
8018   # Extract the first word of "$ac_prog", so it can be a program name with args.
8019 set dummy $ac_prog; ac_word=$2
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021 $as_echo_n "checking for $ac_word... " >&6; }
8022 if ${ac_cv_path_MKDIR+:} false; then :
8023   $as_echo_n "(cached) " >&6
8024 else
8025   case $MKDIR in
8026   [\\/]* | ?:[\\/]*)
8027   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8028   ;;
8029   *)
8030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8037     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044 
8045   ;;
8046 esac
8047 fi
8048 MKDIR=$ac_cv_path_MKDIR
8049 if test -n "$MKDIR"; then
8050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8051 $as_echo "$MKDIR" >&6; }
8052 else
8053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo "no" >&6; }
8055 fi
8056 
8057 
8058   test -n "$MKDIR" && break
8059 done
8060 
8061     else
8062       # If it succeeded, then it was overridden by the user. We will use it
8063       # for the tool.
8064 
8065       # First remove it from the list of overridden variables, so we can test
8066       # for unknown variables in the end.
8067       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8068 
8069       # Check if the provided tool contains a complete path.
8070       tool_specified="$MKDIR"
8071       tool_basename="${tool_specified##*/}"
8072       if test "x$tool_basename" = "x$tool_specified"; then
8073         # A command without a complete path is provided, search $PATH.
8074         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8075 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8076         # Extract the first word of "$tool_basename", so it can be a program name with args.
8077 set dummy $tool_basename; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_path_MKDIR+:} false; then :
8081   $as_echo_n "(cached) " >&6
8082 else
8083   case $MKDIR in
8084   [\\/]* | ?:[\\/]*)
8085   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8086   ;;
8087   *)
8088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8090 do
8091   IFS=$as_save_IFS
8092   test -z "$as_dir" && as_dir=.
8093     for ac_exec_ext in '' $ac_executable_extensions; do
8094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8095     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097     break 2
8098   fi
8099 done
8100   done
8101 IFS=$as_save_IFS
8102 
8103   ;;
8104 esac
8105 fi
8106 MKDIR=$ac_cv_path_MKDIR
8107 if test -n "$MKDIR"; then
8108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8109 $as_echo "$MKDIR" >&6; }
8110 else
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8112 $as_echo "no" >&6; }
8113 fi
8114 
8115 
8116         if test "x$MKDIR" = x; then
8117           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8118         fi
8119       else
8120         # Otherwise we believe it is a complete path. Use it as it is.
8121         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8122 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8123         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8124 $as_echo_n "checking for MKDIR... " >&6; }
8125         if test ! -x "$tool_specified"; then
8126           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8127 $as_echo "not found" >&6; }
8128           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8129         fi
8130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8131 $as_echo "$tool_specified" >&6; }
8132       fi
8133     fi
8134   fi
8135 
8136 
8137 
8138   if test "x$MKDIR" = x; then
8139     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8140   fi
8141 
8142 
8143 
8144 
8145 
8146   # Publish this variable in the help.
8147 
8148 
8149   if test "x$MKTEMP" = x; then
8150     # The variable is not set by user, try to locate tool using the code snippet
8151     for ac_prog in mktemp
8152 do
8153   # Extract the first word of "$ac_prog", so it can be a program name with args.
8154 set dummy $ac_prog; ac_word=$2
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156 $as_echo_n "checking for $ac_word... " >&6; }
8157 if ${ac_cv_path_MKTEMP+:} false; then :
8158   $as_echo_n "(cached) " >&6
8159 else
8160   case $MKTEMP in
8161   [\\/]* | ?:[\\/]*)
8162   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8163   ;;
8164   *)
8165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8166 for as_dir in $PATH
8167 do
8168   IFS=$as_save_IFS
8169   test -z "$as_dir" && as_dir=.
8170     for ac_exec_ext in '' $ac_executable_extensions; do
8171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8172     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8174     break 2
8175   fi
8176 done
8177   done
8178 IFS=$as_save_IFS
8179 
8180   ;;
8181 esac
8182 fi
8183 MKTEMP=$ac_cv_path_MKTEMP
8184 if test -n "$MKTEMP"; then
8185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8186 $as_echo "$MKTEMP" >&6; }
8187 else
8188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8190 fi
8191 
8192 
8193   test -n "$MKTEMP" && break
8194 done
8195 
8196   else
8197     # The variable is set, but is it from the command line or the environment?
8198 
8199     # Try to remove the string !MKTEMP! from our list.
8200     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8201     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8202       # If it failed, the variable was not from the command line. Ignore it,
8203       # but warn the user (except for BASH, which is always set by the calling BASH).
8204       if test "xMKTEMP" != xBASH; then
8205         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8206 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8207       fi
8208       # Try to locate tool using the code snippet
8209       for ac_prog in mktemp
8210 do
8211   # Extract the first word of "$ac_prog", so it can be a program name with args.
8212 set dummy $ac_prog; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_path_MKTEMP+:} false; then :
8216   $as_echo_n "(cached) " >&6
8217 else
8218   case $MKTEMP in
8219   [\\/]* | ?:[\\/]*)
8220   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8221   ;;
8222   *)
8223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226   IFS=$as_save_IFS
8227   test -z "$as_dir" && as_dir=.
8228     for ac_exec_ext in '' $ac_executable_extensions; do
8229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8230     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8232     break 2
8233   fi
8234 done
8235   done
8236 IFS=$as_save_IFS
8237 
8238   ;;
8239 esac
8240 fi
8241 MKTEMP=$ac_cv_path_MKTEMP
8242 if test -n "$MKTEMP"; then
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8244 $as_echo "$MKTEMP" >&6; }
8245 else
8246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8247 $as_echo "no" >&6; }
8248 fi
8249 
8250 
8251   test -n "$MKTEMP" && break
8252 done
8253 
8254     else
8255       # If it succeeded, then it was overridden by the user. We will use it
8256       # for the tool.
8257 
8258       # First remove it from the list of overridden variables, so we can test
8259       # for unknown variables in the end.
8260       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8261 
8262       # Check if the provided tool contains a complete path.
8263       tool_specified="$MKTEMP"
8264       tool_basename="${tool_specified##*/}"
8265       if test "x$tool_basename" = "x$tool_specified"; then
8266         # A command without a complete path is provided, search $PATH.
8267         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8268 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8269         # Extract the first word of "$tool_basename", so it can be a program name with args.
8270 set dummy $tool_basename; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if ${ac_cv_path_MKTEMP+:} false; then :
8274   $as_echo_n "(cached) " >&6
8275 else
8276   case $MKTEMP in
8277   [\\/]* | ?:[\\/]*)
8278   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8279   ;;
8280   *)
8281   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8282 for as_dir in $PATH
8283 do
8284   IFS=$as_save_IFS
8285   test -z "$as_dir" && as_dir=.
8286     for ac_exec_ext in '' $ac_executable_extensions; do
8287   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8288     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8289     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290     break 2
8291   fi
8292 done
8293   done
8294 IFS=$as_save_IFS
8295 
8296   ;;
8297 esac
8298 fi
8299 MKTEMP=$ac_cv_path_MKTEMP
8300 if test -n "$MKTEMP"; then
8301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8302 $as_echo "$MKTEMP" >&6; }
8303 else
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8306 fi
8307 
8308 
8309         if test "x$MKTEMP" = x; then
8310           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8311         fi
8312       else
8313         # Otherwise we believe it is a complete path. Use it as it is.
8314         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8315 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8316         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8317 $as_echo_n "checking for MKTEMP... " >&6; }
8318         if test ! -x "$tool_specified"; then
8319           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8320 $as_echo "not found" >&6; }
8321           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8322         fi
8323         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8324 $as_echo "$tool_specified" >&6; }
8325       fi
8326     fi
8327   fi
8328 
8329 
8330 
8331   if test "x$MKTEMP" = x; then
8332     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8333   fi
8334 
8335 
8336 
8337 
8338 
8339   # Publish this variable in the help.
8340 
8341 
8342   if test "x$MV" = x; then
8343     # The variable is not set by user, try to locate tool using the code snippet
8344     for ac_prog in mv
8345 do
8346   # Extract the first word of "$ac_prog", so it can be a program name with args.
8347 set dummy $ac_prog; ac_word=$2
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349 $as_echo_n "checking for $ac_word... " >&6; }
8350 if ${ac_cv_path_MV+:} false; then :
8351   $as_echo_n "(cached) " >&6
8352 else
8353   case $MV in
8354   [\\/]* | ?:[\\/]*)
8355   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8356   ;;
8357   *)
8358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 for as_dir in $PATH
8360 do
8361   IFS=$as_save_IFS
8362   test -z "$as_dir" && as_dir=.
8363     for ac_exec_ext in '' $ac_executable_extensions; do
8364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8365     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8367     break 2
8368   fi
8369 done
8370   done
8371 IFS=$as_save_IFS
8372 
8373   ;;
8374 esac
8375 fi
8376 MV=$ac_cv_path_MV
8377 if test -n "$MV"; then
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8379 $as_echo "$MV" >&6; }
8380 else
8381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8382 $as_echo "no" >&6; }
8383 fi
8384 
8385 
8386   test -n "$MV" && break
8387 done
8388 
8389   else
8390     # The variable is set, but is it from the command line or the environment?
8391 
8392     # Try to remove the string !MV! from our list.
8393     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8394     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8395       # If it failed, the variable was not from the command line. Ignore it,
8396       # but warn the user (except for BASH, which is always set by the calling BASH).
8397       if test "xMV" != xBASH; then
8398         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8399 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8400       fi
8401       # Try to locate tool using the code snippet
8402       for ac_prog in mv
8403 do
8404   # Extract the first word of "$ac_prog", so it can be a program name with args.
8405 set dummy $ac_prog; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_MV+:} false; then :
8409   $as_echo_n "(cached) " >&6
8410 else
8411   case $MV in
8412   [\\/]* | ?:[\\/]*)
8413   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8414   ;;
8415   *)
8416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8418 do
8419   IFS=$as_save_IFS
8420   test -z "$as_dir" && as_dir=.
8421     for ac_exec_ext in '' $ac_executable_extensions; do
8422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425     break 2
8426   fi
8427 done
8428   done
8429 IFS=$as_save_IFS
8430 
8431   ;;
8432 esac
8433 fi
8434 MV=$ac_cv_path_MV
8435 if test -n "$MV"; then
8436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8437 $as_echo "$MV" >&6; }
8438 else
8439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8441 fi
8442 
8443 
8444   test -n "$MV" && break
8445 done
8446 
8447     else
8448       # If it succeeded, then it was overridden by the user. We will use it
8449       # for the tool.
8450 
8451       # First remove it from the list of overridden variables, so we can test
8452       # for unknown variables in the end.
8453       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8454 
8455       # Check if the provided tool contains a complete path.
8456       tool_specified="$MV"
8457       tool_basename="${tool_specified##*/}"
8458       if test "x$tool_basename" = "x$tool_specified"; then
8459         # A command without a complete path is provided, search $PATH.
8460         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8461 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8462         # Extract the first word of "$tool_basename", so it can be a program name with args.
8463 set dummy $tool_basename; ac_word=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if ${ac_cv_path_MV+:} false; then :
8467   $as_echo_n "(cached) " >&6
8468 else
8469   case $MV in
8470   [\\/]* | ?:[\\/]*)
8471   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8472   ;;
8473   *)
8474   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8475 for as_dir in $PATH
8476 do
8477   IFS=$as_save_IFS
8478   test -z "$as_dir" && as_dir=.
8479     for ac_exec_ext in '' $ac_executable_extensions; do
8480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8481     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8483     break 2
8484   fi
8485 done
8486   done
8487 IFS=$as_save_IFS
8488 
8489   ;;
8490 esac
8491 fi
8492 MV=$ac_cv_path_MV
8493 if test -n "$MV"; then
8494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8495 $as_echo "$MV" >&6; }
8496 else
8497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8499 fi
8500 
8501 
8502         if test "x$MV" = x; then
8503           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8504         fi
8505       else
8506         # Otherwise we believe it is a complete path. Use it as it is.
8507         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8508 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8509         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8510 $as_echo_n "checking for MV... " >&6; }
8511         if test ! -x "$tool_specified"; then
8512           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8513 $as_echo "not found" >&6; }
8514           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8515         fi
8516         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8517 $as_echo "$tool_specified" >&6; }
8518       fi
8519     fi
8520   fi
8521 
8522 
8523 
8524   if test "x$MV" = x; then
8525     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8526   fi
8527 
8528 
8529 
8530 
8531 
8532   # Publish this variable in the help.
8533 
8534 
8535   if test "x$NAWK" = x; then
8536     # The variable is not set by user, try to locate tool using the code snippet
8537     for ac_prog in nawk gawk awk
8538 do
8539   # Extract the first word of "$ac_prog", so it can be a program name with args.
8540 set dummy $ac_prog; ac_word=$2
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8542 $as_echo_n "checking for $ac_word... " >&6; }
8543 if ${ac_cv_path_NAWK+:} false; then :
8544   $as_echo_n "(cached) " >&6
8545 else
8546   case $NAWK in
8547   [\\/]* | ?:[\\/]*)
8548   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8549   ;;
8550   *)
8551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8553 do
8554   IFS=$as_save_IFS
8555   test -z "$as_dir" && as_dir=.
8556     for ac_exec_ext in '' $ac_executable_extensions; do
8557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560     break 2
8561   fi
8562 done
8563   done
8564 IFS=$as_save_IFS
8565 
8566   ;;
8567 esac
8568 fi
8569 NAWK=$ac_cv_path_NAWK
8570 if test -n "$NAWK"; then
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8572 $as_echo "$NAWK" >&6; }
8573 else
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8575 $as_echo "no" >&6; }
8576 fi
8577 
8578 
8579   test -n "$NAWK" && break
8580 done
8581 
8582   else
8583     # The variable is set, but is it from the command line or the environment?
8584 
8585     # Try to remove the string !NAWK! from our list.
8586     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8587     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8588       # If it failed, the variable was not from the command line. Ignore it,
8589       # but warn the user (except for BASH, which is always set by the calling BASH).
8590       if test "xNAWK" != xBASH; then
8591         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8592 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8593       fi
8594       # Try to locate tool using the code snippet
8595       for ac_prog in nawk gawk awk
8596 do
8597   # Extract the first word of "$ac_prog", so it can be a program name with args.
8598 set dummy $ac_prog; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if ${ac_cv_path_NAWK+:} false; then :
8602   $as_echo_n "(cached) " >&6
8603 else
8604   case $NAWK in
8605   [\\/]* | ?:[\\/]*)
8606   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8607   ;;
8608   *)
8609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8611 do
8612   IFS=$as_save_IFS
8613   test -z "$as_dir" && as_dir=.
8614     for ac_exec_ext in '' $ac_executable_extensions; do
8615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8616     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618     break 2
8619   fi
8620 done
8621   done
8622 IFS=$as_save_IFS
8623 
8624   ;;
8625 esac
8626 fi
8627 NAWK=$ac_cv_path_NAWK
8628 if test -n "$NAWK"; then
8629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8630 $as_echo "$NAWK" >&6; }
8631 else
8632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8634 fi
8635 
8636 
8637   test -n "$NAWK" && break
8638 done
8639 
8640     else
8641       # If it succeeded, then it was overridden by the user. We will use it
8642       # for the tool.
8643 
8644       # First remove it from the list of overridden variables, so we can test
8645       # for unknown variables in the end.
8646       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8647 
8648       # Check if the provided tool contains a complete path.
8649       tool_specified="$NAWK"
8650       tool_basename="${tool_specified##*/}"
8651       if test "x$tool_basename" = "x$tool_specified"; then
8652         # A command without a complete path is provided, search $PATH.
8653         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8654 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8655         # Extract the first word of "$tool_basename", so it can be a program name with args.
8656 set dummy $tool_basename; ac_word=$2
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658 $as_echo_n "checking for $ac_word... " >&6; }
8659 if ${ac_cv_path_NAWK+:} false; then :
8660   $as_echo_n "(cached) " >&6
8661 else
8662   case $NAWK in
8663   [\\/]* | ?:[\\/]*)
8664   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8665   ;;
8666   *)
8667   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668 for as_dir in $PATH
8669 do
8670   IFS=$as_save_IFS
8671   test -z "$as_dir" && as_dir=.
8672     for ac_exec_ext in '' $ac_executable_extensions; do
8673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676     break 2
8677   fi
8678 done
8679   done
8680 IFS=$as_save_IFS
8681 
8682   ;;
8683 esac
8684 fi
8685 NAWK=$ac_cv_path_NAWK
8686 if test -n "$NAWK"; then
8687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8688 $as_echo "$NAWK" >&6; }
8689 else
8690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8692 fi
8693 
8694 
8695         if test "x$NAWK" = x; then
8696           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8697         fi
8698       else
8699         # Otherwise we believe it is a complete path. Use it as it is.
8700         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8701 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8702         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8703 $as_echo_n "checking for NAWK... " >&6; }
8704         if test ! -x "$tool_specified"; then
8705           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8706 $as_echo "not found" >&6; }
8707           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8708         fi
8709         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8710 $as_echo "$tool_specified" >&6; }
8711       fi
8712     fi
8713   fi
8714 
8715 
8716 
8717   if test "x$NAWK" = x; then
8718     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8719   fi
8720 
8721 
8722 
8723 
8724 
8725   # Publish this variable in the help.
8726 
8727 
8728   if test "x$PRINTF" = x; then
8729     # The variable is not set by user, try to locate tool using the code snippet
8730     for ac_prog in printf
8731 do
8732   # Extract the first word of "$ac_prog", so it can be a program name with args.
8733 set dummy $ac_prog; ac_word=$2
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735 $as_echo_n "checking for $ac_word... " >&6; }
8736 if ${ac_cv_path_PRINTF+:} false; then :
8737   $as_echo_n "(cached) " >&6
8738 else
8739   case $PRINTF in
8740   [\\/]* | ?:[\\/]*)
8741   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8742   ;;
8743   *)
8744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8745 for as_dir in $PATH
8746 do
8747   IFS=$as_save_IFS
8748   test -z "$as_dir" && as_dir=.
8749     for ac_exec_ext in '' $ac_executable_extensions; do
8750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8751     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8753     break 2
8754   fi
8755 done
8756   done
8757 IFS=$as_save_IFS
8758 
8759   ;;
8760 esac
8761 fi
8762 PRINTF=$ac_cv_path_PRINTF
8763 if test -n "$PRINTF"; then
8764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8765 $as_echo "$PRINTF" >&6; }
8766 else
8767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 fi
8770 
8771 
8772   test -n "$PRINTF" && break
8773 done
8774 
8775   else
8776     # The variable is set, but is it from the command line or the environment?
8777 
8778     # Try to remove the string !PRINTF! from our list.
8779     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8780     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8781       # If it failed, the variable was not from the command line. Ignore it,
8782       # but warn the user (except for BASH, which is always set by the calling BASH).
8783       if test "xPRINTF" != xBASH; then
8784         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8785 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8786       fi
8787       # Try to locate tool using the code snippet
8788       for ac_prog in printf
8789 do
8790   # Extract the first word of "$ac_prog", so it can be a program name with args.
8791 set dummy $ac_prog; ac_word=$2
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793 $as_echo_n "checking for $ac_word... " >&6; }
8794 if ${ac_cv_path_PRINTF+:} false; then :
8795   $as_echo_n "(cached) " >&6
8796 else
8797   case $PRINTF in
8798   [\\/]* | ?:[\\/]*)
8799   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8800   ;;
8801   *)
8802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803 for as_dir in $PATH
8804 do
8805   IFS=$as_save_IFS
8806   test -z "$as_dir" && as_dir=.
8807     for ac_exec_ext in '' $ac_executable_extensions; do
8808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8809     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8811     break 2
8812   fi
8813 done
8814   done
8815 IFS=$as_save_IFS
8816 
8817   ;;
8818 esac
8819 fi
8820 PRINTF=$ac_cv_path_PRINTF
8821 if test -n "$PRINTF"; then
8822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8823 $as_echo "$PRINTF" >&6; }
8824 else
8825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8826 $as_echo "no" >&6; }
8827 fi
8828 
8829 
8830   test -n "$PRINTF" && break
8831 done
8832 
8833     else
8834       # If it succeeded, then it was overridden by the user. We will use it
8835       # for the tool.
8836 
8837       # First remove it from the list of overridden variables, so we can test
8838       # for unknown variables in the end.
8839       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8840 
8841       # Check if the provided tool contains a complete path.
8842       tool_specified="$PRINTF"
8843       tool_basename="${tool_specified##*/}"
8844       if test "x$tool_basename" = "x$tool_specified"; then
8845         # A command without a complete path is provided, search $PATH.
8846         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8847 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8848         # Extract the first word of "$tool_basename", so it can be a program name with args.
8849 set dummy $tool_basename; ac_word=$2
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851 $as_echo_n "checking for $ac_word... " >&6; }
8852 if ${ac_cv_path_PRINTF+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   case $PRINTF in
8856   [\\/]* | ?:[\\/]*)
8857   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8858   ;;
8859   *)
8860   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8861 for as_dir in $PATH
8862 do
8863   IFS=$as_save_IFS
8864   test -z "$as_dir" && as_dir=.
8865     for ac_exec_ext in '' $ac_executable_extensions; do
8866   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8867     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8868     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869     break 2
8870   fi
8871 done
8872   done
8873 IFS=$as_save_IFS
8874 
8875   ;;
8876 esac
8877 fi
8878 PRINTF=$ac_cv_path_PRINTF
8879 if test -n "$PRINTF"; then
8880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8881 $as_echo "$PRINTF" >&6; }
8882 else
8883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8884 $as_echo "no" >&6; }
8885 fi
8886 
8887 
8888         if test "x$PRINTF" = x; then
8889           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8890         fi
8891       else
8892         # Otherwise we believe it is a complete path. Use it as it is.
8893         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8894 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8896 $as_echo_n "checking for PRINTF... " >&6; }
8897         if test ! -x "$tool_specified"; then
8898           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8899 $as_echo "not found" >&6; }
8900           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8901         fi
8902         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8903 $as_echo "$tool_specified" >&6; }
8904       fi
8905     fi
8906   fi
8907 
8908 
8909 
8910   if test "x$PRINTF" = x; then
8911     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8912   fi
8913 
8914 
8915 
8916 
8917 
8918   # Publish this variable in the help.
8919 
8920 
8921   if test "x$RM" = x; then
8922     # The variable is not set by user, try to locate tool using the code snippet
8923     for ac_prog in rm
8924 do
8925   # Extract the first word of "$ac_prog", so it can be a program name with args.
8926 set dummy $ac_prog; ac_word=$2
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8928 $as_echo_n "checking for $ac_word... " >&6; }
8929 if ${ac_cv_path_RM+:} false; then :
8930   $as_echo_n "(cached) " >&6
8931 else
8932   case $RM in
8933   [\\/]* | ?:[\\/]*)
8934   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8935   ;;
8936   *)
8937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8938 for as_dir in $PATH
8939 do
8940   IFS=$as_save_IFS
8941   test -z "$as_dir" && as_dir=.
8942     for ac_exec_ext in '' $ac_executable_extensions; do
8943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8944     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8946     break 2
8947   fi
8948 done
8949   done
8950 IFS=$as_save_IFS
8951 
8952   ;;
8953 esac
8954 fi
8955 RM=$ac_cv_path_RM
8956 if test -n "$RM"; then
8957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8958 $as_echo "$RM" >&6; }
8959 else
8960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8962 fi
8963 
8964 
8965   test -n "$RM" && break
8966 done
8967 
8968   else
8969     # The variable is set, but is it from the command line or the environment?
8970 
8971     # Try to remove the string !RM! from our list.
8972     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8973     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8974       # If it failed, the variable was not from the command line. Ignore it,
8975       # but warn the user (except for BASH, which is always set by the calling BASH).
8976       if test "xRM" != xBASH; then
8977         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8978 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8979       fi
8980       # Try to locate tool using the code snippet
8981       for ac_prog in rm
8982 do
8983   # Extract the first word of "$ac_prog", so it can be a program name with args.
8984 set dummy $ac_prog; ac_word=$2
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8986 $as_echo_n "checking for $ac_word... " >&6; }
8987 if ${ac_cv_path_RM+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   case $RM in
8991   [\\/]* | ?:[\\/]*)
8992   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8993   ;;
8994   *)
8995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8996 for as_dir in $PATH
8997 do
8998   IFS=$as_save_IFS
8999   test -z "$as_dir" && as_dir=.
9000     for ac_exec_ext in '' $ac_executable_extensions; do
9001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9002     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004     break 2
9005   fi
9006 done
9007   done
9008 IFS=$as_save_IFS
9009 
9010   ;;
9011 esac
9012 fi
9013 RM=$ac_cv_path_RM
9014 if test -n "$RM"; then
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9016 $as_echo "$RM" >&6; }
9017 else
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021 
9022 
9023   test -n "$RM" && break
9024 done
9025 
9026     else
9027       # If it succeeded, then it was overridden by the user. We will use it
9028       # for the tool.
9029 
9030       # First remove it from the list of overridden variables, so we can test
9031       # for unknown variables in the end.
9032       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9033 
9034       # Check if the provided tool contains a complete path.
9035       tool_specified="$RM"
9036       tool_basename="${tool_specified##*/}"
9037       if test "x$tool_basename" = "x$tool_specified"; then
9038         # A command without a complete path is provided, search $PATH.
9039         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9040 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9041         # Extract the first word of "$tool_basename", so it can be a program name with args.
9042 set dummy $tool_basename; ac_word=$2
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9044 $as_echo_n "checking for $ac_word... " >&6; }
9045 if ${ac_cv_path_RM+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   case $RM in
9049   [\\/]* | ?:[\\/]*)
9050   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9051   ;;
9052   *)
9053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9055 do
9056   IFS=$as_save_IFS
9057   test -z "$as_dir" && as_dir=.
9058     for ac_exec_ext in '' $ac_executable_extensions; do
9059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9060     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062     break 2
9063   fi
9064 done
9065   done
9066 IFS=$as_save_IFS
9067 
9068   ;;
9069 esac
9070 fi
9071 RM=$ac_cv_path_RM
9072 if test -n "$RM"; then
9073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9074 $as_echo "$RM" >&6; }
9075 else
9076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9077 $as_echo "no" >&6; }
9078 fi
9079 
9080 
9081         if test "x$RM" = x; then
9082           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9083         fi
9084       else
9085         # Otherwise we believe it is a complete path. Use it as it is.
9086         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9087 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9089 $as_echo_n "checking for RM... " >&6; }
9090         if test ! -x "$tool_specified"; then
9091           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9092 $as_echo "not found" >&6; }
9093           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9094         fi
9095         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9096 $as_echo "$tool_specified" >&6; }
9097       fi
9098     fi
9099   fi
9100 
9101 
9102 
9103   if test "x$RM" = x; then
9104     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9105   fi
9106 
9107 
9108 
9109 
9110 
9111   # Publish this variable in the help.
9112 
9113 
9114   if test "x$SH" = x; then
9115     # The variable is not set by user, try to locate tool using the code snippet
9116     for ac_prog in sh
9117 do
9118   # Extract the first word of "$ac_prog", so it can be a program name with args.
9119 set dummy $ac_prog; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if ${ac_cv_path_SH+:} false; then :
9123   $as_echo_n "(cached) " >&6
9124 else
9125   case $SH in
9126   [\\/]* | ?:[\\/]*)
9127   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9128   ;;
9129   *)
9130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9131 for as_dir in $PATH
9132 do
9133   IFS=$as_save_IFS
9134   test -z "$as_dir" && as_dir=.
9135     for ac_exec_ext in '' $ac_executable_extensions; do
9136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9137     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9139     break 2
9140   fi
9141 done
9142   done
9143 IFS=$as_save_IFS
9144 
9145   ;;
9146 esac
9147 fi
9148 SH=$ac_cv_path_SH
9149 if test -n "$SH"; then
9150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9151 $as_echo "$SH" >&6; }
9152 else
9153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9155 fi
9156 
9157 
9158   test -n "$SH" && break
9159 done
9160 
9161   else
9162     # The variable is set, but is it from the command line or the environment?
9163 
9164     # Try to remove the string !SH! from our list.
9165     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9166     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9167       # If it failed, the variable was not from the command line. Ignore it,
9168       # but warn the user (except for BASH, which is always set by the calling BASH).
9169       if test "xSH" != xBASH; then
9170         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9171 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9172       fi
9173       # Try to locate tool using the code snippet
9174       for ac_prog in sh
9175 do
9176   # Extract the first word of "$ac_prog", so it can be a program name with args.
9177 set dummy $ac_prog; ac_word=$2
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179 $as_echo_n "checking for $ac_word... " >&6; }
9180 if ${ac_cv_path_SH+:} false; then :
9181   $as_echo_n "(cached) " >&6
9182 else
9183   case $SH in
9184   [\\/]* | ?:[\\/]*)
9185   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9186   ;;
9187   *)
9188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189 for as_dir in $PATH
9190 do
9191   IFS=$as_save_IFS
9192   test -z "$as_dir" && as_dir=.
9193     for ac_exec_ext in '' $ac_executable_extensions; do
9194   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9196     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9197     break 2
9198   fi
9199 done
9200   done
9201 IFS=$as_save_IFS
9202 
9203   ;;
9204 esac
9205 fi
9206 SH=$ac_cv_path_SH
9207 if test -n "$SH"; then
9208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9209 $as_echo "$SH" >&6; }
9210 else
9211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9213 fi
9214 
9215 
9216   test -n "$SH" && break
9217 done
9218 
9219     else
9220       # If it succeeded, then it was overridden by the user. We will use it
9221       # for the tool.
9222 
9223       # First remove it from the list of overridden variables, so we can test
9224       # for unknown variables in the end.
9225       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9226 
9227       # Check if the provided tool contains a complete path.
9228       tool_specified="$SH"
9229       tool_basename="${tool_specified##*/}"
9230       if test "x$tool_basename" = "x$tool_specified"; then
9231         # A command without a complete path is provided, search $PATH.
9232         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9233 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9234         # Extract the first word of "$tool_basename", so it can be a program name with args.
9235 set dummy $tool_basename; ac_word=$2
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9237 $as_echo_n "checking for $ac_word... " >&6; }
9238 if ${ac_cv_path_SH+:} false; then :
9239   $as_echo_n "(cached) " >&6
9240 else
9241   case $SH in
9242   [\\/]* | ?:[\\/]*)
9243   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9244   ;;
9245   *)
9246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247 for as_dir in $PATH
9248 do
9249   IFS=$as_save_IFS
9250   test -z "$as_dir" && as_dir=.
9251     for ac_exec_ext in '' $ac_executable_extensions; do
9252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9253     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255     break 2
9256   fi
9257 done
9258   done
9259 IFS=$as_save_IFS
9260 
9261   ;;
9262 esac
9263 fi
9264 SH=$ac_cv_path_SH
9265 if test -n "$SH"; then
9266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9267 $as_echo "$SH" >&6; }
9268 else
9269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9270 $as_echo "no" >&6; }
9271 fi
9272 
9273 
9274         if test "x$SH" = x; then
9275           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9276         fi
9277       else
9278         # Otherwise we believe it is a complete path. Use it as it is.
9279         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9280 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9281         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9282 $as_echo_n "checking for SH... " >&6; }
9283         if test ! -x "$tool_specified"; then
9284           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9285 $as_echo "not found" >&6; }
9286           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9287         fi
9288         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9289 $as_echo "$tool_specified" >&6; }
9290       fi
9291     fi
9292   fi
9293 
9294 
9295 
9296   if test "x$SH" = x; then
9297     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9298   fi
9299 
9300 
9301 
9302 
9303 
9304   # Publish this variable in the help.
9305 
9306 
9307   if test "x$SORT" = x; then
9308     # The variable is not set by user, try to locate tool using the code snippet
9309     for ac_prog in sort
9310 do
9311   # Extract the first word of "$ac_prog", so it can be a program name with args.
9312 set dummy $ac_prog; ac_word=$2
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9314 $as_echo_n "checking for $ac_word... " >&6; }
9315 if ${ac_cv_path_SORT+:} false; then :
9316   $as_echo_n "(cached) " >&6
9317 else
9318   case $SORT in
9319   [\\/]* | ?:[\\/]*)
9320   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9321   ;;
9322   *)
9323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9324 for as_dir in $PATH
9325 do
9326   IFS=$as_save_IFS
9327   test -z "$as_dir" && as_dir=.
9328     for ac_exec_ext in '' $ac_executable_extensions; do
9329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9330     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9332     break 2
9333   fi
9334 done
9335   done
9336 IFS=$as_save_IFS
9337 
9338   ;;
9339 esac
9340 fi
9341 SORT=$ac_cv_path_SORT
9342 if test -n "$SORT"; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9344 $as_echo "$SORT" >&6; }
9345 else
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9348 fi
9349 
9350 
9351   test -n "$SORT" && break
9352 done
9353 
9354   else
9355     # The variable is set, but is it from the command line or the environment?
9356 
9357     # Try to remove the string !SORT! from our list.
9358     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9359     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9360       # If it failed, the variable was not from the command line. Ignore it,
9361       # but warn the user (except for BASH, which is always set by the calling BASH).
9362       if test "xSORT" != xBASH; then
9363         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9364 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9365       fi
9366       # Try to locate tool using the code snippet
9367       for ac_prog in sort
9368 do
9369   # Extract the first word of "$ac_prog", so it can be a program name with args.
9370 set dummy $ac_prog; ac_word=$2
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9372 $as_echo_n "checking for $ac_word... " >&6; }
9373 if ${ac_cv_path_SORT+:} false; then :
9374   $as_echo_n "(cached) " >&6
9375 else
9376   case $SORT in
9377   [\\/]* | ?:[\\/]*)
9378   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9379   ;;
9380   *)
9381   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9382 for as_dir in $PATH
9383 do
9384   IFS=$as_save_IFS
9385   test -z "$as_dir" && as_dir=.
9386     for ac_exec_ext in '' $ac_executable_extensions; do
9387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9388     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390     break 2
9391   fi
9392 done
9393   done
9394 IFS=$as_save_IFS
9395 
9396   ;;
9397 esac
9398 fi
9399 SORT=$ac_cv_path_SORT
9400 if test -n "$SORT"; then
9401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9402 $as_echo "$SORT" >&6; }
9403 else
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9405 $as_echo "no" >&6; }
9406 fi
9407 
9408 
9409   test -n "$SORT" && break
9410 done
9411 
9412     else
9413       # If it succeeded, then it was overridden by the user. We will use it
9414       # for the tool.
9415 
9416       # First remove it from the list of overridden variables, so we can test
9417       # for unknown variables in the end.
9418       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9419 
9420       # Check if the provided tool contains a complete path.
9421       tool_specified="$SORT"
9422       tool_basename="${tool_specified##*/}"
9423       if test "x$tool_basename" = "x$tool_specified"; then
9424         # A command without a complete path is provided, search $PATH.
9425         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9426 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9427         # Extract the first word of "$tool_basename", so it can be a program name with args.
9428 set dummy $tool_basename; ac_word=$2
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430 $as_echo_n "checking for $ac_word... " >&6; }
9431 if ${ac_cv_path_SORT+:} false; then :
9432   $as_echo_n "(cached) " >&6
9433 else
9434   case $SORT in
9435   [\\/]* | ?:[\\/]*)
9436   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9437   ;;
9438   *)
9439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9440 for as_dir in $PATH
9441 do
9442   IFS=$as_save_IFS
9443   test -z "$as_dir" && as_dir=.
9444     for ac_exec_ext in '' $ac_executable_extensions; do
9445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9446     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9448     break 2
9449   fi
9450 done
9451   done
9452 IFS=$as_save_IFS
9453 
9454   ;;
9455 esac
9456 fi
9457 SORT=$ac_cv_path_SORT
9458 if test -n "$SORT"; then
9459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9460 $as_echo "$SORT" >&6; }
9461 else
9462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9463 $as_echo "no" >&6; }
9464 fi
9465 
9466 
9467         if test "x$SORT" = x; then
9468           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9469         fi
9470       else
9471         # Otherwise we believe it is a complete path. Use it as it is.
9472         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9473 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9474         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9475 $as_echo_n "checking for SORT... " >&6; }
9476         if test ! -x "$tool_specified"; then
9477           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9478 $as_echo "not found" >&6; }
9479           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9480         fi
9481         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9482 $as_echo "$tool_specified" >&6; }
9483       fi
9484     fi
9485   fi
9486 
9487 
9488 
9489   if test "x$SORT" = x; then
9490     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9491   fi
9492 
9493 
9494 
9495 
9496 
9497   # Publish this variable in the help.
9498 
9499 
9500   if test "x$TAIL" = x; then
9501     # The variable is not set by user, try to locate tool using the code snippet
9502     for ac_prog in tail
9503 do
9504   # Extract the first word of "$ac_prog", so it can be a program name with args.
9505 set dummy $ac_prog; ac_word=$2
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9507 $as_echo_n "checking for $ac_word... " >&6; }
9508 if ${ac_cv_path_TAIL+:} false; then :
9509   $as_echo_n "(cached) " >&6
9510 else
9511   case $TAIL in
9512   [\\/]* | ?:[\\/]*)
9513   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9514   ;;
9515   *)
9516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9517 for as_dir in $PATH
9518 do
9519   IFS=$as_save_IFS
9520   test -z "$as_dir" && as_dir=.
9521     for ac_exec_ext in '' $ac_executable_extensions; do
9522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9523     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9525     break 2
9526   fi
9527 done
9528   done
9529 IFS=$as_save_IFS
9530 
9531   ;;
9532 esac
9533 fi
9534 TAIL=$ac_cv_path_TAIL
9535 if test -n "$TAIL"; then
9536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9537 $as_echo "$TAIL" >&6; }
9538 else
9539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9540 $as_echo "no" >&6; }
9541 fi
9542 
9543 
9544   test -n "$TAIL" && break
9545 done
9546 
9547   else
9548     # The variable is set, but is it from the command line or the environment?
9549 
9550     # Try to remove the string !TAIL! from our list.
9551     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9552     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9553       # If it failed, the variable was not from the command line. Ignore it,
9554       # but warn the user (except for BASH, which is always set by the calling BASH).
9555       if test "xTAIL" != xBASH; then
9556         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9557 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9558       fi
9559       # Try to locate tool using the code snippet
9560       for ac_prog in tail
9561 do
9562   # Extract the first word of "$ac_prog", so it can be a program name with args.
9563 set dummy $ac_prog; ac_word=$2
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9565 $as_echo_n "checking for $ac_word... " >&6; }
9566 if ${ac_cv_path_TAIL+:} false; then :
9567   $as_echo_n "(cached) " >&6
9568 else
9569   case $TAIL in
9570   [\\/]* | ?:[\\/]*)
9571   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9572   ;;
9573   *)
9574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9576 do
9577   IFS=$as_save_IFS
9578   test -z "$as_dir" && as_dir=.
9579     for ac_exec_ext in '' $ac_executable_extensions; do
9580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9581     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9583     break 2
9584   fi
9585 done
9586   done
9587 IFS=$as_save_IFS
9588 
9589   ;;
9590 esac
9591 fi
9592 TAIL=$ac_cv_path_TAIL
9593 if test -n "$TAIL"; then
9594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9595 $as_echo "$TAIL" >&6; }
9596 else
9597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9598 $as_echo "no" >&6; }
9599 fi
9600 
9601 
9602   test -n "$TAIL" && break
9603 done
9604 
9605     else
9606       # If it succeeded, then it was overridden by the user. We will use it
9607       # for the tool.
9608 
9609       # First remove it from the list of overridden variables, so we can test
9610       # for unknown variables in the end.
9611       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9612 
9613       # Check if the provided tool contains a complete path.
9614       tool_specified="$TAIL"
9615       tool_basename="${tool_specified##*/}"
9616       if test "x$tool_basename" = "x$tool_specified"; then
9617         # A command without a complete path is provided, search $PATH.
9618         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9619 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9620         # Extract the first word of "$tool_basename", so it can be a program name with args.
9621 set dummy $tool_basename; ac_word=$2
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9623 $as_echo_n "checking for $ac_word... " >&6; }
9624 if ${ac_cv_path_TAIL+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   case $TAIL in
9628   [\\/]* | ?:[\\/]*)
9629   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9630   ;;
9631   *)
9632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 for as_dir in $PATH
9634 do
9635   IFS=$as_save_IFS
9636   test -z "$as_dir" && as_dir=.
9637     for ac_exec_ext in '' $ac_executable_extensions; do
9638   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9639     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9640     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9641     break 2
9642   fi
9643 done
9644   done
9645 IFS=$as_save_IFS
9646 
9647   ;;
9648 esac
9649 fi
9650 TAIL=$ac_cv_path_TAIL
9651 if test -n "$TAIL"; then
9652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9653 $as_echo "$TAIL" >&6; }
9654 else
9655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9656 $as_echo "no" >&6; }
9657 fi
9658 
9659 
9660         if test "x$TAIL" = x; then
9661           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9662         fi
9663       else
9664         # Otherwise we believe it is a complete path. Use it as it is.
9665         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9666 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9668 $as_echo_n "checking for TAIL... " >&6; }
9669         if test ! -x "$tool_specified"; then
9670           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9671 $as_echo "not found" >&6; }
9672           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9673         fi
9674         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9675 $as_echo "$tool_specified" >&6; }
9676       fi
9677     fi
9678   fi
9679 
9680 
9681 
9682   if test "x$TAIL" = x; then
9683     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9684   fi
9685 
9686 
9687 
9688 
9689 
9690   # Publish this variable in the help.
9691 
9692 
9693   if test "x$TAR" = x; then
9694     # The variable is not set by user, try to locate tool using the code snippet
9695     for ac_prog in tar
9696 do
9697   # Extract the first word of "$ac_prog", so it can be a program name with args.
9698 set dummy $ac_prog; ac_word=$2
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9700 $as_echo_n "checking for $ac_word... " >&6; }
9701 if ${ac_cv_path_TAR+:} false; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   case $TAR in
9705   [\\/]* | ?:[\\/]*)
9706   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9707   ;;
9708   *)
9709   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9710 for as_dir in $PATH
9711 do
9712   IFS=$as_save_IFS
9713   test -z "$as_dir" && as_dir=.
9714     for ac_exec_ext in '' $ac_executable_extensions; do
9715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9716     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9718     break 2
9719   fi
9720 done
9721   done
9722 IFS=$as_save_IFS
9723 
9724   ;;
9725 esac
9726 fi
9727 TAR=$ac_cv_path_TAR
9728 if test -n "$TAR"; then
9729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9730 $as_echo "$TAR" >&6; }
9731 else
9732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733 $as_echo "no" >&6; }
9734 fi
9735 
9736 
9737   test -n "$TAR" && break
9738 done
9739 
9740   else
9741     # The variable is set, but is it from the command line or the environment?
9742 
9743     # Try to remove the string !TAR! from our list.
9744     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9745     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9746       # If it failed, the variable was not from the command line. Ignore it,
9747       # but warn the user (except for BASH, which is always set by the calling BASH).
9748       if test "xTAR" != xBASH; then
9749         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9750 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9751       fi
9752       # Try to locate tool using the code snippet
9753       for ac_prog in tar
9754 do
9755   # Extract the first word of "$ac_prog", so it can be a program name with args.
9756 set dummy $ac_prog; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_path_TAR+:} false; then :
9760   $as_echo_n "(cached) " >&6
9761 else
9762   case $TAR in
9763   [\\/]* | ?:[\\/]*)
9764   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9765   ;;
9766   *)
9767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9768 for as_dir in $PATH
9769 do
9770   IFS=$as_save_IFS
9771   test -z "$as_dir" && as_dir=.
9772     for ac_exec_ext in '' $ac_executable_extensions; do
9773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9774     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776     break 2
9777   fi
9778 done
9779   done
9780 IFS=$as_save_IFS
9781 
9782   ;;
9783 esac
9784 fi
9785 TAR=$ac_cv_path_TAR
9786 if test -n "$TAR"; then
9787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9788 $as_echo "$TAR" >&6; }
9789 else
9790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9791 $as_echo "no" >&6; }
9792 fi
9793 
9794 
9795   test -n "$TAR" && break
9796 done
9797 
9798     else
9799       # If it succeeded, then it was overridden by the user. We will use it
9800       # for the tool.
9801 
9802       # First remove it from the list of overridden variables, so we can test
9803       # for unknown variables in the end.
9804       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9805 
9806       # Check if the provided tool contains a complete path.
9807       tool_specified="$TAR"
9808       tool_basename="${tool_specified##*/}"
9809       if test "x$tool_basename" = "x$tool_specified"; then
9810         # A command without a complete path is provided, search $PATH.
9811         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9812 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9813         # Extract the first word of "$tool_basename", so it can be a program name with args.
9814 set dummy $tool_basename; ac_word=$2
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9816 $as_echo_n "checking for $ac_word... " >&6; }
9817 if ${ac_cv_path_TAR+:} false; then :
9818   $as_echo_n "(cached) " >&6
9819 else
9820   case $TAR in
9821   [\\/]* | ?:[\\/]*)
9822   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9823   ;;
9824   *)
9825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9827 do
9828   IFS=$as_save_IFS
9829   test -z "$as_dir" && as_dir=.
9830     for ac_exec_ext in '' $ac_executable_extensions; do
9831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9832     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9834     break 2
9835   fi
9836 done
9837   done
9838 IFS=$as_save_IFS
9839 
9840   ;;
9841 esac
9842 fi
9843 TAR=$ac_cv_path_TAR
9844 if test -n "$TAR"; then
9845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9846 $as_echo "$TAR" >&6; }
9847 else
9848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9849 $as_echo "no" >&6; }
9850 fi
9851 
9852 
9853         if test "x$TAR" = x; then
9854           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9855         fi
9856       else
9857         # Otherwise we believe it is a complete path. Use it as it is.
9858         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9859 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9860         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9861 $as_echo_n "checking for TAR... " >&6; }
9862         if test ! -x "$tool_specified"; then
9863           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9864 $as_echo "not found" >&6; }
9865           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9866         fi
9867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9868 $as_echo "$tool_specified" >&6; }
9869       fi
9870     fi
9871   fi
9872 
9873 
9874 
9875   if test "x$TAR" = x; then
9876     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9877   fi
9878 
9879 
9880 
9881 
9882 
9883   # Publish this variable in the help.
9884 
9885 
9886   if test "x$TEE" = x; then
9887     # The variable is not set by user, try to locate tool using the code snippet
9888     for ac_prog in tee
9889 do
9890   # Extract the first word of "$ac_prog", so it can be a program name with args.
9891 set dummy $ac_prog; ac_word=$2
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9893 $as_echo_n "checking for $ac_word... " >&6; }
9894 if ${ac_cv_path_TEE+:} false; then :
9895   $as_echo_n "(cached) " >&6
9896 else
9897   case $TEE in
9898   [\\/]* | ?:[\\/]*)
9899   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9900   ;;
9901   *)
9902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9903 for as_dir in $PATH
9904 do
9905   IFS=$as_save_IFS
9906   test -z "$as_dir" && as_dir=.
9907     for ac_exec_ext in '' $ac_executable_extensions; do
9908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9909     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9911     break 2
9912   fi
9913 done
9914   done
9915 IFS=$as_save_IFS
9916 
9917   ;;
9918 esac
9919 fi
9920 TEE=$ac_cv_path_TEE
9921 if test -n "$TEE"; then
9922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9923 $as_echo "$TEE" >&6; }
9924 else
9925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9926 $as_echo "no" >&6; }
9927 fi
9928 
9929 
9930   test -n "$TEE" && break
9931 done
9932 
9933   else
9934     # The variable is set, but is it from the command line or the environment?
9935 
9936     # Try to remove the string !TEE! from our list.
9937     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9938     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9939       # If it failed, the variable was not from the command line. Ignore it,
9940       # but warn the user (except for BASH, which is always set by the calling BASH).
9941       if test "xTEE" != xBASH; then
9942         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9943 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9944       fi
9945       # Try to locate tool using the code snippet
9946       for ac_prog in tee
9947 do
9948   # Extract the first word of "$ac_prog", so it can be a program name with args.
9949 set dummy $ac_prog; ac_word=$2
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951 $as_echo_n "checking for $ac_word... " >&6; }
9952 if ${ac_cv_path_TEE+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   case $TEE in
9956   [\\/]* | ?:[\\/]*)
9957   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9958   ;;
9959   *)
9960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961 for as_dir in $PATH
9962 do
9963   IFS=$as_save_IFS
9964   test -z "$as_dir" && as_dir=.
9965     for ac_exec_ext in '' $ac_executable_extensions; do
9966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9967     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969     break 2
9970   fi
9971 done
9972   done
9973 IFS=$as_save_IFS
9974 
9975   ;;
9976 esac
9977 fi
9978 TEE=$ac_cv_path_TEE
9979 if test -n "$TEE"; then
9980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9981 $as_echo "$TEE" >&6; }
9982 else
9983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984 $as_echo "no" >&6; }
9985 fi
9986 
9987 
9988   test -n "$TEE" && break
9989 done
9990 
9991     else
9992       # If it succeeded, then it was overridden by the user. We will use it
9993       # for the tool.
9994 
9995       # First remove it from the list of overridden variables, so we can test
9996       # for unknown variables in the end.
9997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9998 
9999       # Check if the provided tool contains a complete path.
10000       tool_specified="$TEE"
10001       tool_basename="${tool_specified##*/}"
10002       if test "x$tool_basename" = "x$tool_specified"; then
10003         # A command without a complete path is provided, search $PATH.
10004         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10005 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10006         # Extract the first word of "$tool_basename", so it can be a program name with args.
10007 set dummy $tool_basename; ac_word=$2
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10009 $as_echo_n "checking for $ac_word... " >&6; }
10010 if ${ac_cv_path_TEE+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   case $TEE in
10014   [\\/]* | ?:[\\/]*)
10015   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10016   ;;
10017   *)
10018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10020 do
10021   IFS=$as_save_IFS
10022   test -z "$as_dir" && as_dir=.
10023     for ac_exec_ext in '' $ac_executable_extensions; do
10024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10025     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10027     break 2
10028   fi
10029 done
10030   done
10031 IFS=$as_save_IFS
10032 
10033   ;;
10034 esac
10035 fi
10036 TEE=$ac_cv_path_TEE
10037 if test -n "$TEE"; then
10038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10039 $as_echo "$TEE" >&6; }
10040 else
10041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10042 $as_echo "no" >&6; }
10043 fi
10044 
10045 
10046         if test "x$TEE" = x; then
10047           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10048         fi
10049       else
10050         # Otherwise we believe it is a complete path. Use it as it is.
10051         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10052 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10054 $as_echo_n "checking for TEE... " >&6; }
10055         if test ! -x "$tool_specified"; then
10056           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10057 $as_echo "not found" >&6; }
10058           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10059         fi
10060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10061 $as_echo "$tool_specified" >&6; }
10062       fi
10063     fi
10064   fi
10065 
10066 
10067 
10068   if test "x$TEE" = x; then
10069     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10070   fi
10071 
10072 
10073 
10074 
10075 
10076   # Publish this variable in the help.
10077 
10078 
10079   if test "x$TOUCH" = x; then
10080     # The variable is not set by user, try to locate tool using the code snippet
10081     for ac_prog in touch
10082 do
10083   # Extract the first word of "$ac_prog", so it can be a program name with args.
10084 set dummy $ac_prog; ac_word=$2
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10086 $as_echo_n "checking for $ac_word... " >&6; }
10087 if ${ac_cv_path_TOUCH+:} false; then :
10088   $as_echo_n "(cached) " >&6
10089 else
10090   case $TOUCH in
10091   [\\/]* | ?:[\\/]*)
10092   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10093   ;;
10094   *)
10095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $PATH
10097 do
10098   IFS=$as_save_IFS
10099   test -z "$as_dir" && as_dir=.
10100     for ac_exec_ext in '' $ac_executable_extensions; do
10101   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10103     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10104     break 2
10105   fi
10106 done
10107   done
10108 IFS=$as_save_IFS
10109 
10110   ;;
10111 esac
10112 fi
10113 TOUCH=$ac_cv_path_TOUCH
10114 if test -n "$TOUCH"; then
10115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10116 $as_echo "$TOUCH" >&6; }
10117 else
10118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119 $as_echo "no" >&6; }
10120 fi
10121 
10122 
10123   test -n "$TOUCH" && break
10124 done
10125 
10126   else
10127     # The variable is set, but is it from the command line or the environment?
10128 
10129     # Try to remove the string !TOUCH! from our list.
10130     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10131     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10132       # If it failed, the variable was not from the command line. Ignore it,
10133       # but warn the user (except for BASH, which is always set by the calling BASH).
10134       if test "xTOUCH" != xBASH; then
10135         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10136 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10137       fi
10138       # Try to locate tool using the code snippet
10139       for ac_prog in touch
10140 do
10141   # Extract the first word of "$ac_prog", so it can be a program name with args.
10142 set dummy $ac_prog; ac_word=$2
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10144 $as_echo_n "checking for $ac_word... " >&6; }
10145 if ${ac_cv_path_TOUCH+:} false; then :
10146   $as_echo_n "(cached) " >&6
10147 else
10148   case $TOUCH in
10149   [\\/]* | ?:[\\/]*)
10150   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10151   ;;
10152   *)
10153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154 for as_dir in $PATH
10155 do
10156   IFS=$as_save_IFS
10157   test -z "$as_dir" && as_dir=.
10158     for ac_exec_ext in '' $ac_executable_extensions; do
10159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10160     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10162     break 2
10163   fi
10164 done
10165   done
10166 IFS=$as_save_IFS
10167 
10168   ;;
10169 esac
10170 fi
10171 TOUCH=$ac_cv_path_TOUCH
10172 if test -n "$TOUCH"; then
10173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10174 $as_echo "$TOUCH" >&6; }
10175 else
10176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10177 $as_echo "no" >&6; }
10178 fi
10179 
10180 
10181   test -n "$TOUCH" && break
10182 done
10183 
10184     else
10185       # If it succeeded, then it was overridden by the user. We will use it
10186       # for the tool.
10187 
10188       # First remove it from the list of overridden variables, so we can test
10189       # for unknown variables in the end.
10190       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10191 
10192       # Check if the provided tool contains a complete path.
10193       tool_specified="$TOUCH"
10194       tool_basename="${tool_specified##*/}"
10195       if test "x$tool_basename" = "x$tool_specified"; then
10196         # A command without a complete path is provided, search $PATH.
10197         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10198 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10199         # Extract the first word of "$tool_basename", so it can be a program name with args.
10200 set dummy $tool_basename; ac_word=$2
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10202 $as_echo_n "checking for $ac_word... " >&6; }
10203 if ${ac_cv_path_TOUCH+:} false; then :
10204   $as_echo_n "(cached) " >&6
10205 else
10206   case $TOUCH in
10207   [\\/]* | ?:[\\/]*)
10208   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10209   ;;
10210   *)
10211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10212 for as_dir in $PATH
10213 do
10214   IFS=$as_save_IFS
10215   test -z "$as_dir" && as_dir=.
10216     for ac_exec_ext in '' $ac_executable_extensions; do
10217   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10218     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10220     break 2
10221   fi
10222 done
10223   done
10224 IFS=$as_save_IFS
10225 
10226   ;;
10227 esac
10228 fi
10229 TOUCH=$ac_cv_path_TOUCH
10230 if test -n "$TOUCH"; then
10231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10232 $as_echo "$TOUCH" >&6; }
10233 else
10234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10236 fi
10237 
10238 
10239         if test "x$TOUCH" = x; then
10240           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10241         fi
10242       else
10243         # Otherwise we believe it is a complete path. Use it as it is.
10244         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10245 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10246         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10247 $as_echo_n "checking for TOUCH... " >&6; }
10248         if test ! -x "$tool_specified"; then
10249           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10250 $as_echo "not found" >&6; }
10251           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10252         fi
10253         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10254 $as_echo "$tool_specified" >&6; }
10255       fi
10256     fi
10257   fi
10258 
10259 
10260 
10261   if test "x$TOUCH" = x; then
10262     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10263   fi
10264 
10265 
10266 
10267 
10268 
10269   # Publish this variable in the help.
10270 
10271 
10272   if test "x$TR" = x; then
10273     # The variable is not set by user, try to locate tool using the code snippet
10274     for ac_prog in tr
10275 do
10276   # Extract the first word of "$ac_prog", so it can be a program name with args.
10277 set dummy $ac_prog; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if ${ac_cv_path_TR+:} false; then :
10281   $as_echo_n "(cached) " >&6
10282 else
10283   case $TR in
10284   [\\/]* | ?:[\\/]*)
10285   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10286   ;;
10287   *)
10288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10290 do
10291   IFS=$as_save_IFS
10292   test -z "$as_dir" && as_dir=.
10293     for ac_exec_ext in '' $ac_executable_extensions; do
10294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10297     break 2
10298   fi
10299 done
10300   done
10301 IFS=$as_save_IFS
10302 
10303   ;;
10304 esac
10305 fi
10306 TR=$ac_cv_path_TR
10307 if test -n "$TR"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10309 $as_echo "$TR" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314 
10315 
10316   test -n "$TR" && break
10317 done
10318 
10319   else
10320     # The variable is set, but is it from the command line or the environment?
10321 
10322     # Try to remove the string !TR! from our list.
10323     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10324     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10325       # If it failed, the variable was not from the command line. Ignore it,
10326       # but warn the user (except for BASH, which is always set by the calling BASH).
10327       if test "xTR" != xBASH; then
10328         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10329 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10330       fi
10331       # Try to locate tool using the code snippet
10332       for ac_prog in tr
10333 do
10334   # Extract the first word of "$ac_prog", so it can be a program name with args.
10335 set dummy $ac_prog; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_path_TR+:} false; then :
10339   $as_echo_n "(cached) " >&6
10340 else
10341   case $TR in
10342   [\\/]* | ?:[\\/]*)
10343   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10344   ;;
10345   *)
10346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10348 do
10349   IFS=$as_save_IFS
10350   test -z "$as_dir" && as_dir=.
10351     for ac_exec_ext in '' $ac_executable_extensions; do
10352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10353     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10355     break 2
10356   fi
10357 done
10358   done
10359 IFS=$as_save_IFS
10360 
10361   ;;
10362 esac
10363 fi
10364 TR=$ac_cv_path_TR
10365 if test -n "$TR"; then
10366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10367 $as_echo "$TR" >&6; }
10368 else
10369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10370 $as_echo "no" >&6; }
10371 fi
10372 
10373 
10374   test -n "$TR" && break
10375 done
10376 
10377     else
10378       # If it succeeded, then it was overridden by the user. We will use it
10379       # for the tool.
10380 
10381       # First remove it from the list of overridden variables, so we can test
10382       # for unknown variables in the end.
10383       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10384 
10385       # Check if the provided tool contains a complete path.
10386       tool_specified="$TR"
10387       tool_basename="${tool_specified##*/}"
10388       if test "x$tool_basename" = "x$tool_specified"; then
10389         # A command without a complete path is provided, search $PATH.
10390         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10391 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10392         # Extract the first word of "$tool_basename", so it can be a program name with args.
10393 set dummy $tool_basename; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_path_TR+:} false; then :
10397   $as_echo_n "(cached) " >&6
10398 else
10399   case $TR in
10400   [\\/]* | ?:[\\/]*)
10401   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10402   ;;
10403   *)
10404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10406 do
10407   IFS=$as_save_IFS
10408   test -z "$as_dir" && as_dir=.
10409     for ac_exec_ext in '' $ac_executable_extensions; do
10410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10411     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413     break 2
10414   fi
10415 done
10416   done
10417 IFS=$as_save_IFS
10418 
10419   ;;
10420 esac
10421 fi
10422 TR=$ac_cv_path_TR
10423 if test -n "$TR"; then
10424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10425 $as_echo "$TR" >&6; }
10426 else
10427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10429 fi
10430 
10431 
10432         if test "x$TR" = x; then
10433           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10434         fi
10435       else
10436         # Otherwise we believe it is a complete path. Use it as it is.
10437         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10438 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10439         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10440 $as_echo_n "checking for TR... " >&6; }
10441         if test ! -x "$tool_specified"; then
10442           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10443 $as_echo "not found" >&6; }
10444           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10445         fi
10446         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10447 $as_echo "$tool_specified" >&6; }
10448       fi
10449     fi
10450   fi
10451 
10452 
10453 
10454   if test "x$TR" = x; then
10455     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10456   fi
10457 
10458 
10459 
10460 
10461 
10462   # Publish this variable in the help.
10463 
10464 
10465   if test "x$UNAME" = x; then
10466     # The variable is not set by user, try to locate tool using the code snippet
10467     for ac_prog in uname
10468 do
10469   # Extract the first word of "$ac_prog", so it can be a program name with args.
10470 set dummy $ac_prog; ac_word=$2
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10472 $as_echo_n "checking for $ac_word... " >&6; }
10473 if ${ac_cv_path_UNAME+:} false; then :
10474   $as_echo_n "(cached) " >&6
10475 else
10476   case $UNAME in
10477   [\\/]* | ?:[\\/]*)
10478   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10479   ;;
10480   *)
10481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10483 do
10484   IFS=$as_save_IFS
10485   test -z "$as_dir" && as_dir=.
10486     for ac_exec_ext in '' $ac_executable_extensions; do
10487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10490     break 2
10491   fi
10492 done
10493   done
10494 IFS=$as_save_IFS
10495 
10496   ;;
10497 esac
10498 fi
10499 UNAME=$ac_cv_path_UNAME
10500 if test -n "$UNAME"; then
10501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10502 $as_echo "$UNAME" >&6; }
10503 else
10504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507 
10508 
10509   test -n "$UNAME" && break
10510 done
10511 
10512   else
10513     # The variable is set, but is it from the command line or the environment?
10514 
10515     # Try to remove the string !UNAME! from our list.
10516     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10517     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10518       # If it failed, the variable was not from the command line. Ignore it,
10519       # but warn the user (except for BASH, which is always set by the calling BASH).
10520       if test "xUNAME" != xBASH; then
10521         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10522 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10523       fi
10524       # Try to locate tool using the code snippet
10525       for ac_prog in uname
10526 do
10527   # Extract the first word of "$ac_prog", so it can be a program name with args.
10528 set dummy $ac_prog; ac_word=$2
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10530 $as_echo_n "checking for $ac_word... " >&6; }
10531 if ${ac_cv_path_UNAME+:} false; then :
10532   $as_echo_n "(cached) " >&6
10533 else
10534   case $UNAME in
10535   [\\/]* | ?:[\\/]*)
10536   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10537   ;;
10538   *)
10539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542   IFS=$as_save_IFS
10543   test -z "$as_dir" && as_dir=.
10544     for ac_exec_ext in '' $ac_executable_extensions; do
10545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548     break 2
10549   fi
10550 done
10551   done
10552 IFS=$as_save_IFS
10553 
10554   ;;
10555 esac
10556 fi
10557 UNAME=$ac_cv_path_UNAME
10558 if test -n "$UNAME"; then
10559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10560 $as_echo "$UNAME" >&6; }
10561 else
10562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 fi
10565 
10566 
10567   test -n "$UNAME" && break
10568 done
10569 
10570     else
10571       # If it succeeded, then it was overridden by the user. We will use it
10572       # for the tool.
10573 
10574       # First remove it from the list of overridden variables, so we can test
10575       # for unknown variables in the end.
10576       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10577 
10578       # Check if the provided tool contains a complete path.
10579       tool_specified="$UNAME"
10580       tool_basename="${tool_specified##*/}"
10581       if test "x$tool_basename" = "x$tool_specified"; then
10582         # A command without a complete path is provided, search $PATH.
10583         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10584 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10585         # Extract the first word of "$tool_basename", so it can be a program name with args.
10586 set dummy $tool_basename; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10588 $as_echo_n "checking for $ac_word... " >&6; }
10589 if ${ac_cv_path_UNAME+:} false; then :
10590   $as_echo_n "(cached) " >&6
10591 else
10592   case $UNAME in
10593   [\\/]* | ?:[\\/]*)
10594   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10595   ;;
10596   *)
10597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10598 for as_dir in $PATH
10599 do
10600   IFS=$as_save_IFS
10601   test -z "$as_dir" && as_dir=.
10602     for ac_exec_ext in '' $ac_executable_extensions; do
10603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10604     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10606     break 2
10607   fi
10608 done
10609   done
10610 IFS=$as_save_IFS
10611 
10612   ;;
10613 esac
10614 fi
10615 UNAME=$ac_cv_path_UNAME
10616 if test -n "$UNAME"; then
10617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10618 $as_echo "$UNAME" >&6; }
10619 else
10620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621 $as_echo "no" >&6; }
10622 fi
10623 
10624 
10625         if test "x$UNAME" = x; then
10626           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10627         fi
10628       else
10629         # Otherwise we believe it is a complete path. Use it as it is.
10630         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10631 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10632         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10633 $as_echo_n "checking for UNAME... " >&6; }
10634         if test ! -x "$tool_specified"; then
10635           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10636 $as_echo "not found" >&6; }
10637           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10638         fi
10639         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10640 $as_echo "$tool_specified" >&6; }
10641       fi
10642     fi
10643   fi
10644 
10645 
10646 
10647   if test "x$UNAME" = x; then
10648     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10649   fi
10650 
10651 
10652 
10653 
10654 
10655   # Publish this variable in the help.
10656 
10657 
10658   if test "x$UNIQ" = x; then
10659     # The variable is not set by user, try to locate tool using the code snippet
10660     for ac_prog in uniq
10661 do
10662   # Extract the first word of "$ac_prog", so it can be a program name with args.
10663 set dummy $ac_prog; ac_word=$2
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665 $as_echo_n "checking for $ac_word... " >&6; }
10666 if ${ac_cv_path_UNIQ+:} false; then :
10667   $as_echo_n "(cached) " >&6
10668 else
10669   case $UNIQ in
10670   [\\/]* | ?:[\\/]*)
10671   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10672   ;;
10673   *)
10674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10676 do
10677   IFS=$as_save_IFS
10678   test -z "$as_dir" && as_dir=.
10679     for ac_exec_ext in '' $ac_executable_extensions; do
10680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10681     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10683     break 2
10684   fi
10685 done
10686   done
10687 IFS=$as_save_IFS
10688 
10689   ;;
10690 esac
10691 fi
10692 UNIQ=$ac_cv_path_UNIQ
10693 if test -n "$UNIQ"; then
10694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10695 $as_echo "$UNIQ" >&6; }
10696 else
10697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10699 fi
10700 
10701 
10702   test -n "$UNIQ" && break
10703 done
10704 
10705   else
10706     # The variable is set, but is it from the command line or the environment?
10707 
10708     # Try to remove the string !UNIQ! from our list.
10709     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10710     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10711       # If it failed, the variable was not from the command line. Ignore it,
10712       # but warn the user (except for BASH, which is always set by the calling BASH).
10713       if test "xUNIQ" != xBASH; then
10714         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10715 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10716       fi
10717       # Try to locate tool using the code snippet
10718       for ac_prog in uniq
10719 do
10720   # Extract the first word of "$ac_prog", so it can be a program name with args.
10721 set dummy $ac_prog; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_path_UNIQ+:} false; then :
10725   $as_echo_n "(cached) " >&6
10726 else
10727   case $UNIQ in
10728   [\\/]* | ?:[\\/]*)
10729   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10730   ;;
10731   *)
10732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10733 for as_dir in $PATH
10734 do
10735   IFS=$as_save_IFS
10736   test -z "$as_dir" && as_dir=.
10737     for ac_exec_ext in '' $ac_executable_extensions; do
10738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10739     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10741     break 2
10742   fi
10743 done
10744   done
10745 IFS=$as_save_IFS
10746 
10747   ;;
10748 esac
10749 fi
10750 UNIQ=$ac_cv_path_UNIQ
10751 if test -n "$UNIQ"; then
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10753 $as_echo "$UNIQ" >&6; }
10754 else
10755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }
10757 fi
10758 
10759 
10760   test -n "$UNIQ" && break
10761 done
10762 
10763     else
10764       # If it succeeded, then it was overridden by the user. We will use it
10765       # for the tool.
10766 
10767       # First remove it from the list of overridden variables, so we can test
10768       # for unknown variables in the end.
10769       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10770 
10771       # Check if the provided tool contains a complete path.
10772       tool_specified="$UNIQ"
10773       tool_basename="${tool_specified##*/}"
10774       if test "x$tool_basename" = "x$tool_specified"; then
10775         # A command without a complete path is provided, search $PATH.
10776         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10777 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10778         # Extract the first word of "$tool_basename", so it can be a program name with args.
10779 set dummy $tool_basename; ac_word=$2
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10781 $as_echo_n "checking for $ac_word... " >&6; }
10782 if ${ac_cv_path_UNIQ+:} false; then :
10783   $as_echo_n "(cached) " >&6
10784 else
10785   case $UNIQ in
10786   [\\/]* | ?:[\\/]*)
10787   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10788   ;;
10789   *)
10790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791 for as_dir in $PATH
10792 do
10793   IFS=$as_save_IFS
10794   test -z "$as_dir" && as_dir=.
10795     for ac_exec_ext in '' $ac_executable_extensions; do
10796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10797     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10799     break 2
10800   fi
10801 done
10802   done
10803 IFS=$as_save_IFS
10804 
10805   ;;
10806 esac
10807 fi
10808 UNIQ=$ac_cv_path_UNIQ
10809 if test -n "$UNIQ"; then
10810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10811 $as_echo "$UNIQ" >&6; }
10812 else
10813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10814 $as_echo "no" >&6; }
10815 fi
10816 
10817 
10818         if test "x$UNIQ" = x; then
10819           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10820         fi
10821       else
10822         # Otherwise we believe it is a complete path. Use it as it is.
10823         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10824 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10826 $as_echo_n "checking for UNIQ... " >&6; }
10827         if test ! -x "$tool_specified"; then
10828           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10829 $as_echo "not found" >&6; }
10830           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10831         fi
10832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10833 $as_echo "$tool_specified" >&6; }
10834       fi
10835     fi
10836   fi
10837 
10838 
10839 
10840   if test "x$UNIQ" = x; then
10841     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10842   fi
10843 
10844 
10845 
10846 
10847 
10848   # Publish this variable in the help.
10849 
10850 
10851   if test "x$WC" = x; then
10852     # The variable is not set by user, try to locate tool using the code snippet
10853     for ac_prog in wc
10854 do
10855   # Extract the first word of "$ac_prog", so it can be a program name with args.
10856 set dummy $ac_prog; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if ${ac_cv_path_WC+:} false; then :
10860   $as_echo_n "(cached) " >&6
10861 else
10862   case $WC in
10863   [\\/]* | ?:[\\/]*)
10864   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10865   ;;
10866   *)
10867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870   IFS=$as_save_IFS
10871   test -z "$as_dir" && as_dir=.
10872     for ac_exec_ext in '' $ac_executable_extensions; do
10873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876     break 2
10877   fi
10878 done
10879   done
10880 IFS=$as_save_IFS
10881 
10882   ;;
10883 esac
10884 fi
10885 WC=$ac_cv_path_WC
10886 if test -n "$WC"; then
10887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10888 $as_echo "$WC" >&6; }
10889 else
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 fi
10893 
10894 
10895   test -n "$WC" && break
10896 done
10897 
10898   else
10899     # The variable is set, but is it from the command line or the environment?
10900 
10901     # Try to remove the string !WC! from our list.
10902     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10903     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10904       # If it failed, the variable was not from the command line. Ignore it,
10905       # but warn the user (except for BASH, which is always set by the calling BASH).
10906       if test "xWC" != xBASH; then
10907         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10908 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10909       fi
10910       # Try to locate tool using the code snippet
10911       for ac_prog in wc
10912 do
10913   # Extract the first word of "$ac_prog", so it can be a program name with args.
10914 set dummy $ac_prog; ac_word=$2
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10916 $as_echo_n "checking for $ac_word... " >&6; }
10917 if ${ac_cv_path_WC+:} false; then :
10918   $as_echo_n "(cached) " >&6
10919 else
10920   case $WC in
10921   [\\/]* | ?:[\\/]*)
10922   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10923   ;;
10924   *)
10925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10927 do
10928   IFS=$as_save_IFS
10929   test -z "$as_dir" && as_dir=.
10930     for ac_exec_ext in '' $ac_executable_extensions; do
10931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10934     break 2
10935   fi
10936 done
10937   done
10938 IFS=$as_save_IFS
10939 
10940   ;;
10941 esac
10942 fi
10943 WC=$ac_cv_path_WC
10944 if test -n "$WC"; then
10945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10946 $as_echo "$WC" >&6; }
10947 else
10948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949 $as_echo "no" >&6; }
10950 fi
10951 
10952 
10953   test -n "$WC" && break
10954 done
10955 
10956     else
10957       # If it succeeded, then it was overridden by the user. We will use it
10958       # for the tool.
10959 
10960       # First remove it from the list of overridden variables, so we can test
10961       # for unknown variables in the end.
10962       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10963 
10964       # Check if the provided tool contains a complete path.
10965       tool_specified="$WC"
10966       tool_basename="${tool_specified##*/}"
10967       if test "x$tool_basename" = "x$tool_specified"; then
10968         # A command without a complete path is provided, search $PATH.
10969         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10970 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10971         # Extract the first word of "$tool_basename", so it can be a program name with args.
10972 set dummy $tool_basename; ac_word=$2
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974 $as_echo_n "checking for $ac_word... " >&6; }
10975 if ${ac_cv_path_WC+:} false; then :
10976   $as_echo_n "(cached) " >&6
10977 else
10978   case $WC in
10979   [\\/]* | ?:[\\/]*)
10980   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10981   ;;
10982   *)
10983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10985 do
10986   IFS=$as_save_IFS
10987   test -z "$as_dir" && as_dir=.
10988     for ac_exec_ext in '' $ac_executable_extensions; do
10989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10992     break 2
10993   fi
10994 done
10995   done
10996 IFS=$as_save_IFS
10997 
10998   ;;
10999 esac
11000 fi
11001 WC=$ac_cv_path_WC
11002 if test -n "$WC"; then
11003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11004 $as_echo "$WC" >&6; }
11005 else
11006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007 $as_echo "no" >&6; }
11008 fi
11009 
11010 
11011         if test "x$WC" = x; then
11012           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11013         fi
11014       else
11015         # Otherwise we believe it is a complete path. Use it as it is.
11016         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11017 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11019 $as_echo_n "checking for WC... " >&6; }
11020         if test ! -x "$tool_specified"; then
11021           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11022 $as_echo "not found" >&6; }
11023           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11024         fi
11025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11026 $as_echo "$tool_specified" >&6; }
11027       fi
11028     fi
11029   fi
11030 
11031 
11032 
11033   if test "x$WC" = x; then
11034     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11035   fi
11036 
11037 
11038 
11039 
11040 
11041   # Publish this variable in the help.
11042 
11043 
11044   if test "x$WHICH" = x; then
11045     # The variable is not set by user, try to locate tool using the code snippet
11046     for ac_prog in which
11047 do
11048   # Extract the first word of "$ac_prog", so it can be a program name with args.
11049 set dummy $ac_prog; ac_word=$2
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11051 $as_echo_n "checking for $ac_word... " >&6; }
11052 if ${ac_cv_path_WHICH+:} false; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   case $WHICH in
11056   [\\/]* | ?:[\\/]*)
11057   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11058   ;;
11059   *)
11060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11061 for as_dir in $PATH
11062 do
11063   IFS=$as_save_IFS
11064   test -z "$as_dir" && as_dir=.
11065     for ac_exec_ext in '' $ac_executable_extensions; do
11066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11067     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11069     break 2
11070   fi
11071 done
11072   done
11073 IFS=$as_save_IFS
11074 
11075   ;;
11076 esac
11077 fi
11078 WHICH=$ac_cv_path_WHICH
11079 if test -n "$WHICH"; then
11080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11081 $as_echo "$WHICH" >&6; }
11082 else
11083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11084 $as_echo "no" >&6; }
11085 fi
11086 
11087 
11088   test -n "$WHICH" && break
11089 done
11090 
11091   else
11092     # The variable is set, but is it from the command line or the environment?
11093 
11094     # Try to remove the string !WHICH! from our list.
11095     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11096     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11097       # If it failed, the variable was not from the command line. Ignore it,
11098       # but warn the user (except for BASH, which is always set by the calling BASH).
11099       if test "xWHICH" != xBASH; then
11100         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11101 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11102       fi
11103       # Try to locate tool using the code snippet
11104       for ac_prog in which
11105 do
11106   # Extract the first word of "$ac_prog", so it can be a program name with args.
11107 set dummy $ac_prog; ac_word=$2
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109 $as_echo_n "checking for $ac_word... " >&6; }
11110 if ${ac_cv_path_WHICH+:} false; then :
11111   $as_echo_n "(cached) " >&6
11112 else
11113   case $WHICH in
11114   [\\/]* | ?:[\\/]*)
11115   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11116   ;;
11117   *)
11118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11119 for as_dir in $PATH
11120 do
11121   IFS=$as_save_IFS
11122   test -z "$as_dir" && as_dir=.
11123     for ac_exec_ext in '' $ac_executable_extensions; do
11124   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11125     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11127     break 2
11128   fi
11129 done
11130   done
11131 IFS=$as_save_IFS
11132 
11133   ;;
11134 esac
11135 fi
11136 WHICH=$ac_cv_path_WHICH
11137 if test -n "$WHICH"; then
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11139 $as_echo "$WHICH" >&6; }
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144 
11145 
11146   test -n "$WHICH" && break
11147 done
11148 
11149     else
11150       # If it succeeded, then it was overridden by the user. We will use it
11151       # for the tool.
11152 
11153       # First remove it from the list of overridden variables, so we can test
11154       # for unknown variables in the end.
11155       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11156 
11157       # Check if the provided tool contains a complete path.
11158       tool_specified="$WHICH"
11159       tool_basename="${tool_specified##*/}"
11160       if test "x$tool_basename" = "x$tool_specified"; then
11161         # A command without a complete path is provided, search $PATH.
11162         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11163 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11164         # Extract the first word of "$tool_basename", so it can be a program name with args.
11165 set dummy $tool_basename; ac_word=$2
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11167 $as_echo_n "checking for $ac_word... " >&6; }
11168 if ${ac_cv_path_WHICH+:} false; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   case $WHICH in
11172   [\\/]* | ?:[\\/]*)
11173   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11174   ;;
11175   *)
11176   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177 for as_dir in $PATH
11178 do
11179   IFS=$as_save_IFS
11180   test -z "$as_dir" && as_dir=.
11181     for ac_exec_ext in '' $ac_executable_extensions; do
11182   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11184     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11185     break 2
11186   fi
11187 done
11188   done
11189 IFS=$as_save_IFS
11190 
11191   ;;
11192 esac
11193 fi
11194 WHICH=$ac_cv_path_WHICH
11195 if test -n "$WHICH"; then
11196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11197 $as_echo "$WHICH" >&6; }
11198 else
11199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11201 fi
11202 
11203 
11204         if test "x$WHICH" = x; then
11205           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11206         fi
11207       else
11208         # Otherwise we believe it is a complete path. Use it as it is.
11209         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11210 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11212 $as_echo_n "checking for WHICH... " >&6; }
11213         if test ! -x "$tool_specified"; then
11214           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11215 $as_echo "not found" >&6; }
11216           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11217         fi
11218         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11219 $as_echo "$tool_specified" >&6; }
11220       fi
11221     fi
11222   fi
11223 
11224 
11225 
11226   if test "x$WHICH" = x; then
11227     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11228   fi
11229 
11230 
11231 
11232 
11233 
11234   # Publish this variable in the help.
11235 
11236 
11237   if test "x$XARGS" = x; then
11238     # The variable is not set by user, try to locate tool using the code snippet
11239     for ac_prog in xargs
11240 do
11241   # Extract the first word of "$ac_prog", so it can be a program name with args.
11242 set dummy $ac_prog; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_path_XARGS+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   case $XARGS in
11249   [\\/]* | ?:[\\/]*)
11250   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11251   ;;
11252   *)
11253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11255 do
11256   IFS=$as_save_IFS
11257   test -z "$as_dir" && as_dir=.
11258     for ac_exec_ext in '' $ac_executable_extensions; do
11259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11260     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262     break 2
11263   fi
11264 done
11265   done
11266 IFS=$as_save_IFS
11267 
11268   ;;
11269 esac
11270 fi
11271 XARGS=$ac_cv_path_XARGS
11272 if test -n "$XARGS"; then
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11274 $as_echo "$XARGS" >&6; }
11275 else
11276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11278 fi
11279 
11280 
11281   test -n "$XARGS" && break
11282 done
11283 
11284   else
11285     # The variable is set, but is it from the command line or the environment?
11286 
11287     # Try to remove the string !XARGS! from our list.
11288     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11289     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11290       # If it failed, the variable was not from the command line. Ignore it,
11291       # but warn the user (except for BASH, which is always set by the calling BASH).
11292       if test "xXARGS" != xBASH; then
11293         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11294 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11295       fi
11296       # Try to locate tool using the code snippet
11297       for ac_prog in xargs
11298 do
11299   # Extract the first word of "$ac_prog", so it can be a program name with args.
11300 set dummy $ac_prog; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_XARGS+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   case $XARGS in
11307   [\\/]* | ?:[\\/]*)
11308   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11309   ;;
11310   *)
11311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316     for ac_exec_ext in '' $ac_executable_extensions; do
11317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11318     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323   done
11324 IFS=$as_save_IFS
11325 
11326   ;;
11327 esac
11328 fi
11329 XARGS=$ac_cv_path_XARGS
11330 if test -n "$XARGS"; then
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11332 $as_echo "$XARGS" >&6; }
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337 
11338 
11339   test -n "$XARGS" && break
11340 done
11341 
11342     else
11343       # If it succeeded, then it was overridden by the user. We will use it
11344       # for the tool.
11345 
11346       # First remove it from the list of overridden variables, so we can test
11347       # for unknown variables in the end.
11348       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11349 
11350       # Check if the provided tool contains a complete path.
11351       tool_specified="$XARGS"
11352       tool_basename="${tool_specified##*/}"
11353       if test "x$tool_basename" = "x$tool_specified"; then
11354         # A command without a complete path is provided, search $PATH.
11355         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11356 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11357         # Extract the first word of "$tool_basename", so it can be a program name with args.
11358 set dummy $tool_basename; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_path_XARGS+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   case $XARGS in
11365   [\\/]* | ?:[\\/]*)
11366   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11367   ;;
11368   *)
11369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370 for as_dir in $PATH
11371 do
11372   IFS=$as_save_IFS
11373   test -z "$as_dir" && as_dir=.
11374     for ac_exec_ext in '' $ac_executable_extensions; do
11375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11376     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11378     break 2
11379   fi
11380 done
11381   done
11382 IFS=$as_save_IFS
11383 
11384   ;;
11385 esac
11386 fi
11387 XARGS=$ac_cv_path_XARGS
11388 if test -n "$XARGS"; then
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11390 $as_echo "$XARGS" >&6; }
11391 else
11392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11394 fi
11395 
11396 
11397         if test "x$XARGS" = x; then
11398           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11399         fi
11400       else
11401         # Otherwise we believe it is a complete path. Use it as it is.
11402         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11403 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11405 $as_echo_n "checking for XARGS... " >&6; }
11406         if test ! -x "$tool_specified"; then
11407           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11408 $as_echo "not found" >&6; }
11409           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11410         fi
11411         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11412 $as_echo "$tool_specified" >&6; }
11413       fi
11414     fi
11415   fi
11416 
11417 
11418 
11419   if test "x$XARGS" = x; then
11420     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11421   fi
11422 
11423 
11424 
11425   # Then required tools that require some special treatment.
11426 
11427 
11428   # Publish this variable in the help.
11429 
11430 
11431   if test "x$AWK" = x; then
11432     # The variable is not set by user, try to locate tool using the code snippet
11433     for ac_prog in gawk mawk nawk awk
11434 do
11435   # Extract the first word of "$ac_prog", so it can be a program name with args.
11436 set dummy $ac_prog; ac_word=$2
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11438 $as_echo_n "checking for $ac_word... " >&6; }
11439 if ${ac_cv_prog_AWK+:} false; then :
11440   $as_echo_n "(cached) " >&6
11441 else
11442   if test -n "$AWK"; then
11443   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11444 else
11445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11446 for as_dir in $PATH
11447 do
11448   IFS=$as_save_IFS
11449   test -z "$as_dir" && as_dir=.
11450     for ac_exec_ext in '' $ac_executable_extensions; do
11451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11452     ac_cv_prog_AWK="$ac_prog"
11453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11454     break 2
11455   fi
11456 done
11457   done
11458 IFS=$as_save_IFS
11459 
11460 fi
11461 fi
11462 AWK=$ac_cv_prog_AWK
11463 if test -n "$AWK"; then
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11465 $as_echo "$AWK" >&6; }
11466 else
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11469 fi
11470 
11471 
11472   test -n "$AWK" && break
11473 done
11474 
11475   else
11476     # The variable is set, but is it from the command line or the environment?
11477 
11478     # Try to remove the string !AWK! from our list.
11479     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11480     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11481       # If it failed, the variable was not from the command line. Ignore it,
11482       # but warn the user (except for BASH, which is always set by the calling BASH).
11483       if test "xAWK" != xBASH; then
11484         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11485 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11486       fi
11487       # Try to locate tool using the code snippet
11488       for ac_prog in gawk mawk nawk awk
11489 do
11490   # Extract the first word of "$ac_prog", so it can be a program name with args.
11491 set dummy $ac_prog; ac_word=$2
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493 $as_echo_n "checking for $ac_word... " >&6; }
11494 if ${ac_cv_prog_AWK+:} false; then :
11495   $as_echo_n "(cached) " >&6
11496 else
11497   if test -n "$AWK"; then
11498   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11499 else
11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501 for as_dir in $PATH
11502 do
11503   IFS=$as_save_IFS
11504   test -z "$as_dir" && as_dir=.
11505     for ac_exec_ext in '' $ac_executable_extensions; do
11506   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11507     ac_cv_prog_AWK="$ac_prog"
11508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11509     break 2
11510   fi
11511 done
11512   done
11513 IFS=$as_save_IFS
11514 
11515 fi
11516 fi
11517 AWK=$ac_cv_prog_AWK
11518 if test -n "$AWK"; then
11519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11520 $as_echo "$AWK" >&6; }
11521 else
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523 $as_echo "no" >&6; }
11524 fi
11525 
11526 
11527   test -n "$AWK" && break
11528 done
11529 
11530     else
11531       # If it succeeded, then it was overridden by the user. We will use it
11532       # for the tool.
11533 
11534       # First remove it from the list of overridden variables, so we can test
11535       # for unknown variables in the end.
11536       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11537 
11538       # Check if the provided tool contains a complete path.
11539       tool_specified="$AWK"
11540       tool_basename="${tool_specified##*/}"
11541       if test "x$tool_basename" = "x$tool_specified"; then
11542         # A command without a complete path is provided, search $PATH.
11543         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11544 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11545         # Extract the first word of "$tool_basename", so it can be a program name with args.
11546 set dummy $tool_basename; ac_word=$2
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11548 $as_echo_n "checking for $ac_word... " >&6; }
11549 if ${ac_cv_path_AWK+:} false; then :
11550   $as_echo_n "(cached) " >&6
11551 else
11552   case $AWK in
11553   [\\/]* | ?:[\\/]*)
11554   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11555   ;;
11556   *)
11557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11558 for as_dir in $PATH
11559 do
11560   IFS=$as_save_IFS
11561   test -z "$as_dir" && as_dir=.
11562     for ac_exec_ext in '' $ac_executable_extensions; do
11563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11564     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11566     break 2
11567   fi
11568 done
11569   done
11570 IFS=$as_save_IFS
11571 
11572   ;;
11573 esac
11574 fi
11575 AWK=$ac_cv_path_AWK
11576 if test -n "$AWK"; then
11577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11578 $as_echo "$AWK" >&6; }
11579 else
11580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11582 fi
11583 
11584 
11585         if test "x$AWK" = x; then
11586           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11587         fi
11588       else
11589         # Otherwise we believe it is a complete path. Use it as it is.
11590         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11591 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11593 $as_echo_n "checking for AWK... " >&6; }
11594         if test ! -x "$tool_specified"; then
11595           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11596 $as_echo "not found" >&6; }
11597           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11598         fi
11599         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11600 $as_echo "$tool_specified" >&6; }
11601       fi
11602     fi
11603   fi
11604 
11605 
11606   if test "x$AWK" = x; then
11607     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11608   fi
11609 
11610 
11611 
11612 
11613   # Publish this variable in the help.
11614 
11615 
11616   if test "x$GREP" = x; then
11617     # The variable is not set by user, try to locate tool using the code snippet
11618     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11619 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11620 if ${ac_cv_path_GREP+:} false; then :
11621   $as_echo_n "(cached) " >&6
11622 else
11623   if test -z "$GREP"; then
11624   ac_path_GREP_found=false
11625   # Loop through the user's path and test for each of PROGNAME-LIST
11626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11628 do
11629   IFS=$as_save_IFS
11630   test -z "$as_dir" && as_dir=.
11631     for ac_prog in grep ggrep; do
11632     for ac_exec_ext in '' $ac_executable_extensions; do
11633       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11634       as_fn_executable_p "$ac_path_GREP" || continue
11635 # Check for GNU ac_path_GREP and select it if it is found.
11636   # Check for GNU $ac_path_GREP
11637 case `"$ac_path_GREP" --version 2>&1` in
11638 *GNU*)
11639   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11640 *)
11641   ac_count=0
11642   $as_echo_n 0123456789 >"conftest.in"
11643   while :
11644   do
11645     cat "conftest.in" "conftest.in" >"conftest.tmp"
11646     mv "conftest.tmp" "conftest.in"
11647     cp "conftest.in" "conftest.nl"
11648     $as_echo 'GREP' >> "conftest.nl"
11649     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11651     as_fn_arith $ac_count + 1 && ac_count=$as_val
11652     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11653       # Best one so far, save it but keep looking for a better one
11654       ac_cv_path_GREP="$ac_path_GREP"
11655       ac_path_GREP_max=$ac_count
11656     fi
11657     # 10*(2^10) chars as input seems more than enough
11658     test $ac_count -gt 10 && break
11659   done
11660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11661 esac
11662 
11663       $ac_path_GREP_found && break 3
11664     done
11665   done
11666   done
11667 IFS=$as_save_IFS
11668   if test -z "$ac_cv_path_GREP"; then
11669     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11670   fi
11671 else
11672   ac_cv_path_GREP=$GREP
11673 fi
11674 
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11677 $as_echo "$ac_cv_path_GREP" >&6; }
11678  GREP="$ac_cv_path_GREP"
11679 
11680 
11681   else
11682     # The variable is set, but is it from the command line or the environment?
11683 
11684     # Try to remove the string !GREP! from our list.
11685     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11686     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11687       # If it failed, the variable was not from the command line. Ignore it,
11688       # but warn the user (except for BASH, which is always set by the calling BASH).
11689       if test "xGREP" != xBASH; then
11690         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11691 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11692       fi
11693       # Try to locate tool using the code snippet
11694       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11695 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11696 if ${ac_cv_path_GREP+:} false; then :
11697   $as_echo_n "(cached) " >&6
11698 else
11699   if test -z "$GREP"; then
11700   ac_path_GREP_found=false
11701   # Loop through the user's path and test for each of PROGNAME-LIST
11702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11704 do
11705   IFS=$as_save_IFS
11706   test -z "$as_dir" && as_dir=.
11707     for ac_prog in grep ggrep; do
11708     for ac_exec_ext in '' $ac_executable_extensions; do
11709       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11710       as_fn_executable_p "$ac_path_GREP" || continue
11711 # Check for GNU ac_path_GREP and select it if it is found.
11712   # Check for GNU $ac_path_GREP
11713 case `"$ac_path_GREP" --version 2>&1` in
11714 *GNU*)
11715   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11716 *)
11717   ac_count=0
11718   $as_echo_n 0123456789 >"conftest.in"
11719   while :
11720   do
11721     cat "conftest.in" "conftest.in" >"conftest.tmp"
11722     mv "conftest.tmp" "conftest.in"
11723     cp "conftest.in" "conftest.nl"
11724     $as_echo 'GREP' >> "conftest.nl"
11725     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11726     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11727     as_fn_arith $ac_count + 1 && ac_count=$as_val
11728     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11729       # Best one so far, save it but keep looking for a better one
11730       ac_cv_path_GREP="$ac_path_GREP"
11731       ac_path_GREP_max=$ac_count
11732     fi
11733     # 10*(2^10) chars as input seems more than enough
11734     test $ac_count -gt 10 && break
11735   done
11736   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11737 esac
11738 
11739       $ac_path_GREP_found && break 3
11740     done
11741   done
11742   done
11743 IFS=$as_save_IFS
11744   if test -z "$ac_cv_path_GREP"; then
11745     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11746   fi
11747 else
11748   ac_cv_path_GREP=$GREP
11749 fi
11750 
11751 fi
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11753 $as_echo "$ac_cv_path_GREP" >&6; }
11754  GREP="$ac_cv_path_GREP"
11755 
11756 
11757     else
11758       # If it succeeded, then it was overridden by the user. We will use it
11759       # for the tool.
11760 
11761       # First remove it from the list of overridden variables, so we can test
11762       # for unknown variables in the end.
11763       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11764 
11765       # Check if the provided tool contains a complete path.
11766       tool_specified="$GREP"
11767       tool_basename="${tool_specified##*/}"
11768       if test "x$tool_basename" = "x$tool_specified"; then
11769         # A command without a complete path is provided, search $PATH.
11770         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11771 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11772         # Extract the first word of "$tool_basename", so it can be a program name with args.
11773 set dummy $tool_basename; ac_word=$2
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 $as_echo_n "checking for $ac_word... " >&6; }
11776 if ${ac_cv_path_GREP+:} false; then :
11777   $as_echo_n "(cached) " >&6
11778 else
11779   case $GREP in
11780   [\\/]* | ?:[\\/]*)
11781   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11782   ;;
11783   *)
11784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11786 do
11787   IFS=$as_save_IFS
11788   test -z "$as_dir" && as_dir=.
11789     for ac_exec_ext in '' $ac_executable_extensions; do
11790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793     break 2
11794   fi
11795 done
11796   done
11797 IFS=$as_save_IFS
11798 
11799   ;;
11800 esac
11801 fi
11802 GREP=$ac_cv_path_GREP
11803 if test -n "$GREP"; then
11804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11805 $as_echo "$GREP" >&6; }
11806 else
11807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809 fi
11810 
11811 
11812         if test "x$GREP" = x; then
11813           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11814         fi
11815       else
11816         # Otherwise we believe it is a complete path. Use it as it is.
11817         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11818 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11819         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11820 $as_echo_n "checking for GREP... " >&6; }
11821         if test ! -x "$tool_specified"; then
11822           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11823 $as_echo "not found" >&6; }
11824           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11825         fi
11826         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11827 $as_echo "$tool_specified" >&6; }
11828       fi
11829     fi
11830   fi
11831 
11832 
11833   if test "x$GREP" = x; then
11834     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11835   fi
11836 
11837 
11838 
11839 
11840   # Publish this variable in the help.
11841 
11842 
11843   if test "x$EGREP" = x; then
11844     # The variable is not set by user, try to locate tool using the code snippet
11845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11846 $as_echo_n "checking for egrep... " >&6; }
11847 if ${ac_cv_path_EGREP+:} false; then :
11848   $as_echo_n "(cached) " >&6
11849 else
11850   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11851    then ac_cv_path_EGREP="$GREP -E"
11852    else
11853      if test -z "$EGREP"; then
11854   ac_path_EGREP_found=false
11855   # Loop through the user's path and test for each of PROGNAME-LIST
11856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11858 do
11859   IFS=$as_save_IFS
11860   test -z "$as_dir" && as_dir=.
11861     for ac_prog in egrep; do
11862     for ac_exec_ext in '' $ac_executable_extensions; do
11863       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11864       as_fn_executable_p "$ac_path_EGREP" || continue
11865 # Check for GNU ac_path_EGREP and select it if it is found.
11866   # Check for GNU $ac_path_EGREP
11867 case `"$ac_path_EGREP" --version 2>&1` in
11868 *GNU*)
11869   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11870 *)
11871   ac_count=0
11872   $as_echo_n 0123456789 >"conftest.in"
11873   while :
11874   do
11875     cat "conftest.in" "conftest.in" >"conftest.tmp"
11876     mv "conftest.tmp" "conftest.in"
11877     cp "conftest.in" "conftest.nl"
11878     $as_echo 'EGREP' >> "conftest.nl"
11879     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11880     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11881     as_fn_arith $ac_count + 1 && ac_count=$as_val
11882     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11883       # Best one so far, save it but keep looking for a better one
11884       ac_cv_path_EGREP="$ac_path_EGREP"
11885       ac_path_EGREP_max=$ac_count
11886     fi
11887     # 10*(2^10) chars as input seems more than enough
11888     test $ac_count -gt 10 && break
11889   done
11890   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11891 esac
11892 
11893       $ac_path_EGREP_found && break 3
11894     done
11895   done
11896   done
11897 IFS=$as_save_IFS
11898   if test -z "$ac_cv_path_EGREP"; then
11899     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11900   fi
11901 else
11902   ac_cv_path_EGREP=$EGREP
11903 fi
11904 
11905    fi
11906 fi
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11908 $as_echo "$ac_cv_path_EGREP" >&6; }
11909  EGREP="$ac_cv_path_EGREP"
11910 
11911 
11912   else
11913     # The variable is set, but is it from the command line or the environment?
11914 
11915     # Try to remove the string !EGREP! from our list.
11916     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11917     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11918       # If it failed, the variable was not from the command line. Ignore it,
11919       # but warn the user (except for BASH, which is always set by the calling BASH).
11920       if test "xEGREP" != xBASH; then
11921         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11922 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11923       fi
11924       # Try to locate tool using the code snippet
11925       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11926 $as_echo_n "checking for egrep... " >&6; }
11927 if ${ac_cv_path_EGREP+:} false; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11931    then ac_cv_path_EGREP="$GREP -E"
11932    else
11933      if test -z "$EGREP"; then
11934   ac_path_EGREP_found=false
11935   # Loop through the user's path and test for each of PROGNAME-LIST
11936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941     for ac_prog in egrep; do
11942     for ac_exec_ext in '' $ac_executable_extensions; do
11943       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11944       as_fn_executable_p "$ac_path_EGREP" || continue
11945 # Check for GNU ac_path_EGREP and select it if it is found.
11946   # Check for GNU $ac_path_EGREP
11947 case `"$ac_path_EGREP" --version 2>&1` in
11948 *GNU*)
11949   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11950 *)
11951   ac_count=0
11952   $as_echo_n 0123456789 >"conftest.in"
11953   while :
11954   do
11955     cat "conftest.in" "conftest.in" >"conftest.tmp"
11956     mv "conftest.tmp" "conftest.in"
11957     cp "conftest.in" "conftest.nl"
11958     $as_echo 'EGREP' >> "conftest.nl"
11959     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11960     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11961     as_fn_arith $ac_count + 1 && ac_count=$as_val
11962     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11963       # Best one so far, save it but keep looking for a better one
11964       ac_cv_path_EGREP="$ac_path_EGREP"
11965       ac_path_EGREP_max=$ac_count
11966     fi
11967     # 10*(2^10) chars as input seems more than enough
11968     test $ac_count -gt 10 && break
11969   done
11970   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11971 esac
11972 
11973       $ac_path_EGREP_found && break 3
11974     done
11975   done
11976   done
11977 IFS=$as_save_IFS
11978   if test -z "$ac_cv_path_EGREP"; then
11979     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11980   fi
11981 else
11982   ac_cv_path_EGREP=$EGREP
11983 fi
11984 
11985    fi
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11988 $as_echo "$ac_cv_path_EGREP" >&6; }
11989  EGREP="$ac_cv_path_EGREP"
11990 
11991 
11992     else
11993       # If it succeeded, then it was overridden by the user. We will use it
11994       # for the tool.
11995 
11996       # First remove it from the list of overridden variables, so we can test
11997       # for unknown variables in the end.
11998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11999 
12000       # Check if the provided tool contains a complete path.
12001       tool_specified="$EGREP"
12002       tool_basename="${tool_specified##*/}"
12003       if test "x$tool_basename" = "x$tool_specified"; then
12004         # A command without a complete path is provided, search $PATH.
12005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12006 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12007         # Extract the first word of "$tool_basename", so it can be a program name with args.
12008 set dummy $tool_basename; ac_word=$2
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 $as_echo_n "checking for $ac_word... " >&6; }
12011 if ${ac_cv_path_EGREP+:} false; then :
12012   $as_echo_n "(cached) " >&6
12013 else
12014   case $EGREP in
12015   [\\/]* | ?:[\\/]*)
12016   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12017   ;;
12018   *)
12019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022   IFS=$as_save_IFS
12023   test -z "$as_dir" && as_dir=.
12024     for ac_exec_ext in '' $ac_executable_extensions; do
12025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12026     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12028     break 2
12029   fi
12030 done
12031   done
12032 IFS=$as_save_IFS
12033 
12034   ;;
12035 esac
12036 fi
12037 EGREP=$ac_cv_path_EGREP
12038 if test -n "$EGREP"; then
12039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12040 $as_echo "$EGREP" >&6; }
12041 else
12042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12043 $as_echo "no" >&6; }
12044 fi
12045 
12046 
12047         if test "x$EGREP" = x; then
12048           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12049         fi
12050       else
12051         # Otherwise we believe it is a complete path. Use it as it is.
12052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12053 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12055 $as_echo_n "checking for EGREP... " >&6; }
12056         if test ! -x "$tool_specified"; then
12057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12058 $as_echo "not found" >&6; }
12059           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12060         fi
12061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12062 $as_echo "$tool_specified" >&6; }
12063       fi
12064     fi
12065   fi
12066 
12067 
12068   if test "x$EGREP" = x; then
12069     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12070   fi
12071 
12072 
12073 
12074 
12075   # Publish this variable in the help.
12076 
12077 
12078   if test "x$FGREP" = x; then
12079     # The variable is not set by user, try to locate tool using the code snippet
12080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12081 $as_echo_n "checking for fgrep... " >&6; }
12082 if ${ac_cv_path_FGREP+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12086    then ac_cv_path_FGREP="$GREP -F"
12087    else
12088      if test -z "$FGREP"; then
12089   ac_path_FGREP_found=false
12090   # Loop through the user's path and test for each of PROGNAME-LIST
12091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12092 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12093 do
12094   IFS=$as_save_IFS
12095   test -z "$as_dir" && as_dir=.
12096     for ac_prog in fgrep; do
12097     for ac_exec_ext in '' $ac_executable_extensions; do
12098       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12099       as_fn_executable_p "$ac_path_FGREP" || continue
12100 # Check for GNU ac_path_FGREP and select it if it is found.
12101   # Check for GNU $ac_path_FGREP
12102 case `"$ac_path_FGREP" --version 2>&1` in
12103 *GNU*)
12104   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12105 *)
12106   ac_count=0
12107   $as_echo_n 0123456789 >"conftest.in"
12108   while :
12109   do
12110     cat "conftest.in" "conftest.in" >"conftest.tmp"
12111     mv "conftest.tmp" "conftest.in"
12112     cp "conftest.in" "conftest.nl"
12113     $as_echo 'FGREP' >> "conftest.nl"
12114     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12115     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12116     as_fn_arith $ac_count + 1 && ac_count=$as_val
12117     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12118       # Best one so far, save it but keep looking for a better one
12119       ac_cv_path_FGREP="$ac_path_FGREP"
12120       ac_path_FGREP_max=$ac_count
12121     fi
12122     # 10*(2^10) chars as input seems more than enough
12123     test $ac_count -gt 10 && break
12124   done
12125   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12126 esac
12127 
12128       $ac_path_FGREP_found && break 3
12129     done
12130   done
12131   done
12132 IFS=$as_save_IFS
12133   if test -z "$ac_cv_path_FGREP"; then
12134     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12135   fi
12136 else
12137   ac_cv_path_FGREP=$FGREP
12138 fi
12139 
12140    fi
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12143 $as_echo "$ac_cv_path_FGREP" >&6; }
12144  FGREP="$ac_cv_path_FGREP"
12145 
12146 
12147   else
12148     # The variable is set, but is it from the command line or the environment?
12149 
12150     # Try to remove the string !FGREP! from our list.
12151     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12152     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12153       # If it failed, the variable was not from the command line. Ignore it,
12154       # but warn the user (except for BASH, which is always set by the calling BASH).
12155       if test "xFGREP" != xBASH; then
12156         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12157 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12158       fi
12159       # Try to locate tool using the code snippet
12160       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12161 $as_echo_n "checking for fgrep... " >&6; }
12162 if ${ac_cv_path_FGREP+:} false; then :
12163   $as_echo_n "(cached) " >&6
12164 else
12165   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12166    then ac_cv_path_FGREP="$GREP -F"
12167    else
12168      if test -z "$FGREP"; then
12169   ac_path_FGREP_found=false
12170   # Loop through the user's path and test for each of PROGNAME-LIST
12171   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12173 do
12174   IFS=$as_save_IFS
12175   test -z "$as_dir" && as_dir=.
12176     for ac_prog in fgrep; do
12177     for ac_exec_ext in '' $ac_executable_extensions; do
12178       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12179       as_fn_executable_p "$ac_path_FGREP" || continue
12180 # Check for GNU ac_path_FGREP and select it if it is found.
12181   # Check for GNU $ac_path_FGREP
12182 case `"$ac_path_FGREP" --version 2>&1` in
12183 *GNU*)
12184   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12185 *)
12186   ac_count=0
12187   $as_echo_n 0123456789 >"conftest.in"
12188   while :
12189   do
12190     cat "conftest.in" "conftest.in" >"conftest.tmp"
12191     mv "conftest.tmp" "conftest.in"
12192     cp "conftest.in" "conftest.nl"
12193     $as_echo 'FGREP' >> "conftest.nl"
12194     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12195     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12196     as_fn_arith $ac_count + 1 && ac_count=$as_val
12197     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12198       # Best one so far, save it but keep looking for a better one
12199       ac_cv_path_FGREP="$ac_path_FGREP"
12200       ac_path_FGREP_max=$ac_count
12201     fi
12202     # 10*(2^10) chars as input seems more than enough
12203     test $ac_count -gt 10 && break
12204   done
12205   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12206 esac
12207 
12208       $ac_path_FGREP_found && break 3
12209     done
12210   done
12211   done
12212 IFS=$as_save_IFS
12213   if test -z "$ac_cv_path_FGREP"; then
12214     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12215   fi
12216 else
12217   ac_cv_path_FGREP=$FGREP
12218 fi
12219 
12220    fi
12221 fi
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12223 $as_echo "$ac_cv_path_FGREP" >&6; }
12224  FGREP="$ac_cv_path_FGREP"
12225 
12226 
12227     else
12228       # If it succeeded, then it was overridden by the user. We will use it
12229       # for the tool.
12230 
12231       # First remove it from the list of overridden variables, so we can test
12232       # for unknown variables in the end.
12233       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12234 
12235       # Check if the provided tool contains a complete path.
12236       tool_specified="$FGREP"
12237       tool_basename="${tool_specified##*/}"
12238       if test "x$tool_basename" = "x$tool_specified"; then
12239         # A command without a complete path is provided, search $PATH.
12240         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12241 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12242         # Extract the first word of "$tool_basename", so it can be a program name with args.
12243 set dummy $tool_basename; ac_word=$2
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12245 $as_echo_n "checking for $ac_word... " >&6; }
12246 if ${ac_cv_path_FGREP+:} false; then :
12247   $as_echo_n "(cached) " >&6
12248 else
12249   case $FGREP in
12250   [\\/]* | ?:[\\/]*)
12251   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12252   ;;
12253   *)
12254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12255 for as_dir in $PATH
12256 do
12257   IFS=$as_save_IFS
12258   test -z "$as_dir" && as_dir=.
12259     for ac_exec_ext in '' $ac_executable_extensions; do
12260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12261     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263     break 2
12264   fi
12265 done
12266   done
12267 IFS=$as_save_IFS
12268 
12269   ;;
12270 esac
12271 fi
12272 FGREP=$ac_cv_path_FGREP
12273 if test -n "$FGREP"; then
12274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12275 $as_echo "$FGREP" >&6; }
12276 else
12277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12278 $as_echo "no" >&6; }
12279 fi
12280 
12281 
12282         if test "x$FGREP" = x; then
12283           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12284         fi
12285       else
12286         # Otherwise we believe it is a complete path. Use it as it is.
12287         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12288 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12289         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12290 $as_echo_n "checking for FGREP... " >&6; }
12291         if test ! -x "$tool_specified"; then
12292           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12293 $as_echo "not found" >&6; }
12294           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12295         fi
12296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12297 $as_echo "$tool_specified" >&6; }
12298       fi
12299     fi
12300   fi
12301 
12302 
12303   if test "x$FGREP" = x; then
12304     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12305   fi
12306 
12307 
12308 
12309 
12310   # Publish this variable in the help.
12311 
12312 
12313   if test "x$SED" = x; then
12314     # The variable is not set by user, try to locate tool using the code snippet
12315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12316 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12317 if ${ac_cv_path_SED+:} false; then :
12318   $as_echo_n "(cached) " >&6
12319 else
12320             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12321      for ac_i in 1 2 3 4 5 6 7; do
12322        ac_script="$ac_script$as_nl$ac_script"
12323      done
12324      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12325      { ac_script=; unset ac_script;}
12326      if test -z "$SED"; then
12327   ac_path_SED_found=false
12328   # Loop through the user's path and test for each of PROGNAME-LIST
12329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12331 do
12332   IFS=$as_save_IFS
12333   test -z "$as_dir" && as_dir=.
12334     for ac_prog in sed gsed; do
12335     for ac_exec_ext in '' $ac_executable_extensions; do
12336       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12337       as_fn_executable_p "$ac_path_SED" || continue
12338 # Check for GNU ac_path_SED and select it if it is found.
12339   # Check for GNU $ac_path_SED
12340 case `"$ac_path_SED" --version 2>&1` in
12341 *GNU*)
12342   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12343 *)
12344   ac_count=0
12345   $as_echo_n 0123456789 >"conftest.in"
12346   while :
12347   do
12348     cat "conftest.in" "conftest.in" >"conftest.tmp"
12349     mv "conftest.tmp" "conftest.in"
12350     cp "conftest.in" "conftest.nl"
12351     $as_echo '' >> "conftest.nl"
12352     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12353     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12354     as_fn_arith $ac_count + 1 && ac_count=$as_val
12355     if test $ac_count -gt ${ac_path_SED_max-0}; then
12356       # Best one so far, save it but keep looking for a better one
12357       ac_cv_path_SED="$ac_path_SED"
12358       ac_path_SED_max=$ac_count
12359     fi
12360     # 10*(2^10) chars as input seems more than enough
12361     test $ac_count -gt 10 && break
12362   done
12363   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12364 esac
12365 
12366       $ac_path_SED_found && break 3
12367     done
12368   done
12369   done
12370 IFS=$as_save_IFS
12371   if test -z "$ac_cv_path_SED"; then
12372     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12373   fi
12374 else
12375   ac_cv_path_SED=$SED
12376 fi
12377 
12378 fi
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12380 $as_echo "$ac_cv_path_SED" >&6; }
12381  SED="$ac_cv_path_SED"
12382   rm -f conftest.sed
12383 
12384   else
12385     # The variable is set, but is it from the command line or the environment?
12386 
12387     # Try to remove the string !SED! from our list.
12388     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12389     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12390       # If it failed, the variable was not from the command line. Ignore it,
12391       # but warn the user (except for BASH, which is always set by the calling BASH).
12392       if test "xSED" != xBASH; then
12393         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12394 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12395       fi
12396       # Try to locate tool using the code snippet
12397       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12398 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12399 if ${ac_cv_path_SED+:} false; then :
12400   $as_echo_n "(cached) " >&6
12401 else
12402             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12403      for ac_i in 1 2 3 4 5 6 7; do
12404        ac_script="$ac_script$as_nl$ac_script"
12405      done
12406      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12407      { ac_script=; unset ac_script;}
12408      if test -z "$SED"; then
12409   ac_path_SED_found=false
12410   # Loop through the user's path and test for each of PROGNAME-LIST
12411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412 for as_dir in $PATH
12413 do
12414   IFS=$as_save_IFS
12415   test -z "$as_dir" && as_dir=.
12416     for ac_prog in sed gsed; do
12417     for ac_exec_ext in '' $ac_executable_extensions; do
12418       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12419       as_fn_executable_p "$ac_path_SED" || continue
12420 # Check for GNU ac_path_SED and select it if it is found.
12421   # Check for GNU $ac_path_SED
12422 case `"$ac_path_SED" --version 2>&1` in
12423 *GNU*)
12424   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12425 *)
12426   ac_count=0
12427   $as_echo_n 0123456789 >"conftest.in"
12428   while :
12429   do
12430     cat "conftest.in" "conftest.in" >"conftest.tmp"
12431     mv "conftest.tmp" "conftest.in"
12432     cp "conftest.in" "conftest.nl"
12433     $as_echo '' >> "conftest.nl"
12434     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12435     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12436     as_fn_arith $ac_count + 1 && ac_count=$as_val
12437     if test $ac_count -gt ${ac_path_SED_max-0}; then
12438       # Best one so far, save it but keep looking for a better one
12439       ac_cv_path_SED="$ac_path_SED"
12440       ac_path_SED_max=$ac_count
12441     fi
12442     # 10*(2^10) chars as input seems more than enough
12443     test $ac_count -gt 10 && break
12444   done
12445   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12446 esac
12447 
12448       $ac_path_SED_found && break 3
12449     done
12450   done
12451   done
12452 IFS=$as_save_IFS
12453   if test -z "$ac_cv_path_SED"; then
12454     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12455   fi
12456 else
12457   ac_cv_path_SED=$SED
12458 fi
12459 
12460 fi
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12462 $as_echo "$ac_cv_path_SED" >&6; }
12463  SED="$ac_cv_path_SED"
12464   rm -f conftest.sed
12465 
12466     else
12467       # If it succeeded, then it was overridden by the user. We will use it
12468       # for the tool.
12469 
12470       # First remove it from the list of overridden variables, so we can test
12471       # for unknown variables in the end.
12472       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12473 
12474       # Check if the provided tool contains a complete path.
12475       tool_specified="$SED"
12476       tool_basename="${tool_specified##*/}"
12477       if test "x$tool_basename" = "x$tool_specified"; then
12478         # A command without a complete path is provided, search $PATH.
12479         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12480 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12481         # Extract the first word of "$tool_basename", so it can be a program name with args.
12482 set dummy $tool_basename; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12484 $as_echo_n "checking for $ac_word... " >&6; }
12485 if ${ac_cv_path_SED+:} false; then :
12486   $as_echo_n "(cached) " >&6
12487 else
12488   case $SED in
12489   [\\/]* | ?:[\\/]*)
12490   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12491   ;;
12492   *)
12493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12494 for as_dir in $PATH
12495 do
12496   IFS=$as_save_IFS
12497   test -z "$as_dir" && as_dir=.
12498     for ac_exec_ext in '' $ac_executable_extensions; do
12499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12500     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12502     break 2
12503   fi
12504 done
12505   done
12506 IFS=$as_save_IFS
12507 
12508   ;;
12509 esac
12510 fi
12511 SED=$ac_cv_path_SED
12512 if test -n "$SED"; then
12513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12514 $as_echo "$SED" >&6; }
12515 else
12516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12517 $as_echo "no" >&6; }
12518 fi
12519 
12520 
12521         if test "x$SED" = x; then
12522           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12523         fi
12524       else
12525         # Otherwise we believe it is a complete path. Use it as it is.
12526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12527 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12528         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12529 $as_echo_n "checking for SED... " >&6; }
12530         if test ! -x "$tool_specified"; then
12531           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12532 $as_echo "not found" >&6; }
12533           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12534         fi
12535         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12536 $as_echo "$tool_specified" >&6; }
12537       fi
12538     fi
12539   fi
12540 
12541 
12542   if test "x$SED" = x; then
12543     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12544   fi
12545 
12546 
12547 
12548   # Always force rm.
12549   RM="$RM -f"
12550 
12551   # pwd behaves differently on various platforms and some don't support the -L flag.
12552   # Always use the bash builtin pwd to get uniform behavior.
12553   THEPWDCMD=pwd
12554 
12555   # These are not required on all platforms
12556 
12557 
12558   # Publish this variable in the help.
12559 
12560 
12561   if test "x$CYGPATH" = x; then
12562     # The variable is not set by user, try to locate tool using the code snippet
12563     for ac_prog in cygpath
12564 do
12565   # Extract the first word of "$ac_prog", so it can be a program name with args.
12566 set dummy $ac_prog; ac_word=$2
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568 $as_echo_n "checking for $ac_word... " >&6; }
12569 if ${ac_cv_path_CYGPATH+:} false; then :
12570   $as_echo_n "(cached) " >&6
12571 else
12572   case $CYGPATH in
12573   [\\/]* | ?:[\\/]*)
12574   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12575   ;;
12576   *)
12577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580   IFS=$as_save_IFS
12581   test -z "$as_dir" && as_dir=.
12582     for ac_exec_ext in '' $ac_executable_extensions; do
12583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586     break 2
12587   fi
12588 done
12589   done
12590 IFS=$as_save_IFS
12591 
12592   ;;
12593 esac
12594 fi
12595 CYGPATH=$ac_cv_path_CYGPATH
12596 if test -n "$CYGPATH"; then
12597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12598 $as_echo "$CYGPATH" >&6; }
12599 else
12600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12601 $as_echo "no" >&6; }
12602 fi
12603 
12604 
12605   test -n "$CYGPATH" && break
12606 done
12607 
12608   else
12609     # The variable is set, but is it from the command line or the environment?
12610 
12611     # Try to remove the string !CYGPATH! from our list.
12612     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12613     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12614       # If it failed, the variable was not from the command line. Ignore it,
12615       # but warn the user (except for BASH, which is always set by the calling BASH).
12616       if test "xCYGPATH" != xBASH; then
12617         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12618 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12619       fi
12620       # Try to locate tool using the code snippet
12621       for ac_prog in cygpath
12622 do
12623   # Extract the first word of "$ac_prog", so it can be a program name with args.
12624 set dummy $ac_prog; ac_word=$2
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12626 $as_echo_n "checking for $ac_word... " >&6; }
12627 if ${ac_cv_path_CYGPATH+:} false; then :
12628   $as_echo_n "(cached) " >&6
12629 else
12630   case $CYGPATH in
12631   [\\/]* | ?:[\\/]*)
12632   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12633   ;;
12634   *)
12635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636 for as_dir in $PATH
12637 do
12638   IFS=$as_save_IFS
12639   test -z "$as_dir" && as_dir=.
12640     for ac_exec_ext in '' $ac_executable_extensions; do
12641   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12642     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644     break 2
12645   fi
12646 done
12647   done
12648 IFS=$as_save_IFS
12649 
12650   ;;
12651 esac
12652 fi
12653 CYGPATH=$ac_cv_path_CYGPATH
12654 if test -n "$CYGPATH"; then
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12656 $as_echo "$CYGPATH" >&6; }
12657 else
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661 
12662 
12663   test -n "$CYGPATH" && break
12664 done
12665 
12666     else
12667       # If it succeeded, then it was overridden by the user. We will use it
12668       # for the tool.
12669 
12670       # First remove it from the list of overridden variables, so we can test
12671       # for unknown variables in the end.
12672       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12673 
12674       # Check if the provided tool contains a complete path.
12675       tool_specified="$CYGPATH"
12676       tool_basename="${tool_specified##*/}"
12677       if test "x$tool_basename" = "x$tool_specified"; then
12678         # A command without a complete path is provided, search $PATH.
12679         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12680 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12681         # Extract the first word of "$tool_basename", so it can be a program name with args.
12682 set dummy $tool_basename; ac_word=$2
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12684 $as_echo_n "checking for $ac_word... " >&6; }
12685 if ${ac_cv_path_CYGPATH+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   case $CYGPATH in
12689   [\\/]* | ?:[\\/]*)
12690   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12691   ;;
12692   *)
12693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12694 for as_dir in $PATH
12695 do
12696   IFS=$as_save_IFS
12697   test -z "$as_dir" && as_dir=.
12698     for ac_exec_ext in '' $ac_executable_extensions; do
12699   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12700     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12702     break 2
12703   fi
12704 done
12705   done
12706 IFS=$as_save_IFS
12707 
12708   ;;
12709 esac
12710 fi
12711 CYGPATH=$ac_cv_path_CYGPATH
12712 if test -n "$CYGPATH"; then
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12714 $as_echo "$CYGPATH" >&6; }
12715 else
12716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12717 $as_echo "no" >&6; }
12718 fi
12719 
12720 
12721         if test "x$CYGPATH" = x; then
12722           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12723         fi
12724       else
12725         # Otherwise we believe it is a complete path. Use it as it is.
12726         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12727 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12728         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12729 $as_echo_n "checking for CYGPATH... " >&6; }
12730         if test ! -x "$tool_specified"; then
12731           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12732 $as_echo "not found" >&6; }
12733           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12734         fi
12735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12736 $as_echo "$tool_specified" >&6; }
12737       fi
12738     fi
12739   fi
12740 
12741 
12742 
12743 
12744   # Publish this variable in the help.
12745 
12746 
12747   if test "x$READLINK" = x; then
12748     # The variable is not set by user, try to locate tool using the code snippet
12749     for ac_prog in greadlink readlink
12750 do
12751   # Extract the first word of "$ac_prog", so it can be a program name with args.
12752 set dummy $ac_prog; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_READLINK+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   case $READLINK in
12759   [\\/]* | ?:[\\/]*)
12760   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12761   ;;
12762   *)
12763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12765 do
12766   IFS=$as_save_IFS
12767   test -z "$as_dir" && as_dir=.
12768     for ac_exec_ext in '' $ac_executable_extensions; do
12769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772     break 2
12773   fi
12774 done
12775   done
12776 IFS=$as_save_IFS
12777 
12778   ;;
12779 esac
12780 fi
12781 READLINK=$ac_cv_path_READLINK
12782 if test -n "$READLINK"; then
12783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12784 $as_echo "$READLINK" >&6; }
12785 else
12786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12787 $as_echo "no" >&6; }
12788 fi
12789 
12790 
12791   test -n "$READLINK" && break
12792 done
12793 
12794   else
12795     # The variable is set, but is it from the command line or the environment?
12796 
12797     # Try to remove the string !READLINK! from our list.
12798     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12799     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12800       # If it failed, the variable was not from the command line. Ignore it,
12801       # but warn the user (except for BASH, which is always set by the calling BASH).
12802       if test "xREADLINK" != xBASH; then
12803         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12804 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12805       fi
12806       # Try to locate tool using the code snippet
12807       for ac_prog in greadlink readlink
12808 do
12809   # Extract the first word of "$ac_prog", so it can be a program name with args.
12810 set dummy $ac_prog; ac_word=$2
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12812 $as_echo_n "checking for $ac_word... " >&6; }
12813 if ${ac_cv_path_READLINK+:} false; then :
12814   $as_echo_n "(cached) " >&6
12815 else
12816   case $READLINK in
12817   [\\/]* | ?:[\\/]*)
12818   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12819   ;;
12820   *)
12821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822 for as_dir in $PATH
12823 do
12824   IFS=$as_save_IFS
12825   test -z "$as_dir" && as_dir=.
12826     for ac_exec_ext in '' $ac_executable_extensions; do
12827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12828     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830     break 2
12831   fi
12832 done
12833   done
12834 IFS=$as_save_IFS
12835 
12836   ;;
12837 esac
12838 fi
12839 READLINK=$ac_cv_path_READLINK
12840 if test -n "$READLINK"; then
12841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12842 $as_echo "$READLINK" >&6; }
12843 else
12844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12846 fi
12847 
12848 
12849   test -n "$READLINK" && break
12850 done
12851 
12852     else
12853       # If it succeeded, then it was overridden by the user. We will use it
12854       # for the tool.
12855 
12856       # First remove it from the list of overridden variables, so we can test
12857       # for unknown variables in the end.
12858       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12859 
12860       # Check if the provided tool contains a complete path.
12861       tool_specified="$READLINK"
12862       tool_basename="${tool_specified##*/}"
12863       if test "x$tool_basename" = "x$tool_specified"; then
12864         # A command without a complete path is provided, search $PATH.
12865         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12866 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12867         # Extract the first word of "$tool_basename", so it can be a program name with args.
12868 set dummy $tool_basename; ac_word=$2
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12870 $as_echo_n "checking for $ac_word... " >&6; }
12871 if ${ac_cv_path_READLINK+:} false; then :
12872   $as_echo_n "(cached) " >&6
12873 else
12874   case $READLINK in
12875   [\\/]* | ?:[\\/]*)
12876   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12877   ;;
12878   *)
12879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12881 do
12882   IFS=$as_save_IFS
12883   test -z "$as_dir" && as_dir=.
12884     for ac_exec_ext in '' $ac_executable_extensions; do
12885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12888     break 2
12889   fi
12890 done
12891   done
12892 IFS=$as_save_IFS
12893 
12894   ;;
12895 esac
12896 fi
12897 READLINK=$ac_cv_path_READLINK
12898 if test -n "$READLINK"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12900 $as_echo "$READLINK" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905 
12906 
12907         if test "x$READLINK" = x; then
12908           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12909         fi
12910       else
12911         # Otherwise we believe it is a complete path. Use it as it is.
12912         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12913 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12914         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12915 $as_echo_n "checking for READLINK... " >&6; }
12916         if test ! -x "$tool_specified"; then
12917           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12918 $as_echo "not found" >&6; }
12919           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12920         fi
12921         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12922 $as_echo "$tool_specified" >&6; }
12923       fi
12924     fi
12925   fi
12926 
12927 
12928 
12929 
12930   # Publish this variable in the help.
12931 
12932 
12933   if test "x$DF" = x; then
12934     # The variable is not set by user, try to locate tool using the code snippet
12935     for ac_prog in df
12936 do
12937   # Extract the first word of "$ac_prog", so it can be a program name with args.
12938 set dummy $ac_prog; ac_word=$2
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12940 $as_echo_n "checking for $ac_word... " >&6; }
12941 if ${ac_cv_path_DF+:} false; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944   case $DF in
12945   [\\/]* | ?:[\\/]*)
12946   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12947   ;;
12948   *)
12949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12950 for as_dir in $PATH
12951 do
12952   IFS=$as_save_IFS
12953   test -z "$as_dir" && as_dir=.
12954     for ac_exec_ext in '' $ac_executable_extensions; do
12955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12956     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12958     break 2
12959   fi
12960 done
12961   done
12962 IFS=$as_save_IFS
12963 
12964   ;;
12965 esac
12966 fi
12967 DF=$ac_cv_path_DF
12968 if test -n "$DF"; then
12969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12970 $as_echo "$DF" >&6; }
12971 else
12972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12974 fi
12975 
12976 
12977   test -n "$DF" && break
12978 done
12979 
12980   else
12981     # The variable is set, but is it from the command line or the environment?
12982 
12983     # Try to remove the string !DF! from our list.
12984     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12985     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12986       # If it failed, the variable was not from the command line. Ignore it,
12987       # but warn the user (except for BASH, which is always set by the calling BASH).
12988       if test "xDF" != xBASH; then
12989         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12990 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12991       fi
12992       # Try to locate tool using the code snippet
12993       for ac_prog in df
12994 do
12995   # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if ${ac_cv_path_DF+:} false; then :
13000   $as_echo_n "(cached) " >&6
13001 else
13002   case $DF in
13003   [\\/]* | ?:[\\/]*)
13004   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13005   ;;
13006   *)
13007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13008 for as_dir in $PATH
13009 do
13010   IFS=$as_save_IFS
13011   test -z "$as_dir" && as_dir=.
13012     for ac_exec_ext in '' $ac_executable_extensions; do
13013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13014     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13016     break 2
13017   fi
13018 done
13019   done
13020 IFS=$as_save_IFS
13021 
13022   ;;
13023 esac
13024 fi
13025 DF=$ac_cv_path_DF
13026 if test -n "$DF"; then
13027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13028 $as_echo "$DF" >&6; }
13029 else
13030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13031 $as_echo "no" >&6; }
13032 fi
13033 
13034 
13035   test -n "$DF" && break
13036 done
13037 
13038     else
13039       # If it succeeded, then it was overridden by the user. We will use it
13040       # for the tool.
13041 
13042       # First remove it from the list of overridden variables, so we can test
13043       # for unknown variables in the end.
13044       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13045 
13046       # Check if the provided tool contains a complete path.
13047       tool_specified="$DF"
13048       tool_basename="${tool_specified##*/}"
13049       if test "x$tool_basename" = "x$tool_specified"; then
13050         # A command without a complete path is provided, search $PATH.
13051         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13052 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13053         # Extract the first word of "$tool_basename", so it can be a program name with args.
13054 set dummy $tool_basename; ac_word=$2
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056 $as_echo_n "checking for $ac_word... " >&6; }
13057 if ${ac_cv_path_DF+:} false; then :
13058   $as_echo_n "(cached) " >&6
13059 else
13060   case $DF in
13061   [\\/]* | ?:[\\/]*)
13062   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13063   ;;
13064   *)
13065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13066 for as_dir in $PATH
13067 do
13068   IFS=$as_save_IFS
13069   test -z "$as_dir" && as_dir=.
13070     for ac_exec_ext in '' $ac_executable_extensions; do
13071   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13072     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13074     break 2
13075   fi
13076 done
13077   done
13078 IFS=$as_save_IFS
13079 
13080   ;;
13081 esac
13082 fi
13083 DF=$ac_cv_path_DF
13084 if test -n "$DF"; then
13085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13086 $as_echo "$DF" >&6; }
13087 else
13088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13089 $as_echo "no" >&6; }
13090 fi
13091 
13092 
13093         if test "x$DF" = x; then
13094           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13095         fi
13096       else
13097         # Otherwise we believe it is a complete path. Use it as it is.
13098         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13099 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13101 $as_echo_n "checking for DF... " >&6; }
13102         if test ! -x "$tool_specified"; then
13103           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13104 $as_echo "not found" >&6; }
13105           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13106         fi
13107         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13108 $as_echo "$tool_specified" >&6; }
13109       fi
13110     fi
13111   fi
13112 
13113 
13114 
13115 
13116   # Publish this variable in the help.
13117 
13118 
13119   if test "x$SETFILE" = x; then
13120     # The variable is not set by user, try to locate tool using the code snippet
13121     for ac_prog in SetFile
13122 do
13123   # Extract the first word of "$ac_prog", so it can be a program name with args.
13124 set dummy $ac_prog; ac_word=$2
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13126 $as_echo_n "checking for $ac_word... " >&6; }
13127 if ${ac_cv_path_SETFILE+:} false; then :
13128   $as_echo_n "(cached) " >&6
13129 else
13130   case $SETFILE in
13131   [\\/]* | ?:[\\/]*)
13132   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13133   ;;
13134   *)
13135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13136 for as_dir in $PATH
13137 do
13138   IFS=$as_save_IFS
13139   test -z "$as_dir" && as_dir=.
13140     for ac_exec_ext in '' $ac_executable_extensions; do
13141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13142     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13144     break 2
13145   fi
13146 done
13147   done
13148 IFS=$as_save_IFS
13149 
13150   ;;
13151 esac
13152 fi
13153 SETFILE=$ac_cv_path_SETFILE
13154 if test -n "$SETFILE"; then
13155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13156 $as_echo "$SETFILE" >&6; }
13157 else
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13159 $as_echo "no" >&6; }
13160 fi
13161 
13162 
13163   test -n "$SETFILE" && break
13164 done
13165 
13166   else
13167     # The variable is set, but is it from the command line or the environment?
13168 
13169     # Try to remove the string !SETFILE! from our list.
13170     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13171     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13172       # If it failed, the variable was not from the command line. Ignore it,
13173       # but warn the user (except for BASH, which is always set by the calling BASH).
13174       if test "xSETFILE" != xBASH; then
13175         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13176 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13177       fi
13178       # Try to locate tool using the code snippet
13179       for ac_prog in SetFile
13180 do
13181   # Extract the first word of "$ac_prog", so it can be a program name with args.
13182 set dummy $ac_prog; ac_word=$2
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13184 $as_echo_n "checking for $ac_word... " >&6; }
13185 if ${ac_cv_path_SETFILE+:} false; then :
13186   $as_echo_n "(cached) " >&6
13187 else
13188   case $SETFILE in
13189   [\\/]* | ?:[\\/]*)
13190   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13191   ;;
13192   *)
13193   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13195 do
13196   IFS=$as_save_IFS
13197   test -z "$as_dir" && as_dir=.
13198     for ac_exec_ext in '' $ac_executable_extensions; do
13199   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13202     break 2
13203   fi
13204 done
13205   done
13206 IFS=$as_save_IFS
13207 
13208   ;;
13209 esac
13210 fi
13211 SETFILE=$ac_cv_path_SETFILE
13212 if test -n "$SETFILE"; then
13213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13214 $as_echo "$SETFILE" >&6; }
13215 else
13216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13217 $as_echo "no" >&6; }
13218 fi
13219 
13220 
13221   test -n "$SETFILE" && break
13222 done
13223 
13224     else
13225       # If it succeeded, then it was overridden by the user. We will use it
13226       # for the tool.
13227 
13228       # First remove it from the list of overridden variables, so we can test
13229       # for unknown variables in the end.
13230       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13231 
13232       # Check if the provided tool contains a complete path.
13233       tool_specified="$SETFILE"
13234       tool_basename="${tool_specified##*/}"
13235       if test "x$tool_basename" = "x$tool_specified"; then
13236         # A command without a complete path is provided, search $PATH.
13237         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13238 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13239         # Extract the first word of "$tool_basename", so it can be a program name with args.
13240 set dummy $tool_basename; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13242 $as_echo_n "checking for $ac_word... " >&6; }
13243 if ${ac_cv_path_SETFILE+:} false; then :
13244   $as_echo_n "(cached) " >&6
13245 else
13246   case $SETFILE in
13247   [\\/]* | ?:[\\/]*)
13248   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13249   ;;
13250   *)
13251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254   IFS=$as_save_IFS
13255   test -z "$as_dir" && as_dir=.
13256     for ac_exec_ext in '' $ac_executable_extensions; do
13257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13258     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13260     break 2
13261   fi
13262 done
13263   done
13264 IFS=$as_save_IFS
13265 
13266   ;;
13267 esac
13268 fi
13269 SETFILE=$ac_cv_path_SETFILE
13270 if test -n "$SETFILE"; then
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13272 $as_echo "$SETFILE" >&6; }
13273 else
13274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13275 $as_echo "no" >&6; }
13276 fi
13277 
13278 
13279         if test "x$SETFILE" = x; then
13280           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13281         fi
13282       else
13283         # Otherwise we believe it is a complete path. Use it as it is.
13284         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13285 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13286         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13287 $as_echo_n "checking for SETFILE... " >&6; }
13288         if test ! -x "$tool_specified"; then
13289           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13290 $as_echo "not found" >&6; }
13291           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13292         fi
13293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13294 $as_echo "$tool_specified" >&6; }
13295       fi
13296     fi
13297   fi
13298 
13299 
13300 
13301 
13302 # Now we can determine OpenJDK build and target platforms. This is required to
13303 # have early on.
13304 # Make sure we can run config.sub.
13305 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13306   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13307 
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13309 $as_echo_n "checking build system type... " >&6; }
13310 if ${ac_cv_build+:} false; then :
13311   $as_echo_n "(cached) " >&6
13312 else
13313   ac_build_alias=$build_alias
13314 test "x$ac_build_alias" = x &&
13315   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13316 test "x$ac_build_alias" = x &&
13317   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13318 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13319   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13320 
13321 fi
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13323 $as_echo "$ac_cv_build" >&6; }
13324 case $ac_cv_build in
13325 *-*-*) ;;
13326 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13327 esac
13328 build=$ac_cv_build
13329 ac_save_IFS=$IFS; IFS='-'
13330 set x $ac_cv_build
13331 shift
13332 build_cpu=$1
13333 build_vendor=$2
13334 shift; shift
13335 # Remember, the first character of IFS is used to create $*,
13336 # except with old shells:
13337 build_os=$*
13338 IFS=$ac_save_IFS
13339 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13340 
13341 
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13343 $as_echo_n "checking host system type... " >&6; }
13344 if ${ac_cv_host+:} false; then :
13345   $as_echo_n "(cached) " >&6
13346 else
13347   if test "x$host_alias" = x; then
13348   ac_cv_host=$ac_cv_build
13349 else
13350   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13351     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13352 fi
13353 
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13356 $as_echo "$ac_cv_host" >&6; }
13357 case $ac_cv_host in
13358 *-*-*) ;;
13359 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13360 esac
13361 host=$ac_cv_host
13362 ac_save_IFS=$IFS; IFS='-'
13363 set x $ac_cv_host
13364 shift
13365 host_cpu=$1
13366 host_vendor=$2
13367 shift; shift
13368 # Remember, the first character of IFS is used to create $*,
13369 # except with old shells:
13370 host_os=$*
13371 IFS=$ac_save_IFS
13372 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13373 
13374 
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13376 $as_echo_n "checking target system type... " >&6; }
13377 if ${ac_cv_target+:} false; then :
13378   $as_echo_n "(cached) " >&6
13379 else
13380   if test "x$target_alias" = x; then
13381   ac_cv_target=$ac_cv_host
13382 else
13383   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13384     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13385 fi
13386 
13387 fi
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13389 $as_echo "$ac_cv_target" >&6; }
13390 case $ac_cv_target in
13391 *-*-*) ;;
13392 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13393 esac
13394 target=$ac_cv_target
13395 ac_save_IFS=$IFS; IFS='-'
13396 set x $ac_cv_target
13397 shift
13398 target_cpu=$1
13399 target_vendor=$2
13400 shift; shift
13401 # Remember, the first character of IFS is used to create $*,
13402 # except with old shells:
13403 target_os=$*
13404 IFS=$ac_save_IFS
13405 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13406 
13407 
13408 # The aliases save the names the user supplied, while $host etc.
13409 # will get canonicalized.
13410 test -n "$target_alias" &&
13411   test "$program_prefix$program_suffix$program_transform_name" = \
13412     NONENONEs,x,x, &&
13413   program_prefix=${target_alias}-
13414 
13415   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13416   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13417   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13418   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13419   # to use the configure naming style.
13420 
13421 
13422 
13423 
13424 
13425   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13426   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13427   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13428   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13429   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13430   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13431 
13432 
13433 
13434   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13435 
13436   case "$build_os" in
13437     *linux*)
13438       VAR_OS=linux
13439       VAR_OS_API=posix
13440       VAR_OS_ENV=linux
13441       ;;
13442     *solaris*)
13443       VAR_OS=solaris
13444       VAR_OS_API=posix
13445       VAR_OS_ENV=solaris
13446       ;;
13447     *darwin*)
13448       VAR_OS=macosx
13449       VAR_OS_API=posix
13450       VAR_OS_ENV=macosx
13451       ;;
13452     *bsd*)
13453       VAR_OS=bsd
13454       VAR_OS_API=posix
13455       VAR_OS_ENV=bsd
13456       ;;
13457     *cygwin*)
13458       VAR_OS=windows
13459       VAR_OS_API=winapi
13460       VAR_OS_ENV=windows.cygwin
13461       ;;
13462     *mingw*)
13463       VAR_OS=windows
13464       VAR_OS_API=winapi
13465       VAR_OS_ENV=windows.msys
13466       ;;
13467     *aix*)
13468       VAR_OS=aix
13469       VAR_OS_API=posix
13470       VAR_OS_ENV=aix
13471       ;;
13472     *)
13473       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13474       ;;
13475   esac
13476 
13477 
13478   # First argument is the cpu name from the trip/quad
13479   case "$build_cpu" in
13480     x86_64)
13481       VAR_CPU=x86_64
13482       VAR_CPU_ARCH=x86
13483       VAR_CPU_BITS=64
13484       VAR_CPU_ENDIAN=little
13485       ;;
13486     i?86)
13487       VAR_CPU=x86
13488       VAR_CPU_ARCH=x86
13489       VAR_CPU_BITS=32
13490       VAR_CPU_ENDIAN=little
13491       ;;
13492     arm*)
13493       VAR_CPU=arm
13494       VAR_CPU_ARCH=arm
13495       VAR_CPU_BITS=32
13496       VAR_CPU_ENDIAN=little
13497       ;;
13498     powerpc)
13499       VAR_CPU=ppc
13500       VAR_CPU_ARCH=ppc
13501       VAR_CPU_BITS=32
13502       VAR_CPU_ENDIAN=big
13503       ;;
13504     powerpc64)
13505       VAR_CPU=ppc64
13506       VAR_CPU_ARCH=ppc
13507       VAR_CPU_BITS=64
13508       VAR_CPU_ENDIAN=big
13509       ;;
13510     powerpc64le)
13511       VAR_CPU=ppc64
13512       VAR_CPU_ARCH=ppc
13513       VAR_CPU_BITS=64
13514       VAR_CPU_ENDIAN=little
13515       ;;
13516     s390)
13517       VAR_CPU=s390
13518       VAR_CPU_ARCH=s390
13519       VAR_CPU_BITS=32
13520       VAR_CPU_ENDIAN=big
13521       ;;
13522     s390x)
13523       VAR_CPU=s390x
13524       VAR_CPU_ARCH=s390
13525       VAR_CPU_BITS=64
13526       VAR_CPU_ENDIAN=big
13527       ;;
13528     sparc)
13529       VAR_CPU=sparc
13530       VAR_CPU_ARCH=sparc
13531       VAR_CPU_BITS=32
13532       VAR_CPU_ENDIAN=big
13533       ;;
13534     sparcv9)
13535       VAR_CPU=sparcv9
13536       VAR_CPU_ARCH=sparc
13537       VAR_CPU_BITS=64
13538       VAR_CPU_ENDIAN=big
13539       ;;
13540     *)
13541       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13542       ;;
13543   esac
13544 
13545   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13546   OPENJDK_BUILD_OS="$VAR_OS"
13547   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13548   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13549   OPENJDK_BUILD_CPU="$VAR_CPU"
13550   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13551   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13552   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13553 
13554 
13555 
13556 
13557 
13558 
13559 
13560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13561 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13563 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13564 
13565   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13566 
13567   case "$host_os" in
13568     *linux*)
13569       VAR_OS=linux
13570       VAR_OS_API=posix
13571       VAR_OS_ENV=linux
13572       ;;
13573     *solaris*)
13574       VAR_OS=solaris
13575       VAR_OS_API=posix
13576       VAR_OS_ENV=solaris
13577       ;;
13578     *darwin*)
13579       VAR_OS=macosx
13580       VAR_OS_API=posix
13581       VAR_OS_ENV=macosx
13582       ;;
13583     *bsd*)
13584       VAR_OS=bsd
13585       VAR_OS_API=posix
13586       VAR_OS_ENV=bsd
13587       ;;
13588     *cygwin*)
13589       VAR_OS=windows
13590       VAR_OS_API=winapi
13591       VAR_OS_ENV=windows.cygwin
13592       ;;
13593     *mingw*)
13594       VAR_OS=windows
13595       VAR_OS_API=winapi
13596       VAR_OS_ENV=windows.msys
13597       ;;
13598     *aix*)
13599       VAR_OS=aix
13600       VAR_OS_API=posix
13601       VAR_OS_ENV=aix
13602       ;;
13603     *)
13604       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13605       ;;
13606   esac
13607 
13608 
13609   # First argument is the cpu name from the trip/quad
13610   case "$host_cpu" in
13611     x86_64)
13612       VAR_CPU=x86_64
13613       VAR_CPU_ARCH=x86
13614       VAR_CPU_BITS=64
13615       VAR_CPU_ENDIAN=little
13616       ;;
13617     i?86)
13618       VAR_CPU=x86
13619       VAR_CPU_ARCH=x86
13620       VAR_CPU_BITS=32
13621       VAR_CPU_ENDIAN=little
13622       ;;
13623     arm*)
13624       VAR_CPU=arm
13625       VAR_CPU_ARCH=arm
13626       VAR_CPU_BITS=32
13627       VAR_CPU_ENDIAN=little
13628       ;;
13629     powerpc)
13630       VAR_CPU=ppc
13631       VAR_CPU_ARCH=ppc
13632       VAR_CPU_BITS=32
13633       VAR_CPU_ENDIAN=big
13634       ;;
13635     powerpc64)
13636       VAR_CPU=ppc64
13637       VAR_CPU_ARCH=ppc
13638       VAR_CPU_BITS=64
13639       VAR_CPU_ENDIAN=big
13640       ;;
13641     powerpc64le)
13642       VAR_CPU=ppc64
13643       VAR_CPU_ARCH=ppc
13644       VAR_CPU_BITS=64
13645       VAR_CPU_ENDIAN=little
13646       ;;
13647     s390)
13648       VAR_CPU=s390
13649       VAR_CPU_ARCH=s390
13650       VAR_CPU_BITS=32
13651       VAR_CPU_ENDIAN=big
13652       ;;
13653     s390x)
13654       VAR_CPU=s390x
13655       VAR_CPU_ARCH=s390
13656       VAR_CPU_BITS=64
13657       VAR_CPU_ENDIAN=big
13658       ;;
13659     sparc)
13660       VAR_CPU=sparc
13661       VAR_CPU_ARCH=sparc
13662       VAR_CPU_BITS=32
13663       VAR_CPU_ENDIAN=big
13664       ;;
13665     sparcv9)
13666       VAR_CPU=sparcv9
13667       VAR_CPU_ARCH=sparc
13668       VAR_CPU_BITS=64
13669       VAR_CPU_ENDIAN=big
13670       ;;
13671     *)
13672       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13673       ;;
13674   esac
13675 
13676   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13677   OPENJDK_TARGET_OS="$VAR_OS"
13678   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13679   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13680   OPENJDK_TARGET_CPU="$VAR_CPU"
13681   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13682   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13683   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13684 
13685 
13686 
13687 
13688 
13689 
13690 
13691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13692 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13694 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13695 
13696 
13697 
13698 # Check whether --with-target-bits was given.
13699 if test "${with_target_bits+set}" = set; then :
13700   withval=$with_target_bits;
13701 fi
13702 
13703 
13704   # We have three types of compiles:
13705   # native  == normal compilation, target system == build system
13706   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13707   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13708   #
13709   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13710     # We're doing a proper cross-compilation
13711     COMPILE_TYPE="cross"
13712   else
13713     COMPILE_TYPE="native"
13714   fi
13715 
13716   if test "x$with_target_bits" != x; then
13717     if test "x$COMPILE_TYPE" = "xcross"; then
13718       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13719     fi
13720 
13721     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13722       # A reduced build is requested
13723       COMPILE_TYPE="reduced"
13724       OPENJDK_TARGET_CPU_BITS=32
13725       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13726         OPENJDK_TARGET_CPU=x86
13727       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13728         OPENJDK_TARGET_CPU=sparc
13729       else
13730         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13731       fi
13732     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13733       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
13734     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13735       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13736 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13737     else
13738       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13739     fi
13740   fi
13741 
13742 
13743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13744 $as_echo_n "checking compilation type... " >&6; }
13745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13746 $as_echo "$COMPILE_TYPE" >&6; }
13747 
13748 
13749   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13750     REQUIRED_OS_NAME=SunOS
13751     REQUIRED_OS_VERSION=5.10
13752   fi
13753   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13754     REQUIRED_OS_NAME=Linux
13755     REQUIRED_OS_VERSION=2.6
13756   fi
13757   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13758     REQUIRED_OS_NAME=Windows
13759     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13760       REQUIRED_OS_VERSION=5.2
13761     else
13762       REQUIRED_OS_VERSION=5.1
13763     fi
13764   fi
13765   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13766     REQUIRED_OS_NAME=Darwin
13767     REQUIRED_OS_VERSION=11.2
13768   fi
13769 
13770 
13771 
13772 
13773 
13774   # Also store the legacy naming of the cpu.
13775   # Ie i586 and amd64 instead of x86 and x86_64
13776   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13777   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13778     OPENJDK_TARGET_CPU_LEGACY="i586"
13779   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13780     # On all platforms except MacOSX replace x86_64 with amd64.
13781     OPENJDK_TARGET_CPU_LEGACY="amd64"
13782   fi
13783 
13784 
13785   # And the second legacy naming of the cpu.
13786   # Ie i386 and amd64 instead of x86 and x86_64.
13787   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13788   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13789     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13790   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13791     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13792   fi
13793 
13794 
13795   # This is the name of the cpu (but using i386 and amd64 instead of
13796   # x86 and x86_64, respectively), preceeded by a /, to be used when
13797   # locating libraries. On macosx, it's empty, though.
13798   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13799   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13800     OPENJDK_TARGET_CPU_LIBDIR=""
13801   fi
13802 
13803 
13804   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13805   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13806   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13807   OPENJDK_TARGET_CPU_ISADIR=""
13808   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13809     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13810       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13811     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13812       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13813     fi
13814   fi
13815 
13816 
13817   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13818   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13819   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13820     # On linux only, we replace x86 with i386.
13821     OPENJDK_TARGET_CPU_OSARCH="i386"
13822   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13823     # On all platforms except macosx, we replace x86_64 with amd64.
13824     OPENJDK_TARGET_CPU_OSARCH="amd64"
13825   fi
13826 
13827 
13828   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13829   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13830     OPENJDK_TARGET_CPU_JLI="i386"
13831   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13832     # On all platforms except macosx, we replace x86_64 with amd64.
13833     OPENJDK_TARGET_CPU_JLI="amd64"
13834   fi
13835   # Now setup the -D flags for building libjli.
13836   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13837   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13838     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13839       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13840     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13841       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13842     fi
13843   fi
13844 
13845 
13846   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13847   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13848     OPENJDK_TARGET_OS_API_DIR="solaris"
13849   fi
13850   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13851     OPENJDK_TARGET_OS_API_DIR="windows"
13852   fi
13853 
13854 
13855   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13856       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13857   else
13858       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13859   fi
13860 
13861 
13862   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13863     A_LP64="LP64:="
13864     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13865     # unpack200.exe
13866     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13867       ADD_LP64="-D_LP64=1"
13868     fi
13869   fi
13870   LP64=$A_LP64
13871 
13872 
13873   if test "x$COMPILE_TYPE" = "xcross"; then
13874     # FIXME: ... or should this include reduced builds..?
13875     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13876   else
13877     DEFINE_CROSS_COMPILE_ARCH=""
13878   fi
13879 
13880 
13881   # ZERO_ARCHDEF is used to enable architecture-specific code
13882   case "${OPENJDK_TARGET_CPU}" in
13883     ppc*)    ZERO_ARCHDEF=PPC   ;;
13884     s390*)   ZERO_ARCHDEF=S390  ;;
13885     sparc*)  ZERO_ARCHDEF=SPARC ;;
13886     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13887     x86)     ZERO_ARCHDEF=IA32  ;;
13888     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13889   esac
13890 
13891 
13892 
13893 
13894 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13895 
13896   # Save the current directory this script was started from
13897   CURDIR="$PWD"
13898 
13899   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13900     PATH_SEP=";"
13901 
13902   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13903   if test $SRC_ROOT_LENGTH -gt 100; then
13904     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13905   fi
13906 
13907   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13909 $as_echo_n "checking cygwin release... " >&6; }
13910     CYGWIN_VERSION=`$UNAME -r`
13911     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13912 $as_echo "$CYGWIN_VERSION" >&6; }
13913     WINDOWS_ENV_VENDOR='cygwin'
13914     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13915 
13916     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13917     if test "x$CYGWIN_VERSION_OK" = x; then
13918       { $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
13919 $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;}
13920       as_fn_error $? "Cannot continue" "$LINENO" 5
13921     fi
13922     if test "x$CYGPATH" = x; then
13923       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13924     fi
13925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13926 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13927     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13928     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13929     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13930     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13932 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13933     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13934     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13935     if test "x$test_cygdrive_prefix" = x; then
13936       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13937     fi
13938   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13939     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13940 $as_echo_n "checking msys release... " >&6; }
13941     MSYS_VERSION=`$UNAME -r`
13942     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13943 $as_echo "$MSYS_VERSION" >&6; }
13944 
13945     WINDOWS_ENV_VENDOR='msys'
13946     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13947 
13948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13949 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13950     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13951     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13952 
13953   windows_path="$MSYS_ROOT_PATH"
13954   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13955     unix_path=`$CYGPATH -u "$windows_path"`
13956     MSYS_ROOT_PATH="$unix_path"
13957   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13958     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13959     MSYS_ROOT_PATH="$unix_path"
13960   fi
13961 
13962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13963 $as_echo "$MSYS_ROOT_PATH" >&6; }
13964     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13965   else
13966     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13967   fi
13968 
13969   # Test if windows or unix (cygwin/msys) find is first in path.
13970   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13971 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13972   FIND_BINARY_OUTPUT=`find --version 2>&1`
13973   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13974     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13975 $as_echo "unix style" >&6; }
13976   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13978 $as_echo "Windows" >&6; }
13979     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13980 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13981     { $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
13982 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13983     as_fn_error $? "Cannot continue" "$LINENO" 5
13984   else
13985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13986 $as_echo "unknown" >&6; }
13987     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13988 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13989   fi
13990 
13991   else
13992     PATH_SEP=":"
13993   fi
13994 
13995 
13996   # We get the top-level directory from the supporting wrappers.
13997   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13998 $as_echo_n "checking for top-level directory... " >&6; }
13999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14000 $as_echo "$TOPDIR" >&6; }
14001 
14002 
14003   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14004 
14005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14006 
14007   # Input might be given as Windows format, start by converting to
14008   # unix format.
14009   path="$CURDIR"
14010   new_path=`$CYGPATH -u "$path"`
14011 
14012   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14013   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14014   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14015   # "foo.exe" is OK but "foo" is an error.
14016   #
14017   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14018   # It is also a way to make sure we got the proper file name for the real test later on.
14019   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14020   if test "x$test_shortpath" = x; then
14021     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14022 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14023     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14024   fi
14025 
14026   # Call helper function which possibly converts this using DOS-style short mode.
14027   # If so, the updated path is stored in $new_path.
14028 
14029   input_path="$new_path"
14030   # Check if we need to convert this using DOS-style short mode. If the path
14031   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14032   # take no chances and rewrite it.
14033   # Note: m4 eats our [], so we need to use [ and ] instead.
14034   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14035   if test "x$has_forbidden_chars" != x; then
14036     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14037     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14038     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14039     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14040       # Going to short mode and back again did indeed matter. Since short mode is
14041       # case insensitive, let's make it lowercase to improve readability.
14042       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14043       # Now convert it back to Unix-stile (cygpath)
14044       input_path=`$CYGPATH -u "$shortmode_path"`
14045       new_path="$input_path"
14046     fi
14047   fi
14048 
14049   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14050   if test "x$test_cygdrive_prefix" = x; then
14051     # As a simple fix, exclude /usr/bin since it's not a real path.
14052     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14053       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14054       # a path prefixed by /cygdrive for fixpath to work.
14055       new_path="$CYGWIN_ROOT_PATH$input_path"
14056     fi
14057   fi
14058 
14059 
14060   if test "x$path" != "x$new_path"; then
14061     CURDIR="$new_path"
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14063 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14064   fi
14065 
14066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14067 
14068   path="$CURDIR"
14069   has_colon=`$ECHO $path | $GREP ^.:`
14070   new_path="$path"
14071   if test "x$has_colon" = x; then
14072     # Not in mixed or Windows style, start by that.
14073     new_path=`cmd //c echo $path`
14074   fi
14075 
14076 
14077   input_path="$new_path"
14078   # Check if we need to convert this using DOS-style short mode. If the path
14079   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14080   # take no chances and rewrite it.
14081   # Note: m4 eats our [], so we need to use [ and ] instead.
14082   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14083   if test "x$has_forbidden_chars" != x; then
14084     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14085     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14086   fi
14087 
14088 
14089   windows_path="$new_path"
14090   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14091     unix_path=`$CYGPATH -u "$windows_path"`
14092     new_path="$unix_path"
14093   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14094     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14095     new_path="$unix_path"
14096   fi
14097 
14098   if test "x$path" != "x$new_path"; then
14099     CURDIR="$new_path"
14100     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14101 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14102   fi
14103 
14104   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14105   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14106 
14107   else
14108     # We're on a posix platform. Hooray! :)
14109     path="$CURDIR"
14110     has_space=`$ECHO "$path" | $GREP " "`
14111     if test "x$has_space" != x; then
14112       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14113 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14114       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14115     fi
14116 
14117     # Use eval to expand a potential ~
14118     eval path="$path"
14119     if test ! -f "$path" && test ! -d "$path"; then
14120       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14121     fi
14122 
14123     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14124   fi
14125 
14126 
14127   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14128 
14129   # Input might be given as Windows format, start by converting to
14130   # unix format.
14131   path="$TOPDIR"
14132   new_path=`$CYGPATH -u "$path"`
14133 
14134   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14135   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14136   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14137   # "foo.exe" is OK but "foo" is an error.
14138   #
14139   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14140   # It is also a way to make sure we got the proper file name for the real test later on.
14141   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14142   if test "x$test_shortpath" = x; then
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14144 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14145     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14146   fi
14147 
14148   # Call helper function which possibly converts this using DOS-style short mode.
14149   # If so, the updated path is stored in $new_path.
14150 
14151   input_path="$new_path"
14152   # Check if we need to convert this using DOS-style short mode. If the path
14153   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14154   # take no chances and rewrite it.
14155   # Note: m4 eats our [], so we need to use [ and ] instead.
14156   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14157   if test "x$has_forbidden_chars" != x; then
14158     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14159     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14160     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14161     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14162       # Going to short mode and back again did indeed matter. Since short mode is
14163       # case insensitive, let's make it lowercase to improve readability.
14164       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14165       # Now convert it back to Unix-stile (cygpath)
14166       input_path=`$CYGPATH -u "$shortmode_path"`
14167       new_path="$input_path"
14168     fi
14169   fi
14170 
14171   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14172   if test "x$test_cygdrive_prefix" = x; then
14173     # As a simple fix, exclude /usr/bin since it's not a real path.
14174     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14175       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14176       # a path prefixed by /cygdrive for fixpath to work.
14177       new_path="$CYGWIN_ROOT_PATH$input_path"
14178     fi
14179   fi
14180 
14181 
14182   if test "x$path" != "x$new_path"; then
14183     TOPDIR="$new_path"
14184     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14185 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14186   fi
14187 
14188   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14189 
14190   path="$TOPDIR"
14191   has_colon=`$ECHO $path | $GREP ^.:`
14192   new_path="$path"
14193   if test "x$has_colon" = x; then
14194     # Not in mixed or Windows style, start by that.
14195     new_path=`cmd //c echo $path`
14196   fi
14197 
14198 
14199   input_path="$new_path"
14200   # Check if we need to convert this using DOS-style short mode. If the path
14201   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14202   # take no chances and rewrite it.
14203   # Note: m4 eats our [], so we need to use [ and ] instead.
14204   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14205   if test "x$has_forbidden_chars" != x; then
14206     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14207     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14208   fi
14209 
14210 
14211   windows_path="$new_path"
14212   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14213     unix_path=`$CYGPATH -u "$windows_path"`
14214     new_path="$unix_path"
14215   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14216     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14217     new_path="$unix_path"
14218   fi
14219 
14220   if test "x$path" != "x$new_path"; then
14221     TOPDIR="$new_path"
14222     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14223 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14224   fi
14225 
14226   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14227   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14228 
14229   else
14230     # We're on a posix platform. Hooray! :)
14231     path="$TOPDIR"
14232     has_space=`$ECHO "$path" | $GREP " "`
14233     if test "x$has_space" != x; then
14234       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14235 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14236       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14237     fi
14238 
14239     # Use eval to expand a potential ~
14240     eval path="$path"
14241     if test ! -f "$path" && test ! -d "$path"; then
14242       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14243     fi
14244 
14245     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14246   fi
14247 
14248   # SRC_ROOT is a traditional alias for TOPDIR.
14249   SRC_ROOT=$TOPDIR
14250 
14251   # Locate the directory of this script.
14252   AUTOCONF_DIR=$TOPDIR/common/autoconf
14253 
14254   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14255     # Add extra search paths on solaris for utilities like ar and as etc...
14256     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14257   fi
14258 
14259   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14260   # is not correct.
14261 
14262 # Check whether --with-sys-root was given.
14263 if test "${with_sys_root+set}" = set; then :
14264   withval=$with_sys_root;
14265 fi
14266 
14267 
14268   if test "x$with_sys_root" != x; then
14269     SYS_ROOT=$with_sys_root
14270   else
14271     SYS_ROOT=/
14272   fi
14273 
14274 
14275 
14276 # Check whether --with-tools-dir was given.
14277 if test "${with_tools_dir+set}" = set; then :
14278   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14279 
14280 fi
14281 
14282 
14283 
14284 # Check whether --with-devkit was given.
14285 if test "${with_devkit+set}" = set; then :
14286   withval=$with_devkit;
14287         if test "x$with_sys_root" != x; then
14288           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14289         fi
14290 
14291   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14292 
14293   # Input might be given as Windows format, start by converting to
14294   # unix format.
14295   path="$with_devkit"
14296   new_path=`$CYGPATH -u "$path"`
14297 
14298   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14299   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14300   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14301   # "foo.exe" is OK but "foo" is an error.
14302   #
14303   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14304   # It is also a way to make sure we got the proper file name for the real test later on.
14305   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14306   if test "x$test_shortpath" = x; then
14307     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14308 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14309     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14310   fi
14311 
14312   # Call helper function which possibly converts this using DOS-style short mode.
14313   # If so, the updated path is stored in $new_path.
14314 
14315   input_path="$new_path"
14316   # Check if we need to convert this using DOS-style short mode. If the path
14317   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14318   # take no chances and rewrite it.
14319   # Note: m4 eats our [], so we need to use [ and ] instead.
14320   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14321   if test "x$has_forbidden_chars" != x; then
14322     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14323     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14324     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14325     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14326       # Going to short mode and back again did indeed matter. Since short mode is
14327       # case insensitive, let's make it lowercase to improve readability.
14328       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14329       # Now convert it back to Unix-stile (cygpath)
14330       input_path=`$CYGPATH -u "$shortmode_path"`
14331       new_path="$input_path"
14332     fi
14333   fi
14334 
14335   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14336   if test "x$test_cygdrive_prefix" = x; then
14337     # As a simple fix, exclude /usr/bin since it's not a real path.
14338     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14339       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14340       # a path prefixed by /cygdrive for fixpath to work.
14341       new_path="$CYGWIN_ROOT_PATH$input_path"
14342     fi
14343   fi
14344 
14345 
14346   if test "x$path" != "x$new_path"; then
14347     with_devkit="$new_path"
14348     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14349 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14350   fi
14351 
14352   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14353 
14354   path="$with_devkit"
14355   has_colon=`$ECHO $path | $GREP ^.:`
14356   new_path="$path"
14357   if test "x$has_colon" = x; then
14358     # Not in mixed or Windows style, start by that.
14359     new_path=`cmd //c echo $path`
14360   fi
14361 
14362 
14363   input_path="$new_path"
14364   # Check if we need to convert this using DOS-style short mode. If the path
14365   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14366   # take no chances and rewrite it.
14367   # Note: m4 eats our [], so we need to use [ and ] instead.
14368   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14369   if test "x$has_forbidden_chars" != x; then
14370     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14371     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14372   fi
14373 
14374 
14375   windows_path="$new_path"
14376   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14377     unix_path=`$CYGPATH -u "$windows_path"`
14378     new_path="$unix_path"
14379   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14380     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14381     new_path="$unix_path"
14382   fi
14383 
14384   if test "x$path" != "x$new_path"; then
14385     with_devkit="$new_path"
14386     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14387 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14388   fi
14389 
14390   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14391   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14392 
14393   else
14394     # We're on a posix platform. Hooray! :)
14395     path="$with_devkit"
14396     has_space=`$ECHO "$path" | $GREP " "`
14397     if test "x$has_space" != x; then
14398       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14399 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14400       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14401     fi
14402 
14403     # Use eval to expand a potential ~
14404     eval path="$path"
14405     if test ! -f "$path" && test ! -d "$path"; then
14406       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14407     fi
14408 
14409     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14410   fi
14411 
14412 
14413   if test "x$TOOLS_DIR" = x; then
14414     TOOLS_DIR="$with_devkit/bin"
14415   else
14416     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14417   fi
14418 
14419         if test -d "$with_devkit/$host_alias/libc"; then
14420           SYS_ROOT=$with_devkit/$host_alias/libc
14421         elif test -d "$with_devkit/$host/sys-root"; then
14422           SYS_ROOT=$with_devkit/$host/sys-root
14423         fi
14424 
14425 fi
14426 
14427 
14428 
14429   # Setup default logging of stdout and stderr to build.log in the output root.
14430   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14431   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14432   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14433 
14434 
14435 
14436 
14437 
14438 # Check if it's a pure open build or if custom sources are to be used.
14439 
14440   # Check whether --enable-openjdk-only was given.
14441 if test "${enable_openjdk_only+set}" = set; then :
14442   enableval=$enable_openjdk_only;
14443 else
14444   enable_openjdk_only="no"
14445 fi
14446 
14447 
14448   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14449 $as_echo_n "checking for presence of closed sources... " >&6; }
14450   if test -d "$SRC_ROOT/jdk/src/closed"; then
14451     CLOSED_SOURCE_PRESENT=yes
14452   else
14453     CLOSED_SOURCE_PRESENT=no
14454   fi
14455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14456 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14457 
14458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14459 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14460   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14462 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14463 
14464   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14465     OPENJDK=true
14466     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14467       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14468 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14469     fi
14470   else
14471     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14472       OPENJDK=true
14473     else
14474       OPENJDK=false
14475     fi
14476   fi
14477 
14478   if test "x$OPENJDK" = "xtrue"; then
14479     SET_OPENJDK="OPENJDK=true"
14480   fi
14481 
14482 
14483 
14484   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14485   # the IncludeCustomExtension macro.
14486 
14487 
14488 # Check whether --with-custom-make-dir was given.
14489 if test "${with_custom_make_dir+set}" = set; then :
14490   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
14491 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14492 fi
14493 
14494 
14495 
14496 
14497 # These are needed to be able to create a configuration name (and thus the output directory)
14498 
14499   ###############################################################################
14500   #
14501   # Check which variant of the JDK that we want to build.
14502   # Currently we have:
14503   #    normal:   standard edition
14504   # but the custom make system may add other variants
14505   #
14506   # Effectively the JDK variant gives a name to a specific set of
14507   # modules to compile into the JDK. In the future, these modules
14508   # might even be Jigsaw modules.
14509   #
14510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14511 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14512 
14513 # Check whether --with-jdk-variant was given.
14514 if test "${with_jdk_variant+set}" = set; then :
14515   withval=$with_jdk_variant;
14516 fi
14517 
14518 
14519   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14520     JDK_VARIANT="normal"
14521   else
14522     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14523   fi
14524 
14525 
14526 
14527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14528 $as_echo "$JDK_VARIANT" >&6; }
14529 
14530 
14531 ###############################################################################
14532 #
14533 # Check which interpreter of the JVM we want to build.
14534 # Currently we have:
14535 #    template: Template interpreter (the default)
14536 #    cpp     : C++ interpreter
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14538 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14539 
14540 # Check whether --with-jvm-interpreter was given.
14541 if test "${with_jvm_interpreter+set}" = set; then :
14542   withval=$with_jvm_interpreter;
14543 fi
14544 
14545 
14546 if test "x$with_jvm_interpreter" = x; then
14547      with_jvm_interpreter="template"
14548 fi
14549 
14550 JVM_INTERPRETER="$with_jvm_interpreter"
14551 
14552 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14553    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14554 fi
14555 
14556 
14557 
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14559 $as_echo "$with_jvm_interpreter" >&6; }
14560 
14561 
14562 
14563   ###############################################################################
14564   #
14565   # Check which variants of the JVM that we want to build.
14566   # Currently we have:
14567   #    server: normal interpreter and a tiered C1/C2 compiler
14568   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14569   #    minimal1: reduced form of client with optional VM services and features stripped out
14570   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14571   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14572   #    zero: no machine code interpreter, no compiler
14573   #    zeroshark: zero interpreter and shark/llvm compiler backend
14574 #    core: interpreter only, no compiler (only works on some platforms)
14575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14576 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14577 
14578 # Check whether --with-jvm-variants was given.
14579 if test "${with_jvm_variants+set}" = set; then :
14580   withval=$with_jvm_variants;
14581 fi
14582 
14583 
14584   if test "x$with_jvm_variants" = x; then
14585     with_jvm_variants="server"
14586   fi
14587 
14588   JVM_VARIANTS=",$with_jvm_variants,"
14589   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,//'`
14590 
14591   if test "x$TEST_VARIANTS" != "x,"; then
14592      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14593   fi
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14595 $as_echo "$with_jvm_variants" >&6; }
14596 
14597   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14598   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14599   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14600   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14601   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14602   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14603   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14604 
14605   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14606     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14607       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14608     fi
14609   fi
14610   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14611     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14612       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14613     fi
14614   fi
14615   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14616     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14617       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14618     fi
14619   fi
14620 
14621   # Replace the commas with AND for use in the build directory name.
14622   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14623   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/'`
14624   if test "x$COUNT_VARIANTS" != "x,1"; then
14625     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14626   else
14627     BUILDING_MULTIPLE_JVM_VARIANTS=no
14628   fi
14629 
14630 
14631 
14632 
14633 
14634 
14635 
14636 
14637 
14638 
14639   INCLUDE_SA=true
14640   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14641     INCLUDE_SA=false
14642   fi
14643   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14644     INCLUDE_SA=false
14645   fi
14646   if test "x$VAR_CPU" = xppc64 ; then
14647     INCLUDE_SA=false
14648   fi
14649 
14650 
14651   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14652     MACOSX_UNIVERSAL="true"
14653   fi
14654 
14655 
14656 
14657 
14658   ###############################################################################
14659   #
14660   # Set the debug level
14661   #    release: no debug information, all optimizations, no asserts.
14662   #    fastdebug: debug information (-g), all optimizations, all asserts
14663   #    slowdebug: debug information (-g), no optimizations, all asserts
14664   #
14665   DEBUG_LEVEL="release"
14666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14667 $as_echo_n "checking which debug level to use... " >&6; }
14668   # Check whether --enable-debug was given.
14669 if test "${enable_debug+set}" = set; then :
14670   enableval=$enable_debug;
14671         ENABLE_DEBUG="${enableval}"
14672         DEBUG_LEVEL="fastdebug"
14673 
14674 else
14675   ENABLE_DEBUG="no"
14676 fi
14677 
14678 
14679 
14680 # Check whether --with-debug-level was given.
14681 if test "${with_debug_level+set}" = set; then :
14682   withval=$with_debug_level;
14683         DEBUG_LEVEL="${withval}"
14684         if test "x$ENABLE_DEBUG" = xyes; then
14685           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14686         fi
14687 
14688 fi
14689 
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14691 $as_echo "$DEBUG_LEVEL" >&6; }
14692 
14693   if test "x$DEBUG_LEVEL" != xrelease && \
14694       test "x$DEBUG_LEVEL" != xfastdebug && \
14695       test "x$DEBUG_LEVEL" != xslowdebug; then
14696     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14697   fi
14698 
14699 
14700   ###############################################################################
14701   #
14702   # Setup legacy vars/targets and new vars to deal with different debug levels.
14703   #
14704 
14705   case $DEBUG_LEVEL in
14706     release )
14707       VARIANT="OPT"
14708       FASTDEBUG="false"
14709       DEBUG_CLASSFILES="false"
14710       BUILD_VARIANT_RELEASE=""
14711       HOTSPOT_DEBUG_LEVEL="product"
14712       HOTSPOT_EXPORT="product"
14713       ;;
14714     fastdebug )
14715       VARIANT="DBG"
14716       FASTDEBUG="true"
14717       DEBUG_CLASSFILES="true"
14718       BUILD_VARIANT_RELEASE="-fastdebug"
14719       HOTSPOT_DEBUG_LEVEL="fastdebug"
14720       HOTSPOT_EXPORT="fastdebug"
14721       ;;
14722     slowdebug )
14723       VARIANT="DBG"
14724       FASTDEBUG="false"
14725       DEBUG_CLASSFILES="true"
14726       BUILD_VARIANT_RELEASE="-debug"
14727       HOTSPOT_DEBUG_LEVEL="jvmg"
14728       HOTSPOT_EXPORT="debug"
14729       ;;
14730   esac
14731 
14732   #####
14733   # Generate the legacy makefile targets for hotspot.
14734   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14735   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14736   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14737   # But until then ...
14738   HOTSPOT_TARGET=""
14739 
14740   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14741     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14742   fi
14743 
14744   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14745     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14746   fi
14747 
14748   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14749     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14750   fi
14751 
14752   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14753     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14754   fi
14755 
14756   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14757     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14758   fi
14759 
14760   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14761     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14762   fi
14763 
14764   if test "x$JVM_VARIANT_CORE" = xtrue; then
14765     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14766   fi
14767 
14768   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14769 
14770   # On Macosx universal binaries are produced, but they only contain
14771   # 64 bit intel. This invalidates control of which jvms are built
14772   # from configure, but only server is valid anyway. Fix this
14773   # when hotspot makefiles are rewritten.
14774   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14775     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14776   fi
14777 
14778   #####
14779 
14780 
14781 
14782 
14783 
14784 
14785 
14786 
14787 # With basic setup done, call the custom early hook.
14788 
14789 
14790 # To properly create a configuration name, we need to have the OpenJDK target
14791 # and options (variants and debug level) parsed.
14792 
14793 
14794 
14795 # Check whether --with-conf-name was given.
14796 if test "${with_conf_name+set}" = set; then :
14797   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14798 fi
14799 
14800 
14801   # Test from where we are running configure, in or outside of src root.
14802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14803 $as_echo_n "checking where to store configuration... " >&6; }
14804   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14805       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14806       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14807     # We are running configure from the src root.
14808     # Create a default ./build/target-variant-debuglevel output root.
14809     if test "x${CONF_NAME}" = x; then
14810       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14811 $as_echo "in default location" >&6; }
14812       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14813     else
14814       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14815 $as_echo "in build directory with custom name" >&6; }
14816     fi
14817     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14818     $MKDIR -p "$OUTPUT_ROOT"
14819     if test ! -d "$OUTPUT_ROOT"; then
14820       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14821     fi
14822   else
14823     # We are running configure from outside of the src dir.
14824     # Then use the current directory as output dir!
14825     # If configuration is situated in normal build directory, just use the build
14826     # directory name as configuration name, otherwise use the complete path.
14827     if test "x${CONF_NAME}" = x; then
14828       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14829     fi
14830     OUTPUT_ROOT="$CURDIR"
14831     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14832 $as_echo "in current directory" >&6; }
14833 
14834     # WARNING: This might be a bad thing to do. You need to be sure you want to
14835     # have a configuration in this directory. Do some sanity checks!
14836 
14837     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14838       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14839       # other files
14840       files_present=`$LS $OUTPUT_ROOT`
14841       # Configure has already touched config.log and confdefs.h in the current dir when this check
14842       # is performed.
14843       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14844       | $TR -d '\n'`
14845       if test "x$filtered_files" != x; then
14846         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14847 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14848         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14849 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14850         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14851 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14852         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14853 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14854         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14855 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14856         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14857 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14858         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14859 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14860         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14861       fi
14862     fi
14863   fi
14864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14865 $as_echo_n "checking what configuration name to use... " >&6; }
14866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14867 $as_echo "$CONF_NAME" >&6; }
14868 
14869 
14870   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14871 
14872   # Input might be given as Windows format, start by converting to
14873   # unix format.
14874   path="$OUTPUT_ROOT"
14875   new_path=`$CYGPATH -u "$path"`
14876 
14877   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14878   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14879   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14880   # "foo.exe" is OK but "foo" is an error.
14881   #
14882   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14883   # It is also a way to make sure we got the proper file name for the real test later on.
14884   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14885   if test "x$test_shortpath" = x; then
14886     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14887 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14888     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14889   fi
14890 
14891   # Call helper function which possibly converts this using DOS-style short mode.
14892   # If so, the updated path is stored in $new_path.
14893 
14894   input_path="$new_path"
14895   # Check if we need to convert this using DOS-style short mode. If the path
14896   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14897   # take no chances and rewrite it.
14898   # Note: m4 eats our [], so we need to use [ and ] instead.
14899   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14900   if test "x$has_forbidden_chars" != x; then
14901     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14902     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14903     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14904     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14905       # Going to short mode and back again did indeed matter. Since short mode is
14906       # case insensitive, let's make it lowercase to improve readability.
14907       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14908       # Now convert it back to Unix-stile (cygpath)
14909       input_path=`$CYGPATH -u "$shortmode_path"`
14910       new_path="$input_path"
14911     fi
14912   fi
14913 
14914   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14915   if test "x$test_cygdrive_prefix" = x; then
14916     # As a simple fix, exclude /usr/bin since it's not a real path.
14917     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14918       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14919       # a path prefixed by /cygdrive for fixpath to work.
14920       new_path="$CYGWIN_ROOT_PATH$input_path"
14921     fi
14922   fi
14923 
14924 
14925   if test "x$path" != "x$new_path"; then
14926     OUTPUT_ROOT="$new_path"
14927     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14928 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14929   fi
14930 
14931   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14932 
14933   path="$OUTPUT_ROOT"
14934   has_colon=`$ECHO $path | $GREP ^.:`
14935   new_path="$path"
14936   if test "x$has_colon" = x; then
14937     # Not in mixed or Windows style, start by that.
14938     new_path=`cmd //c echo $path`
14939   fi
14940 
14941 
14942   input_path="$new_path"
14943   # Check if we need to convert this using DOS-style short mode. If the path
14944   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14945   # take no chances and rewrite it.
14946   # Note: m4 eats our [], so we need to use [ and ] instead.
14947   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14948   if test "x$has_forbidden_chars" != x; then
14949     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14950     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14951   fi
14952 
14953 
14954   windows_path="$new_path"
14955   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14956     unix_path=`$CYGPATH -u "$windows_path"`
14957     new_path="$unix_path"
14958   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14959     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14960     new_path="$unix_path"
14961   fi
14962 
14963   if test "x$path" != "x$new_path"; then
14964     OUTPUT_ROOT="$new_path"
14965     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14966 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14967   fi
14968 
14969   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14970   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14971 
14972   else
14973     # We're on a posix platform. Hooray! :)
14974     path="$OUTPUT_ROOT"
14975     has_space=`$ECHO "$path" | $GREP " "`
14976     if test "x$has_space" != x; then
14977       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14978 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14979       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14980     fi
14981 
14982     # Use eval to expand a potential ~
14983     eval path="$path"
14984     if test ! -f "$path" && test ! -d "$path"; then
14985       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14986     fi
14987 
14988     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14989   fi
14990 
14991 
14992   SPEC=$OUTPUT_ROOT/spec.gmk
14993 
14994   CONF_NAME=$CONF_NAME
14995 
14996   OUTPUT_ROOT=$OUTPUT_ROOT
14997 
14998 
14999   # Most of the probed defines are put into config.h
15000   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15001 
15002   # The spec.gmk file contains all variables for the make system.
15003   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15004 
15005   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15006   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15007 
15008   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15009   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15010 
15011   # The compare.sh is used to compare the build output to other builds.
15012   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15013 
15014   # Spec.sh is currently used by compare-objects.sh
15015   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15016 
15017   # The generated Makefile knows where the spec.gmk is and where the source is.
15018   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15019   # which will look for generated configurations
15020   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15021 
15022 
15023 
15024 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15025 
15026   for ac_prog in apt-get yum port pkgutil pkgadd
15027 do
15028   # Extract the first word of "$ac_prog", so it can be a program name with args.
15029 set dummy $ac_prog; ac_word=$2
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15031 $as_echo_n "checking for $ac_word... " >&6; }
15032 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15033   $as_echo_n "(cached) " >&6
15034 else
15035   if test -n "$PKGHANDLER"; then
15036   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15037 else
15038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15039 for as_dir in $PATH
15040 do
15041   IFS=$as_save_IFS
15042   test -z "$as_dir" && as_dir=.
15043     for ac_exec_ext in '' $ac_executable_extensions; do
15044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15045     ac_cv_prog_PKGHANDLER="$ac_prog"
15046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15047     break 2
15048   fi
15049 done
15050   done
15051 IFS=$as_save_IFS
15052 
15053 fi
15054 fi
15055 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15056 if test -n "$PKGHANDLER"; then
15057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15058 $as_echo "$PKGHANDLER" >&6; }
15059 else
15060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15061 $as_echo "no" >&6; }
15062 fi
15063 
15064 
15065   test -n "$PKGHANDLER" && break
15066 done
15067 
15068 
15069 
15070 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15071 
15072 
15073   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15074   if test "x$MAKE" != x; then
15075     # User has supplied a make, test it.
15076     if test ! -f "$MAKE"; then
15077       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15078     fi
15079 
15080   MAKE_CANDIDATE=""$MAKE""
15081   DESCRIPTION="user supplied MAKE=$MAKE"
15082   if test "x$MAKE_CANDIDATE" != x; then
15083     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15084 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15085     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15086     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15087     if test "x$IS_GNU_MAKE" = x; then
15088       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15089 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15090     else
15091       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15092       if test "x$IS_MODERN_MAKE" = x; then
15093         { $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
15094 $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;}
15095       else
15096         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15097           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15098             MAKE_EXPECTED_ENV='cygwin'
15099           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15100             MAKE_EXPECTED_ENV='msys'
15101           else
15102             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15103           fi
15104           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15105           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15106         else
15107           # Not relevant for non-Windows
15108           IS_MAKE_CORRECT_ENV=true
15109         fi
15110         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15111           { $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
15112 $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;}
15113         else
15114           FOUND_MAKE=$MAKE_CANDIDATE
15115 
15116   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15117 
15118   # First separate the path from the arguments. This will split at the first
15119   # space.
15120   complete="$FOUND_MAKE"
15121   path="${complete%% *}"
15122   tmp="$complete EOL"
15123   arguments="${tmp#* }"
15124 
15125   # Input might be given as Windows format, start by converting to
15126   # unix format.
15127   new_path=`$CYGPATH -u "$path"`
15128 
15129   # Now try to locate executable using which
15130   new_path=`$WHICH "$new_path" 2> /dev/null`
15131   # bat and cmd files are not always considered executable in cygwin causing which
15132   # to not find them
15133   if test "x$new_path" = x \
15134       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15135       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15136     new_path=`$CYGPATH -u "$path"`
15137   fi
15138   if test "x$new_path" = x; then
15139     # Oops. Which didn't find the executable.
15140     # The splitting of arguments from the executable at a space might have been incorrect,
15141     # since paths with space are more likely in Windows. Give it another try with the whole
15142     # argument.
15143     path="$complete"
15144     arguments="EOL"
15145     new_path=`$CYGPATH -u "$path"`
15146     new_path=`$WHICH "$new_path" 2> /dev/null`
15147     # bat and cmd files are not always considered executable in cygwin causing which
15148     # to not find them
15149     if test "x$new_path" = x \
15150         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15151         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15152       new_path=`$CYGPATH -u "$path"`
15153     fi
15154     if test "x$new_path" = x; then
15155       # It's still not found. Now this is an unrecoverable error.
15156       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15157 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15158       has_space=`$ECHO "$complete" | $GREP " "`
15159       if test "x$has_space" != x; then
15160         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15161 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15162       fi
15163       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15164     fi
15165   fi
15166 
15167   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15168   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15169   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15170   # "foo.exe" is OK but "foo" is an error.
15171   #
15172   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15173   # It is also a way to make sure we got the proper file name for the real test later on.
15174   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15175   if test "x$test_shortpath" = x; then
15176     # Short path failed, file does not exist as specified.
15177     # Try adding .exe or .cmd
15178     if test -f "${new_path}.exe"; then
15179       input_to_shortpath="${new_path}.exe"
15180     elif test -f "${new_path}.cmd"; then
15181       input_to_shortpath="${new_path}.cmd"
15182     else
15183       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15184 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15185       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15186 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15187       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15188     fi
15189   else
15190     input_to_shortpath="$new_path"
15191   fi
15192 
15193   # Call helper function which possibly converts this using DOS-style short mode.
15194   # If so, the updated path is stored in $new_path.
15195   new_path="$input_to_shortpath"
15196 
15197   input_path="$input_to_shortpath"
15198   # Check if we need to convert this using DOS-style short mode. If the path
15199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15200   # take no chances and rewrite it.
15201   # Note: m4 eats our [], so we need to use [ and ] instead.
15202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15203   if test "x$has_forbidden_chars" != x; then
15204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15205     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15206     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15207     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15208       # Going to short mode and back again did indeed matter. Since short mode is
15209       # case insensitive, let's make it lowercase to improve readability.
15210       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15211       # Now convert it back to Unix-stile (cygpath)
15212       input_path=`$CYGPATH -u "$shortmode_path"`
15213       new_path="$input_path"
15214     fi
15215   fi
15216 
15217   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15218   if test "x$test_cygdrive_prefix" = x; then
15219     # As a simple fix, exclude /usr/bin since it's not a real path.
15220     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15221       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15222       # a path prefixed by /cygdrive for fixpath to work.
15223       new_path="$CYGWIN_ROOT_PATH$input_path"
15224     fi
15225   fi
15226 
15227   # remove trailing .exe if any
15228   new_path="${new_path/%.exe/}"
15229 
15230   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15231 
15232   # First separate the path from the arguments. This will split at the first
15233   # space.
15234   complete="$FOUND_MAKE"
15235   path="${complete%% *}"
15236   tmp="$complete EOL"
15237   arguments="${tmp#* }"
15238 
15239   # Input might be given as Windows format, start by converting to
15240   # unix format.
15241   new_path="$path"
15242 
15243   windows_path="$new_path"
15244   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15245     unix_path=`$CYGPATH -u "$windows_path"`
15246     new_path="$unix_path"
15247   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15248     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15249     new_path="$unix_path"
15250   fi
15251 
15252 
15253   # Now try to locate executable using which
15254   new_path=`$WHICH "$new_path" 2> /dev/null`
15255 
15256   if test "x$new_path" = x; then
15257     # Oops. Which didn't find the executable.
15258     # The splitting of arguments from the executable at a space might have been incorrect,
15259     # since paths with space are more likely in Windows. Give it another try with the whole
15260     # argument.
15261     path="$complete"
15262     arguments="EOL"
15263     new_path="$path"
15264 
15265   windows_path="$new_path"
15266   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15267     unix_path=`$CYGPATH -u "$windows_path"`
15268     new_path="$unix_path"
15269   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15270     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15271     new_path="$unix_path"
15272   fi
15273 
15274 
15275     new_path=`$WHICH "$new_path" 2> /dev/null`
15276 
15277     if test "x$new_path" = x; then
15278       # It's still not found. Now this is an unrecoverable error.
15279       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15280 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15281       has_space=`$ECHO "$complete" | $GREP " "`
15282       if test "x$has_space" != x; then
15283         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15284 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15285       fi
15286       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15287     fi
15288   fi
15289 
15290   # Now new_path has a complete unix path to the binary
15291   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15292     # Keep paths in /bin as-is, but remove trailing .exe if any
15293     new_path="${new_path/%.exe/}"
15294     # Do not save /bin paths to all_fixpath_prefixes!
15295   else
15296     # Not in mixed or Windows style, start by that.
15297     new_path=`cmd //c echo $new_path`
15298 
15299   input_path="$new_path"
15300   # Check if we need to convert this using DOS-style short mode. If the path
15301   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15302   # take no chances and rewrite it.
15303   # Note: m4 eats our [], so we need to use [ and ] instead.
15304   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15305   if test "x$has_forbidden_chars" != x; then
15306     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15307     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15308   fi
15309 
15310     # Output is in $new_path
15311 
15312   windows_path="$new_path"
15313   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15314     unix_path=`$CYGPATH -u "$windows_path"`
15315     new_path="$unix_path"
15316   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15317     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15318     new_path="$unix_path"
15319   fi
15320 
15321     # remove trailing .exe if any
15322     new_path="${new_path/%.exe/}"
15323 
15324     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15325     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15326   fi
15327 
15328   else
15329     # We're on a posix platform. Hooray! :)
15330     # First separate the path from the arguments. This will split at the first
15331     # space.
15332     complete="$FOUND_MAKE"
15333     path="${complete%% *}"
15334     tmp="$complete EOL"
15335     arguments="${tmp#* }"
15336 
15337     # Cannot rely on the command "which" here since it doesn't always work.
15338     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15339     if test -z "$is_absolute_path"; then
15340       # Path to executable is not absolute. Find it.
15341       IFS_save="$IFS"
15342       IFS=:
15343       for p in $PATH; do
15344         if test -f "$p/$path" && test -x "$p/$path"; then
15345           new_path="$p/$path"
15346           break
15347         fi
15348       done
15349       IFS="$IFS_save"
15350     else
15351       # This is an absolute path, we can use it without further modifications.
15352       new_path="$path"
15353     fi
15354 
15355     if test "x$new_path" = x; then
15356       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15357 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15358       has_space=`$ECHO "$complete" | $GREP " "`
15359       if test "x$has_space" != x; then
15360         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15361 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15362       fi
15363       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15364     fi
15365   fi
15366 
15367   # Now join together the path and the arguments once again
15368   if test "x$arguments" != xEOL; then
15369     new_complete="$new_path ${arguments% *}"
15370   else
15371     new_complete="$new_path"
15372   fi
15373 
15374   if test "x$complete" != "x$new_complete"; then
15375     FOUND_MAKE="$new_complete"
15376     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15377 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15378   fi
15379 
15380         fi
15381       fi
15382     fi
15383   fi
15384 
15385     if test "x$FOUND_MAKE" = x; then
15386       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15387     fi
15388   else
15389     # Try our hardest to locate a correct version of GNU make
15390     for ac_prog in gmake
15391 do
15392   # Extract the first word of "$ac_prog", so it can be a program name with args.
15393 set dummy $ac_prog; ac_word=$2
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15395 $as_echo_n "checking for $ac_word... " >&6; }
15396 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15397   $as_echo_n "(cached) " >&6
15398 else
15399   case $CHECK_GMAKE in
15400   [\\/]* | ?:[\\/]*)
15401   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15402   ;;
15403   *)
15404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15405 for as_dir in $PATH
15406 do
15407   IFS=$as_save_IFS
15408   test -z "$as_dir" && as_dir=.
15409     for ac_exec_ext in '' $ac_executable_extensions; do
15410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15411     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15413     break 2
15414   fi
15415 done
15416   done
15417 IFS=$as_save_IFS
15418 
15419   ;;
15420 esac
15421 fi
15422 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15423 if test -n "$CHECK_GMAKE"; then
15424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15425 $as_echo "$CHECK_GMAKE" >&6; }
15426 else
15427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15428 $as_echo "no" >&6; }
15429 fi
15430 
15431 
15432   test -n "$CHECK_GMAKE" && break
15433 done
15434 
15435 
15436   MAKE_CANDIDATE=""$CHECK_GMAKE""
15437   DESCRIPTION="gmake in PATH"
15438   if test "x$MAKE_CANDIDATE" != x; then
15439     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15440 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15441     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15442     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15443     if test "x$IS_GNU_MAKE" = x; then
15444       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15445 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15446     else
15447       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15448       if test "x$IS_MODERN_MAKE" = x; then
15449         { $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
15450 $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;}
15451       else
15452         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15453           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15454             MAKE_EXPECTED_ENV='cygwin'
15455           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15456             MAKE_EXPECTED_ENV='msys'
15457           else
15458             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15459           fi
15460           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15461           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15462         else
15463           # Not relevant for non-Windows
15464           IS_MAKE_CORRECT_ENV=true
15465         fi
15466         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15467           { $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
15468 $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;}
15469         else
15470           FOUND_MAKE=$MAKE_CANDIDATE
15471 
15472   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15473 
15474   # First separate the path from the arguments. This will split at the first
15475   # space.
15476   complete="$FOUND_MAKE"
15477   path="${complete%% *}"
15478   tmp="$complete EOL"
15479   arguments="${tmp#* }"
15480 
15481   # Input might be given as Windows format, start by converting to
15482   # unix format.
15483   new_path=`$CYGPATH -u "$path"`
15484 
15485   # Now try to locate executable using which
15486   new_path=`$WHICH "$new_path" 2> /dev/null`
15487   # bat and cmd files are not always considered executable in cygwin causing which
15488   # to not find them
15489   if test "x$new_path" = x \
15490       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15491       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15492     new_path=`$CYGPATH -u "$path"`
15493   fi
15494   if test "x$new_path" = x; then
15495     # Oops. Which didn't find the executable.
15496     # The splitting of arguments from the executable at a space might have been incorrect,
15497     # since paths with space are more likely in Windows. Give it another try with the whole
15498     # argument.
15499     path="$complete"
15500     arguments="EOL"
15501     new_path=`$CYGPATH -u "$path"`
15502     new_path=`$WHICH "$new_path" 2> /dev/null`
15503     # bat and cmd files are not always considered executable in cygwin causing which
15504     # to not find them
15505     if test "x$new_path" = x \
15506         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15507         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15508       new_path=`$CYGPATH -u "$path"`
15509     fi
15510     if test "x$new_path" = x; then
15511       # It's still not found. Now this is an unrecoverable error.
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}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15517 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, 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   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15524   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15525   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15526   # "foo.exe" is OK but "foo" is an error.
15527   #
15528   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15529   # It is also a way to make sure we got the proper file name for the real test later on.
15530   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15531   if test "x$test_shortpath" = x; then
15532     # Short path failed, file does not exist as specified.
15533     # Try adding .exe or .cmd
15534     if test -f "${new_path}.exe"; then
15535       input_to_shortpath="${new_path}.exe"
15536     elif test -f "${new_path}.cmd"; then
15537       input_to_shortpath="${new_path}.cmd"
15538     else
15539       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15540 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15541       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15542 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15543       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15544     fi
15545   else
15546     input_to_shortpath="$new_path"
15547   fi
15548 
15549   # Call helper function which possibly converts this using DOS-style short mode.
15550   # If so, the updated path is stored in $new_path.
15551   new_path="$input_to_shortpath"
15552 
15553   input_path="$input_to_shortpath"
15554   # Check if we need to convert this using DOS-style short mode. If the path
15555   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15556   # take no chances and rewrite it.
15557   # Note: m4 eats our [], so we need to use [ and ] instead.
15558   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15559   if test "x$has_forbidden_chars" != x; then
15560     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15561     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15562     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15563     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15564       # Going to short mode and back again did indeed matter. Since short mode is
15565       # case insensitive, let's make it lowercase to improve readability.
15566       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15567       # Now convert it back to Unix-stile (cygpath)
15568       input_path=`$CYGPATH -u "$shortmode_path"`
15569       new_path="$input_path"
15570     fi
15571   fi
15572 
15573   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15574   if test "x$test_cygdrive_prefix" = x; then
15575     # As a simple fix, exclude /usr/bin since it's not a real path.
15576     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15577       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15578       # a path prefixed by /cygdrive for fixpath to work.
15579       new_path="$CYGWIN_ROOT_PATH$input_path"
15580     fi
15581   fi
15582 
15583   # remove trailing .exe if any
15584   new_path="${new_path/%.exe/}"
15585 
15586   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15587 
15588   # First separate the path from the arguments. This will split at the first
15589   # space.
15590   complete="$FOUND_MAKE"
15591   path="${complete%% *}"
15592   tmp="$complete EOL"
15593   arguments="${tmp#* }"
15594 
15595   # Input might be given as Windows format, start by converting to
15596   # unix format.
15597   new_path="$path"
15598 
15599   windows_path="$new_path"
15600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15601     unix_path=`$CYGPATH -u "$windows_path"`
15602     new_path="$unix_path"
15603   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15604     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15605     new_path="$unix_path"
15606   fi
15607 
15608 
15609   # Now try to locate executable using which
15610   new_path=`$WHICH "$new_path" 2> /dev/null`
15611 
15612   if test "x$new_path" = x; then
15613     # Oops. Which didn't find the executable.
15614     # The splitting of arguments from the executable at a space might have been incorrect,
15615     # since paths with space are more likely in Windows. Give it another try with the whole
15616     # argument.
15617     path="$complete"
15618     arguments="EOL"
15619     new_path="$path"
15620 
15621   windows_path="$new_path"
15622   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15623     unix_path=`$CYGPATH -u "$windows_path"`
15624     new_path="$unix_path"
15625   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15626     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15627     new_path="$unix_path"
15628   fi
15629 
15630 
15631     new_path=`$WHICH "$new_path" 2> /dev/null`
15632 
15633     if test "x$new_path" = x; then
15634       # It's still not found. Now this is an unrecoverable error.
15635       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15636 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15637       has_space=`$ECHO "$complete" | $GREP " "`
15638       if test "x$has_space" != x; then
15639         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15640 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15641       fi
15642       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15643     fi
15644   fi
15645 
15646   # Now new_path has a complete unix path to the binary
15647   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15648     # Keep paths in /bin as-is, but remove trailing .exe if any
15649     new_path="${new_path/%.exe/}"
15650     # Do not save /bin paths to all_fixpath_prefixes!
15651   else
15652     # Not in mixed or Windows style, start by that.
15653     new_path=`cmd //c echo $new_path`
15654 
15655   input_path="$new_path"
15656   # Check if we need to convert this using DOS-style short mode. If the path
15657   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15658   # take no chances and rewrite it.
15659   # Note: m4 eats our [], so we need to use [ and ] instead.
15660   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15661   if test "x$has_forbidden_chars" != x; then
15662     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15663     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15664   fi
15665 
15666     # Output is in $new_path
15667 
15668   windows_path="$new_path"
15669   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15670     unix_path=`$CYGPATH -u "$windows_path"`
15671     new_path="$unix_path"
15672   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15673     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15674     new_path="$unix_path"
15675   fi
15676 
15677     # remove trailing .exe if any
15678     new_path="${new_path/%.exe/}"
15679 
15680     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15681     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15682   fi
15683 
15684   else
15685     # We're on a posix platform. Hooray! :)
15686     # First separate the path from the arguments. This will split at the first
15687     # space.
15688     complete="$FOUND_MAKE"
15689     path="${complete%% *}"
15690     tmp="$complete EOL"
15691     arguments="${tmp#* }"
15692 
15693     # Cannot rely on the command "which" here since it doesn't always work.
15694     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15695     if test -z "$is_absolute_path"; then
15696       # Path to executable is not absolute. Find it.
15697       IFS_save="$IFS"
15698       IFS=:
15699       for p in $PATH; do
15700         if test -f "$p/$path" && test -x "$p/$path"; then
15701           new_path="$p/$path"
15702           break
15703         fi
15704       done
15705       IFS="$IFS_save"
15706     else
15707       # This is an absolute path, we can use it without further modifications.
15708       new_path="$path"
15709     fi
15710 
15711     if test "x$new_path" = x; then
15712       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15713 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15714       has_space=`$ECHO "$complete" | $GREP " "`
15715       if test "x$has_space" != x; then
15716         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15717 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15718       fi
15719       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15720     fi
15721   fi
15722 
15723   # Now join together the path and the arguments once again
15724   if test "x$arguments" != xEOL; then
15725     new_complete="$new_path ${arguments% *}"
15726   else
15727     new_complete="$new_path"
15728   fi
15729 
15730   if test "x$complete" != "x$new_complete"; then
15731     FOUND_MAKE="$new_complete"
15732     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15733 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15734   fi
15735 
15736         fi
15737       fi
15738     fi
15739   fi
15740 
15741 
15742     if test "x$FOUND_MAKE" = x; then
15743       for ac_prog in make
15744 do
15745   # Extract the first word of "$ac_prog", so it can be a program name with args.
15746 set dummy $ac_prog; ac_word=$2
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15748 $as_echo_n "checking for $ac_word... " >&6; }
15749 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15750   $as_echo_n "(cached) " >&6
15751 else
15752   case $CHECK_MAKE in
15753   [\\/]* | ?:[\\/]*)
15754   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15755   ;;
15756   *)
15757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15758 for as_dir in $PATH
15759 do
15760   IFS=$as_save_IFS
15761   test -z "$as_dir" && as_dir=.
15762     for ac_exec_ext in '' $ac_executable_extensions; do
15763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15764     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15766     break 2
15767   fi
15768 done
15769   done
15770 IFS=$as_save_IFS
15771 
15772   ;;
15773 esac
15774 fi
15775 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15776 if test -n "$CHECK_MAKE"; then
15777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15778 $as_echo "$CHECK_MAKE" >&6; }
15779 else
15780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15781 $as_echo "no" >&6; }
15782 fi
15783 
15784 
15785   test -n "$CHECK_MAKE" && break
15786 done
15787 
15788 
15789   MAKE_CANDIDATE=""$CHECK_MAKE""
15790   DESCRIPTION="make in PATH"
15791   if test "x$MAKE_CANDIDATE" != x; then
15792     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15793 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15794     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15795     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15796     if test "x$IS_GNU_MAKE" = x; then
15797       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15798 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15799     else
15800       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15801       if test "x$IS_MODERN_MAKE" = x; then
15802         { $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
15803 $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;}
15804       else
15805         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15806           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15807             MAKE_EXPECTED_ENV='cygwin'
15808           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15809             MAKE_EXPECTED_ENV='msys'
15810           else
15811             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15812           fi
15813           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15814           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15815         else
15816           # Not relevant for non-Windows
15817           IS_MAKE_CORRECT_ENV=true
15818         fi
15819         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15820           { $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
15821 $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;}
15822         else
15823           FOUND_MAKE=$MAKE_CANDIDATE
15824 
15825   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15826 
15827   # First separate the path from the arguments. This will split at the first
15828   # space.
15829   complete="$FOUND_MAKE"
15830   path="${complete%% *}"
15831   tmp="$complete EOL"
15832   arguments="${tmp#* }"
15833 
15834   # Input might be given as Windows format, start by converting to
15835   # unix format.
15836   new_path=`$CYGPATH -u "$path"`
15837 
15838   # Now try to locate executable using which
15839   new_path=`$WHICH "$new_path" 2> /dev/null`
15840   # bat and cmd files are not always considered executable in cygwin causing which
15841   # to not find them
15842   if test "x$new_path" = x \
15843       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15844       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15845     new_path=`$CYGPATH -u "$path"`
15846   fi
15847   if test "x$new_path" = x; then
15848     # Oops. Which didn't find the executable.
15849     # The splitting of arguments from the executable at a space might have been incorrect,
15850     # since paths with space are more likely in Windows. Give it another try with the whole
15851     # argument.
15852     path="$complete"
15853     arguments="EOL"
15854     new_path=`$CYGPATH -u "$path"`
15855     new_path=`$WHICH "$new_path" 2> /dev/null`
15856     # bat and cmd files are not always considered executable in cygwin causing which
15857     # to not find them
15858     if test "x$new_path" = x \
15859         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15860         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15861       new_path=`$CYGPATH -u "$path"`
15862     fi
15863     if test "x$new_path" = x; then
15864       # It's still not found. Now this is an unrecoverable error.
15865       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15866 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15867       has_space=`$ECHO "$complete" | $GREP " "`
15868       if test "x$has_space" != x; then
15869         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15870 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15871       fi
15872       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15873     fi
15874   fi
15875 
15876   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15877   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15878   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15879   # "foo.exe" is OK but "foo" is an error.
15880   #
15881   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15882   # It is also a way to make sure we got the proper file name for the real test later on.
15883   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15884   if test "x$test_shortpath" = x; then
15885     # Short path failed, file does not exist as specified.
15886     # Try adding .exe or .cmd
15887     if test -f "${new_path}.exe"; then
15888       input_to_shortpath="${new_path}.exe"
15889     elif test -f "${new_path}.cmd"; then
15890       input_to_shortpath="${new_path}.cmd"
15891     else
15892       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15893 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15894       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15895 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15896       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15897     fi
15898   else
15899     input_to_shortpath="$new_path"
15900   fi
15901 
15902   # Call helper function which possibly converts this using DOS-style short mode.
15903   # If so, the updated path is stored in $new_path.
15904   new_path="$input_to_shortpath"
15905 
15906   input_path="$input_to_shortpath"
15907   # Check if we need to convert this using DOS-style short mode. If the path
15908   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15909   # take no chances and rewrite it.
15910   # Note: m4 eats our [], so we need to use [ and ] instead.
15911   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15912   if test "x$has_forbidden_chars" != x; then
15913     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15914     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15915     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15916     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15917       # Going to short mode and back again did indeed matter. Since short mode is
15918       # case insensitive, let's make it lowercase to improve readability.
15919       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15920       # Now convert it back to Unix-stile (cygpath)
15921       input_path=`$CYGPATH -u "$shortmode_path"`
15922       new_path="$input_path"
15923     fi
15924   fi
15925 
15926   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15927   if test "x$test_cygdrive_prefix" = x; then
15928     # As a simple fix, exclude /usr/bin since it's not a real path.
15929     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15930       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15931       # a path prefixed by /cygdrive for fixpath to work.
15932       new_path="$CYGWIN_ROOT_PATH$input_path"
15933     fi
15934   fi
15935 
15936   # remove trailing .exe if any
15937   new_path="${new_path/%.exe/}"
15938 
15939   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15940 
15941   # First separate the path from the arguments. This will split at the first
15942   # space.
15943   complete="$FOUND_MAKE"
15944   path="${complete%% *}"
15945   tmp="$complete EOL"
15946   arguments="${tmp#* }"
15947 
15948   # Input might be given as Windows format, start by converting to
15949   # unix format.
15950   new_path="$path"
15951 
15952   windows_path="$new_path"
15953   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15954     unix_path=`$CYGPATH -u "$windows_path"`
15955     new_path="$unix_path"
15956   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15957     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15958     new_path="$unix_path"
15959   fi
15960 
15961 
15962   # Now try to locate executable using which
15963   new_path=`$WHICH "$new_path" 2> /dev/null`
15964 
15965   if test "x$new_path" = x; then
15966     # Oops. Which didn't find the executable.
15967     # The splitting of arguments from the executable at a space might have been incorrect,
15968     # since paths with space are more likely in Windows. Give it another try with the whole
15969     # argument.
15970     path="$complete"
15971     arguments="EOL"
15972     new_path="$path"
15973 
15974   windows_path="$new_path"
15975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15976     unix_path=`$CYGPATH -u "$windows_path"`
15977     new_path="$unix_path"
15978   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15979     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15980     new_path="$unix_path"
15981   fi
15982 
15983 
15984     new_path=`$WHICH "$new_path" 2> /dev/null`
15985 
15986     if test "x$new_path" = x; then
15987       # It's still not found. Now this is an unrecoverable error.
15988       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15989 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15990       has_space=`$ECHO "$complete" | $GREP " "`
15991       if test "x$has_space" != x; then
15992         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15994       fi
15995       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15996     fi
15997   fi
15998 
15999   # Now new_path has a complete unix path to the binary
16000   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16001     # Keep paths in /bin as-is, but remove trailing .exe if any
16002     new_path="${new_path/%.exe/}"
16003     # Do not save /bin paths to all_fixpath_prefixes!
16004   else
16005     # Not in mixed or Windows style, start by that.
16006     new_path=`cmd //c echo $new_path`
16007 
16008   input_path="$new_path"
16009   # Check if we need to convert this using DOS-style short mode. If the path
16010   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16011   # take no chances and rewrite it.
16012   # Note: m4 eats our [], so we need to use [ and ] instead.
16013   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16014   if test "x$has_forbidden_chars" != x; then
16015     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16016     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16017   fi
16018 
16019     # Output is in $new_path
16020 
16021   windows_path="$new_path"
16022   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16023     unix_path=`$CYGPATH -u "$windows_path"`
16024     new_path="$unix_path"
16025   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16026     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16027     new_path="$unix_path"
16028   fi
16029 
16030     # remove trailing .exe if any
16031     new_path="${new_path/%.exe/}"
16032 
16033     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16034     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16035   fi
16036 
16037   else
16038     # We're on a posix platform. Hooray! :)
16039     # First separate the path from the arguments. This will split at the first
16040     # space.
16041     complete="$FOUND_MAKE"
16042     path="${complete%% *}"
16043     tmp="$complete EOL"
16044     arguments="${tmp#* }"
16045 
16046     # Cannot rely on the command "which" here since it doesn't always work.
16047     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16048     if test -z "$is_absolute_path"; then
16049       # Path to executable is not absolute. Find it.
16050       IFS_save="$IFS"
16051       IFS=:
16052       for p in $PATH; do
16053         if test -f "$p/$path" && test -x "$p/$path"; then
16054           new_path="$p/$path"
16055           break
16056         fi
16057       done
16058       IFS="$IFS_save"
16059     else
16060       # This is an absolute path, we can use it without further modifications.
16061       new_path="$path"
16062     fi
16063 
16064     if test "x$new_path" = x; then
16065       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16066 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16067       has_space=`$ECHO "$complete" | $GREP " "`
16068       if test "x$has_space" != x; then
16069         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16070 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16071       fi
16072       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16073     fi
16074   fi
16075 
16076   # Now join together the path and the arguments once again
16077   if test "x$arguments" != xEOL; then
16078     new_complete="$new_path ${arguments% *}"
16079   else
16080     new_complete="$new_path"
16081   fi
16082 
16083   if test "x$complete" != "x$new_complete"; then
16084     FOUND_MAKE="$new_complete"
16085     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16086 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16087   fi
16088 
16089         fi
16090       fi
16091     fi
16092   fi
16093 
16094     fi
16095 
16096     if test "x$FOUND_MAKE" = x; then
16097       if test "x$TOOLS_DIR" != x; then
16098         # We have a tools-dir, check that as well before giving up.
16099         OLD_PATH=$PATH
16100         PATH=$TOOLS_DIR:$PATH
16101         for ac_prog in gmake
16102 do
16103   # Extract the first word of "$ac_prog", so it can be a program name with args.
16104 set dummy $ac_prog; ac_word=$2
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16106 $as_echo_n "checking for $ac_word... " >&6; }
16107 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16108   $as_echo_n "(cached) " >&6
16109 else
16110   case $CHECK_TOOLSDIR_GMAKE in
16111   [\\/]* | ?:[\\/]*)
16112   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16113   ;;
16114   *)
16115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16116 for as_dir in $PATH
16117 do
16118   IFS=$as_save_IFS
16119   test -z "$as_dir" && as_dir=.
16120     for ac_exec_ext in '' $ac_executable_extensions; do
16121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16122     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16124     break 2
16125   fi
16126 done
16127   done
16128 IFS=$as_save_IFS
16129 
16130   ;;
16131 esac
16132 fi
16133 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16134 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16136 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16137 else
16138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16139 $as_echo "no" >&6; }
16140 fi
16141 
16142 
16143   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16144 done
16145 
16146 
16147   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16148   DESCRIPTION="gmake in tools-dir"
16149   if test "x$MAKE_CANDIDATE" != x; then
16150     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16151 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16152     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16153     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16154     if test "x$IS_GNU_MAKE" = x; then
16155       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16156 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16157     else
16158       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16159       if test "x$IS_MODERN_MAKE" = x; then
16160         { $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
16161 $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;}
16162       else
16163         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16164           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16165             MAKE_EXPECTED_ENV='cygwin'
16166           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16167             MAKE_EXPECTED_ENV='msys'
16168           else
16169             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16170           fi
16171           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16172           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16173         else
16174           # Not relevant for non-Windows
16175           IS_MAKE_CORRECT_ENV=true
16176         fi
16177         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16178           { $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
16179 $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;}
16180         else
16181           FOUND_MAKE=$MAKE_CANDIDATE
16182 
16183   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16184 
16185   # First separate the path from the arguments. This will split at the first
16186   # space.
16187   complete="$FOUND_MAKE"
16188   path="${complete%% *}"
16189   tmp="$complete EOL"
16190   arguments="${tmp#* }"
16191 
16192   # Input might be given as Windows format, start by converting to
16193   # unix format.
16194   new_path=`$CYGPATH -u "$path"`
16195 
16196   # Now try to locate executable using which
16197   new_path=`$WHICH "$new_path" 2> /dev/null`
16198   # bat and cmd files are not always considered executable in cygwin causing which
16199   # to not find them
16200   if test "x$new_path" = x \
16201       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16202       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16203     new_path=`$CYGPATH -u "$path"`
16204   fi
16205   if test "x$new_path" = x; then
16206     # Oops. Which didn't find the executable.
16207     # The splitting of arguments from the executable at a space might have been incorrect,
16208     # since paths with space are more likely in Windows. Give it another try with the whole
16209     # argument.
16210     path="$complete"
16211     arguments="EOL"
16212     new_path=`$CYGPATH -u "$path"`
16213     new_path=`$WHICH "$new_path" 2> /dev/null`
16214     # bat and cmd files are not always considered executable in cygwin causing which
16215     # to not find them
16216     if test "x$new_path" = x \
16217         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16218         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16219       new_path=`$CYGPATH -u "$path"`
16220     fi
16221     if test "x$new_path" = x; then
16222       # It's still not found. Now this is an unrecoverable error.
16223       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16224 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16225       has_space=`$ECHO "$complete" | $GREP " "`
16226       if test "x$has_space" != x; then
16227         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16229       fi
16230       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16231     fi
16232   fi
16233 
16234   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16235   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16236   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16237   # "foo.exe" is OK but "foo" is an error.
16238   #
16239   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16240   # It is also a way to make sure we got the proper file name for the real test later on.
16241   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16242   if test "x$test_shortpath" = x; then
16243     # Short path failed, file does not exist as specified.
16244     # Try adding .exe or .cmd
16245     if test -f "${new_path}.exe"; then
16246       input_to_shortpath="${new_path}.exe"
16247     elif test -f "${new_path}.cmd"; then
16248       input_to_shortpath="${new_path}.cmd"
16249     else
16250       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16251 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16252       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16253 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16254       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16255     fi
16256   else
16257     input_to_shortpath="$new_path"
16258   fi
16259 
16260   # Call helper function which possibly converts this using DOS-style short mode.
16261   # If so, the updated path is stored in $new_path.
16262   new_path="$input_to_shortpath"
16263 
16264   input_path="$input_to_shortpath"
16265   # Check if we need to convert this using DOS-style short mode. If the path
16266   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16267   # take no chances and rewrite it.
16268   # Note: m4 eats our [], so we need to use [ and ] instead.
16269   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16270   if test "x$has_forbidden_chars" != x; then
16271     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16272     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16273     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16274     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16275       # Going to short mode and back again did indeed matter. Since short mode is
16276       # case insensitive, let's make it lowercase to improve readability.
16277       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16278       # Now convert it back to Unix-stile (cygpath)
16279       input_path=`$CYGPATH -u "$shortmode_path"`
16280       new_path="$input_path"
16281     fi
16282   fi
16283 
16284   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16285   if test "x$test_cygdrive_prefix" = x; then
16286     # As a simple fix, exclude /usr/bin since it's not a real path.
16287     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16288       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16289       # a path prefixed by /cygdrive for fixpath to work.
16290       new_path="$CYGWIN_ROOT_PATH$input_path"
16291     fi
16292   fi
16293 
16294   # remove trailing .exe if any
16295   new_path="${new_path/%.exe/}"
16296 
16297   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16298 
16299   # First separate the path from the arguments. This will split at the first
16300   # space.
16301   complete="$FOUND_MAKE"
16302   path="${complete%% *}"
16303   tmp="$complete EOL"
16304   arguments="${tmp#* }"
16305 
16306   # Input might be given as Windows format, start by converting to
16307   # unix format.
16308   new_path="$path"
16309 
16310   windows_path="$new_path"
16311   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16312     unix_path=`$CYGPATH -u "$windows_path"`
16313     new_path="$unix_path"
16314   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16315     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16316     new_path="$unix_path"
16317   fi
16318 
16319 
16320   # Now try to locate executable using which
16321   new_path=`$WHICH "$new_path" 2> /dev/null`
16322 
16323   if test "x$new_path" = x; then
16324     # Oops. Which didn't find the executable.
16325     # The splitting of arguments from the executable at a space might have been incorrect,
16326     # since paths with space are more likely in Windows. Give it another try with the whole
16327     # argument.
16328     path="$complete"
16329     arguments="EOL"
16330     new_path="$path"
16331 
16332   windows_path="$new_path"
16333   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16334     unix_path=`$CYGPATH -u "$windows_path"`
16335     new_path="$unix_path"
16336   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16337     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16338     new_path="$unix_path"
16339   fi
16340 
16341 
16342     new_path=`$WHICH "$new_path" 2> /dev/null`
16343 
16344     if test "x$new_path" = x; then
16345       # It's still not found. Now this is an unrecoverable error.
16346       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16347 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16348       has_space=`$ECHO "$complete" | $GREP " "`
16349       if test "x$has_space" != x; then
16350         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16351 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16352       fi
16353       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16354     fi
16355   fi
16356 
16357   # Now new_path has a complete unix path to the binary
16358   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16359     # Keep paths in /bin as-is, but remove trailing .exe if any
16360     new_path="${new_path/%.exe/}"
16361     # Do not save /bin paths to all_fixpath_prefixes!
16362   else
16363     # Not in mixed or Windows style, start by that.
16364     new_path=`cmd //c echo $new_path`
16365 
16366   input_path="$new_path"
16367   # Check if we need to convert this using DOS-style short mode. If the path
16368   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16369   # take no chances and rewrite it.
16370   # Note: m4 eats our [], so we need to use [ and ] instead.
16371   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16372   if test "x$has_forbidden_chars" != x; then
16373     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16374     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16375   fi
16376 
16377     # Output is in $new_path
16378 
16379   windows_path="$new_path"
16380   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16381     unix_path=`$CYGPATH -u "$windows_path"`
16382     new_path="$unix_path"
16383   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16384     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16385     new_path="$unix_path"
16386   fi
16387 
16388     # remove trailing .exe if any
16389     new_path="${new_path/%.exe/}"
16390 
16391     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16392     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16393   fi
16394 
16395   else
16396     # We're on a posix platform. Hooray! :)
16397     # First separate the path from the arguments. This will split at the first
16398     # space.
16399     complete="$FOUND_MAKE"
16400     path="${complete%% *}"
16401     tmp="$complete EOL"
16402     arguments="${tmp#* }"
16403 
16404     # Cannot rely on the command "which" here since it doesn't always work.
16405     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16406     if test -z "$is_absolute_path"; then
16407       # Path to executable is not absolute. Find it.
16408       IFS_save="$IFS"
16409       IFS=:
16410       for p in $PATH; do
16411         if test -f "$p/$path" && test -x "$p/$path"; then
16412           new_path="$p/$path"
16413           break
16414         fi
16415       done
16416       IFS="$IFS_save"
16417     else
16418       # This is an absolute path, we can use it without further modifications.
16419       new_path="$path"
16420     fi
16421 
16422     if test "x$new_path" = x; then
16423       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16424 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16425       has_space=`$ECHO "$complete" | $GREP " "`
16426       if test "x$has_space" != x; then
16427         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16428 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16429       fi
16430       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16431     fi
16432   fi
16433 
16434   # Now join together the path and the arguments once again
16435   if test "x$arguments" != xEOL; then
16436     new_complete="$new_path ${arguments% *}"
16437   else
16438     new_complete="$new_path"
16439   fi
16440 
16441   if test "x$complete" != "x$new_complete"; then
16442     FOUND_MAKE="$new_complete"
16443     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16444 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16445   fi
16446 
16447         fi
16448       fi
16449     fi
16450   fi
16451 
16452         if test "x$FOUND_MAKE" = x; then
16453           for ac_prog in make
16454 do
16455   # Extract the first word of "$ac_prog", so it can be a program name with args.
16456 set dummy $ac_prog; ac_word=$2
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16458 $as_echo_n "checking for $ac_word... " >&6; }
16459 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16460   $as_echo_n "(cached) " >&6
16461 else
16462   case $CHECK_TOOLSDIR_MAKE in
16463   [\\/]* | ?:[\\/]*)
16464   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16465   ;;
16466   *)
16467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16468 for as_dir in $PATH
16469 do
16470   IFS=$as_save_IFS
16471   test -z "$as_dir" && as_dir=.
16472     for ac_exec_ext in '' $ac_executable_extensions; do
16473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16474     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16476     break 2
16477   fi
16478 done
16479   done
16480 IFS=$as_save_IFS
16481 
16482   ;;
16483 esac
16484 fi
16485 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16486 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16488 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16489 else
16490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16491 $as_echo "no" >&6; }
16492 fi
16493 
16494 
16495   test -n "$CHECK_TOOLSDIR_MAKE" && break
16496 done
16497 
16498 
16499   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16500   DESCRIPTION="make in tools-dir"
16501   if test "x$MAKE_CANDIDATE" != x; then
16502     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16503 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16504     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16505     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16506     if test "x$IS_GNU_MAKE" = x; then
16507       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16508 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16509     else
16510       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16511       if test "x$IS_MODERN_MAKE" = x; then
16512         { $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
16513 $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;}
16514       else
16515         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16516           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16517             MAKE_EXPECTED_ENV='cygwin'
16518           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16519             MAKE_EXPECTED_ENV='msys'
16520           else
16521             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16522           fi
16523           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16524           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16525         else
16526           # Not relevant for non-Windows
16527           IS_MAKE_CORRECT_ENV=true
16528         fi
16529         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16530           { $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
16531 $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;}
16532         else
16533           FOUND_MAKE=$MAKE_CANDIDATE
16534 
16535   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16536 
16537   # First separate the path from the arguments. This will split at the first
16538   # space.
16539   complete="$FOUND_MAKE"
16540   path="${complete%% *}"
16541   tmp="$complete EOL"
16542   arguments="${tmp#* }"
16543 
16544   # Input might be given as Windows format, start by converting to
16545   # unix format.
16546   new_path=`$CYGPATH -u "$path"`
16547 
16548   # Now try to locate executable using which
16549   new_path=`$WHICH "$new_path" 2> /dev/null`
16550   # bat and cmd files are not always considered executable in cygwin causing which
16551   # to not find them
16552   if test "x$new_path" = x \
16553       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16554       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16555     new_path=`$CYGPATH -u "$path"`
16556   fi
16557   if test "x$new_path" = x; then
16558     # Oops. Which didn't find the executable.
16559     # The splitting of arguments from the executable at a space might have been incorrect,
16560     # since paths with space are more likely in Windows. Give it another try with the whole
16561     # argument.
16562     path="$complete"
16563     arguments="EOL"
16564     new_path=`$CYGPATH -u "$path"`
16565     new_path=`$WHICH "$new_path" 2> /dev/null`
16566     # bat and cmd files are not always considered executable in cygwin causing which
16567     # to not find them
16568     if test "x$new_path" = x \
16569         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16570         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16571       new_path=`$CYGPATH -u "$path"`
16572     fi
16573     if test "x$new_path" = x; then
16574       # It's still not found. Now this is an unrecoverable error.
16575       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16576 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16577       has_space=`$ECHO "$complete" | $GREP " "`
16578       if test "x$has_space" != x; then
16579         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16580 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16581       fi
16582       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16583     fi
16584   fi
16585 
16586   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16587   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16588   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16589   # "foo.exe" is OK but "foo" is an error.
16590   #
16591   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16592   # It is also a way to make sure we got the proper file name for the real test later on.
16593   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16594   if test "x$test_shortpath" = x; then
16595     # Short path failed, file does not exist as specified.
16596     # Try adding .exe or .cmd
16597     if test -f "${new_path}.exe"; then
16598       input_to_shortpath="${new_path}.exe"
16599     elif test -f "${new_path}.cmd"; then
16600       input_to_shortpath="${new_path}.cmd"
16601     else
16602       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16603 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16604       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16605 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16606       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16607     fi
16608   else
16609     input_to_shortpath="$new_path"
16610   fi
16611 
16612   # Call helper function which possibly converts this using DOS-style short mode.
16613   # If so, the updated path is stored in $new_path.
16614   new_path="$input_to_shortpath"
16615 
16616   input_path="$input_to_shortpath"
16617   # Check if we need to convert this using DOS-style short mode. If the path
16618   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16619   # take no chances and rewrite it.
16620   # Note: m4 eats our [], so we need to use [ and ] instead.
16621   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16622   if test "x$has_forbidden_chars" != x; then
16623     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16624     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16625     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16626     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16627       # Going to short mode and back again did indeed matter. Since short mode is
16628       # case insensitive, let's make it lowercase to improve readability.
16629       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16630       # Now convert it back to Unix-stile (cygpath)
16631       input_path=`$CYGPATH -u "$shortmode_path"`
16632       new_path="$input_path"
16633     fi
16634   fi
16635 
16636   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16637   if test "x$test_cygdrive_prefix" = x; then
16638     # As a simple fix, exclude /usr/bin since it's not a real path.
16639     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16640       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16641       # a path prefixed by /cygdrive for fixpath to work.
16642       new_path="$CYGWIN_ROOT_PATH$input_path"
16643     fi
16644   fi
16645 
16646   # remove trailing .exe if any
16647   new_path="${new_path/%.exe/}"
16648 
16649   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16650 
16651   # First separate the path from the arguments. This will split at the first
16652   # space.
16653   complete="$FOUND_MAKE"
16654   path="${complete%% *}"
16655   tmp="$complete EOL"
16656   arguments="${tmp#* }"
16657 
16658   # Input might be given as Windows format, start by converting to
16659   # unix format.
16660   new_path="$path"
16661 
16662   windows_path="$new_path"
16663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16664     unix_path=`$CYGPATH -u "$windows_path"`
16665     new_path="$unix_path"
16666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16668     new_path="$unix_path"
16669   fi
16670 
16671 
16672   # Now try to locate executable using which
16673   new_path=`$WHICH "$new_path" 2> /dev/null`
16674 
16675   if test "x$new_path" = x; then
16676     # Oops. Which didn't find the executable.
16677     # The splitting of arguments from the executable at a space might have been incorrect,
16678     # since paths with space are more likely in Windows. Give it another try with the whole
16679     # argument.
16680     path="$complete"
16681     arguments="EOL"
16682     new_path="$path"
16683 
16684   windows_path="$new_path"
16685   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16686     unix_path=`$CYGPATH -u "$windows_path"`
16687     new_path="$unix_path"
16688   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16689     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16690     new_path="$unix_path"
16691   fi
16692 
16693 
16694     new_path=`$WHICH "$new_path" 2> /dev/null`
16695 
16696     if test "x$new_path" = x; then
16697       # It's still not found. Now this is an unrecoverable error.
16698       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16699 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16700       has_space=`$ECHO "$complete" | $GREP " "`
16701       if test "x$has_space" != x; then
16702         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16703 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16704       fi
16705       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16706     fi
16707   fi
16708 
16709   # Now new_path has a complete unix path to the binary
16710   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16711     # Keep paths in /bin as-is, but remove trailing .exe if any
16712     new_path="${new_path/%.exe/}"
16713     # Do not save /bin paths to all_fixpath_prefixes!
16714   else
16715     # Not in mixed or Windows style, start by that.
16716     new_path=`cmd //c echo $new_path`
16717 
16718   input_path="$new_path"
16719   # Check if we need to convert this using DOS-style short mode. If the path
16720   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16721   # take no chances and rewrite it.
16722   # Note: m4 eats our [], so we need to use [ and ] instead.
16723   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16724   if test "x$has_forbidden_chars" != x; then
16725     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16726     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16727   fi
16728 
16729     # Output is in $new_path
16730 
16731   windows_path="$new_path"
16732   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16733     unix_path=`$CYGPATH -u "$windows_path"`
16734     new_path="$unix_path"
16735   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16736     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16737     new_path="$unix_path"
16738   fi
16739 
16740     # remove trailing .exe if any
16741     new_path="${new_path/%.exe/}"
16742 
16743     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16744     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16745   fi
16746 
16747   else
16748     # We're on a posix platform. Hooray! :)
16749     # First separate the path from the arguments. This will split at the first
16750     # space.
16751     complete="$FOUND_MAKE"
16752     path="${complete%% *}"
16753     tmp="$complete EOL"
16754     arguments="${tmp#* }"
16755 
16756     # Cannot rely on the command "which" here since it doesn't always work.
16757     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16758     if test -z "$is_absolute_path"; then
16759       # Path to executable is not absolute. Find it.
16760       IFS_save="$IFS"
16761       IFS=:
16762       for p in $PATH; do
16763         if test -f "$p/$path" && test -x "$p/$path"; then
16764           new_path="$p/$path"
16765           break
16766         fi
16767       done
16768       IFS="$IFS_save"
16769     else
16770       # This is an absolute path, we can use it without further modifications.
16771       new_path="$path"
16772     fi
16773 
16774     if test "x$new_path" = x; then
16775       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16776 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16777       has_space=`$ECHO "$complete" | $GREP " "`
16778       if test "x$has_space" != x; then
16779         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16780 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16781       fi
16782       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16783     fi
16784   fi
16785 
16786   # Now join together the path and the arguments once again
16787   if test "x$arguments" != xEOL; then
16788     new_complete="$new_path ${arguments% *}"
16789   else
16790     new_complete="$new_path"
16791   fi
16792 
16793   if test "x$complete" != "x$new_complete"; then
16794     FOUND_MAKE="$new_complete"
16795     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16796 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16797   fi
16798 
16799         fi
16800       fi
16801     fi
16802   fi
16803 
16804         fi
16805         PATH=$OLD_PATH
16806       fi
16807     fi
16808 
16809     if test "x$FOUND_MAKE" = x; then
16810       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
16811     fi
16812   fi
16813 
16814   MAKE=$FOUND_MAKE
16815 
16816   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16817 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16818 
16819 
16820 
16821   # Test if find supports -delete
16822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16823 $as_echo_n "checking if find supports -delete... " >&6; }
16824   FIND_DELETE="-delete"
16825 
16826   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16827 
16828   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16829 
16830   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16831   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16832     # No, it does not.
16833     rm $DELETEDIR/TestIfFindSupportsDelete
16834     FIND_DELETE="-exec rm \{\} \+"
16835     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16836 $as_echo "no" >&6; }
16837   else
16838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16839 $as_echo "yes" >&6; }
16840   fi
16841   rmdir $DELETEDIR
16842 
16843 
16844 
16845   # These tools might not be installed by default,
16846   # need hint on how to install them.
16847 
16848 
16849 
16850   # Publish this variable in the help.
16851 
16852 
16853   if test "x$UNZIP" = x; then
16854     # The variable is not set by user, try to locate tool using the code snippet
16855     for ac_prog in unzip
16856 do
16857   # Extract the first word of "$ac_prog", so it can be a program name with args.
16858 set dummy $ac_prog; ac_word=$2
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16860 $as_echo_n "checking for $ac_word... " >&6; }
16861 if ${ac_cv_path_UNZIP+:} false; then :
16862   $as_echo_n "(cached) " >&6
16863 else
16864   case $UNZIP in
16865   [\\/]* | ?:[\\/]*)
16866   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16867   ;;
16868   *)
16869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16870 for as_dir in $PATH
16871 do
16872   IFS=$as_save_IFS
16873   test -z "$as_dir" && as_dir=.
16874     for ac_exec_ext in '' $ac_executable_extensions; do
16875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16876     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16878     break 2
16879   fi
16880 done
16881   done
16882 IFS=$as_save_IFS
16883 
16884   ;;
16885 esac
16886 fi
16887 UNZIP=$ac_cv_path_UNZIP
16888 if test -n "$UNZIP"; then
16889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16890 $as_echo "$UNZIP" >&6; }
16891 else
16892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16893 $as_echo "no" >&6; }
16894 fi
16895 
16896 
16897   test -n "$UNZIP" && break
16898 done
16899 
16900   else
16901     # The variable is set, but is it from the command line or the environment?
16902 
16903     # Try to remove the string !UNZIP! from our list.
16904     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16905     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16906       # If it failed, the variable was not from the command line. Ignore it,
16907       # but warn the user (except for BASH, which is always set by the calling BASH).
16908       if test "xUNZIP" != xBASH; then
16909         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16910 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16911       fi
16912       # Try to locate tool using the code snippet
16913       for ac_prog in unzip
16914 do
16915   # Extract the first word of "$ac_prog", so it can be a program name with args.
16916 set dummy $ac_prog; ac_word=$2
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16918 $as_echo_n "checking for $ac_word... " >&6; }
16919 if ${ac_cv_path_UNZIP+:} false; then :
16920   $as_echo_n "(cached) " >&6
16921 else
16922   case $UNZIP in
16923   [\\/]* | ?:[\\/]*)
16924   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16925   ;;
16926   *)
16927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16928 for as_dir in $PATH
16929 do
16930   IFS=$as_save_IFS
16931   test -z "$as_dir" && as_dir=.
16932     for ac_exec_ext in '' $ac_executable_extensions; do
16933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16934     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16936     break 2
16937   fi
16938 done
16939   done
16940 IFS=$as_save_IFS
16941 
16942   ;;
16943 esac
16944 fi
16945 UNZIP=$ac_cv_path_UNZIP
16946 if test -n "$UNZIP"; then
16947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16948 $as_echo "$UNZIP" >&6; }
16949 else
16950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16951 $as_echo "no" >&6; }
16952 fi
16953 
16954 
16955   test -n "$UNZIP" && break
16956 done
16957 
16958     else
16959       # If it succeeded, then it was overridden by the user. We will use it
16960       # for the tool.
16961 
16962       # First remove it from the list of overridden variables, so we can test
16963       # for unknown variables in the end.
16964       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16965 
16966       # Check if the provided tool contains a complete path.
16967       tool_specified="$UNZIP"
16968       tool_basename="${tool_specified##*/}"
16969       if test "x$tool_basename" = "x$tool_specified"; then
16970         # A command without a complete path is provided, search $PATH.
16971         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16972 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16973         # Extract the first word of "$tool_basename", so it can be a program name with args.
16974 set dummy $tool_basename; ac_word=$2
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16976 $as_echo_n "checking for $ac_word... " >&6; }
16977 if ${ac_cv_path_UNZIP+:} false; then :
16978   $as_echo_n "(cached) " >&6
16979 else
16980   case $UNZIP in
16981   [\\/]* | ?:[\\/]*)
16982   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16983   ;;
16984   *)
16985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16986 for as_dir in $PATH
16987 do
16988   IFS=$as_save_IFS
16989   test -z "$as_dir" && as_dir=.
16990     for ac_exec_ext in '' $ac_executable_extensions; do
16991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16992     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16994     break 2
16995   fi
16996 done
16997   done
16998 IFS=$as_save_IFS
16999 
17000   ;;
17001 esac
17002 fi
17003 UNZIP=$ac_cv_path_UNZIP
17004 if test -n "$UNZIP"; then
17005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17006 $as_echo "$UNZIP" >&6; }
17007 else
17008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17009 $as_echo "no" >&6; }
17010 fi
17011 
17012 
17013         if test "x$UNZIP" = x; then
17014           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17015         fi
17016       else
17017         # Otherwise we believe it is a complete path. Use it as it is.
17018         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17019 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17021 $as_echo_n "checking for UNZIP... " >&6; }
17022         if test ! -x "$tool_specified"; then
17023           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17024 $as_echo "not found" >&6; }
17025           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17026         fi
17027         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17028 $as_echo "$tool_specified" >&6; }
17029       fi
17030     fi
17031   fi
17032 
17033 
17034 
17035   if test "x$UNZIP" = x; then
17036     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17037   fi
17038 
17039 
17040 
17041 
17042 
17043   # Publish this variable in the help.
17044 
17045 
17046   if test "x$ZIP" = x; then
17047     # The variable is not set by user, try to locate tool using the code snippet
17048     for ac_prog in zip
17049 do
17050   # Extract the first word of "$ac_prog", so it can be a program name with args.
17051 set dummy $ac_prog; ac_word=$2
17052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17053 $as_echo_n "checking for $ac_word... " >&6; }
17054 if ${ac_cv_path_ZIP+:} false; then :
17055   $as_echo_n "(cached) " >&6
17056 else
17057   case $ZIP in
17058   [\\/]* | ?:[\\/]*)
17059   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17060   ;;
17061   *)
17062   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17063 for as_dir in $PATH
17064 do
17065   IFS=$as_save_IFS
17066   test -z "$as_dir" && as_dir=.
17067     for ac_exec_ext in '' $ac_executable_extensions; do
17068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17069     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17071     break 2
17072   fi
17073 done
17074   done
17075 IFS=$as_save_IFS
17076 
17077   ;;
17078 esac
17079 fi
17080 ZIP=$ac_cv_path_ZIP
17081 if test -n "$ZIP"; then
17082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17083 $as_echo "$ZIP" >&6; }
17084 else
17085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17086 $as_echo "no" >&6; }
17087 fi
17088 
17089 
17090   test -n "$ZIP" && break
17091 done
17092 
17093   else
17094     # The variable is set, but is it from the command line or the environment?
17095 
17096     # Try to remove the string !ZIP! from our list.
17097     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17098     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17099       # If it failed, the variable was not from the command line. Ignore it,
17100       # but warn the user (except for BASH, which is always set by the calling BASH).
17101       if test "xZIP" != xBASH; then
17102         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17103 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17104       fi
17105       # Try to locate tool using the code snippet
17106       for ac_prog in zip
17107 do
17108   # Extract the first word of "$ac_prog", so it can be a program name with args.
17109 set dummy $ac_prog; ac_word=$2
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17111 $as_echo_n "checking for $ac_word... " >&6; }
17112 if ${ac_cv_path_ZIP+:} false; then :
17113   $as_echo_n "(cached) " >&6
17114 else
17115   case $ZIP in
17116   [\\/]* | ?:[\\/]*)
17117   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17118   ;;
17119   *)
17120   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17121 for as_dir in $PATH
17122 do
17123   IFS=$as_save_IFS
17124   test -z "$as_dir" && as_dir=.
17125     for ac_exec_ext in '' $ac_executable_extensions; do
17126   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17127     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17128     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17129     break 2
17130   fi
17131 done
17132   done
17133 IFS=$as_save_IFS
17134 
17135   ;;
17136 esac
17137 fi
17138 ZIP=$ac_cv_path_ZIP
17139 if test -n "$ZIP"; then
17140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17141 $as_echo "$ZIP" >&6; }
17142 else
17143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17144 $as_echo "no" >&6; }
17145 fi
17146 
17147 
17148   test -n "$ZIP" && break
17149 done
17150 
17151     else
17152       # If it succeeded, then it was overridden by the user. We will use it
17153       # for the tool.
17154 
17155       # First remove it from the list of overridden variables, so we can test
17156       # for unknown variables in the end.
17157       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17158 
17159       # Check if the provided tool contains a complete path.
17160       tool_specified="$ZIP"
17161       tool_basename="${tool_specified##*/}"
17162       if test "x$tool_basename" = "x$tool_specified"; then
17163         # A command without a complete path is provided, search $PATH.
17164         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17165 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17166         # Extract the first word of "$tool_basename", so it can be a program name with args.
17167 set dummy $tool_basename; ac_word=$2
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17169 $as_echo_n "checking for $ac_word... " >&6; }
17170 if ${ac_cv_path_ZIP+:} false; then :
17171   $as_echo_n "(cached) " >&6
17172 else
17173   case $ZIP in
17174   [\\/]* | ?:[\\/]*)
17175   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17176   ;;
17177   *)
17178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17179 for as_dir in $PATH
17180 do
17181   IFS=$as_save_IFS
17182   test -z "$as_dir" && as_dir=.
17183     for ac_exec_ext in '' $ac_executable_extensions; do
17184   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17185     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17187     break 2
17188   fi
17189 done
17190   done
17191 IFS=$as_save_IFS
17192 
17193   ;;
17194 esac
17195 fi
17196 ZIP=$ac_cv_path_ZIP
17197 if test -n "$ZIP"; then
17198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17199 $as_echo "$ZIP" >&6; }
17200 else
17201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17202 $as_echo "no" >&6; }
17203 fi
17204 
17205 
17206         if test "x$ZIP" = x; then
17207           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17208         fi
17209       else
17210         # Otherwise we believe it is a complete path. Use it as it is.
17211         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17212 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17213         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17214 $as_echo_n "checking for ZIP... " >&6; }
17215         if test ! -x "$tool_specified"; then
17216           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17217 $as_echo "not found" >&6; }
17218           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17219         fi
17220         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17221 $as_echo "$tool_specified" >&6; }
17222       fi
17223     fi
17224   fi
17225 
17226 
17227 
17228   if test "x$ZIP" = x; then
17229     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17230   fi
17231 
17232 
17233 
17234   # Non-required basic tools
17235 
17236 
17237 
17238   # Publish this variable in the help.
17239 
17240 
17241   if test "x$LDD" = x; then
17242     # The variable is not set by user, try to locate tool using the code snippet
17243     for ac_prog in ldd
17244 do
17245   # Extract the first word of "$ac_prog", so it can be a program name with args.
17246 set dummy $ac_prog; ac_word=$2
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17248 $as_echo_n "checking for $ac_word... " >&6; }
17249 if ${ac_cv_path_LDD+:} false; then :
17250   $as_echo_n "(cached) " >&6
17251 else
17252   case $LDD in
17253   [\\/]* | ?:[\\/]*)
17254   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17255   ;;
17256   *)
17257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17258 for as_dir in $PATH
17259 do
17260   IFS=$as_save_IFS
17261   test -z "$as_dir" && as_dir=.
17262     for ac_exec_ext in '' $ac_executable_extensions; do
17263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17264     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17266     break 2
17267   fi
17268 done
17269   done
17270 IFS=$as_save_IFS
17271 
17272   ;;
17273 esac
17274 fi
17275 LDD=$ac_cv_path_LDD
17276 if test -n "$LDD"; then
17277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17278 $as_echo "$LDD" >&6; }
17279 else
17280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17281 $as_echo "no" >&6; }
17282 fi
17283 
17284 
17285   test -n "$LDD" && break
17286 done
17287 
17288   else
17289     # The variable is set, but is it from the command line or the environment?
17290 
17291     # Try to remove the string !LDD! from our list.
17292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17294       # If it failed, the variable was not from the command line. Ignore it,
17295       # but warn the user (except for BASH, which is always set by the calling BASH).
17296       if test "xLDD" != xBASH; then
17297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17298 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17299       fi
17300       # Try to locate tool using the code snippet
17301       for ac_prog in ldd
17302 do
17303   # Extract the first word of "$ac_prog", so it can be a program name with args.
17304 set dummy $ac_prog; ac_word=$2
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17306 $as_echo_n "checking for $ac_word... " >&6; }
17307 if ${ac_cv_path_LDD+:} false; then :
17308   $as_echo_n "(cached) " >&6
17309 else
17310   case $LDD in
17311   [\\/]* | ?:[\\/]*)
17312   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17313   ;;
17314   *)
17315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17316 for as_dir in $PATH
17317 do
17318   IFS=$as_save_IFS
17319   test -z "$as_dir" && as_dir=.
17320     for ac_exec_ext in '' $ac_executable_extensions; do
17321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17322     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17324     break 2
17325   fi
17326 done
17327   done
17328 IFS=$as_save_IFS
17329 
17330   ;;
17331 esac
17332 fi
17333 LDD=$ac_cv_path_LDD
17334 if test -n "$LDD"; then
17335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17336 $as_echo "$LDD" >&6; }
17337 else
17338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17339 $as_echo "no" >&6; }
17340 fi
17341 
17342 
17343   test -n "$LDD" && break
17344 done
17345 
17346     else
17347       # If it succeeded, then it was overridden by the user. We will use it
17348       # for the tool.
17349 
17350       # First remove it from the list of overridden variables, so we can test
17351       # for unknown variables in the end.
17352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17353 
17354       # Check if the provided tool contains a complete path.
17355       tool_specified="$LDD"
17356       tool_basename="${tool_specified##*/}"
17357       if test "x$tool_basename" = "x$tool_specified"; then
17358         # A command without a complete path is provided, search $PATH.
17359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17360 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17361         # Extract the first word of "$tool_basename", so it can be a program name with args.
17362 set dummy $tool_basename; ac_word=$2
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17364 $as_echo_n "checking for $ac_word... " >&6; }
17365 if ${ac_cv_path_LDD+:} false; then :
17366   $as_echo_n "(cached) " >&6
17367 else
17368   case $LDD in
17369   [\\/]* | ?:[\\/]*)
17370   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17371   ;;
17372   *)
17373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17374 for as_dir in $PATH
17375 do
17376   IFS=$as_save_IFS
17377   test -z "$as_dir" && as_dir=.
17378     for ac_exec_ext in '' $ac_executable_extensions; do
17379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17380     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17382     break 2
17383   fi
17384 done
17385   done
17386 IFS=$as_save_IFS
17387 
17388   ;;
17389 esac
17390 fi
17391 LDD=$ac_cv_path_LDD
17392 if test -n "$LDD"; then
17393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17394 $as_echo "$LDD" >&6; }
17395 else
17396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17397 $as_echo "no" >&6; }
17398 fi
17399 
17400 
17401         if test "x$LDD" = x; then
17402           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17403         fi
17404       else
17405         # Otherwise we believe it is a complete path. Use it as it is.
17406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17407 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17409 $as_echo_n "checking for LDD... " >&6; }
17410         if test ! -x "$tool_specified"; then
17411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17412 $as_echo "not found" >&6; }
17413           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17414         fi
17415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17416 $as_echo "$tool_specified" >&6; }
17417       fi
17418     fi
17419   fi
17420 
17421 
17422   if test "x$LDD" = "x"; then
17423     # List shared lib dependencies is used for
17424     # debug output and checking for forbidden dependencies.
17425     # We can build without it.
17426     LDD="true"
17427   fi
17428 
17429 
17430   # Publish this variable in the help.
17431 
17432 
17433   if test "x$OTOOL" = x; then
17434     # The variable is not set by user, try to locate tool using the code snippet
17435     for ac_prog in otool
17436 do
17437   # Extract the first word of "$ac_prog", so it can be a program name with args.
17438 set dummy $ac_prog; ac_word=$2
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17440 $as_echo_n "checking for $ac_word... " >&6; }
17441 if ${ac_cv_path_OTOOL+:} false; then :
17442   $as_echo_n "(cached) " >&6
17443 else
17444   case $OTOOL in
17445   [\\/]* | ?:[\\/]*)
17446   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17447   ;;
17448   *)
17449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17450 for as_dir in $PATH
17451 do
17452   IFS=$as_save_IFS
17453   test -z "$as_dir" && as_dir=.
17454     for ac_exec_ext in '' $ac_executable_extensions; do
17455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17456     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17458     break 2
17459   fi
17460 done
17461   done
17462 IFS=$as_save_IFS
17463 
17464   ;;
17465 esac
17466 fi
17467 OTOOL=$ac_cv_path_OTOOL
17468 if test -n "$OTOOL"; then
17469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17470 $as_echo "$OTOOL" >&6; }
17471 else
17472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17473 $as_echo "no" >&6; }
17474 fi
17475 
17476 
17477   test -n "$OTOOL" && break
17478 done
17479 
17480   else
17481     # The variable is set, but is it from the command line or the environment?
17482 
17483     # Try to remove the string !OTOOL! from our list.
17484     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17485     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17486       # If it failed, the variable was not from the command line. Ignore it,
17487       # but warn the user (except for BASH, which is always set by the calling BASH).
17488       if test "xOTOOL" != xBASH; then
17489         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17490 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17491       fi
17492       # Try to locate tool using the code snippet
17493       for ac_prog in otool
17494 do
17495   # Extract the first word of "$ac_prog", so it can be a program name with args.
17496 set dummy $ac_prog; ac_word=$2
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17498 $as_echo_n "checking for $ac_word... " >&6; }
17499 if ${ac_cv_path_OTOOL+:} false; then :
17500   $as_echo_n "(cached) " >&6
17501 else
17502   case $OTOOL in
17503   [\\/]* | ?:[\\/]*)
17504   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17505   ;;
17506   *)
17507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17508 for as_dir in $PATH
17509 do
17510   IFS=$as_save_IFS
17511   test -z "$as_dir" && as_dir=.
17512     for ac_exec_ext in '' $ac_executable_extensions; do
17513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17514     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17516     break 2
17517   fi
17518 done
17519   done
17520 IFS=$as_save_IFS
17521 
17522   ;;
17523 esac
17524 fi
17525 OTOOL=$ac_cv_path_OTOOL
17526 if test -n "$OTOOL"; then
17527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17528 $as_echo "$OTOOL" >&6; }
17529 else
17530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17531 $as_echo "no" >&6; }
17532 fi
17533 
17534 
17535   test -n "$OTOOL" && break
17536 done
17537 
17538     else
17539       # If it succeeded, then it was overridden by the user. We will use it
17540       # for the tool.
17541 
17542       # First remove it from the list of overridden variables, so we can test
17543       # for unknown variables in the end.
17544       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17545 
17546       # Check if the provided tool contains a complete path.
17547       tool_specified="$OTOOL"
17548       tool_basename="${tool_specified##*/}"
17549       if test "x$tool_basename" = "x$tool_specified"; then
17550         # A command without a complete path is provided, search $PATH.
17551         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17552 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17553         # Extract the first word of "$tool_basename", so it can be a program name with args.
17554 set dummy $tool_basename; ac_word=$2
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17556 $as_echo_n "checking for $ac_word... " >&6; }
17557 if ${ac_cv_path_OTOOL+:} false; then :
17558   $as_echo_n "(cached) " >&6
17559 else
17560   case $OTOOL in
17561   [\\/]* | ?:[\\/]*)
17562   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17563   ;;
17564   *)
17565   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17566 for as_dir in $PATH
17567 do
17568   IFS=$as_save_IFS
17569   test -z "$as_dir" && as_dir=.
17570     for ac_exec_ext in '' $ac_executable_extensions; do
17571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17572     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17574     break 2
17575   fi
17576 done
17577   done
17578 IFS=$as_save_IFS
17579 
17580   ;;
17581 esac
17582 fi
17583 OTOOL=$ac_cv_path_OTOOL
17584 if test -n "$OTOOL"; then
17585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17586 $as_echo "$OTOOL" >&6; }
17587 else
17588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17589 $as_echo "no" >&6; }
17590 fi
17591 
17592 
17593         if test "x$OTOOL" = x; then
17594           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17595         fi
17596       else
17597         # Otherwise we believe it is a complete path. Use it as it is.
17598         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17599 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17600         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17601 $as_echo_n "checking for OTOOL... " >&6; }
17602         if test ! -x "$tool_specified"; then
17603           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17604 $as_echo "not found" >&6; }
17605           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17606         fi
17607         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17608 $as_echo "$tool_specified" >&6; }
17609       fi
17610     fi
17611   fi
17612 
17613 
17614   if test "x$OTOOL" = "x"; then
17615     OTOOL="true"
17616   fi
17617 
17618 
17619   # Publish this variable in the help.
17620 
17621 
17622   if test "x$READELF" = x; then
17623     # The variable is not set by user, try to locate tool using the code snippet
17624     for ac_prog in greadelf readelf
17625 do
17626   # Extract the first word of "$ac_prog", so it can be a program name with args.
17627 set dummy $ac_prog; ac_word=$2
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17629 $as_echo_n "checking for $ac_word... " >&6; }
17630 if ${ac_cv_path_READELF+:} false; then :
17631   $as_echo_n "(cached) " >&6
17632 else
17633   case $READELF in
17634   [\\/]* | ?:[\\/]*)
17635   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17636   ;;
17637   *)
17638   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17639 for as_dir in $PATH
17640 do
17641   IFS=$as_save_IFS
17642   test -z "$as_dir" && as_dir=.
17643     for ac_exec_ext in '' $ac_executable_extensions; do
17644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17645     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17647     break 2
17648   fi
17649 done
17650   done
17651 IFS=$as_save_IFS
17652 
17653   ;;
17654 esac
17655 fi
17656 READELF=$ac_cv_path_READELF
17657 if test -n "$READELF"; then
17658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17659 $as_echo "$READELF" >&6; }
17660 else
17661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17662 $as_echo "no" >&6; }
17663 fi
17664 
17665 
17666   test -n "$READELF" && break
17667 done
17668 
17669   else
17670     # The variable is set, but is it from the command line or the environment?
17671 
17672     # Try to remove the string !READELF! from our list.
17673     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17674     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17675       # If it failed, the variable was not from the command line. Ignore it,
17676       # but warn the user (except for BASH, which is always set by the calling BASH).
17677       if test "xREADELF" != xBASH; then
17678         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17679 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17680       fi
17681       # Try to locate tool using the code snippet
17682       for ac_prog in greadelf readelf
17683 do
17684   # Extract the first word of "$ac_prog", so it can be a program name with args.
17685 set dummy $ac_prog; ac_word=$2
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17687 $as_echo_n "checking for $ac_word... " >&6; }
17688 if ${ac_cv_path_READELF+:} false; then :
17689   $as_echo_n "(cached) " >&6
17690 else
17691   case $READELF in
17692   [\\/]* | ?:[\\/]*)
17693   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17694   ;;
17695   *)
17696   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17697 for as_dir in $PATH
17698 do
17699   IFS=$as_save_IFS
17700   test -z "$as_dir" && as_dir=.
17701     for ac_exec_ext in '' $ac_executable_extensions; do
17702   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17703     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17704     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17705     break 2
17706   fi
17707 done
17708   done
17709 IFS=$as_save_IFS
17710 
17711   ;;
17712 esac
17713 fi
17714 READELF=$ac_cv_path_READELF
17715 if test -n "$READELF"; then
17716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17717 $as_echo "$READELF" >&6; }
17718 else
17719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17720 $as_echo "no" >&6; }
17721 fi
17722 
17723 
17724   test -n "$READELF" && break
17725 done
17726 
17727     else
17728       # If it succeeded, then it was overridden by the user. We will use it
17729       # for the tool.
17730 
17731       # First remove it from the list of overridden variables, so we can test
17732       # for unknown variables in the end.
17733       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17734 
17735       # Check if the provided tool contains a complete path.
17736       tool_specified="$READELF"
17737       tool_basename="${tool_specified##*/}"
17738       if test "x$tool_basename" = "x$tool_specified"; then
17739         # A command without a complete path is provided, search $PATH.
17740         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17741 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17742         # Extract the first word of "$tool_basename", so it can be a program name with args.
17743 set dummy $tool_basename; ac_word=$2
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17745 $as_echo_n "checking for $ac_word... " >&6; }
17746 if ${ac_cv_path_READELF+:} false; then :
17747   $as_echo_n "(cached) " >&6
17748 else
17749   case $READELF in
17750   [\\/]* | ?:[\\/]*)
17751   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17752   ;;
17753   *)
17754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17755 for as_dir in $PATH
17756 do
17757   IFS=$as_save_IFS
17758   test -z "$as_dir" && as_dir=.
17759     for ac_exec_ext in '' $ac_executable_extensions; do
17760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17761     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17763     break 2
17764   fi
17765 done
17766   done
17767 IFS=$as_save_IFS
17768 
17769   ;;
17770 esac
17771 fi
17772 READELF=$ac_cv_path_READELF
17773 if test -n "$READELF"; then
17774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17775 $as_echo "$READELF" >&6; }
17776 else
17777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17778 $as_echo "no" >&6; }
17779 fi
17780 
17781 
17782         if test "x$READELF" = x; then
17783           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17784         fi
17785       else
17786         # Otherwise we believe it is a complete path. Use it as it is.
17787         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17788 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17790 $as_echo_n "checking for READELF... " >&6; }
17791         if test ! -x "$tool_specified"; then
17792           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17793 $as_echo "not found" >&6; }
17794           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17795         fi
17796         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17797 $as_echo "$tool_specified" >&6; }
17798       fi
17799     fi
17800   fi
17801 
17802 
17803 
17804 
17805   # Publish this variable in the help.
17806 
17807 
17808   if test "x$HG" = x; then
17809     # The variable is not set by user, try to locate tool using the code snippet
17810     for ac_prog in hg
17811 do
17812   # Extract the first word of "$ac_prog", so it can be a program name with args.
17813 set dummy $ac_prog; ac_word=$2
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17815 $as_echo_n "checking for $ac_word... " >&6; }
17816 if ${ac_cv_path_HG+:} false; then :
17817   $as_echo_n "(cached) " >&6
17818 else
17819   case $HG in
17820   [\\/]* | ?:[\\/]*)
17821   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17822   ;;
17823   *)
17824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17825 for as_dir in $PATH
17826 do
17827   IFS=$as_save_IFS
17828   test -z "$as_dir" && as_dir=.
17829     for ac_exec_ext in '' $ac_executable_extensions; do
17830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17831     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17833     break 2
17834   fi
17835 done
17836   done
17837 IFS=$as_save_IFS
17838 
17839   ;;
17840 esac
17841 fi
17842 HG=$ac_cv_path_HG
17843 if test -n "$HG"; then
17844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17845 $as_echo "$HG" >&6; }
17846 else
17847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17848 $as_echo "no" >&6; }
17849 fi
17850 
17851 
17852   test -n "$HG" && break
17853 done
17854 
17855   else
17856     # The variable is set, but is it from the command line or the environment?
17857 
17858     # Try to remove the string !HG! from our list.
17859     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17860     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17861       # If it failed, the variable was not from the command line. Ignore it,
17862       # but warn the user (except for BASH, which is always set by the calling BASH).
17863       if test "xHG" != xBASH; then
17864         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17865 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17866       fi
17867       # Try to locate tool using the code snippet
17868       for ac_prog in hg
17869 do
17870   # Extract the first word of "$ac_prog", so it can be a program name with args.
17871 set dummy $ac_prog; ac_word=$2
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17873 $as_echo_n "checking for $ac_word... " >&6; }
17874 if ${ac_cv_path_HG+:} false; then :
17875   $as_echo_n "(cached) " >&6
17876 else
17877   case $HG in
17878   [\\/]* | ?:[\\/]*)
17879   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17880   ;;
17881   *)
17882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883 for as_dir in $PATH
17884 do
17885   IFS=$as_save_IFS
17886   test -z "$as_dir" && as_dir=.
17887     for ac_exec_ext in '' $ac_executable_extensions; do
17888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17891     break 2
17892   fi
17893 done
17894   done
17895 IFS=$as_save_IFS
17896 
17897   ;;
17898 esac
17899 fi
17900 HG=$ac_cv_path_HG
17901 if test -n "$HG"; then
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17903 $as_echo "$HG" >&6; }
17904 else
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906 $as_echo "no" >&6; }
17907 fi
17908 
17909 
17910   test -n "$HG" && break
17911 done
17912 
17913     else
17914       # If it succeeded, then it was overridden by the user. We will use it
17915       # for the tool.
17916 
17917       # First remove it from the list of overridden variables, so we can test
17918       # for unknown variables in the end.
17919       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17920 
17921       # Check if the provided tool contains a complete path.
17922       tool_specified="$HG"
17923       tool_basename="${tool_specified##*/}"
17924       if test "x$tool_basename" = "x$tool_specified"; then
17925         # A command without a complete path is provided, search $PATH.
17926         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17927 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17928         # Extract the first word of "$tool_basename", so it can be a program name with args.
17929 set dummy $tool_basename; ac_word=$2
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17931 $as_echo_n "checking for $ac_word... " >&6; }
17932 if ${ac_cv_path_HG+:} false; then :
17933   $as_echo_n "(cached) " >&6
17934 else
17935   case $HG in
17936   [\\/]* | ?:[\\/]*)
17937   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17938   ;;
17939   *)
17940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17941 for as_dir in $PATH
17942 do
17943   IFS=$as_save_IFS
17944   test -z "$as_dir" && as_dir=.
17945     for ac_exec_ext in '' $ac_executable_extensions; do
17946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17947     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17949     break 2
17950   fi
17951 done
17952   done
17953 IFS=$as_save_IFS
17954 
17955   ;;
17956 esac
17957 fi
17958 HG=$ac_cv_path_HG
17959 if test -n "$HG"; then
17960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17961 $as_echo "$HG" >&6; }
17962 else
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17965 fi
17966 
17967 
17968         if test "x$HG" = x; then
17969           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17970         fi
17971       else
17972         # Otherwise we believe it is a complete path. Use it as it is.
17973         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17974 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17975         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17976 $as_echo_n "checking for HG... " >&6; }
17977         if test ! -x "$tool_specified"; then
17978           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17979 $as_echo "not found" >&6; }
17980           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17981         fi
17982         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17983 $as_echo "$tool_specified" >&6; }
17984       fi
17985     fi
17986   fi
17987 
17988 
17989 
17990 
17991   # Publish this variable in the help.
17992 
17993 
17994   if test "x$STAT" = x; then
17995     # The variable is not set by user, try to locate tool using the code snippet
17996     for ac_prog in stat
17997 do
17998   # Extract the first word of "$ac_prog", so it can be a program name with args.
17999 set dummy $ac_prog; ac_word=$2
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18001 $as_echo_n "checking for $ac_word... " >&6; }
18002 if ${ac_cv_path_STAT+:} false; then :
18003   $as_echo_n "(cached) " >&6
18004 else
18005   case $STAT in
18006   [\\/]* | ?:[\\/]*)
18007   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18008   ;;
18009   *)
18010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18011 for as_dir in $PATH
18012 do
18013   IFS=$as_save_IFS
18014   test -z "$as_dir" && as_dir=.
18015     for ac_exec_ext in '' $ac_executable_extensions; do
18016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18017     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18019     break 2
18020   fi
18021 done
18022   done
18023 IFS=$as_save_IFS
18024 
18025   ;;
18026 esac
18027 fi
18028 STAT=$ac_cv_path_STAT
18029 if test -n "$STAT"; then
18030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18031 $as_echo "$STAT" >&6; }
18032 else
18033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18034 $as_echo "no" >&6; }
18035 fi
18036 
18037 
18038   test -n "$STAT" && break
18039 done
18040 
18041   else
18042     # The variable is set, but is it from the command line or the environment?
18043 
18044     # Try to remove the string !STAT! from our list.
18045     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18046     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18047       # If it failed, the variable was not from the command line. Ignore it,
18048       # but warn the user (except for BASH, which is always set by the calling BASH).
18049       if test "xSTAT" != xBASH; then
18050         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18051 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18052       fi
18053       # Try to locate tool using the code snippet
18054       for ac_prog in stat
18055 do
18056   # Extract the first word of "$ac_prog", so it can be a program name with args.
18057 set dummy $ac_prog; ac_word=$2
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18059 $as_echo_n "checking for $ac_word... " >&6; }
18060 if ${ac_cv_path_STAT+:} false; then :
18061   $as_echo_n "(cached) " >&6
18062 else
18063   case $STAT in
18064   [\\/]* | ?:[\\/]*)
18065   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18066   ;;
18067   *)
18068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18069 for as_dir in $PATH
18070 do
18071   IFS=$as_save_IFS
18072   test -z "$as_dir" && as_dir=.
18073     for ac_exec_ext in '' $ac_executable_extensions; do
18074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18075     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18077     break 2
18078   fi
18079 done
18080   done
18081 IFS=$as_save_IFS
18082 
18083   ;;
18084 esac
18085 fi
18086 STAT=$ac_cv_path_STAT
18087 if test -n "$STAT"; then
18088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18089 $as_echo "$STAT" >&6; }
18090 else
18091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092 $as_echo "no" >&6; }
18093 fi
18094 
18095 
18096   test -n "$STAT" && break
18097 done
18098 
18099     else
18100       # If it succeeded, then it was overridden by the user. We will use it
18101       # for the tool.
18102 
18103       # First remove it from the list of overridden variables, so we can test
18104       # for unknown variables in the end.
18105       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18106 
18107       # Check if the provided tool contains a complete path.
18108       tool_specified="$STAT"
18109       tool_basename="${tool_specified##*/}"
18110       if test "x$tool_basename" = "x$tool_specified"; then
18111         # A command without a complete path is provided, search $PATH.
18112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18113 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18114         # Extract the first word of "$tool_basename", so it can be a program name with args.
18115 set dummy $tool_basename; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if ${ac_cv_path_STAT+:} false; then :
18119   $as_echo_n "(cached) " >&6
18120 else
18121   case $STAT in
18122   [\\/]* | ?:[\\/]*)
18123   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18124   ;;
18125   *)
18126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in $PATH
18128 do
18129   IFS=$as_save_IFS
18130   test -z "$as_dir" && as_dir=.
18131     for ac_exec_ext in '' $ac_executable_extensions; do
18132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18133     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135     break 2
18136   fi
18137 done
18138   done
18139 IFS=$as_save_IFS
18140 
18141   ;;
18142 esac
18143 fi
18144 STAT=$ac_cv_path_STAT
18145 if test -n "$STAT"; then
18146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18147 $as_echo "$STAT" >&6; }
18148 else
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18151 fi
18152 
18153 
18154         if test "x$STAT" = x; then
18155           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18156         fi
18157       else
18158         # Otherwise we believe it is a complete path. Use it as it is.
18159         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18160 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18162 $as_echo_n "checking for STAT... " >&6; }
18163         if test ! -x "$tool_specified"; then
18164           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18165 $as_echo "not found" >&6; }
18166           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18167         fi
18168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18169 $as_echo "$tool_specified" >&6; }
18170       fi
18171     fi
18172   fi
18173 
18174 
18175 
18176 
18177   # Publish this variable in the help.
18178 
18179 
18180   if test "x$TIME" = x; then
18181     # The variable is not set by user, try to locate tool using the code snippet
18182     for ac_prog in time
18183 do
18184   # Extract the first word of "$ac_prog", so it can be a program name with args.
18185 set dummy $ac_prog; ac_word=$2
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18187 $as_echo_n "checking for $ac_word... " >&6; }
18188 if ${ac_cv_path_TIME+:} false; then :
18189   $as_echo_n "(cached) " >&6
18190 else
18191   case $TIME in
18192   [\\/]* | ?:[\\/]*)
18193   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18194   ;;
18195   *)
18196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18197 for as_dir in $PATH
18198 do
18199   IFS=$as_save_IFS
18200   test -z "$as_dir" && as_dir=.
18201     for ac_exec_ext in '' $ac_executable_extensions; do
18202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18203     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18205     break 2
18206   fi
18207 done
18208   done
18209 IFS=$as_save_IFS
18210 
18211   ;;
18212 esac
18213 fi
18214 TIME=$ac_cv_path_TIME
18215 if test -n "$TIME"; then
18216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18217 $as_echo "$TIME" >&6; }
18218 else
18219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220 $as_echo "no" >&6; }
18221 fi
18222 
18223 
18224   test -n "$TIME" && break
18225 done
18226 
18227   else
18228     # The variable is set, but is it from the command line or the environment?
18229 
18230     # Try to remove the string !TIME! from our list.
18231     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18232     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18233       # If it failed, the variable was not from the command line. Ignore it,
18234       # but warn the user (except for BASH, which is always set by the calling BASH).
18235       if test "xTIME" != xBASH; then
18236         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18237 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18238       fi
18239       # Try to locate tool using the code snippet
18240       for ac_prog in time
18241 do
18242   # Extract the first word of "$ac_prog", so it can be a program name with args.
18243 set dummy $ac_prog; ac_word=$2
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18245 $as_echo_n "checking for $ac_word... " >&6; }
18246 if ${ac_cv_path_TIME+:} false; then :
18247   $as_echo_n "(cached) " >&6
18248 else
18249   case $TIME in
18250   [\\/]* | ?:[\\/]*)
18251   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18252   ;;
18253   *)
18254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18255 for as_dir in $PATH
18256 do
18257   IFS=$as_save_IFS
18258   test -z "$as_dir" && as_dir=.
18259     for ac_exec_ext in '' $ac_executable_extensions; do
18260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18261     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18263     break 2
18264   fi
18265 done
18266   done
18267 IFS=$as_save_IFS
18268 
18269   ;;
18270 esac
18271 fi
18272 TIME=$ac_cv_path_TIME
18273 if test -n "$TIME"; then
18274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18275 $as_echo "$TIME" >&6; }
18276 else
18277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278 $as_echo "no" >&6; }
18279 fi
18280 
18281 
18282   test -n "$TIME" && break
18283 done
18284 
18285     else
18286       # If it succeeded, then it was overridden by the user. We will use it
18287       # for the tool.
18288 
18289       # First remove it from the list of overridden variables, so we can test
18290       # for unknown variables in the end.
18291       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18292 
18293       # Check if the provided tool contains a complete path.
18294       tool_specified="$TIME"
18295       tool_basename="${tool_specified##*/}"
18296       if test "x$tool_basename" = "x$tool_specified"; then
18297         # A command without a complete path is provided, search $PATH.
18298         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18299 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18300         # Extract the first word of "$tool_basename", so it can be a program name with args.
18301 set dummy $tool_basename; ac_word=$2
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18303 $as_echo_n "checking for $ac_word... " >&6; }
18304 if ${ac_cv_path_TIME+:} false; then :
18305   $as_echo_n "(cached) " >&6
18306 else
18307   case $TIME in
18308   [\\/]* | ?:[\\/]*)
18309   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18310   ;;
18311   *)
18312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315   IFS=$as_save_IFS
18316   test -z "$as_dir" && as_dir=.
18317     for ac_exec_ext in '' $ac_executable_extensions; do
18318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18319     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18321     break 2
18322   fi
18323 done
18324   done
18325 IFS=$as_save_IFS
18326 
18327   ;;
18328 esac
18329 fi
18330 TIME=$ac_cv_path_TIME
18331 if test -n "$TIME"; then
18332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18333 $as_echo "$TIME" >&6; }
18334 else
18335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18336 $as_echo "no" >&6; }
18337 fi
18338 
18339 
18340         if test "x$TIME" = x; then
18341           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18342         fi
18343       else
18344         # Otherwise we believe it is a complete path. Use it as it is.
18345         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18346 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18347         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18348 $as_echo_n "checking for TIME... " >&6; }
18349         if test ! -x "$tool_specified"; then
18350           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18351 $as_echo "not found" >&6; }
18352           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18353         fi
18354         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18355 $as_echo "$tool_specified" >&6; }
18356       fi
18357     fi
18358   fi
18359 
18360 
18361   # Check if it's GNU time
18362   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18363   if test "x$IS_GNU_TIME" != x; then
18364     IS_GNU_TIME=yes
18365   else
18366     IS_GNU_TIME=no
18367   fi
18368 
18369 
18370   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18371 
18372 
18373 
18374   # Publish this variable in the help.
18375 
18376 
18377   if test "x$COMM" = x; then
18378     # The variable is not set by user, try to locate tool using the code snippet
18379     for ac_prog in comm
18380 do
18381   # Extract the first word of "$ac_prog", so it can be a program name with args.
18382 set dummy $ac_prog; ac_word=$2
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18384 $as_echo_n "checking for $ac_word... " >&6; }
18385 if ${ac_cv_path_COMM+:} false; then :
18386   $as_echo_n "(cached) " >&6
18387 else
18388   case $COMM in
18389   [\\/]* | ?:[\\/]*)
18390   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18391   ;;
18392   *)
18393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18394 for as_dir in $PATH
18395 do
18396   IFS=$as_save_IFS
18397   test -z "$as_dir" && as_dir=.
18398     for ac_exec_ext in '' $ac_executable_extensions; do
18399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18400     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18402     break 2
18403   fi
18404 done
18405   done
18406 IFS=$as_save_IFS
18407 
18408   ;;
18409 esac
18410 fi
18411 COMM=$ac_cv_path_COMM
18412 if test -n "$COMM"; then
18413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18414 $as_echo "$COMM" >&6; }
18415 else
18416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417 $as_echo "no" >&6; }
18418 fi
18419 
18420 
18421   test -n "$COMM" && break
18422 done
18423 
18424   else
18425     # The variable is set, but is it from the command line or the environment?
18426 
18427     # Try to remove the string !COMM! from our list.
18428     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18429     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18430       # If it failed, the variable was not from the command line. Ignore it,
18431       # but warn the user (except for BASH, which is always set by the calling BASH).
18432       if test "xCOMM" != xBASH; then
18433         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18434 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18435       fi
18436       # Try to locate tool using the code snippet
18437       for ac_prog in comm
18438 do
18439   # Extract the first word of "$ac_prog", so it can be a program name with args.
18440 set dummy $ac_prog; ac_word=$2
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18442 $as_echo_n "checking for $ac_word... " >&6; }
18443 if ${ac_cv_path_COMM+:} false; then :
18444   $as_echo_n "(cached) " >&6
18445 else
18446   case $COMM in
18447   [\\/]* | ?:[\\/]*)
18448   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18449   ;;
18450   *)
18451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18452 for as_dir in $PATH
18453 do
18454   IFS=$as_save_IFS
18455   test -z "$as_dir" && as_dir=.
18456     for ac_exec_ext in '' $ac_executable_extensions; do
18457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18458     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18460     break 2
18461   fi
18462 done
18463   done
18464 IFS=$as_save_IFS
18465 
18466   ;;
18467 esac
18468 fi
18469 COMM=$ac_cv_path_COMM
18470 if test -n "$COMM"; then
18471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18472 $as_echo "$COMM" >&6; }
18473 else
18474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18475 $as_echo "no" >&6; }
18476 fi
18477 
18478 
18479   test -n "$COMM" && break
18480 done
18481 
18482     else
18483       # If it succeeded, then it was overridden by the user. We will use it
18484       # for the tool.
18485 
18486       # First remove it from the list of overridden variables, so we can test
18487       # for unknown variables in the end.
18488       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18489 
18490       # Check if the provided tool contains a complete path.
18491       tool_specified="$COMM"
18492       tool_basename="${tool_specified##*/}"
18493       if test "x$tool_basename" = "x$tool_specified"; then
18494         # A command without a complete path is provided, search $PATH.
18495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18496 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18497         # Extract the first word of "$tool_basename", so it can be a program name with args.
18498 set dummy $tool_basename; ac_word=$2
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18500 $as_echo_n "checking for $ac_word... " >&6; }
18501 if ${ac_cv_path_COMM+:} false; then :
18502   $as_echo_n "(cached) " >&6
18503 else
18504   case $COMM in
18505   [\\/]* | ?:[\\/]*)
18506   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18507   ;;
18508   *)
18509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18510 for as_dir in $PATH
18511 do
18512   IFS=$as_save_IFS
18513   test -z "$as_dir" && as_dir=.
18514     for ac_exec_ext in '' $ac_executable_extensions; do
18515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18516     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18518     break 2
18519   fi
18520 done
18521   done
18522 IFS=$as_save_IFS
18523 
18524   ;;
18525 esac
18526 fi
18527 COMM=$ac_cv_path_COMM
18528 if test -n "$COMM"; then
18529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18530 $as_echo "$COMM" >&6; }
18531 else
18532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18533 $as_echo "no" >&6; }
18534 fi
18535 
18536 
18537         if test "x$COMM" = x; then
18538           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18539         fi
18540       else
18541         # Otherwise we believe it is a complete path. Use it as it is.
18542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18543 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18544         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18545 $as_echo_n "checking for COMM... " >&6; }
18546         if test ! -x "$tool_specified"; then
18547           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18548 $as_echo "not found" >&6; }
18549           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18550         fi
18551         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18552 $as_echo "$tool_specified" >&6; }
18553       fi
18554     fi
18555   fi
18556 
18557 
18558 
18559   if test "x$COMM" = x; then
18560     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18561   fi
18562 
18563 
18564   fi
18565 
18566   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18567 
18568 
18569 
18570   # Publish this variable in the help.
18571 
18572 
18573   if test "x$DSYMUTIL" = x; then
18574     # The variable is not set by user, try to locate tool using the code snippet
18575     for ac_prog in dsymutil
18576 do
18577   # Extract the first word of "$ac_prog", so it can be a program name with args.
18578 set dummy $ac_prog; ac_word=$2
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18580 $as_echo_n "checking for $ac_word... " >&6; }
18581 if ${ac_cv_path_DSYMUTIL+:} false; then :
18582   $as_echo_n "(cached) " >&6
18583 else
18584   case $DSYMUTIL in
18585   [\\/]* | ?:[\\/]*)
18586   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18587   ;;
18588   *)
18589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18590 for as_dir in $PATH
18591 do
18592   IFS=$as_save_IFS
18593   test -z "$as_dir" && as_dir=.
18594     for ac_exec_ext in '' $ac_executable_extensions; do
18595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18596     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18598     break 2
18599   fi
18600 done
18601   done
18602 IFS=$as_save_IFS
18603 
18604   ;;
18605 esac
18606 fi
18607 DSYMUTIL=$ac_cv_path_DSYMUTIL
18608 if test -n "$DSYMUTIL"; then
18609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18610 $as_echo "$DSYMUTIL" >&6; }
18611 else
18612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18613 $as_echo "no" >&6; }
18614 fi
18615 
18616 
18617   test -n "$DSYMUTIL" && break
18618 done
18619 
18620   else
18621     # The variable is set, but is it from the command line or the environment?
18622 
18623     # Try to remove the string !DSYMUTIL! from our list.
18624     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18625     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18626       # If it failed, the variable was not from the command line. Ignore it,
18627       # but warn the user (except for BASH, which is always set by the calling BASH).
18628       if test "xDSYMUTIL" != xBASH; then
18629         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18630 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18631       fi
18632       # Try to locate tool using the code snippet
18633       for ac_prog in dsymutil
18634 do
18635   # Extract the first word of "$ac_prog", so it can be a program name with args.
18636 set dummy $ac_prog; ac_word=$2
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18638 $as_echo_n "checking for $ac_word... " >&6; }
18639 if ${ac_cv_path_DSYMUTIL+:} false; then :
18640   $as_echo_n "(cached) " >&6
18641 else
18642   case $DSYMUTIL in
18643   [\\/]* | ?:[\\/]*)
18644   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18645   ;;
18646   *)
18647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18648 for as_dir in $PATH
18649 do
18650   IFS=$as_save_IFS
18651   test -z "$as_dir" && as_dir=.
18652     for ac_exec_ext in '' $ac_executable_extensions; do
18653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18654     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18656     break 2
18657   fi
18658 done
18659   done
18660 IFS=$as_save_IFS
18661 
18662   ;;
18663 esac
18664 fi
18665 DSYMUTIL=$ac_cv_path_DSYMUTIL
18666 if test -n "$DSYMUTIL"; then
18667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18668 $as_echo "$DSYMUTIL" >&6; }
18669 else
18670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18671 $as_echo "no" >&6; }
18672 fi
18673 
18674 
18675   test -n "$DSYMUTIL" && break
18676 done
18677 
18678     else
18679       # If it succeeded, then it was overridden by the user. We will use it
18680       # for the tool.
18681 
18682       # First remove it from the list of overridden variables, so we can test
18683       # for unknown variables in the end.
18684       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18685 
18686       # Check if the provided tool contains a complete path.
18687       tool_specified="$DSYMUTIL"
18688       tool_basename="${tool_specified##*/}"
18689       if test "x$tool_basename" = "x$tool_specified"; then
18690         # A command without a complete path is provided, search $PATH.
18691         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18692 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18693         # Extract the first word of "$tool_basename", so it can be a program name with args.
18694 set dummy $tool_basename; ac_word=$2
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18696 $as_echo_n "checking for $ac_word... " >&6; }
18697 if ${ac_cv_path_DSYMUTIL+:} false; then :
18698   $as_echo_n "(cached) " >&6
18699 else
18700   case $DSYMUTIL in
18701   [\\/]* | ?:[\\/]*)
18702   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18703   ;;
18704   *)
18705   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706 for as_dir in $PATH
18707 do
18708   IFS=$as_save_IFS
18709   test -z "$as_dir" && as_dir=.
18710     for ac_exec_ext in '' $ac_executable_extensions; do
18711   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18714     break 2
18715   fi
18716 done
18717   done
18718 IFS=$as_save_IFS
18719 
18720   ;;
18721 esac
18722 fi
18723 DSYMUTIL=$ac_cv_path_DSYMUTIL
18724 if test -n "$DSYMUTIL"; then
18725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18726 $as_echo "$DSYMUTIL" >&6; }
18727 else
18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730 fi
18731 
18732 
18733         if test "x$DSYMUTIL" = x; then
18734           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18735         fi
18736       else
18737         # Otherwise we believe it is a complete path. Use it as it is.
18738         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18739 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18741 $as_echo_n "checking for DSYMUTIL... " >&6; }
18742         if test ! -x "$tool_specified"; then
18743           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18744 $as_echo "not found" >&6; }
18745           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18746         fi
18747         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18748 $as_echo "$tool_specified" >&6; }
18749       fi
18750     fi
18751   fi
18752 
18753 
18754 
18755   if test "x$DSYMUTIL" = x; then
18756     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18757   fi
18758 
18759 
18760 
18761 
18762 
18763   # Publish this variable in the help.
18764 
18765 
18766   if test "x$XATTR" = x; then
18767     # The variable is not set by user, try to locate tool using the code snippet
18768     for ac_prog in xattr
18769 do
18770   # Extract the first word of "$ac_prog", so it can be a program name with args.
18771 set dummy $ac_prog; ac_word=$2
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18773 $as_echo_n "checking for $ac_word... " >&6; }
18774 if ${ac_cv_path_XATTR+:} false; then :
18775   $as_echo_n "(cached) " >&6
18776 else
18777   case $XATTR in
18778   [\\/]* | ?:[\\/]*)
18779   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18780   ;;
18781   *)
18782   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18784 do
18785   IFS=$as_save_IFS
18786   test -z "$as_dir" && as_dir=.
18787     for ac_exec_ext in '' $ac_executable_extensions; do
18788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18791     break 2
18792   fi
18793 done
18794   done
18795 IFS=$as_save_IFS
18796 
18797   ;;
18798 esac
18799 fi
18800 XATTR=$ac_cv_path_XATTR
18801 if test -n "$XATTR"; then
18802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18803 $as_echo "$XATTR" >&6; }
18804 else
18805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18806 $as_echo "no" >&6; }
18807 fi
18808 
18809 
18810   test -n "$XATTR" && break
18811 done
18812 
18813   else
18814     # The variable is set, but is it from the command line or the environment?
18815 
18816     # Try to remove the string !XATTR! from our list.
18817     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18818     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18819       # If it failed, the variable was not from the command line. Ignore it,
18820       # but warn the user (except for BASH, which is always set by the calling BASH).
18821       if test "xXATTR" != xBASH; then
18822         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18823 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18824       fi
18825       # Try to locate tool using the code snippet
18826       for ac_prog in xattr
18827 do
18828   # Extract the first word of "$ac_prog", so it can be a program name with args.
18829 set dummy $ac_prog; ac_word=$2
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18831 $as_echo_n "checking for $ac_word... " >&6; }
18832 if ${ac_cv_path_XATTR+:} false; then :
18833   $as_echo_n "(cached) " >&6
18834 else
18835   case $XATTR in
18836   [\\/]* | ?:[\\/]*)
18837   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18838   ;;
18839   *)
18840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18841 for as_dir in $PATH
18842 do
18843   IFS=$as_save_IFS
18844   test -z "$as_dir" && as_dir=.
18845     for ac_exec_ext in '' $ac_executable_extensions; do
18846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18847     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18849     break 2
18850   fi
18851 done
18852   done
18853 IFS=$as_save_IFS
18854 
18855   ;;
18856 esac
18857 fi
18858 XATTR=$ac_cv_path_XATTR
18859 if test -n "$XATTR"; then
18860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18861 $as_echo "$XATTR" >&6; }
18862 else
18863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18865 fi
18866 
18867 
18868   test -n "$XATTR" && break
18869 done
18870 
18871     else
18872       # If it succeeded, then it was overridden by the user. We will use it
18873       # for the tool.
18874 
18875       # First remove it from the list of overridden variables, so we can test
18876       # for unknown variables in the end.
18877       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18878 
18879       # Check if the provided tool contains a complete path.
18880       tool_specified="$XATTR"
18881       tool_basename="${tool_specified##*/}"
18882       if test "x$tool_basename" = "x$tool_specified"; then
18883         # A command without a complete path is provided, search $PATH.
18884         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18885 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18886         # Extract the first word of "$tool_basename", so it can be a program name with args.
18887 set dummy $tool_basename; ac_word=$2
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18889 $as_echo_n "checking for $ac_word... " >&6; }
18890 if ${ac_cv_path_XATTR+:} false; then :
18891   $as_echo_n "(cached) " >&6
18892 else
18893   case $XATTR in
18894   [\\/]* | ?:[\\/]*)
18895   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18896   ;;
18897   *)
18898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18899 for as_dir in $PATH
18900 do
18901   IFS=$as_save_IFS
18902   test -z "$as_dir" && as_dir=.
18903     for ac_exec_ext in '' $ac_executable_extensions; do
18904   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18905     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18907     break 2
18908   fi
18909 done
18910   done
18911 IFS=$as_save_IFS
18912 
18913   ;;
18914 esac
18915 fi
18916 XATTR=$ac_cv_path_XATTR
18917 if test -n "$XATTR"; then
18918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18919 $as_echo "$XATTR" >&6; }
18920 else
18921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18922 $as_echo "no" >&6; }
18923 fi
18924 
18925 
18926         if test "x$XATTR" = x; then
18927           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18928         fi
18929       else
18930         # Otherwise we believe it is a complete path. Use it as it is.
18931         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18932 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18933         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18934 $as_echo_n "checking for XATTR... " >&6; }
18935         if test ! -x "$tool_specified"; then
18936           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18937 $as_echo "not found" >&6; }
18938           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18939         fi
18940         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18941 $as_echo "$tool_specified" >&6; }
18942       fi
18943     fi
18944   fi
18945 
18946 
18947 
18948   if test "x$XATTR" = x; then
18949     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18950   fi
18951 
18952 
18953 
18954 
18955   # Publish this variable in the help.
18956 
18957 
18958   if test "x$CODESIGN" = x; then
18959     # The variable is not set by user, try to locate tool using the code snippet
18960     for ac_prog in codesign
18961 do
18962   # Extract the first word of "$ac_prog", so it can be a program name with args.
18963 set dummy $ac_prog; ac_word=$2
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18965 $as_echo_n "checking for $ac_word... " >&6; }
18966 if ${ac_cv_path_CODESIGN+:} false; then :
18967   $as_echo_n "(cached) " >&6
18968 else
18969   case $CODESIGN in
18970   [\\/]* | ?:[\\/]*)
18971   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18972   ;;
18973   *)
18974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18975 for as_dir in $PATH
18976 do
18977   IFS=$as_save_IFS
18978   test -z "$as_dir" && as_dir=.
18979     for ac_exec_ext in '' $ac_executable_extensions; do
18980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18981     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18983     break 2
18984   fi
18985 done
18986   done
18987 IFS=$as_save_IFS
18988 
18989   ;;
18990 esac
18991 fi
18992 CODESIGN=$ac_cv_path_CODESIGN
18993 if test -n "$CODESIGN"; then
18994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18995 $as_echo "$CODESIGN" >&6; }
18996 else
18997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18998 $as_echo "no" >&6; }
18999 fi
19000 
19001 
19002   test -n "$CODESIGN" && break
19003 done
19004 
19005   else
19006     # The variable is set, but is it from the command line or the environment?
19007 
19008     # Try to remove the string !CODESIGN! from our list.
19009     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19010     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19011       # If it failed, the variable was not from the command line. Ignore it,
19012       # but warn the user (except for BASH, which is always set by the calling BASH).
19013       if test "xCODESIGN" != xBASH; then
19014         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19015 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19016       fi
19017       # Try to locate tool using the code snippet
19018       for ac_prog in codesign
19019 do
19020   # Extract the first word of "$ac_prog", so it can be a program name with args.
19021 set dummy $ac_prog; ac_word=$2
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19023 $as_echo_n "checking for $ac_word... " >&6; }
19024 if ${ac_cv_path_CODESIGN+:} false; then :
19025   $as_echo_n "(cached) " >&6
19026 else
19027   case $CODESIGN in
19028   [\\/]* | ?:[\\/]*)
19029   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19030   ;;
19031   *)
19032   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19033 for as_dir in $PATH
19034 do
19035   IFS=$as_save_IFS
19036   test -z "$as_dir" && as_dir=.
19037     for ac_exec_ext in '' $ac_executable_extensions; do
19038   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19039     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19040     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19041     break 2
19042   fi
19043 done
19044   done
19045 IFS=$as_save_IFS
19046 
19047   ;;
19048 esac
19049 fi
19050 CODESIGN=$ac_cv_path_CODESIGN
19051 if test -n "$CODESIGN"; then
19052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19053 $as_echo "$CODESIGN" >&6; }
19054 else
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19056 $as_echo "no" >&6; }
19057 fi
19058 
19059 
19060   test -n "$CODESIGN" && break
19061 done
19062 
19063     else
19064       # If it succeeded, then it was overridden by the user. We will use it
19065       # for the tool.
19066 
19067       # First remove it from the list of overridden variables, so we can test
19068       # for unknown variables in the end.
19069       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19070 
19071       # Check if the provided tool contains a complete path.
19072       tool_specified="$CODESIGN"
19073       tool_basename="${tool_specified##*/}"
19074       if test "x$tool_basename" = "x$tool_specified"; then
19075         # A command without a complete path is provided, search $PATH.
19076         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19077 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19078         # Extract the first word of "$tool_basename", so it can be a program name with args.
19079 set dummy $tool_basename; ac_word=$2
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19081 $as_echo_n "checking for $ac_word... " >&6; }
19082 if ${ac_cv_path_CODESIGN+:} false; then :
19083   $as_echo_n "(cached) " >&6
19084 else
19085   case $CODESIGN in
19086   [\\/]* | ?:[\\/]*)
19087   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19088   ;;
19089   *)
19090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19091 for as_dir in $PATH
19092 do
19093   IFS=$as_save_IFS
19094   test -z "$as_dir" && as_dir=.
19095     for ac_exec_ext in '' $ac_executable_extensions; do
19096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19097     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19099     break 2
19100   fi
19101 done
19102   done
19103 IFS=$as_save_IFS
19104 
19105   ;;
19106 esac
19107 fi
19108 CODESIGN=$ac_cv_path_CODESIGN
19109 if test -n "$CODESIGN"; then
19110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19111 $as_echo "$CODESIGN" >&6; }
19112 else
19113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19114 $as_echo "no" >&6; }
19115 fi
19116 
19117 
19118         if test "x$CODESIGN" = x; then
19119           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19120         fi
19121       else
19122         # Otherwise we believe it is a complete path. Use it as it is.
19123         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19124 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19125         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19126 $as_echo_n "checking for CODESIGN... " >&6; }
19127         if test ! -x "$tool_specified"; then
19128           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19129 $as_echo "not found" >&6; }
19130           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19131         fi
19132         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19133 $as_echo "$tool_specified" >&6; }
19134       fi
19135     fi
19136   fi
19137 
19138 
19139     if test "x$CODESIGN" != "x"; then
19140       # Verify that the openjdk_codesign certificate is present
19141       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19142 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19143       rm -f codesign-testfile
19144       touch codesign-testfile
19145       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19146       rm -f codesign-testfile
19147       if test "x$CODESIGN" = x; then
19148         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19150       else
19151         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19152 $as_echo "yes" >&6; }
19153       fi
19154     fi
19155   fi
19156 
19157 
19158 # Check if pkg-config is available.
19159 
19160 
19161 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19162         if test -n "$ac_tool_prefix"; then
19163   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19164 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19166 $as_echo_n "checking for $ac_word... " >&6; }
19167 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19168   $as_echo_n "(cached) " >&6
19169 else
19170   case $PKG_CONFIG in
19171   [\\/]* | ?:[\\/]*)
19172   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19173   ;;
19174   *)
19175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19176 for as_dir in $PATH
19177 do
19178   IFS=$as_save_IFS
19179   test -z "$as_dir" && as_dir=.
19180     for ac_exec_ext in '' $ac_executable_extensions; do
19181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19182     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19184     break 2
19185   fi
19186 done
19187   done
19188 IFS=$as_save_IFS
19189 
19190   ;;
19191 esac
19192 fi
19193 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19194 if test -n "$PKG_CONFIG"; then
19195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19196 $as_echo "$PKG_CONFIG" >&6; }
19197 else
19198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19199 $as_echo "no" >&6; }
19200 fi
19201 
19202 
19203 fi
19204 if test -z "$ac_cv_path_PKG_CONFIG"; then
19205   ac_pt_PKG_CONFIG=$PKG_CONFIG
19206   # Extract the first word of "pkg-config", so it can be a program name with args.
19207 set dummy pkg-config; ac_word=$2
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19209 $as_echo_n "checking for $ac_word... " >&6; }
19210 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19211   $as_echo_n "(cached) " >&6
19212 else
19213   case $ac_pt_PKG_CONFIG in
19214   [\\/]* | ?:[\\/]*)
19215   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19216   ;;
19217   *)
19218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19220 do
19221   IFS=$as_save_IFS
19222   test -z "$as_dir" && as_dir=.
19223     for ac_exec_ext in '' $ac_executable_extensions; do
19224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19225     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19227     break 2
19228   fi
19229 done
19230   done
19231 IFS=$as_save_IFS
19232 
19233   ;;
19234 esac
19235 fi
19236 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19237 if test -n "$ac_pt_PKG_CONFIG"; then
19238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19239 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19240 else
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19243 fi
19244 
19245   if test "x$ac_pt_PKG_CONFIG" = x; then
19246     PKG_CONFIG=""
19247   else
19248     case $cross_compiling:$ac_tool_warned in
19249 yes:)
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19252 ac_tool_warned=yes ;;
19253 esac
19254     PKG_CONFIG=$ac_pt_PKG_CONFIG
19255   fi
19256 else
19257   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19258 fi
19259 
19260 fi
19261 if test -n "$PKG_CONFIG"; then
19262         _pkg_min_version=0.9.0
19263         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19264 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19265         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19266                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19267 $as_echo "yes" >&6; }
19268         else
19269                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19270 $as_echo "no" >&6; }
19271                 PKG_CONFIG=""
19272         fi
19273 
19274 fi
19275 
19276 # After basic tools have been setup, we can check build os specific details.
19277 
19278   ###############################################################################
19279 
19280   # Note that this is the build platform OS version!
19281 
19282   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19283   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19284   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19285   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19286 
19287 
19288 
19289 
19290 
19291 # Setup builddeps, for automatic downloading of tools we need.
19292 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19293 # boot-jdk setup, but we need to have basic tools setup first.
19294 
19295 
19296 # Check whether --with-builddeps-conf was given.
19297 if test "${with_builddeps_conf+set}" = set; then :
19298   withval=$with_builddeps_conf;
19299 fi
19300 
19301 
19302 
19303 # Check whether --with-builddeps-server was given.
19304 if test "${with_builddeps_server+set}" = set; then :
19305   withval=$with_builddeps_server;
19306 fi
19307 
19308 
19309 
19310 # Check whether --with-builddeps-dir was given.
19311 if test "${with_builddeps_dir+set}" = set; then :
19312   withval=$with_builddeps_dir;
19313 else
19314   with_builddeps_dir=/localhome/builddeps
19315 fi
19316 
19317 
19318 
19319 # Check whether --with-builddeps-group was given.
19320 if test "${with_builddeps_group+set}" = set; then :
19321   withval=$with_builddeps_group;
19322 fi
19323 
19324 
19325 
19326 
19327   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19328     if test "x$with_builddeps_conf" != x; then
19329       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19330 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19331       builddepsfile=$with_builddeps_conf
19332       if test -s $builddepsfile; then
19333         . $builddepsfile
19334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19335 $as_echo "loaded!" >&6; }
19336       else
19337         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19338       fi
19339     else
19340       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19341 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19342       builddepsfile=`mktemp`
19343       touch $builddepsfile
19344       # Put all found confs into a single file.
19345       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19346       # Source the file to acquire the variables
19347       if test -s $builddepsfile; then
19348         . $builddepsfile
19349         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19350 $as_echo "found at least one!" >&6; }
19351       else
19352         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19353       fi
19354     fi
19355     # Create build and target names that use _ instead of "-" and ".".
19356     # This is necessary to use them in variable names.
19357     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19358     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19359     # Extract rewrite information for build and target
19360     eval rewritten_build=\${REWRITE_${build_var}}
19361     if test "x$rewritten_build" = x; then
19362       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19363       echo Build stays the same $rewritten_build
19364     else
19365       echo Rewriting build for builddeps into $rewritten_build
19366     fi
19367     eval rewritten_target=\${REWRITE_${target_var}}
19368     if test "x$rewritten_target" = x; then
19369       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19370       echo Target stays the same $rewritten_target
19371     else
19372       echo Rewriting target for builddeps into $rewritten_target
19373     fi
19374     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19375     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19376   fi
19377   for ac_prog in 7z unzip
19378 do
19379   # Extract the first word of "$ac_prog", so it can be a program name with args.
19380 set dummy $ac_prog; ac_word=$2
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19382 $as_echo_n "checking for $ac_word... " >&6; }
19383 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19384   $as_echo_n "(cached) " >&6
19385 else
19386   if test -n "$BDEPS_UNZIP"; then
19387   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19388 else
19389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19390 for as_dir in $PATH
19391 do
19392   IFS=$as_save_IFS
19393   test -z "$as_dir" && as_dir=.
19394     for ac_exec_ext in '' $ac_executable_extensions; do
19395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19396     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19398     break 2
19399   fi
19400 done
19401   done
19402 IFS=$as_save_IFS
19403 
19404 fi
19405 fi
19406 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19407 if test -n "$BDEPS_UNZIP"; then
19408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19409 $as_echo "$BDEPS_UNZIP" >&6; }
19410 else
19411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19412 $as_echo "no" >&6; }
19413 fi
19414 
19415 
19416   test -n "$BDEPS_UNZIP" && break
19417 done
19418 
19419   if test "x$BDEPS_UNZIP" = x7z; then
19420     BDEPS_UNZIP="7z x"
19421   fi
19422 
19423   for ac_prog in wget lftp ftp
19424 do
19425   # Extract the first word of "$ac_prog", so it can be a program name with args.
19426 set dummy $ac_prog; ac_word=$2
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19428 $as_echo_n "checking for $ac_word... " >&6; }
19429 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19430   $as_echo_n "(cached) " >&6
19431 else
19432   if test -n "$BDEPS_FTP"; then
19433   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19434 else
19435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19436 for as_dir in $PATH
19437 do
19438   IFS=$as_save_IFS
19439   test -z "$as_dir" && as_dir=.
19440     for ac_exec_ext in '' $ac_executable_extensions; do
19441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19442     ac_cv_prog_BDEPS_FTP="$ac_prog"
19443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19444     break 2
19445   fi
19446 done
19447   done
19448 IFS=$as_save_IFS
19449 
19450 fi
19451 fi
19452 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19453 if test -n "$BDEPS_FTP"; then
19454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19455 $as_echo "$BDEPS_FTP" >&6; }
19456 else
19457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19458 $as_echo "no" >&6; }
19459 fi
19460 
19461 
19462   test -n "$BDEPS_FTP" && break
19463 done
19464 
19465 
19466 
19467 ###############################################################################
19468 #
19469 # Determine OpenJDK variants, options and version numbers.
19470 #
19471 ###############################################################################
19472 
19473 # We need build & target for this.
19474 
19475 
19476   ###############################################################################
19477   #
19478   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19479   # We always build headless support.
19480   #
19481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19482 $as_echo_n "checking headful support... " >&6; }
19483   # Check whether --enable-headful was given.
19484 if test "${enable_headful+set}" = set; then :
19485   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19486 else
19487   SUPPORT_HEADFUL=yes
19488 fi
19489 
19490 
19491   SUPPORT_HEADLESS=yes
19492   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19493 
19494   if test "x$SUPPORT_HEADFUL" = xyes; then
19495     # We are building both headful and headless.
19496     headful_msg="include support for both headful and headless"
19497   fi
19498 
19499   if test "x$SUPPORT_HEADFUL" = xno; then
19500     # Thus we are building headless only.
19501     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19502     headful_msg="headless only"
19503   fi
19504 
19505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19506 $as_echo "$headful_msg" >&6; }
19507 
19508 
19509 
19510 
19511 
19512   # Control wether Hotspot runs Queens test after build.
19513   # Check whether --enable-hotspot-test-in-build was given.
19514 if test "${enable_hotspot_test_in_build+set}" = set; then :
19515   enableval=$enable_hotspot_test_in_build;
19516 else
19517   enable_hotspot_test_in_build=no
19518 fi
19519 
19520   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19521     TEST_IN_BUILD=true
19522   else
19523     TEST_IN_BUILD=false
19524   fi
19525 
19526 
19527   ###############################################################################
19528   #
19529   # Choose cacerts source file
19530   #
19531 
19532 # Check whether --with-cacerts-file was given.
19533 if test "${with_cacerts_file+set}" = set; then :
19534   withval=$with_cacerts_file;
19535 fi
19536 
19537   if test "x$with_cacerts_file" != x; then
19538     CACERTS_FILE=$with_cacerts_file
19539   else
19540     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19541   fi
19542 
19543 
19544   ###############################################################################
19545   #
19546   # Enable or disable unlimited crypto
19547   #
19548   # Check whether --enable-unlimited-crypto was given.
19549 if test "${enable_unlimited_crypto+set}" = set; then :
19550   enableval=$enable_unlimited_crypto;
19551 else
19552   enable_unlimited_crypto=no
19553 fi
19554 
19555   if test "x$enable_unlimited_crypto" = "xyes"; then
19556     UNLIMITED_CRYPTO=true
19557   else
19558     UNLIMITED_CRYPTO=false
19559   fi
19560 
19561 
19562   ###############################################################################
19563   #
19564   # Enable or disable the elliptic curve crypto implementation
19565   #
19566 
19567 
19568   ###############################################################################
19569   #
19570   # --enable-rmiconnector-iiop
19571   #
19572   # Check whether --enable-rmiconnector-iiop was given.
19573 if test "${enable_rmiconnector_iiop+set}" = set; then :
19574   enableval=$enable_rmiconnector_iiop;
19575 fi
19576 
19577   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19578     RMICONNECTOR_IIOP=true
19579   else
19580     RMICONNECTOR_IIOP=false
19581   fi
19582 
19583 
19584   ###############################################################################
19585   #
19586   # Compress jars
19587   #
19588   COMPRESS_JARS=false
19589 
19590 
19591 
19592 
19593   # Source the version numbers
19594   . $AUTOCONF_DIR/version-numbers
19595 
19596   # Get the settings from parameters
19597 
19598 # Check whether --with-milestone was given.
19599 if test "${with_milestone+set}" = set; then :
19600   withval=$with_milestone;
19601 fi
19602 
19603   if test "x$with_milestone" = xyes; then
19604     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19605   elif test "x$with_milestone" != x; then
19606     MILESTONE="$with_milestone"
19607   fi
19608   if test "x$MILESTONE" = x; then
19609     MILESTONE=internal
19610   fi
19611 
19612 
19613 # Check whether --with-update-version was given.
19614 if test "${with_update_version+set}" = set; then :
19615   withval=$with_update_version;
19616 fi
19617 
19618   if test "x$with_update_version" = xyes; then
19619     as_fn_error $? "Update version must have a value" "$LINENO" 5
19620   elif test "x$with_update_version" != x; then
19621     JDK_UPDATE_VERSION="$with_update_version"
19622     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19623     # to a bug in expr (which reduces it to just X). To work around this, we
19624     # always add a 0 to one digit update versions.
19625     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19626       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19627     fi
19628   fi
19629 
19630 
19631 # Check whether --with-user-release-suffix was given.
19632 if test "${with_user_release_suffix+set}" = set; then :
19633   withval=$with_user_release_suffix;
19634 fi
19635 
19636   if test "x$with_user_release_suffix" = xyes; then
19637     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19638   elif test "x$with_user_release_suffix" != x; then
19639     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19640   fi
19641 
19642 
19643 # Check whether --with-build-number was given.
19644 if test "${with_build_number+set}" = set; then :
19645   withval=$with_build_number;
19646 fi
19647 
19648   if test "x$with_build_number" = xyes; then
19649     as_fn_error $? "Build number must have a value" "$LINENO" 5
19650   elif test "x$with_build_number" != x; then
19651     JDK_BUILD_NUMBER="$with_build_number"
19652   fi
19653   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19654   if test "x$JDK_BUILD_NUMBER" = x; then
19655     JDK_BUILD_NUMBER=b00
19656     if test "x$USER_RELEASE_SUFFIX" = x; then
19657       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19658       # Avoid [:alnum:] since it depends on the locale.
19659       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19660       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19661     fi
19662   fi
19663 
19664   # Now set the JDK version, milestone, build number etc.
19665 
19666 
19667 
19668 
19669 
19670 
19671 
19672 
19673 
19674 
19675 
19676 
19677 
19678 
19679 
19680   COPYRIGHT_YEAR=`date +'%Y'`
19681 
19682 
19683   if test "x$JDK_UPDATE_VERSION" != x; then
19684     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19685   else
19686     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19687   fi
19688 
19689 
19690   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19691 
19692 
19693 
19694 ###############################################################################
19695 #
19696 # Setup BootJDK, used to bootstrap the build.
19697 #
19698 ###############################################################################
19699 
19700 
19701   BOOT_JDK_FOUND=no
19702 
19703 # Check whether --with-boot-jdk was given.
19704 if test "${with_boot_jdk+set}" = set; then :
19705   withval=$with_boot_jdk;
19706 fi
19707 
19708 
19709   # We look for the Boot JDK through various means, going from more certain to
19710   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19711   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19712   # must check if this is indeed valid; otherwise we'll continue looking.
19713 
19714   # Test: Is bootjdk explicitely set by command line arguments?
19715 
19716   if test "x$BOOT_JDK_FOUND" = xno; then
19717     # Now execute the test
19718 
19719   if test "x$with_boot_jdk" != x; then
19720     BOOT_JDK=$with_boot_jdk
19721     BOOT_JDK_FOUND=maybe
19722     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19723 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19724   fi
19725 
19726 
19727     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19728     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19729       # Do we have a bin/java?
19730       if test ! -x "$BOOT_JDK/bin/java"; then
19731         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19732 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19733         BOOT_JDK_FOUND=no
19734       else
19735         # Do we have a bin/javac?
19736         if test ! -x "$BOOT_JDK/bin/javac"; then
19737           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19739           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19740 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19741           BOOT_JDK_FOUND=no
19742         else
19743           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19744           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19745             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19746 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19747             BOOT_JDK_FOUND=no
19748           else
19749             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19750             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19751 
19752             # Extra M4 quote needed to protect [] in grep expression.
19753             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19754             if test "x$FOUND_CORRECT_VERSION" = x; then
19755               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19756 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19757               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19758 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19759               BOOT_JDK_FOUND=no
19760             else
19761               # We're done! :-)
19762               BOOT_JDK_FOUND=yes
19763 
19764   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19765 
19766   # Input might be given as Windows format, start by converting to
19767   # unix format.
19768   path="$BOOT_JDK"
19769   new_path=`$CYGPATH -u "$path"`
19770 
19771   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19772   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19773   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19774   # "foo.exe" is OK but "foo" is an error.
19775   #
19776   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19777   # It is also a way to make sure we got the proper file name for the real test later on.
19778   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19779   if test "x$test_shortpath" = x; then
19780     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19781 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19782     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19783   fi
19784 
19785   # Call helper function which possibly converts this using DOS-style short mode.
19786   # If so, the updated path is stored in $new_path.
19787 
19788   input_path="$new_path"
19789   # Check if we need to convert this using DOS-style short mode. If the path
19790   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19791   # take no chances and rewrite it.
19792   # Note: m4 eats our [], so we need to use [ and ] instead.
19793   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19794   if test "x$has_forbidden_chars" != x; then
19795     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19796     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19797     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19798     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19799       # Going to short mode and back again did indeed matter. Since short mode is
19800       # case insensitive, let's make it lowercase to improve readability.
19801       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19802       # Now convert it back to Unix-stile (cygpath)
19803       input_path=`$CYGPATH -u "$shortmode_path"`
19804       new_path="$input_path"
19805     fi
19806   fi
19807 
19808   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19809   if test "x$test_cygdrive_prefix" = x; then
19810     # As a simple fix, exclude /usr/bin since it's not a real path.
19811     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19812       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19813       # a path prefixed by /cygdrive for fixpath to work.
19814       new_path="$CYGWIN_ROOT_PATH$input_path"
19815     fi
19816   fi
19817 
19818 
19819   if test "x$path" != "x$new_path"; then
19820     BOOT_JDK="$new_path"
19821     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19822 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19823   fi
19824 
19825   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19826 
19827   path="$BOOT_JDK"
19828   has_colon=`$ECHO $path | $GREP ^.:`
19829   new_path="$path"
19830   if test "x$has_colon" = x; then
19831     # Not in mixed or Windows style, start by that.
19832     new_path=`cmd //c echo $path`
19833   fi
19834 
19835 
19836   input_path="$new_path"
19837   # Check if we need to convert this using DOS-style short mode. If the path
19838   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19839   # take no chances and rewrite it.
19840   # Note: m4 eats our [], so we need to use [ and ] instead.
19841   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19842   if test "x$has_forbidden_chars" != x; then
19843     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19844     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19845   fi
19846 
19847 
19848   windows_path="$new_path"
19849   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19850     unix_path=`$CYGPATH -u "$windows_path"`
19851     new_path="$unix_path"
19852   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19853     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19854     new_path="$unix_path"
19855   fi
19856 
19857   if test "x$path" != "x$new_path"; then
19858     BOOT_JDK="$new_path"
19859     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19860 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19861   fi
19862 
19863   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19864   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19865 
19866   else
19867     # We're on a posix platform. Hooray! :)
19868     path="$BOOT_JDK"
19869     has_space=`$ECHO "$path" | $GREP " "`
19870     if test "x$has_space" != x; then
19871       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19872 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19873       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19874     fi
19875 
19876     # Use eval to expand a potential ~
19877     eval path="$path"
19878     if test ! -f "$path" && test ! -d "$path"; then
19879       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19880     fi
19881 
19882     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19883   fi
19884 
19885               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19886 $as_echo_n "checking for Boot JDK... " >&6; }
19887               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19888 $as_echo "$BOOT_JDK" >&6; }
19889               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19890 $as_echo_n "checking Boot JDK version... " >&6; }
19891               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19892               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19893 $as_echo "$BOOT_JDK_VERSION" >&6; }
19894             fi # end check jdk version
19895           fi # end check rt.jar
19896         fi # end check javac
19897       fi # end check java
19898     fi # end check boot jdk found
19899   fi
19900 
19901   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19902     # Having specified an argument which is incorrect will produce an instant failure;
19903     # we should not go on looking
19904     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19905   fi
19906 
19907   # Test: Is bootjdk available from builddeps?
19908 
19909   if test "x$BOOT_JDK_FOUND" = xno; then
19910     # Now execute the test
19911 
19912 
19913 
19914   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19915     # Source the builddeps file again, to make sure it uses the latest variables!
19916     . $builddepsfile
19917     # Look for a target and build machine specific resource!
19918     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19919     if test "x$resource" = x; then
19920       # Ok, lets instead look for a target specific resource
19921       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19922     fi
19923     if test "x$resource" = x; then
19924       # Ok, lets instead look for a build specific resource
19925       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19926     fi
19927     if test "x$resource" = x; then
19928       # Ok, lets instead look for a generic resource
19929       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19930       resource=${builddep_bootjdk}
19931     fi
19932     if test "x$resource" != x; then
19933       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19934 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19935       # If the resource in the builddeps.conf file is an existing directory,
19936       # for example /java/linux/cups
19937       if test -d ${resource}; then
19938         depdir=${resource}
19939       else
19940 
19941   # bootjdk is for example mymodule
19942   # $resource is for example libs/general/libmymod_1_2_3.zip
19943   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19944   # $with_builddeps_dir is for example /localhome/builddeps
19945   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19946   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19947   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19948   filename=`basename $resource`
19949   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19950   filebase=${filename%%.*}
19951   extension=${filename#*.}
19952   installdir=$with_builddeps_dir/$filebase
19953   if test ! -f $installdir/$filename.unpacked; then
19954     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19955 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19956     if test ! -d $installdir; then
19957       mkdir -p $installdir
19958     fi
19959     if test ! -d $installdir; then
19960       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19961     fi
19962     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19963     touch $tmpfile
19964     if test ! -f $tmpfile; then
19965       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19966     fi
19967 
19968   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19969   # $tmpfile is the local file name for the downloaded file.
19970   VALID_TOOL=no
19971   if test "x$BDEPS_FTP" = xwget; then
19972     VALID_TOOL=yes
19973     wget -O $tmpfile $with_builddeps_server/$resource
19974   fi
19975   if test "x$BDEPS_FTP" = xlftp; then
19976     VALID_TOOL=yes
19977     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19978   fi
19979   if test "x$BDEPS_FTP" = xftp; then
19980     VALID_TOOL=yes
19981     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19982     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19983     FTPUSERPWD=${FTPSERVER%%@*}
19984     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19985       FTPUSER=${userpwd%%:*}
19986       FTPPWD=${userpwd#*@}
19987       FTPSERVER=${FTPSERVER#*@}
19988     else
19989       FTPUSER=ftp
19990       FTPPWD=ftp
19991     fi
19992     # the "pass" command does not work on some
19993     # ftp clients (read ftp.exe) but if it works,
19994     # passive mode is better!
19995     ( \
19996         echo "user $FTPUSER $FTPPWD"        ; \
19997         echo "pass"                         ; \
19998         echo "bin"                          ; \
19999         echo "get $FTPPATH $tmpfile"              ; \
20000     ) | ftp -in $FTPSERVER
20001   fi
20002   if test "x$VALID_TOOL" != xyes; then
20003     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20004   fi
20005 
20006     mv $tmpfile $installdir/$filename
20007     if test ! -s $installdir/$filename; then
20008       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20009     fi
20010     case "$extension" in
20011       zip)  echo "Unzipping $installdir/$filename..."
20012         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20013         ;;
20014       tar.gz) echo "Untaring $installdir/$filename..."
20015         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20016         ;;
20017       tgz) echo "Untaring $installdir/$filename..."
20018         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20019         ;;
20020       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20021         ;;
20022     esac
20023   fi
20024   if test -f $installdir/$filename.unpacked; then
20025     depdir=$installdir
20026   fi
20027 
20028       fi
20029       # Source the builddeps file again, because in the previous command, the depdir
20030       # was updated to point at the current build dependency install directory.
20031       . $builddepsfile
20032       # Now extract variables from the builddeps.conf files.
20033       theroot=${builddep_bootjdk_ROOT}
20034       thecflags=${builddep_bootjdk_CFLAGS}
20035       thelibs=${builddep_bootjdk_LIBS}
20036       if test "x$depdir" = x; then
20037         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20038       fi
20039       BOOT_JDK=$depdir
20040       if test "x$theroot" != x; then
20041         BOOT_JDK="$theroot"
20042       fi
20043       if test "x$thecflags" != x; then
20044         BOOT_JDK_CFLAGS="$thecflags"
20045       fi
20046       if test "x$thelibs" != x; then
20047         BOOT_JDK_LIBS="$thelibs"
20048       fi
20049       BOOT_JDK_FOUND=maybe
20050       else BOOT_JDK_FOUND=no
20051 
20052     fi
20053     else BOOT_JDK_FOUND=no
20054 
20055   fi
20056 
20057 
20058 
20059     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20060     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20061       # Do we have a bin/java?
20062       if test ! -x "$BOOT_JDK/bin/java"; then
20063         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20064 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20065         BOOT_JDK_FOUND=no
20066       else
20067         # Do we have a bin/javac?
20068         if test ! -x "$BOOT_JDK/bin/javac"; then
20069           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20070 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20071           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20072 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20073           BOOT_JDK_FOUND=no
20074         else
20075           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20076           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20077             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20078 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20079             BOOT_JDK_FOUND=no
20080           else
20081             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20082             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20083 
20084             # Extra M4 quote needed to protect [] in grep expression.
20085             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20086             if test "x$FOUND_CORRECT_VERSION" = x; then
20087               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20089               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20090 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20091               BOOT_JDK_FOUND=no
20092             else
20093               # We're done! :-)
20094               BOOT_JDK_FOUND=yes
20095 
20096   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20097 
20098   # Input might be given as Windows format, start by converting to
20099   # unix format.
20100   path="$BOOT_JDK"
20101   new_path=`$CYGPATH -u "$path"`
20102 
20103   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20104   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20105   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20106   # "foo.exe" is OK but "foo" is an error.
20107   #
20108   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20109   # It is also a way to make sure we got the proper file name for the real test later on.
20110   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20111   if test "x$test_shortpath" = x; then
20112     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20113 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20114     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20115   fi
20116 
20117   # Call helper function which possibly converts this using DOS-style short mode.
20118   # If so, the updated path is stored in $new_path.
20119 
20120   input_path="$new_path"
20121   # Check if we need to convert this using DOS-style short mode. If the path
20122   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20123   # take no chances and rewrite it.
20124   # Note: m4 eats our [], so we need to use [ and ] instead.
20125   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20126   if test "x$has_forbidden_chars" != x; then
20127     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20128     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20129     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20130     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20131       # Going to short mode and back again did indeed matter. Since short mode is
20132       # case insensitive, let's make it lowercase to improve readability.
20133       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20134       # Now convert it back to Unix-stile (cygpath)
20135       input_path=`$CYGPATH -u "$shortmode_path"`
20136       new_path="$input_path"
20137     fi
20138   fi
20139 
20140   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20141   if test "x$test_cygdrive_prefix" = x; then
20142     # As a simple fix, exclude /usr/bin since it's not a real path.
20143     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20144       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20145       # a path prefixed by /cygdrive for fixpath to work.
20146       new_path="$CYGWIN_ROOT_PATH$input_path"
20147     fi
20148   fi
20149 
20150 
20151   if test "x$path" != "x$new_path"; then
20152     BOOT_JDK="$new_path"
20153     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20154 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20155   fi
20156 
20157   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20158 
20159   path="$BOOT_JDK"
20160   has_colon=`$ECHO $path | $GREP ^.:`
20161   new_path="$path"
20162   if test "x$has_colon" = x; then
20163     # Not in mixed or Windows style, start by that.
20164     new_path=`cmd //c echo $path`
20165   fi
20166 
20167 
20168   input_path="$new_path"
20169   # Check if we need to convert this using DOS-style short mode. If the path
20170   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20171   # take no chances and rewrite it.
20172   # Note: m4 eats our [], so we need to use [ and ] instead.
20173   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20174   if test "x$has_forbidden_chars" != x; then
20175     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20176     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20177   fi
20178 
20179 
20180   windows_path="$new_path"
20181   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20182     unix_path=`$CYGPATH -u "$windows_path"`
20183     new_path="$unix_path"
20184   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20185     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20186     new_path="$unix_path"
20187   fi
20188 
20189   if test "x$path" != "x$new_path"; then
20190     BOOT_JDK="$new_path"
20191     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20192 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20193   fi
20194 
20195   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20196   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20197 
20198   else
20199     # We're on a posix platform. Hooray! :)
20200     path="$BOOT_JDK"
20201     has_space=`$ECHO "$path" | $GREP " "`
20202     if test "x$has_space" != x; then
20203       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20204 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20205       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20206     fi
20207 
20208     # Use eval to expand a potential ~
20209     eval path="$path"
20210     if test ! -f "$path" && test ! -d "$path"; then
20211       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20212     fi
20213 
20214     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20215   fi
20216 
20217               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20218 $as_echo_n "checking for Boot JDK... " >&6; }
20219               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20220 $as_echo "$BOOT_JDK" >&6; }
20221               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20222 $as_echo_n "checking Boot JDK version... " >&6; }
20223               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20224               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20225 $as_echo "$BOOT_JDK_VERSION" >&6; }
20226             fi # end check jdk version
20227           fi # end check rt.jar
20228         fi # end check javac
20229       fi # end check java
20230     fi # end check boot jdk found
20231   fi
20232 
20233 
20234   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20235 
20236   if test "x$BOOT_JDK_FOUND" = xno; then
20237     # Now execute the test
20238 
20239   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20240     # First check at user selected default
20241 
20242   if test "x$BOOT_JDK_FOUND" = xno; then
20243     # Now execute the test
20244 
20245   if test -x /usr/libexec/java_home; then
20246     BOOT_JDK=`/usr/libexec/java_home `
20247     BOOT_JDK_FOUND=maybe
20248     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20249 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20250   fi
20251 
20252 
20253     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20254     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20255       # Do we have a bin/java?
20256       if test ! -x "$BOOT_JDK/bin/java"; then
20257         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20258 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20259         BOOT_JDK_FOUND=no
20260       else
20261         # Do we have a bin/javac?
20262         if test ! -x "$BOOT_JDK/bin/javac"; then
20263           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20264 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20265           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20266 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20267           BOOT_JDK_FOUND=no
20268         else
20269           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20270           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20271             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20272 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20273             BOOT_JDK_FOUND=no
20274           else
20275             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20276             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20277 
20278             # Extra M4 quote needed to protect [] in grep expression.
20279             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20280             if test "x$FOUND_CORRECT_VERSION" = x; then
20281               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20283               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20284 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20285               BOOT_JDK_FOUND=no
20286             else
20287               # We're done! :-)
20288               BOOT_JDK_FOUND=yes
20289 
20290   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20291 
20292   # Input might be given as Windows format, start by converting to
20293   # unix format.
20294   path="$BOOT_JDK"
20295   new_path=`$CYGPATH -u "$path"`
20296 
20297   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20298   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20299   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20300   # "foo.exe" is OK but "foo" is an error.
20301   #
20302   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20303   # It is also a way to make sure we got the proper file name for the real test later on.
20304   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20305   if test "x$test_shortpath" = x; then
20306     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20307 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20308     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20309   fi
20310 
20311   # Call helper function which possibly converts this using DOS-style short mode.
20312   # If so, the updated path is stored in $new_path.
20313 
20314   input_path="$new_path"
20315   # Check if we need to convert this using DOS-style short mode. If the path
20316   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20317   # take no chances and rewrite it.
20318   # Note: m4 eats our [], so we need to use [ and ] instead.
20319   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20320   if test "x$has_forbidden_chars" != x; then
20321     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20322     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20323     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20324     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20325       # Going to short mode and back again did indeed matter. Since short mode is
20326       # case insensitive, let's make it lowercase to improve readability.
20327       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20328       # Now convert it back to Unix-stile (cygpath)
20329       input_path=`$CYGPATH -u "$shortmode_path"`
20330       new_path="$input_path"
20331     fi
20332   fi
20333 
20334   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20335   if test "x$test_cygdrive_prefix" = x; then
20336     # As a simple fix, exclude /usr/bin since it's not a real path.
20337     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20338       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20339       # a path prefixed by /cygdrive for fixpath to work.
20340       new_path="$CYGWIN_ROOT_PATH$input_path"
20341     fi
20342   fi
20343 
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   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20352 
20353   path="$BOOT_JDK"
20354   has_colon=`$ECHO $path | $GREP ^.:`
20355   new_path="$path"
20356   if test "x$has_colon" = x; then
20357     # Not in mixed or Windows style, start by that.
20358     new_path=`cmd //c echo $path`
20359   fi
20360 
20361 
20362   input_path="$new_path"
20363   # Check if we need to convert this using DOS-style short mode. If the path
20364   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20365   # take no chances and rewrite it.
20366   # Note: m4 eats our [], so we need to use [ and ] instead.
20367   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20368   if test "x$has_forbidden_chars" != x; then
20369     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20370     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20371   fi
20372 
20373 
20374   windows_path="$new_path"
20375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20376     unix_path=`$CYGPATH -u "$windows_path"`
20377     new_path="$unix_path"
20378   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20379     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20380     new_path="$unix_path"
20381   fi
20382 
20383   if test "x$path" != "x$new_path"; then
20384     BOOT_JDK="$new_path"
20385     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20386 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20387   fi
20388 
20389   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20390   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20391 
20392   else
20393     # We're on a posix platform. Hooray! :)
20394     path="$BOOT_JDK"
20395     has_space=`$ECHO "$path" | $GREP " "`
20396     if test "x$has_space" != x; then
20397       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20398 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20399       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20400     fi
20401 
20402     # Use eval to expand a potential ~
20403     eval path="$path"
20404     if test ! -f "$path" && test ! -d "$path"; then
20405       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20406     fi
20407 
20408     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20409   fi
20410 
20411               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20412 $as_echo_n "checking for Boot JDK... " >&6; }
20413               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20414 $as_echo "$BOOT_JDK" >&6; }
20415               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20416 $as_echo_n "checking Boot JDK version... " >&6; }
20417               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20418               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20419 $as_echo "$BOOT_JDK_VERSION" >&6; }
20420             fi # end check jdk version
20421           fi # end check rt.jar
20422         fi # end check javac
20423       fi # end check java
20424     fi # end check boot jdk found
20425   fi
20426 
20427     # If that did not work out (e.g. too old), try explicit versions instead
20428 
20429   if test "x$BOOT_JDK_FOUND" = xno; then
20430     # Now execute the test
20431 
20432   if test -x /usr/libexec/java_home; then
20433     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20434     BOOT_JDK_FOUND=maybe
20435     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20436 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20437   fi
20438 
20439 
20440     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20441     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20442       # Do we have a bin/java?
20443       if test ! -x "$BOOT_JDK/bin/java"; then
20444         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20446         BOOT_JDK_FOUND=no
20447       else
20448         # Do we have a bin/javac?
20449         if test ! -x "$BOOT_JDK/bin/javac"; then
20450           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20451 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20452           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20453 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20454           BOOT_JDK_FOUND=no
20455         else
20456           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20457           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20458             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20459 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20460             BOOT_JDK_FOUND=no
20461           else
20462             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20463             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20464 
20465             # Extra M4 quote needed to protect [] in grep expression.
20466             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20467             if test "x$FOUND_CORRECT_VERSION" = x; then
20468               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20469 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20470               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20471 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20472               BOOT_JDK_FOUND=no
20473             else
20474               # We're done! :-)
20475               BOOT_JDK_FOUND=yes
20476 
20477   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20478 
20479   # Input might be given as Windows format, start by converting to
20480   # unix format.
20481   path="$BOOT_JDK"
20482   new_path=`$CYGPATH -u "$path"`
20483 
20484   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20485   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20486   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20487   # "foo.exe" is OK but "foo" is an error.
20488   #
20489   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20490   # It is also a way to make sure we got the proper file name for the real test later on.
20491   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20492   if test "x$test_shortpath" = x; then
20493     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20494 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20495     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20496   fi
20497 
20498   # Call helper function which possibly converts this using DOS-style short mode.
20499   # If so, the updated path is stored in $new_path.
20500 
20501   input_path="$new_path"
20502   # Check if we need to convert this using DOS-style short mode. If the path
20503   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20504   # take no chances and rewrite it.
20505   # Note: m4 eats our [], so we need to use [ and ] instead.
20506   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20507   if test "x$has_forbidden_chars" != x; then
20508     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20509     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20510     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20511     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20512       # Going to short mode and back again did indeed matter. Since short mode is
20513       # case insensitive, let's make it lowercase to improve readability.
20514       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20515       # Now convert it back to Unix-stile (cygpath)
20516       input_path=`$CYGPATH -u "$shortmode_path"`
20517       new_path="$input_path"
20518     fi
20519   fi
20520 
20521   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20522   if test "x$test_cygdrive_prefix" = x; then
20523     # As a simple fix, exclude /usr/bin since it's not a real path.
20524     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20525       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20526       # a path prefixed by /cygdrive for fixpath to work.
20527       new_path="$CYGWIN_ROOT_PATH$input_path"
20528     fi
20529   fi
20530 
20531 
20532   if test "x$path" != "x$new_path"; then
20533     BOOT_JDK="$new_path"
20534     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20535 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20536   fi
20537 
20538   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20539 
20540   path="$BOOT_JDK"
20541   has_colon=`$ECHO $path | $GREP ^.:`
20542   new_path="$path"
20543   if test "x$has_colon" = x; then
20544     # Not in mixed or Windows style, start by that.
20545     new_path=`cmd //c echo $path`
20546   fi
20547 
20548 
20549   input_path="$new_path"
20550   # Check if we need to convert this using DOS-style short mode. If the path
20551   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20552   # take no chances and rewrite it.
20553   # Note: m4 eats our [], so we need to use [ and ] instead.
20554   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20555   if test "x$has_forbidden_chars" != x; then
20556     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20557     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20558   fi
20559 
20560 
20561   windows_path="$new_path"
20562   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20563     unix_path=`$CYGPATH -u "$windows_path"`
20564     new_path="$unix_path"
20565   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20566     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20567     new_path="$unix_path"
20568   fi
20569 
20570   if test "x$path" != "x$new_path"; then
20571     BOOT_JDK="$new_path"
20572     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20573 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20574   fi
20575 
20576   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20577   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20578 
20579   else
20580     # We're on a posix platform. Hooray! :)
20581     path="$BOOT_JDK"
20582     has_space=`$ECHO "$path" | $GREP " "`
20583     if test "x$has_space" != x; then
20584       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20585 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20586       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20587     fi
20588 
20589     # Use eval to expand a potential ~
20590     eval path="$path"
20591     if test ! -f "$path" && test ! -d "$path"; then
20592       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20593     fi
20594 
20595     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20596   fi
20597 
20598               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20599 $as_echo_n "checking for Boot JDK... " >&6; }
20600               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20601 $as_echo "$BOOT_JDK" >&6; }
20602               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20603 $as_echo_n "checking Boot JDK version... " >&6; }
20604               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20605               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20606 $as_echo "$BOOT_JDK_VERSION" >&6; }
20607             fi # end check jdk version
20608           fi # end check rt.jar
20609         fi # end check javac
20610       fi # end check java
20611     fi # end check boot jdk found
20612   fi
20613 
20614 
20615   if test "x$BOOT_JDK_FOUND" = xno; then
20616     # Now execute the test
20617 
20618   if test -x /usr/libexec/java_home; then
20619     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20620     BOOT_JDK_FOUND=maybe
20621     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20622 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20623   fi
20624 
20625 
20626     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20627     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20628       # Do we have a bin/java?
20629       if test ! -x "$BOOT_JDK/bin/java"; then
20630         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20632         BOOT_JDK_FOUND=no
20633       else
20634         # Do we have a bin/javac?
20635         if test ! -x "$BOOT_JDK/bin/javac"; then
20636           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20638           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20639 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20640           BOOT_JDK_FOUND=no
20641         else
20642           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20643           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20644             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20645 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20646             BOOT_JDK_FOUND=no
20647           else
20648             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20649             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20650 
20651             # Extra M4 quote needed to protect [] in grep expression.
20652             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20653             if test "x$FOUND_CORRECT_VERSION" = x; then
20654               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20656               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20657 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20658               BOOT_JDK_FOUND=no
20659             else
20660               # We're done! :-)
20661               BOOT_JDK_FOUND=yes
20662 
20663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20664 
20665   # Input might be given as Windows format, start by converting to
20666   # unix format.
20667   path="$BOOT_JDK"
20668   new_path=`$CYGPATH -u "$path"`
20669 
20670   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20671   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20672   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20673   # "foo.exe" is OK but "foo" is an error.
20674   #
20675   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20676   # It is also a way to make sure we got the proper file name for the real test later on.
20677   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20678   if test "x$test_shortpath" = x; then
20679     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20680 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20681     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20682   fi
20683 
20684   # Call helper function which possibly converts this using DOS-style short mode.
20685   # If so, the updated path is stored in $new_path.
20686 
20687   input_path="$new_path"
20688   # Check if we need to convert this using DOS-style short mode. If the path
20689   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20690   # take no chances and rewrite it.
20691   # Note: m4 eats our [], so we need to use [ and ] instead.
20692   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20693   if test "x$has_forbidden_chars" != x; then
20694     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20695     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20696     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20697     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20698       # Going to short mode and back again did indeed matter. Since short mode is
20699       # case insensitive, let's make it lowercase to improve readability.
20700       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20701       # Now convert it back to Unix-stile (cygpath)
20702       input_path=`$CYGPATH -u "$shortmode_path"`
20703       new_path="$input_path"
20704     fi
20705   fi
20706 
20707   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20708   if test "x$test_cygdrive_prefix" = x; then
20709     # As a simple fix, exclude /usr/bin since it's not a real path.
20710     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20711       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20712       # a path prefixed by /cygdrive for fixpath to work.
20713       new_path="$CYGWIN_ROOT_PATH$input_path"
20714     fi
20715   fi
20716 
20717 
20718   if test "x$path" != "x$new_path"; then
20719     BOOT_JDK="$new_path"
20720     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20721 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20722   fi
20723 
20724   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20725 
20726   path="$BOOT_JDK"
20727   has_colon=`$ECHO $path | $GREP ^.:`
20728   new_path="$path"
20729   if test "x$has_colon" = x; then
20730     # Not in mixed or Windows style, start by that.
20731     new_path=`cmd //c echo $path`
20732   fi
20733 
20734 
20735   input_path="$new_path"
20736   # Check if we need to convert this using DOS-style short mode. If the path
20737   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20738   # take no chances and rewrite it.
20739   # Note: m4 eats our [], so we need to use [ and ] instead.
20740   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20741   if test "x$has_forbidden_chars" != x; then
20742     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20743     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20744   fi
20745 
20746 
20747   windows_path="$new_path"
20748   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20749     unix_path=`$CYGPATH -u "$windows_path"`
20750     new_path="$unix_path"
20751   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20752     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20753     new_path="$unix_path"
20754   fi
20755 
20756   if test "x$path" != "x$new_path"; then
20757     BOOT_JDK="$new_path"
20758     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20759 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20760   fi
20761 
20762   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20763   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20764 
20765   else
20766     # We're on a posix platform. Hooray! :)
20767     path="$BOOT_JDK"
20768     has_space=`$ECHO "$path" | $GREP " "`
20769     if test "x$has_space" != x; then
20770       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20771 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20772       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20773     fi
20774 
20775     # Use eval to expand a potential ~
20776     eval path="$path"
20777     if test ! -f "$path" && test ! -d "$path"; then
20778       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20779     fi
20780 
20781     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20782   fi
20783 
20784               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20785 $as_echo_n "checking for Boot JDK... " >&6; }
20786               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20787 $as_echo "$BOOT_JDK" >&6; }
20788               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20789 $as_echo_n "checking Boot JDK version... " >&6; }
20790               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20791               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20792 $as_echo "$BOOT_JDK_VERSION" >&6; }
20793             fi # end check jdk version
20794           fi # end check rt.jar
20795         fi # end check javac
20796       fi # end check java
20797     fi # end check boot jdk found
20798   fi
20799 
20800 
20801   if test "x$BOOT_JDK_FOUND" = xno; then
20802     # Now execute the test
20803 
20804   if test -x /usr/libexec/java_home; then
20805     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20806     BOOT_JDK_FOUND=maybe
20807     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20808 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20809   fi
20810 
20811 
20812     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20813     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20814       # Do we have a bin/java?
20815       if test ! -x "$BOOT_JDK/bin/java"; then
20816         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20818         BOOT_JDK_FOUND=no
20819       else
20820         # Do we have a bin/javac?
20821         if test ! -x "$BOOT_JDK/bin/javac"; then
20822           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20824           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20825 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20826           BOOT_JDK_FOUND=no
20827         else
20828           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20829           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20830             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20831 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20832             BOOT_JDK_FOUND=no
20833           else
20834             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20835             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20836 
20837             # Extra M4 quote needed to protect [] in grep expression.
20838             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20839             if test "x$FOUND_CORRECT_VERSION" = x; then
20840               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20841 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20842               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20843 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20844               BOOT_JDK_FOUND=no
20845             else
20846               # We're done! :-)
20847               BOOT_JDK_FOUND=yes
20848 
20849   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20850 
20851   # Input might be given as Windows format, start by converting to
20852   # unix format.
20853   path="$BOOT_JDK"
20854   new_path=`$CYGPATH -u "$path"`
20855 
20856   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20857   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20858   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20859   # "foo.exe" is OK but "foo" is an error.
20860   #
20861   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20862   # It is also a way to make sure we got the proper file name for the real test later on.
20863   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20864   if test "x$test_shortpath" = x; then
20865     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20866 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20867     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20868   fi
20869 
20870   # Call helper function which possibly converts this using DOS-style short mode.
20871   # If so, the updated path is stored in $new_path.
20872 
20873   input_path="$new_path"
20874   # Check if we need to convert this using DOS-style short mode. If the path
20875   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20876   # take no chances and rewrite it.
20877   # Note: m4 eats our [], so we need to use [ and ] instead.
20878   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20879   if test "x$has_forbidden_chars" != x; then
20880     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20881     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20882     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20883     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20884       # Going to short mode and back again did indeed matter. Since short mode is
20885       # case insensitive, let's make it lowercase to improve readability.
20886       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20887       # Now convert it back to Unix-stile (cygpath)
20888       input_path=`$CYGPATH -u "$shortmode_path"`
20889       new_path="$input_path"
20890     fi
20891   fi
20892 
20893   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20894   if test "x$test_cygdrive_prefix" = x; then
20895     # As a simple fix, exclude /usr/bin since it's not a real path.
20896     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20897       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20898       # a path prefixed by /cygdrive for fixpath to work.
20899       new_path="$CYGWIN_ROOT_PATH$input_path"
20900     fi
20901   fi
20902 
20903 
20904   if test "x$path" != "x$new_path"; then
20905     BOOT_JDK="$new_path"
20906     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20907 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20908   fi
20909 
20910   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20911 
20912   path="$BOOT_JDK"
20913   has_colon=`$ECHO $path | $GREP ^.:`
20914   new_path="$path"
20915   if test "x$has_colon" = x; then
20916     # Not in mixed or Windows style, start by that.
20917     new_path=`cmd //c echo $path`
20918   fi
20919 
20920 
20921   input_path="$new_path"
20922   # Check if we need to convert this using DOS-style short mode. If the path
20923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20924   # take no chances and rewrite it.
20925   # Note: m4 eats our [], so we need to use [ and ] instead.
20926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20927   if test "x$has_forbidden_chars" != x; then
20928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20929     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20930   fi
20931 
20932 
20933   windows_path="$new_path"
20934   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20935     unix_path=`$CYGPATH -u "$windows_path"`
20936     new_path="$unix_path"
20937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20938     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20939     new_path="$unix_path"
20940   fi
20941 
20942   if test "x$path" != "x$new_path"; then
20943     BOOT_JDK="$new_path"
20944     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20946   fi
20947 
20948   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20949   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20950 
20951   else
20952     # We're on a posix platform. Hooray! :)
20953     path="$BOOT_JDK"
20954     has_space=`$ECHO "$path" | $GREP " "`
20955     if test "x$has_space" != x; then
20956       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20958       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20959     fi
20960 
20961     # Use eval to expand a potential ~
20962     eval path="$path"
20963     if test ! -f "$path" && test ! -d "$path"; then
20964       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20965     fi
20966 
20967     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20968   fi
20969 
20970               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20971 $as_echo_n "checking for Boot JDK... " >&6; }
20972               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20973 $as_echo "$BOOT_JDK" >&6; }
20974               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20975 $as_echo_n "checking Boot JDK version... " >&6; }
20976               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20977               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20978 $as_echo "$BOOT_JDK_VERSION" >&6; }
20979             fi # end check jdk version
20980           fi # end check rt.jar
20981         fi # end check javac
20982       fi # end check java
20983     fi # end check boot jdk found
20984   fi
20985 
20986   fi
20987 
20988 
20989     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20990     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20991       # Do we have a bin/java?
20992       if test ! -x "$BOOT_JDK/bin/java"; then
20993         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20995         BOOT_JDK_FOUND=no
20996       else
20997         # Do we have a bin/javac?
20998         if test ! -x "$BOOT_JDK/bin/javac"; then
20999           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21001           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21002 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21003           BOOT_JDK_FOUND=no
21004         else
21005           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21006           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21007             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21008 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21009             BOOT_JDK_FOUND=no
21010           else
21011             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21012             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21013 
21014             # Extra M4 quote needed to protect [] in grep expression.
21015             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21016             if test "x$FOUND_CORRECT_VERSION" = x; then
21017               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21018 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21019               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21020 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21021               BOOT_JDK_FOUND=no
21022             else
21023               # We're done! :-)
21024               BOOT_JDK_FOUND=yes
21025 
21026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21027 
21028   # Input might be given as Windows format, start by converting to
21029   # unix format.
21030   path="$BOOT_JDK"
21031   new_path=`$CYGPATH -u "$path"`
21032 
21033   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21034   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21035   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21036   # "foo.exe" is OK but "foo" is an error.
21037   #
21038   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21039   # It is also a way to make sure we got the proper file name for the real test later on.
21040   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21041   if test "x$test_shortpath" = x; then
21042     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21043 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21044     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21045   fi
21046 
21047   # Call helper function which possibly converts this using DOS-style short mode.
21048   # If so, the updated path is stored in $new_path.
21049 
21050   input_path="$new_path"
21051   # Check if we need to convert this using DOS-style short mode. If the path
21052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21053   # take no chances and rewrite it.
21054   # Note: m4 eats our [], so we need to use [ and ] instead.
21055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21056   if test "x$has_forbidden_chars" != x; then
21057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21058     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21059     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21060     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21061       # Going to short mode and back again did indeed matter. Since short mode is
21062       # case insensitive, let's make it lowercase to improve readability.
21063       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21064       # Now convert it back to Unix-stile (cygpath)
21065       input_path=`$CYGPATH -u "$shortmode_path"`
21066       new_path="$input_path"
21067     fi
21068   fi
21069 
21070   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21071   if test "x$test_cygdrive_prefix" = x; then
21072     # As a simple fix, exclude /usr/bin since it's not a real path.
21073     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21074       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21075       # a path prefixed by /cygdrive for fixpath to work.
21076       new_path="$CYGWIN_ROOT_PATH$input_path"
21077     fi
21078   fi
21079 
21080 
21081   if test "x$path" != "x$new_path"; then
21082     BOOT_JDK="$new_path"
21083     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21084 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21085   fi
21086 
21087   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21088 
21089   path="$BOOT_JDK"
21090   has_colon=`$ECHO $path | $GREP ^.:`
21091   new_path="$path"
21092   if test "x$has_colon" = x; then
21093     # Not in mixed or Windows style, start by that.
21094     new_path=`cmd //c echo $path`
21095   fi
21096 
21097 
21098   input_path="$new_path"
21099   # Check if we need to convert this using DOS-style short mode. If the path
21100   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21101   # take no chances and rewrite it.
21102   # Note: m4 eats our [], so we need to use [ and ] instead.
21103   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21104   if test "x$has_forbidden_chars" != x; then
21105     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21106     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21107   fi
21108 
21109 
21110   windows_path="$new_path"
21111   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21112     unix_path=`$CYGPATH -u "$windows_path"`
21113     new_path="$unix_path"
21114   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21115     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21116     new_path="$unix_path"
21117   fi
21118 
21119   if test "x$path" != "x$new_path"; then
21120     BOOT_JDK="$new_path"
21121     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21122 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21123   fi
21124 
21125   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21126   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21127 
21128   else
21129     # We're on a posix platform. Hooray! :)
21130     path="$BOOT_JDK"
21131     has_space=`$ECHO "$path" | $GREP " "`
21132     if test "x$has_space" != x; then
21133       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21134 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21135       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21136     fi
21137 
21138     # Use eval to expand a potential ~
21139     eval path="$path"
21140     if test ! -f "$path" && test ! -d "$path"; then
21141       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21142     fi
21143 
21144     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21145   fi
21146 
21147               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21148 $as_echo_n "checking for Boot JDK... " >&6; }
21149               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21150 $as_echo "$BOOT_JDK" >&6; }
21151               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21152 $as_echo_n "checking Boot JDK version... " >&6; }
21153               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21154               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21155 $as_echo "$BOOT_JDK_VERSION" >&6; }
21156             fi # end check jdk version
21157           fi # end check rt.jar
21158         fi # end check javac
21159       fi # end check java
21160     fi # end check boot jdk found
21161   fi
21162 
21163 
21164   # Test: Is $JAVA_HOME set?
21165 
21166   if test "x$BOOT_JDK_FOUND" = xno; then
21167     # Now execute the test
21168 
21169   if test "x$JAVA_HOME" != x; then
21170     JAVA_HOME_PROCESSED="$JAVA_HOME"
21171 
21172   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21173 
21174   # Input might be given as Windows format, start by converting to
21175   # unix format.
21176   path="$JAVA_HOME_PROCESSED"
21177   new_path=`$CYGPATH -u "$path"`
21178 
21179   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21180   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21181   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21182   # "foo.exe" is OK but "foo" is an error.
21183   #
21184   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21185   # It is also a way to make sure we got the proper file name for the real test later on.
21186   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21187   if test "x$test_shortpath" = x; then
21188     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21189 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21190     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21191   fi
21192 
21193   # Call helper function which possibly converts this using DOS-style short mode.
21194   # If so, the updated path is stored in $new_path.
21195 
21196   input_path="$new_path"
21197   # Check if we need to convert this using DOS-style short mode. If the path
21198   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21199   # take no chances and rewrite it.
21200   # Note: m4 eats our [], so we need to use [ and ] instead.
21201   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21202   if test "x$has_forbidden_chars" != x; then
21203     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21204     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21205     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21206     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21207       # Going to short mode and back again did indeed matter. Since short mode is
21208       # case insensitive, let's make it lowercase to improve readability.
21209       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21210       # Now convert it back to Unix-stile (cygpath)
21211       input_path=`$CYGPATH -u "$shortmode_path"`
21212       new_path="$input_path"
21213     fi
21214   fi
21215 
21216   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21217   if test "x$test_cygdrive_prefix" = x; then
21218     # As a simple fix, exclude /usr/bin since it's not a real path.
21219     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21220       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21221       # a path prefixed by /cygdrive for fixpath to work.
21222       new_path="$CYGWIN_ROOT_PATH$input_path"
21223     fi
21224   fi
21225 
21226 
21227   if test "x$path" != "x$new_path"; then
21228     JAVA_HOME_PROCESSED="$new_path"
21229     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21230 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21231   fi
21232 
21233   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21234 
21235   path="$JAVA_HOME_PROCESSED"
21236   has_colon=`$ECHO $path | $GREP ^.:`
21237   new_path="$path"
21238   if test "x$has_colon" = x; then
21239     # Not in mixed or Windows style, start by that.
21240     new_path=`cmd //c echo $path`
21241   fi
21242 
21243 
21244   input_path="$new_path"
21245   # Check if we need to convert this using DOS-style short mode. If the path
21246   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21247   # take no chances and rewrite it.
21248   # Note: m4 eats our [], so we need to use [ and ] instead.
21249   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21250   if test "x$has_forbidden_chars" != x; then
21251     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21252     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21253   fi
21254 
21255 
21256   windows_path="$new_path"
21257   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21258     unix_path=`$CYGPATH -u "$windows_path"`
21259     new_path="$unix_path"
21260   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21261     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21262     new_path="$unix_path"
21263   fi
21264 
21265   if test "x$path" != "x$new_path"; then
21266     JAVA_HOME_PROCESSED="$new_path"
21267     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21268 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21269   fi
21270 
21271   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21272   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21273 
21274   else
21275     # We're on a posix platform. Hooray! :)
21276     path="$JAVA_HOME_PROCESSED"
21277     has_space=`$ECHO "$path" | $GREP " "`
21278     if test "x$has_space" != x; then
21279       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21280 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21281       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21282     fi
21283 
21284     # Use eval to expand a potential ~
21285     eval path="$path"
21286     if test ! -f "$path" && test ! -d "$path"; then
21287       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21288     fi
21289 
21290     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21291   fi
21292 
21293     if test ! -d "$JAVA_HOME_PROCESSED"; then
21294       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21295 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21296     else
21297       # Aha, the user has set a JAVA_HOME
21298       # let us use that as the Boot JDK.
21299       BOOT_JDK="$JAVA_HOME_PROCESSED"
21300       BOOT_JDK_FOUND=maybe
21301       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21302 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21303     fi
21304   fi
21305 
21306 
21307     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21308     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21309       # Do we have a bin/java?
21310       if test ! -x "$BOOT_JDK/bin/java"; then
21311         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21312 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21313         BOOT_JDK_FOUND=no
21314       else
21315         # Do we have a bin/javac?
21316         if test ! -x "$BOOT_JDK/bin/javac"; then
21317           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21319           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21320 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21321           BOOT_JDK_FOUND=no
21322         else
21323           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21324           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21325             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21327             BOOT_JDK_FOUND=no
21328           else
21329             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21330             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21331 
21332             # Extra M4 quote needed to protect [] in grep expression.
21333             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21334             if test "x$FOUND_CORRECT_VERSION" = x; then
21335               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21336 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21337               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21338 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21339               BOOT_JDK_FOUND=no
21340             else
21341               # We're done! :-)
21342               BOOT_JDK_FOUND=yes
21343 
21344   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21345 
21346   # Input might be given as Windows format, start by converting to
21347   # unix format.
21348   path="$BOOT_JDK"
21349   new_path=`$CYGPATH -u "$path"`
21350 
21351   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21352   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21353   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21354   # "foo.exe" is OK but "foo" is an error.
21355   #
21356   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21357   # It is also a way to make sure we got the proper file name for the real test later on.
21358   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21359   if test "x$test_shortpath" = x; then
21360     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21361 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21362     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21363   fi
21364 
21365   # Call helper function which possibly converts this using DOS-style short mode.
21366   # If so, the updated path is stored in $new_path.
21367 
21368   input_path="$new_path"
21369   # Check if we need to convert this using DOS-style short mode. If the path
21370   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21371   # take no chances and rewrite it.
21372   # Note: m4 eats our [], so we need to use [ and ] instead.
21373   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21374   if test "x$has_forbidden_chars" != x; then
21375     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21376     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21377     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21378     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21379       # Going to short mode and back again did indeed matter. Since short mode is
21380       # case insensitive, let's make it lowercase to improve readability.
21381       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21382       # Now convert it back to Unix-stile (cygpath)
21383       input_path=`$CYGPATH -u "$shortmode_path"`
21384       new_path="$input_path"
21385     fi
21386   fi
21387 
21388   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21389   if test "x$test_cygdrive_prefix" = x; then
21390     # As a simple fix, exclude /usr/bin since it's not a real path.
21391     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21392       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21393       # a path prefixed by /cygdrive for fixpath to work.
21394       new_path="$CYGWIN_ROOT_PATH$input_path"
21395     fi
21396   fi
21397 
21398 
21399   if test "x$path" != "x$new_path"; then
21400     BOOT_JDK="$new_path"
21401     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21402 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21403   fi
21404 
21405   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21406 
21407   path="$BOOT_JDK"
21408   has_colon=`$ECHO $path | $GREP ^.:`
21409   new_path="$path"
21410   if test "x$has_colon" = x; then
21411     # Not in mixed or Windows style, start by that.
21412     new_path=`cmd //c echo $path`
21413   fi
21414 
21415 
21416   input_path="$new_path"
21417   # Check if we need to convert this using DOS-style short mode. If the path
21418   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21419   # take no chances and rewrite it.
21420   # Note: m4 eats our [], so we need to use [ and ] instead.
21421   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21422   if test "x$has_forbidden_chars" != x; then
21423     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21424     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21425   fi
21426 
21427 
21428   windows_path="$new_path"
21429   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21430     unix_path=`$CYGPATH -u "$windows_path"`
21431     new_path="$unix_path"
21432   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21433     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21434     new_path="$unix_path"
21435   fi
21436 
21437   if test "x$path" != "x$new_path"; then
21438     BOOT_JDK="$new_path"
21439     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21440 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21441   fi
21442 
21443   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21444   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21445 
21446   else
21447     # We're on a posix platform. Hooray! :)
21448     path="$BOOT_JDK"
21449     has_space=`$ECHO "$path" | $GREP " "`
21450     if test "x$has_space" != x; then
21451       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21452 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21453       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21454     fi
21455 
21456     # Use eval to expand a potential ~
21457     eval path="$path"
21458     if test ! -f "$path" && test ! -d "$path"; then
21459       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21460     fi
21461 
21462     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21463   fi
21464 
21465               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21466 $as_echo_n "checking for Boot JDK... " >&6; }
21467               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21468 $as_echo "$BOOT_JDK" >&6; }
21469               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21470 $as_echo_n "checking Boot JDK version... " >&6; }
21471               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21472               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21473 $as_echo "$BOOT_JDK_VERSION" >&6; }
21474             fi # end check jdk version
21475           fi # end check rt.jar
21476         fi # end check javac
21477       fi # end check java
21478     fi # end check boot jdk found
21479   fi
21480 
21481 
21482   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21483 
21484   if test "x$BOOT_JDK_FOUND" = xno; then
21485     # Now execute the test
21486 
21487   # Extract the first word of "javac", so it can be a program name with args.
21488 set dummy javac; ac_word=$2
21489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21490 $as_echo_n "checking for $ac_word... " >&6; }
21491 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21492   $as_echo_n "(cached) " >&6
21493 else
21494   case $JAVAC_CHECK in
21495   [\\/]* | ?:[\\/]*)
21496   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21497   ;;
21498   *)
21499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21500 for as_dir in $PATH
21501 do
21502   IFS=$as_save_IFS
21503   test -z "$as_dir" && as_dir=.
21504     for ac_exec_ext in '' $ac_executable_extensions; do
21505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21506     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21508     break 2
21509   fi
21510 done
21511   done
21512 IFS=$as_save_IFS
21513 
21514   ;;
21515 esac
21516 fi
21517 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21518 if test -n "$JAVAC_CHECK"; then
21519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21520 $as_echo "$JAVAC_CHECK" >&6; }
21521 else
21522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21523 $as_echo "no" >&6; }
21524 fi
21525 
21526 
21527   # Extract the first word of "java", so it can be a program name with args.
21528 set dummy java; ac_word=$2
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21530 $as_echo_n "checking for $ac_word... " >&6; }
21531 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21532   $as_echo_n "(cached) " >&6
21533 else
21534   case $JAVA_CHECK in
21535   [\\/]* | ?:[\\/]*)
21536   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21537   ;;
21538   *)
21539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21540 for as_dir in $PATH
21541 do
21542   IFS=$as_save_IFS
21543   test -z "$as_dir" && as_dir=.
21544     for ac_exec_ext in '' $ac_executable_extensions; do
21545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21546     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21548     break 2
21549   fi
21550 done
21551   done
21552 IFS=$as_save_IFS
21553 
21554   ;;
21555 esac
21556 fi
21557 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21558 if test -n "$JAVA_CHECK"; then
21559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21560 $as_echo "$JAVA_CHECK" >&6; }
21561 else
21562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21563 $as_echo "no" >&6; }
21564 fi
21565 
21566 
21567   BINARY="$JAVAC_CHECK"
21568   if test "x$JAVAC_CHECK" = x; then
21569     BINARY="$JAVA_CHECK"
21570   fi
21571   if test "x$BINARY" != x; then
21572     # So there is a java(c) binary, it might be part of a JDK.
21573     # Lets find the JDK/JRE directory by following symbolic links.
21574     # Linux/GNU systems often have links from /usr/bin/java to
21575     # /etc/alternatives/java to the real JDK binary.
21576 
21577   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21578     # Follow a chain of symbolic links. Use readlink
21579     # where it exists, else fall back to horribly
21580     # complicated shell code.
21581     if test "x$READLINK_TESTED" != yes; then
21582       # On MacOSX there is a readlink tool with a different
21583       # purpose than the GNU readlink tool. Check the found readlink.
21584       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21585       if test "x$ISGNU" = x; then
21586         # A readlink that we do not know how to use.
21587         # Are there other non-GNU readlinks out there?
21588         READLINK_TESTED=yes
21589         READLINK=
21590       fi
21591     fi
21592 
21593     if test "x$READLINK" != x; then
21594       BINARY=`$READLINK -f $BINARY`
21595     else
21596       # Save the current directory for restoring afterwards
21597       STARTDIR=$PWD
21598       COUNTER=0
21599       sym_link_dir=`$DIRNAME $BINARY`
21600       sym_link_file=`$BASENAME $BINARY`
21601       cd $sym_link_dir
21602       # Use -P flag to resolve symlinks in directories.
21603       cd `$THEPWDCMD -P`
21604       sym_link_dir=`$THEPWDCMD -P`
21605       # Resolve file symlinks
21606       while test $COUNTER -lt 20; do
21607         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21608         if test "x$ISLINK" == x; then
21609           # This is not a symbolic link! We are done!
21610           break
21611         fi
21612         # Again resolve directory symlinks since the target of the just found
21613         # link could be in a different directory
21614         cd `$DIRNAME $ISLINK`
21615         sym_link_dir=`$THEPWDCMD -P`
21616         sym_link_file=`$BASENAME $ISLINK`
21617         let COUNTER=COUNTER+1
21618       done
21619       cd $STARTDIR
21620       BINARY=$sym_link_dir/$sym_link_file
21621     fi
21622   fi
21623 
21624     BOOT_JDK=`dirname "$BINARY"`
21625     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21626     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21627       # Looks like we found ourselves an JDK
21628       BOOT_JDK_FOUND=maybe
21629       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21630 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21631     fi
21632   fi
21633 
21634 
21635     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21636     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21637       # Do we have a bin/java?
21638       if test ! -x "$BOOT_JDK/bin/java"; then
21639         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21641         BOOT_JDK_FOUND=no
21642       else
21643         # Do we have a bin/javac?
21644         if test ! -x "$BOOT_JDK/bin/javac"; then
21645           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21647           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21648 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21649           BOOT_JDK_FOUND=no
21650         else
21651           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21652           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21653             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21654 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21655             BOOT_JDK_FOUND=no
21656           else
21657             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21658             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21659 
21660             # Extra M4 quote needed to protect [] in grep expression.
21661             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21662             if test "x$FOUND_CORRECT_VERSION" = x; then
21663               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21664 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21665               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21666 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21667               BOOT_JDK_FOUND=no
21668             else
21669               # We're done! :-)
21670               BOOT_JDK_FOUND=yes
21671 
21672   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21673 
21674   # Input might be given as Windows format, start by converting to
21675   # unix format.
21676   path="$BOOT_JDK"
21677   new_path=`$CYGPATH -u "$path"`
21678 
21679   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21680   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21681   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21682   # "foo.exe" is OK but "foo" is an error.
21683   #
21684   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21685   # It is also a way to make sure we got the proper file name for the real test later on.
21686   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21687   if test "x$test_shortpath" = x; then
21688     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21689 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21690     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21691   fi
21692 
21693   # Call helper function which possibly converts this using DOS-style short mode.
21694   # If so, the updated path is stored in $new_path.
21695 
21696   input_path="$new_path"
21697   # Check if we need to convert this using DOS-style short mode. If the path
21698   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21699   # take no chances and rewrite it.
21700   # Note: m4 eats our [], so we need to use [ and ] instead.
21701   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21702   if test "x$has_forbidden_chars" != x; then
21703     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21704     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21705     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21706     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21707       # Going to short mode and back again did indeed matter. Since short mode is
21708       # case insensitive, let's make it lowercase to improve readability.
21709       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21710       # Now convert it back to Unix-stile (cygpath)
21711       input_path=`$CYGPATH -u "$shortmode_path"`
21712       new_path="$input_path"
21713     fi
21714   fi
21715 
21716   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21717   if test "x$test_cygdrive_prefix" = x; then
21718     # As a simple fix, exclude /usr/bin since it's not a real path.
21719     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21720       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21721       # a path prefixed by /cygdrive for fixpath to work.
21722       new_path="$CYGWIN_ROOT_PATH$input_path"
21723     fi
21724   fi
21725 
21726 
21727   if test "x$path" != "x$new_path"; then
21728     BOOT_JDK="$new_path"
21729     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21730 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21731   fi
21732 
21733   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21734 
21735   path="$BOOT_JDK"
21736   has_colon=`$ECHO $path | $GREP ^.:`
21737   new_path="$path"
21738   if test "x$has_colon" = x; then
21739     # Not in mixed or Windows style, start by that.
21740     new_path=`cmd //c echo $path`
21741   fi
21742 
21743 
21744   input_path="$new_path"
21745   # Check if we need to convert this using DOS-style short mode. If the path
21746   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21747   # take no chances and rewrite it.
21748   # Note: m4 eats our [], so we need to use [ and ] instead.
21749   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21750   if test "x$has_forbidden_chars" != x; then
21751     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21752     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21753   fi
21754 
21755 
21756   windows_path="$new_path"
21757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21758     unix_path=`$CYGPATH -u "$windows_path"`
21759     new_path="$unix_path"
21760   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21761     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21762     new_path="$unix_path"
21763   fi
21764 
21765   if test "x$path" != "x$new_path"; then
21766     BOOT_JDK="$new_path"
21767     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21769   fi
21770 
21771   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21772   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21773 
21774   else
21775     # We're on a posix platform. Hooray! :)
21776     path="$BOOT_JDK"
21777     has_space=`$ECHO "$path" | $GREP " "`
21778     if test "x$has_space" != x; then
21779       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21781       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21782     fi
21783 
21784     # Use eval to expand a potential ~
21785     eval path="$path"
21786     if test ! -f "$path" && test ! -d "$path"; then
21787       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21788     fi
21789 
21790     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21791   fi
21792 
21793               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21794 $as_echo_n "checking for Boot JDK... " >&6; }
21795               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21796 $as_echo "$BOOT_JDK" >&6; }
21797               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21798 $as_echo_n "checking Boot JDK version... " >&6; }
21799               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21800               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21801 $as_echo "$BOOT_JDK_VERSION" >&6; }
21802             fi # end check jdk version
21803           fi # end check rt.jar
21804         fi # end check javac
21805       fi # end check java
21806     fi # end check boot jdk found
21807   fi
21808 
21809 
21810   # Test: Is there a JDK installed in default, well-known locations?
21811 
21812   if test "x$BOOT_JDK_FOUND" = xno; then
21813     # Now execute the test
21814 
21815   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21816 
21817   if test "x$BOOT_JDK_FOUND" = xno; then
21818     # Now execute the test
21819 
21820   if test "x$ProgramW6432" != x; then
21821     VIRTUAL_DIR="$ProgramW6432/Java"
21822 
21823   windows_path="$VIRTUAL_DIR"
21824   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21825     unix_path=`$CYGPATH -u "$windows_path"`
21826     VIRTUAL_DIR="$unix_path"
21827   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21828     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21829     VIRTUAL_DIR="$unix_path"
21830   fi
21831 
21832 
21833   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21834   BOOT_JDK_SUFFIX=""
21835   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21836   if test "x$ALL_JDKS_FOUND" != x; then
21837     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21838 
21839   if test "x$BOOT_JDK_FOUND" = xno; then
21840     # Now execute the test
21841 
21842         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21843         if test -d "$BOOT_JDK"; then
21844           BOOT_JDK_FOUND=maybe
21845           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21846 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21847         fi
21848 
21849 
21850     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21851     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21852       # Do we have a bin/java?
21853       if test ! -x "$BOOT_JDK/bin/java"; then
21854         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21855 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21856         BOOT_JDK_FOUND=no
21857       else
21858         # Do we have a bin/javac?
21859         if test ! -x "$BOOT_JDK/bin/javac"; then
21860           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21861 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21862           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21863 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21864           BOOT_JDK_FOUND=no
21865         else
21866           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21867           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21868             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21869 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21870             BOOT_JDK_FOUND=no
21871           else
21872             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21873             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21874 
21875             # Extra M4 quote needed to protect [] in grep expression.
21876             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21877             if test "x$FOUND_CORRECT_VERSION" = x; then
21878               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21879 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21880               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21881 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21882               BOOT_JDK_FOUND=no
21883             else
21884               # We're done! :-)
21885               BOOT_JDK_FOUND=yes
21886 
21887   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21888 
21889   # Input might be given as Windows format, start by converting to
21890   # unix format.
21891   path="$BOOT_JDK"
21892   new_path=`$CYGPATH -u "$path"`
21893 
21894   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21895   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21896   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21897   # "foo.exe" is OK but "foo" is an error.
21898   #
21899   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21900   # It is also a way to make sure we got the proper file name for the real test later on.
21901   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21902   if test "x$test_shortpath" = x; then
21903     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21904 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21905     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21906   fi
21907 
21908   # Call helper function which possibly converts this using DOS-style short mode.
21909   # If so, the updated path is stored in $new_path.
21910 
21911   input_path="$new_path"
21912   # Check if we need to convert this using DOS-style short mode. If the path
21913   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21914   # take no chances and rewrite it.
21915   # Note: m4 eats our [], so we need to use [ and ] instead.
21916   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21917   if test "x$has_forbidden_chars" != x; then
21918     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21919     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21920     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21921     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21922       # Going to short mode and back again did indeed matter. Since short mode is
21923       # case insensitive, let's make it lowercase to improve readability.
21924       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21925       # Now convert it back to Unix-stile (cygpath)
21926       input_path=`$CYGPATH -u "$shortmode_path"`
21927       new_path="$input_path"
21928     fi
21929   fi
21930 
21931   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21932   if test "x$test_cygdrive_prefix" = x; then
21933     # As a simple fix, exclude /usr/bin since it's not a real path.
21934     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21935       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21936       # a path prefixed by /cygdrive for fixpath to work.
21937       new_path="$CYGWIN_ROOT_PATH$input_path"
21938     fi
21939   fi
21940 
21941 
21942   if test "x$path" != "x$new_path"; then
21943     BOOT_JDK="$new_path"
21944     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21946   fi
21947 
21948   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21949 
21950   path="$BOOT_JDK"
21951   has_colon=`$ECHO $path | $GREP ^.:`
21952   new_path="$path"
21953   if test "x$has_colon" = x; then
21954     # Not in mixed or Windows style, start by that.
21955     new_path=`cmd //c echo $path`
21956   fi
21957 
21958 
21959   input_path="$new_path"
21960   # Check if we need to convert this using DOS-style short mode. If the path
21961   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21962   # take no chances and rewrite it.
21963   # Note: m4 eats our [], so we need to use [ and ] instead.
21964   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21965   if test "x$has_forbidden_chars" != x; then
21966     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21967     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21968   fi
21969 
21970 
21971   windows_path="$new_path"
21972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21973     unix_path=`$CYGPATH -u "$windows_path"`
21974     new_path="$unix_path"
21975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21976     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21977     new_path="$unix_path"
21978   fi
21979 
21980   if test "x$path" != "x$new_path"; then
21981     BOOT_JDK="$new_path"
21982     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21983 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21984   fi
21985 
21986   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21987   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21988 
21989   else
21990     # We're on a posix platform. Hooray! :)
21991     path="$BOOT_JDK"
21992     has_space=`$ECHO "$path" | $GREP " "`
21993     if test "x$has_space" != x; then
21994       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21996       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21997     fi
21998 
21999     # Use eval to expand a potential ~
22000     eval path="$path"
22001     if test ! -f "$path" && test ! -d "$path"; then
22002       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22003     fi
22004 
22005     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22006   fi
22007 
22008               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22009 $as_echo_n "checking for Boot JDK... " >&6; }
22010               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22011 $as_echo "$BOOT_JDK" >&6; }
22012               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22013 $as_echo_n "checking Boot JDK version... " >&6; }
22014               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22015               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22016 $as_echo "$BOOT_JDK_VERSION" >&6; }
22017             fi # end check jdk version
22018           fi # end check rt.jar
22019         fi # end check javac
22020       fi # end check java
22021     fi # end check boot jdk found
22022   fi
22023 
22024     done
22025   fi
22026 
22027   fi
22028 
22029 
22030     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22031     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22032       # Do we have a bin/java?
22033       if test ! -x "$BOOT_JDK/bin/java"; then
22034         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22035 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22036         BOOT_JDK_FOUND=no
22037       else
22038         # Do we have a bin/javac?
22039         if test ! -x "$BOOT_JDK/bin/javac"; then
22040           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22042           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22043 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22044           BOOT_JDK_FOUND=no
22045         else
22046           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22047           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22048             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22049 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22050             BOOT_JDK_FOUND=no
22051           else
22052             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22053             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22054 
22055             # Extra M4 quote needed to protect [] in grep expression.
22056             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22057             if test "x$FOUND_CORRECT_VERSION" = x; then
22058               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22060               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22061 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22062               BOOT_JDK_FOUND=no
22063             else
22064               # We're done! :-)
22065               BOOT_JDK_FOUND=yes
22066 
22067   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22068 
22069   # Input might be given as Windows format, start by converting to
22070   # unix format.
22071   path="$BOOT_JDK"
22072   new_path=`$CYGPATH -u "$path"`
22073 
22074   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22075   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22076   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22077   # "foo.exe" is OK but "foo" is an error.
22078   #
22079   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22080   # It is also a way to make sure we got the proper file name for the real test later on.
22081   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22082   if test "x$test_shortpath" = x; then
22083     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22084 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22085     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22086   fi
22087 
22088   # Call helper function which possibly converts this using DOS-style short mode.
22089   # If so, the updated path is stored in $new_path.
22090 
22091   input_path="$new_path"
22092   # Check if we need to convert this using DOS-style short mode. If the path
22093   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22094   # take no chances and rewrite it.
22095   # Note: m4 eats our [], so we need to use [ and ] instead.
22096   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22097   if test "x$has_forbidden_chars" != x; then
22098     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22099     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22100     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22101     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22102       # Going to short mode and back again did indeed matter. Since short mode is
22103       # case insensitive, let's make it lowercase to improve readability.
22104       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22105       # Now convert it back to Unix-stile (cygpath)
22106       input_path=`$CYGPATH -u "$shortmode_path"`
22107       new_path="$input_path"
22108     fi
22109   fi
22110 
22111   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22112   if test "x$test_cygdrive_prefix" = x; then
22113     # As a simple fix, exclude /usr/bin since it's not a real path.
22114     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22115       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22116       # a path prefixed by /cygdrive for fixpath to work.
22117       new_path="$CYGWIN_ROOT_PATH$input_path"
22118     fi
22119   fi
22120 
22121 
22122   if test "x$path" != "x$new_path"; then
22123     BOOT_JDK="$new_path"
22124     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22125 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22126   fi
22127 
22128   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22129 
22130   path="$BOOT_JDK"
22131   has_colon=`$ECHO $path | $GREP ^.:`
22132   new_path="$path"
22133   if test "x$has_colon" = x; then
22134     # Not in mixed or Windows style, start by that.
22135     new_path=`cmd //c echo $path`
22136   fi
22137 
22138 
22139   input_path="$new_path"
22140   # Check if we need to convert this using DOS-style short mode. If the path
22141   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22142   # take no chances and rewrite it.
22143   # Note: m4 eats our [], so we need to use [ and ] instead.
22144   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22145   if test "x$has_forbidden_chars" != x; then
22146     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22147     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22148   fi
22149 
22150 
22151   windows_path="$new_path"
22152   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22153     unix_path=`$CYGPATH -u "$windows_path"`
22154     new_path="$unix_path"
22155   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22156     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22157     new_path="$unix_path"
22158   fi
22159 
22160   if test "x$path" != "x$new_path"; then
22161     BOOT_JDK="$new_path"
22162     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22163 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22164   fi
22165 
22166   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22167   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22168 
22169   else
22170     # We're on a posix platform. Hooray! :)
22171     path="$BOOT_JDK"
22172     has_space=`$ECHO "$path" | $GREP " "`
22173     if test "x$has_space" != x; then
22174       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22175 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22176       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22177     fi
22178 
22179     # Use eval to expand a potential ~
22180     eval path="$path"
22181     if test ! -f "$path" && test ! -d "$path"; then
22182       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22183     fi
22184 
22185     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22186   fi
22187 
22188               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22189 $as_echo_n "checking for Boot JDK... " >&6; }
22190               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22191 $as_echo "$BOOT_JDK" >&6; }
22192               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22193 $as_echo_n "checking Boot JDK version... " >&6; }
22194               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22195               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22196 $as_echo "$BOOT_JDK_VERSION" >&6; }
22197             fi # end check jdk version
22198           fi # end check rt.jar
22199         fi # end check javac
22200       fi # end check java
22201     fi # end check boot jdk found
22202   fi
22203 
22204 
22205   if test "x$BOOT_JDK_FOUND" = xno; then
22206     # Now execute the test
22207 
22208   if test "x$PROGRAMW6432" != x; then
22209     VIRTUAL_DIR="$PROGRAMW6432/Java"
22210 
22211   windows_path="$VIRTUAL_DIR"
22212   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22213     unix_path=`$CYGPATH -u "$windows_path"`
22214     VIRTUAL_DIR="$unix_path"
22215   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22216     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22217     VIRTUAL_DIR="$unix_path"
22218   fi
22219 
22220 
22221   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22222   BOOT_JDK_SUFFIX=""
22223   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22224   if test "x$ALL_JDKS_FOUND" != x; then
22225     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22226 
22227   if test "x$BOOT_JDK_FOUND" = xno; then
22228     # Now execute the test
22229 
22230         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22231         if test -d "$BOOT_JDK"; then
22232           BOOT_JDK_FOUND=maybe
22233           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22234 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22235         fi
22236 
22237 
22238     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22239     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22240       # Do we have a bin/java?
22241       if test ! -x "$BOOT_JDK/bin/java"; then
22242         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22244         BOOT_JDK_FOUND=no
22245       else
22246         # Do we have a bin/javac?
22247         if test ! -x "$BOOT_JDK/bin/javac"; then
22248           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22250           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22251 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22252           BOOT_JDK_FOUND=no
22253         else
22254           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22255           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22256             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22258             BOOT_JDK_FOUND=no
22259           else
22260             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22261             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22262 
22263             # Extra M4 quote needed to protect [] in grep expression.
22264             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22265             if test "x$FOUND_CORRECT_VERSION" = x; then
22266               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22267 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22268               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22269 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22270               BOOT_JDK_FOUND=no
22271             else
22272               # We're done! :-)
22273               BOOT_JDK_FOUND=yes
22274 
22275   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22276 
22277   # Input might be given as Windows format, start by converting to
22278   # unix format.
22279   path="$BOOT_JDK"
22280   new_path=`$CYGPATH -u "$path"`
22281 
22282   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22283   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22284   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22285   # "foo.exe" is OK but "foo" is an error.
22286   #
22287   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22288   # It is also a way to make sure we got the proper file name for the real test later on.
22289   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22290   if test "x$test_shortpath" = x; then
22291     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22292 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22293     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22294   fi
22295 
22296   # Call helper function which possibly converts this using DOS-style short mode.
22297   # If so, the updated path is stored in $new_path.
22298 
22299   input_path="$new_path"
22300   # Check if we need to convert this using DOS-style short mode. If the path
22301   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22302   # take no chances and rewrite it.
22303   # Note: m4 eats our [], so we need to use [ and ] instead.
22304   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22305   if test "x$has_forbidden_chars" != x; then
22306     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22307     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22308     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22309     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22310       # Going to short mode and back again did indeed matter. Since short mode is
22311       # case insensitive, let's make it lowercase to improve readability.
22312       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22313       # Now convert it back to Unix-stile (cygpath)
22314       input_path=`$CYGPATH -u "$shortmode_path"`
22315       new_path="$input_path"
22316     fi
22317   fi
22318 
22319   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22320   if test "x$test_cygdrive_prefix" = x; then
22321     # As a simple fix, exclude /usr/bin since it's not a real path.
22322     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22323       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22324       # a path prefixed by /cygdrive for fixpath to work.
22325       new_path="$CYGWIN_ROOT_PATH$input_path"
22326     fi
22327   fi
22328 
22329 
22330   if test "x$path" != "x$new_path"; then
22331     BOOT_JDK="$new_path"
22332     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22333 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22334   fi
22335 
22336   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22337 
22338   path="$BOOT_JDK"
22339   has_colon=`$ECHO $path | $GREP ^.:`
22340   new_path="$path"
22341   if test "x$has_colon" = x; then
22342     # Not in mixed or Windows style, start by that.
22343     new_path=`cmd //c echo $path`
22344   fi
22345 
22346 
22347   input_path="$new_path"
22348   # Check if we need to convert this using DOS-style short mode. If the path
22349   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22350   # take no chances and rewrite it.
22351   # Note: m4 eats our [], so we need to use [ and ] instead.
22352   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22353   if test "x$has_forbidden_chars" != x; then
22354     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22355     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22356   fi
22357 
22358 
22359   windows_path="$new_path"
22360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22361     unix_path=`$CYGPATH -u "$windows_path"`
22362     new_path="$unix_path"
22363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22364     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22365     new_path="$unix_path"
22366   fi
22367 
22368   if test "x$path" != "x$new_path"; then
22369     BOOT_JDK="$new_path"
22370     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22371 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22372   fi
22373 
22374   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22375   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22376 
22377   else
22378     # We're on a posix platform. Hooray! :)
22379     path="$BOOT_JDK"
22380     has_space=`$ECHO "$path" | $GREP " "`
22381     if test "x$has_space" != x; then
22382       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22383 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22384       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22385     fi
22386 
22387     # Use eval to expand a potential ~
22388     eval path="$path"
22389     if test ! -f "$path" && test ! -d "$path"; then
22390       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22391     fi
22392 
22393     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22394   fi
22395 
22396               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22397 $as_echo_n "checking for Boot JDK... " >&6; }
22398               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22399 $as_echo "$BOOT_JDK" >&6; }
22400               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22401 $as_echo_n "checking Boot JDK version... " >&6; }
22402               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22403               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22404 $as_echo "$BOOT_JDK_VERSION" >&6; }
22405             fi # end check jdk version
22406           fi # end check rt.jar
22407         fi # end check javac
22408       fi # end check java
22409     fi # end check boot jdk found
22410   fi
22411 
22412     done
22413   fi
22414 
22415   fi
22416 
22417 
22418     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22419     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22420       # Do we have a bin/java?
22421       if test ! -x "$BOOT_JDK/bin/java"; then
22422         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22424         BOOT_JDK_FOUND=no
22425       else
22426         # Do we have a bin/javac?
22427         if test ! -x "$BOOT_JDK/bin/javac"; then
22428           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22430           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22431 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22432           BOOT_JDK_FOUND=no
22433         else
22434           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22435           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22436             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22437 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22438             BOOT_JDK_FOUND=no
22439           else
22440             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22441             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22442 
22443             # Extra M4 quote needed to protect [] in grep expression.
22444             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22445             if test "x$FOUND_CORRECT_VERSION" = x; then
22446               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22448               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22449 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22450               BOOT_JDK_FOUND=no
22451             else
22452               # We're done! :-)
22453               BOOT_JDK_FOUND=yes
22454 
22455   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22456 
22457   # Input might be given as Windows format, start by converting to
22458   # unix format.
22459   path="$BOOT_JDK"
22460   new_path=`$CYGPATH -u "$path"`
22461 
22462   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22463   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22464   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22465   # "foo.exe" is OK but "foo" is an error.
22466   #
22467   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22468   # It is also a way to make sure we got the proper file name for the real test later on.
22469   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22470   if test "x$test_shortpath" = x; then
22471     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22472 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22473     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22474   fi
22475 
22476   # Call helper function which possibly converts this using DOS-style short mode.
22477   # If so, the updated path is stored in $new_path.
22478 
22479   input_path="$new_path"
22480   # Check if we need to convert this using DOS-style short mode. If the path
22481   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22482   # take no chances and rewrite it.
22483   # Note: m4 eats our [], so we need to use [ and ] instead.
22484   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22485   if test "x$has_forbidden_chars" != x; then
22486     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22487     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22488     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22489     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22490       # Going to short mode and back again did indeed matter. Since short mode is
22491       # case insensitive, let's make it lowercase to improve readability.
22492       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22493       # Now convert it back to Unix-stile (cygpath)
22494       input_path=`$CYGPATH -u "$shortmode_path"`
22495       new_path="$input_path"
22496     fi
22497   fi
22498 
22499   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22500   if test "x$test_cygdrive_prefix" = x; then
22501     # As a simple fix, exclude /usr/bin since it's not a real path.
22502     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22503       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22504       # a path prefixed by /cygdrive for fixpath to work.
22505       new_path="$CYGWIN_ROOT_PATH$input_path"
22506     fi
22507   fi
22508 
22509 
22510   if test "x$path" != "x$new_path"; then
22511     BOOT_JDK="$new_path"
22512     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22513 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22514   fi
22515 
22516   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22517 
22518   path="$BOOT_JDK"
22519   has_colon=`$ECHO $path | $GREP ^.:`
22520   new_path="$path"
22521   if test "x$has_colon" = x; then
22522     # Not in mixed or Windows style, start by that.
22523     new_path=`cmd //c echo $path`
22524   fi
22525 
22526 
22527   input_path="$new_path"
22528   # Check if we need to convert this using DOS-style short mode. If the path
22529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22530   # take no chances and rewrite it.
22531   # Note: m4 eats our [], so we need to use [ and ] instead.
22532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22533   if test "x$has_forbidden_chars" != x; then
22534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22535     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22536   fi
22537 
22538 
22539   windows_path="$new_path"
22540   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22541     unix_path=`$CYGPATH -u "$windows_path"`
22542     new_path="$unix_path"
22543   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22544     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22545     new_path="$unix_path"
22546   fi
22547 
22548   if test "x$path" != "x$new_path"; then
22549     BOOT_JDK="$new_path"
22550     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22551 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22552   fi
22553 
22554   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22555   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22556 
22557   else
22558     # We're on a posix platform. Hooray! :)
22559     path="$BOOT_JDK"
22560     has_space=`$ECHO "$path" | $GREP " "`
22561     if test "x$has_space" != x; then
22562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22563 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22564       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22565     fi
22566 
22567     # Use eval to expand a potential ~
22568     eval path="$path"
22569     if test ! -f "$path" && test ! -d "$path"; then
22570       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22571     fi
22572 
22573     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22574   fi
22575 
22576               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22577 $as_echo_n "checking for Boot JDK... " >&6; }
22578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22579 $as_echo "$BOOT_JDK" >&6; }
22580               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22581 $as_echo_n "checking Boot JDK version... " >&6; }
22582               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22583               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22584 $as_echo "$BOOT_JDK_VERSION" >&6; }
22585             fi # end check jdk version
22586           fi # end check rt.jar
22587         fi # end check javac
22588       fi # end check java
22589     fi # end check boot jdk found
22590   fi
22591 
22592 
22593   if test "x$BOOT_JDK_FOUND" = xno; then
22594     # Now execute the test
22595 
22596   if test "x$PROGRAMFILES" != x; then
22597     VIRTUAL_DIR="$PROGRAMFILES/Java"
22598 
22599   windows_path="$VIRTUAL_DIR"
22600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22601     unix_path=`$CYGPATH -u "$windows_path"`
22602     VIRTUAL_DIR="$unix_path"
22603   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22604     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22605     VIRTUAL_DIR="$unix_path"
22606   fi
22607 
22608 
22609   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22610   BOOT_JDK_SUFFIX=""
22611   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22612   if test "x$ALL_JDKS_FOUND" != x; then
22613     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22614 
22615   if test "x$BOOT_JDK_FOUND" = xno; then
22616     # Now execute the test
22617 
22618         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22619         if test -d "$BOOT_JDK"; then
22620           BOOT_JDK_FOUND=maybe
22621           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22622 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22623         fi
22624 
22625 
22626     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22627     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22628       # Do we have a bin/java?
22629       if test ! -x "$BOOT_JDK/bin/java"; then
22630         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22632         BOOT_JDK_FOUND=no
22633       else
22634         # Do we have a bin/javac?
22635         if test ! -x "$BOOT_JDK/bin/javac"; then
22636           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22638           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22639 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22640           BOOT_JDK_FOUND=no
22641         else
22642           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22643           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22644             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22645 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22646             BOOT_JDK_FOUND=no
22647           else
22648             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22649             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22650 
22651             # Extra M4 quote needed to protect [] in grep expression.
22652             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22653             if test "x$FOUND_CORRECT_VERSION" = x; then
22654               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22656               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22657 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22658               BOOT_JDK_FOUND=no
22659             else
22660               # We're done! :-)
22661               BOOT_JDK_FOUND=yes
22662 
22663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22664 
22665   # Input might be given as Windows format, start by converting to
22666   # unix format.
22667   path="$BOOT_JDK"
22668   new_path=`$CYGPATH -u "$path"`
22669 
22670   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22671   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22672   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22673   # "foo.exe" is OK but "foo" is an error.
22674   #
22675   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22676   # It is also a way to make sure we got the proper file name for the real test later on.
22677   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22678   if test "x$test_shortpath" = x; then
22679     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22680 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22681     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22682   fi
22683 
22684   # Call helper function which possibly converts this using DOS-style short mode.
22685   # If so, the updated path is stored in $new_path.
22686 
22687   input_path="$new_path"
22688   # Check if we need to convert this using DOS-style short mode. If the path
22689   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22690   # take no chances and rewrite it.
22691   # Note: m4 eats our [], so we need to use [ and ] instead.
22692   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22693   if test "x$has_forbidden_chars" != x; then
22694     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22695     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22696     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22697     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22698       # Going to short mode and back again did indeed matter. Since short mode is
22699       # case insensitive, let's make it lowercase to improve readability.
22700       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22701       # Now convert it back to Unix-stile (cygpath)
22702       input_path=`$CYGPATH -u "$shortmode_path"`
22703       new_path="$input_path"
22704     fi
22705   fi
22706 
22707   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22708   if test "x$test_cygdrive_prefix" = x; then
22709     # As a simple fix, exclude /usr/bin since it's not a real path.
22710     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22711       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22712       # a path prefixed by /cygdrive for fixpath to work.
22713       new_path="$CYGWIN_ROOT_PATH$input_path"
22714     fi
22715   fi
22716 
22717 
22718   if test "x$path" != "x$new_path"; then
22719     BOOT_JDK="$new_path"
22720     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22721 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22722   fi
22723 
22724   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22725 
22726   path="$BOOT_JDK"
22727   has_colon=`$ECHO $path | $GREP ^.:`
22728   new_path="$path"
22729   if test "x$has_colon" = x; then
22730     # Not in mixed or Windows style, start by that.
22731     new_path=`cmd //c echo $path`
22732   fi
22733 
22734 
22735   input_path="$new_path"
22736   # Check if we need to convert this using DOS-style short mode. If the path
22737   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22738   # take no chances and rewrite it.
22739   # Note: m4 eats our [], so we need to use [ and ] instead.
22740   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22741   if test "x$has_forbidden_chars" != x; then
22742     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22743     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22744   fi
22745 
22746 
22747   windows_path="$new_path"
22748   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22749     unix_path=`$CYGPATH -u "$windows_path"`
22750     new_path="$unix_path"
22751   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22752     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22753     new_path="$unix_path"
22754   fi
22755 
22756   if test "x$path" != "x$new_path"; then
22757     BOOT_JDK="$new_path"
22758     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22759 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22760   fi
22761 
22762   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22763   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22764 
22765   else
22766     # We're on a posix platform. Hooray! :)
22767     path="$BOOT_JDK"
22768     has_space=`$ECHO "$path" | $GREP " "`
22769     if test "x$has_space" != x; then
22770       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22771 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22772       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22773     fi
22774 
22775     # Use eval to expand a potential ~
22776     eval path="$path"
22777     if test ! -f "$path" && test ! -d "$path"; then
22778       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22779     fi
22780 
22781     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22782   fi
22783 
22784               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22785 $as_echo_n "checking for Boot JDK... " >&6; }
22786               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22787 $as_echo "$BOOT_JDK" >&6; }
22788               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22789 $as_echo_n "checking Boot JDK version... " >&6; }
22790               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22791               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22792 $as_echo "$BOOT_JDK_VERSION" >&6; }
22793             fi # end check jdk version
22794           fi # end check rt.jar
22795         fi # end check javac
22796       fi # end check java
22797     fi # end check boot jdk found
22798   fi
22799 
22800     done
22801   fi
22802 
22803   fi
22804 
22805 
22806     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22807     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22808       # Do we have a bin/java?
22809       if test ! -x "$BOOT_JDK/bin/java"; then
22810         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22811 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22812         BOOT_JDK_FOUND=no
22813       else
22814         # Do we have a bin/javac?
22815         if test ! -x "$BOOT_JDK/bin/javac"; then
22816           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22818           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22819 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22820           BOOT_JDK_FOUND=no
22821         else
22822           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22823           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22824             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22825 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22826             BOOT_JDK_FOUND=no
22827           else
22828             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22829             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22830 
22831             # Extra M4 quote needed to protect [] in grep expression.
22832             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22833             if test "x$FOUND_CORRECT_VERSION" = x; then
22834               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22836               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22837 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22838               BOOT_JDK_FOUND=no
22839             else
22840               # We're done! :-)
22841               BOOT_JDK_FOUND=yes
22842 
22843   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22844 
22845   # Input might be given as Windows format, start by converting to
22846   # unix format.
22847   path="$BOOT_JDK"
22848   new_path=`$CYGPATH -u "$path"`
22849 
22850   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22851   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22852   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22853   # "foo.exe" is OK but "foo" is an error.
22854   #
22855   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22856   # It is also a way to make sure we got the proper file name for the real test later on.
22857   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22858   if test "x$test_shortpath" = x; then
22859     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22861     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22862   fi
22863 
22864   # Call helper function which possibly converts this using DOS-style short mode.
22865   # If so, the updated path is stored in $new_path.
22866 
22867   input_path="$new_path"
22868   # Check if we need to convert this using DOS-style short mode. If the path
22869   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22870   # take no chances and rewrite it.
22871   # Note: m4 eats our [], so we need to use [ and ] instead.
22872   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22873   if test "x$has_forbidden_chars" != x; then
22874     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22875     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22876     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22877     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22878       # Going to short mode and back again did indeed matter. Since short mode is
22879       # case insensitive, let's make it lowercase to improve readability.
22880       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22881       # Now convert it back to Unix-stile (cygpath)
22882       input_path=`$CYGPATH -u "$shortmode_path"`
22883       new_path="$input_path"
22884     fi
22885   fi
22886 
22887   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22888   if test "x$test_cygdrive_prefix" = x; then
22889     # As a simple fix, exclude /usr/bin since it's not a real path.
22890     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22891       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22892       # a path prefixed by /cygdrive for fixpath to work.
22893       new_path="$CYGWIN_ROOT_PATH$input_path"
22894     fi
22895   fi
22896 
22897 
22898   if test "x$path" != "x$new_path"; then
22899     BOOT_JDK="$new_path"
22900     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22901 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22902   fi
22903 
22904   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22905 
22906   path="$BOOT_JDK"
22907   has_colon=`$ECHO $path | $GREP ^.:`
22908   new_path="$path"
22909   if test "x$has_colon" = x; then
22910     # Not in mixed or Windows style, start by that.
22911     new_path=`cmd //c echo $path`
22912   fi
22913 
22914 
22915   input_path="$new_path"
22916   # Check if we need to convert this using DOS-style short mode. If the path
22917   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22918   # take no chances and rewrite it.
22919   # Note: m4 eats our [], so we need to use [ and ] instead.
22920   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22921   if test "x$has_forbidden_chars" != x; then
22922     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22923     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22924   fi
22925 
22926 
22927   windows_path="$new_path"
22928   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22929     unix_path=`$CYGPATH -u "$windows_path"`
22930     new_path="$unix_path"
22931   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22932     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22933     new_path="$unix_path"
22934   fi
22935 
22936   if test "x$path" != "x$new_path"; then
22937     BOOT_JDK="$new_path"
22938     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22939 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22940   fi
22941 
22942   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22943   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22944 
22945   else
22946     # We're on a posix platform. Hooray! :)
22947     path="$BOOT_JDK"
22948     has_space=`$ECHO "$path" | $GREP " "`
22949     if test "x$has_space" != x; then
22950       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22951 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22952       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22953     fi
22954 
22955     # Use eval to expand a potential ~
22956     eval path="$path"
22957     if test ! -f "$path" && test ! -d "$path"; then
22958       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22959     fi
22960 
22961     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22962   fi
22963 
22964               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22965 $as_echo_n "checking for Boot JDK... " >&6; }
22966               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22967 $as_echo "$BOOT_JDK" >&6; }
22968               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22969 $as_echo_n "checking Boot JDK version... " >&6; }
22970               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22971               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22972 $as_echo "$BOOT_JDK_VERSION" >&6; }
22973             fi # end check jdk version
22974           fi # end check rt.jar
22975         fi # end check javac
22976       fi # end check java
22977     fi # end check boot jdk found
22978   fi
22979 
22980 
22981   if test "x$BOOT_JDK_FOUND" = xno; then
22982     # Now execute the test
22983 
22984   if test "x$ProgramFiles" != x; then
22985     VIRTUAL_DIR="$ProgramFiles/Java"
22986 
22987   windows_path="$VIRTUAL_DIR"
22988   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22989     unix_path=`$CYGPATH -u "$windows_path"`
22990     VIRTUAL_DIR="$unix_path"
22991   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22992     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22993     VIRTUAL_DIR="$unix_path"
22994   fi
22995 
22996 
22997   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22998   BOOT_JDK_SUFFIX=""
22999   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23000   if test "x$ALL_JDKS_FOUND" != x; then
23001     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23002 
23003   if test "x$BOOT_JDK_FOUND" = xno; then
23004     # Now execute the test
23005 
23006         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23007         if test -d "$BOOT_JDK"; then
23008           BOOT_JDK_FOUND=maybe
23009           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23010 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23011         fi
23012 
23013 
23014     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23015     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23016       # Do we have a bin/java?
23017       if test ! -x "$BOOT_JDK/bin/java"; then
23018         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23020         BOOT_JDK_FOUND=no
23021       else
23022         # Do we have a bin/javac?
23023         if test ! -x "$BOOT_JDK/bin/javac"; then
23024           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23026           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23027 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23028           BOOT_JDK_FOUND=no
23029         else
23030           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23031           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23032             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23034             BOOT_JDK_FOUND=no
23035           else
23036             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23037             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23038 
23039             # Extra M4 quote needed to protect [] in grep expression.
23040             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23041             if test "x$FOUND_CORRECT_VERSION" = x; then
23042               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23043 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23044               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23045 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23046               BOOT_JDK_FOUND=no
23047             else
23048               # We're done! :-)
23049               BOOT_JDK_FOUND=yes
23050 
23051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23052 
23053   # Input might be given as Windows format, start by converting to
23054   # unix format.
23055   path="$BOOT_JDK"
23056   new_path=`$CYGPATH -u "$path"`
23057 
23058   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23059   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23060   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23061   # "foo.exe" is OK but "foo" is an error.
23062   #
23063   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23064   # It is also a way to make sure we got the proper file name for the real test later on.
23065   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23066   if test "x$test_shortpath" = x; then
23067     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23068 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23069     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23070   fi
23071 
23072   # Call helper function which possibly converts this using DOS-style short mode.
23073   # If so, the updated path is stored in $new_path.
23074 
23075   input_path="$new_path"
23076   # Check if we need to convert this using DOS-style short mode. If the path
23077   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23078   # take no chances and rewrite it.
23079   # Note: m4 eats our [], so we need to use [ and ] instead.
23080   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23081   if test "x$has_forbidden_chars" != x; then
23082     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23083     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23084     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23085     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23086       # Going to short mode and back again did indeed matter. Since short mode is
23087       # case insensitive, let's make it lowercase to improve readability.
23088       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23089       # Now convert it back to Unix-stile (cygpath)
23090       input_path=`$CYGPATH -u "$shortmode_path"`
23091       new_path="$input_path"
23092     fi
23093   fi
23094 
23095   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23096   if test "x$test_cygdrive_prefix" = x; then
23097     # As a simple fix, exclude /usr/bin since it's not a real path.
23098     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23099       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23100       # a path prefixed by /cygdrive for fixpath to work.
23101       new_path="$CYGWIN_ROOT_PATH$input_path"
23102     fi
23103   fi
23104 
23105 
23106   if test "x$path" != "x$new_path"; then
23107     BOOT_JDK="$new_path"
23108     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23109 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23110   fi
23111 
23112   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23113 
23114   path="$BOOT_JDK"
23115   has_colon=`$ECHO $path | $GREP ^.:`
23116   new_path="$path"
23117   if test "x$has_colon" = x; then
23118     # Not in mixed or Windows style, start by that.
23119     new_path=`cmd //c echo $path`
23120   fi
23121 
23122 
23123   input_path="$new_path"
23124   # Check if we need to convert this using DOS-style short mode. If the path
23125   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23126   # take no chances and rewrite it.
23127   # Note: m4 eats our [], so we need to use [ and ] instead.
23128   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23129   if test "x$has_forbidden_chars" != x; then
23130     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23131     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23132   fi
23133 
23134 
23135   windows_path="$new_path"
23136   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23137     unix_path=`$CYGPATH -u "$windows_path"`
23138     new_path="$unix_path"
23139   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23140     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23141     new_path="$unix_path"
23142   fi
23143 
23144   if test "x$path" != "x$new_path"; then
23145     BOOT_JDK="$new_path"
23146     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23147 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23148   fi
23149 
23150   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23151   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23152 
23153   else
23154     # We're on a posix platform. Hooray! :)
23155     path="$BOOT_JDK"
23156     has_space=`$ECHO "$path" | $GREP " "`
23157     if test "x$has_space" != x; then
23158       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23159 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23160       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23161     fi
23162 
23163     # Use eval to expand a potential ~
23164     eval path="$path"
23165     if test ! -f "$path" && test ! -d "$path"; then
23166       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23167     fi
23168 
23169     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23170   fi
23171 
23172               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23173 $as_echo_n "checking for Boot JDK... " >&6; }
23174               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23175 $as_echo "$BOOT_JDK" >&6; }
23176               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23177 $as_echo_n "checking Boot JDK version... " >&6; }
23178               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23179               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23180 $as_echo "$BOOT_JDK_VERSION" >&6; }
23181             fi # end check jdk version
23182           fi # end check rt.jar
23183         fi # end check javac
23184       fi # end check java
23185     fi # end check boot jdk found
23186   fi
23187 
23188     done
23189   fi
23190 
23191   fi
23192 
23193 
23194     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23195     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23196       # Do we have a bin/java?
23197       if test ! -x "$BOOT_JDK/bin/java"; then
23198         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23200         BOOT_JDK_FOUND=no
23201       else
23202         # Do we have a bin/javac?
23203         if test ! -x "$BOOT_JDK/bin/javac"; then
23204           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23205 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23206           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23207 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23208           BOOT_JDK_FOUND=no
23209         else
23210           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23211           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23212             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23213 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23214             BOOT_JDK_FOUND=no
23215           else
23216             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23217             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23218 
23219             # Extra M4 quote needed to protect [] in grep expression.
23220             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23221             if test "x$FOUND_CORRECT_VERSION" = x; then
23222               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23224               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23225 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23226               BOOT_JDK_FOUND=no
23227             else
23228               # We're done! :-)
23229               BOOT_JDK_FOUND=yes
23230 
23231   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23232 
23233   # Input might be given as Windows format, start by converting to
23234   # unix format.
23235   path="$BOOT_JDK"
23236   new_path=`$CYGPATH -u "$path"`
23237 
23238   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23239   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23240   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23241   # "foo.exe" is OK but "foo" is an error.
23242   #
23243   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23244   # It is also a way to make sure we got the proper file name for the real test later on.
23245   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23246   if test "x$test_shortpath" = x; then
23247     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23248 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23249     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23250   fi
23251 
23252   # Call helper function which possibly converts this using DOS-style short mode.
23253   # If so, the updated path is stored in $new_path.
23254 
23255   input_path="$new_path"
23256   # Check if we need to convert this using DOS-style short mode. If the path
23257   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23258   # take no chances and rewrite it.
23259   # Note: m4 eats our [], so we need to use [ and ] instead.
23260   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23261   if test "x$has_forbidden_chars" != x; then
23262     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23263     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23264     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23265     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23266       # Going to short mode and back again did indeed matter. Since short mode is
23267       # case insensitive, let's make it lowercase to improve readability.
23268       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23269       # Now convert it back to Unix-stile (cygpath)
23270       input_path=`$CYGPATH -u "$shortmode_path"`
23271       new_path="$input_path"
23272     fi
23273   fi
23274 
23275   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23276   if test "x$test_cygdrive_prefix" = x; then
23277     # As a simple fix, exclude /usr/bin since it's not a real path.
23278     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23279       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23280       # a path prefixed by /cygdrive for fixpath to work.
23281       new_path="$CYGWIN_ROOT_PATH$input_path"
23282     fi
23283   fi
23284 
23285 
23286   if test "x$path" != "x$new_path"; then
23287     BOOT_JDK="$new_path"
23288     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23289 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23290   fi
23291 
23292   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23293 
23294   path="$BOOT_JDK"
23295   has_colon=`$ECHO $path | $GREP ^.:`
23296   new_path="$path"
23297   if test "x$has_colon" = x; then
23298     # Not in mixed or Windows style, start by that.
23299     new_path=`cmd //c echo $path`
23300   fi
23301 
23302 
23303   input_path="$new_path"
23304   # Check if we need to convert this using DOS-style short mode. If the path
23305   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23306   # take no chances and rewrite it.
23307   # Note: m4 eats our [], so we need to use [ and ] instead.
23308   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23309   if test "x$has_forbidden_chars" != x; then
23310     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23311     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23312   fi
23313 
23314 
23315   windows_path="$new_path"
23316   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23317     unix_path=`$CYGPATH -u "$windows_path"`
23318     new_path="$unix_path"
23319   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23320     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23321     new_path="$unix_path"
23322   fi
23323 
23324   if test "x$path" != "x$new_path"; then
23325     BOOT_JDK="$new_path"
23326     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23327 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23328   fi
23329 
23330   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23331   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23332 
23333   else
23334     # We're on a posix platform. Hooray! :)
23335     path="$BOOT_JDK"
23336     has_space=`$ECHO "$path" | $GREP " "`
23337     if test "x$has_space" != x; then
23338       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23339 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23340       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23341     fi
23342 
23343     # Use eval to expand a potential ~
23344     eval path="$path"
23345     if test ! -f "$path" && test ! -d "$path"; then
23346       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23347     fi
23348 
23349     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23350   fi
23351 
23352               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23353 $as_echo_n "checking for Boot JDK... " >&6; }
23354               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23355 $as_echo "$BOOT_JDK" >&6; }
23356               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23357 $as_echo_n "checking Boot JDK version... " >&6; }
23358               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23359               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23360 $as_echo "$BOOT_JDK_VERSION" >&6; }
23361             fi # end check jdk version
23362           fi # end check rt.jar
23363         fi # end check javac
23364       fi # end check java
23365     fi # end check boot jdk found
23366   fi
23367 
23368 
23369   if test "x$BOOT_JDK_FOUND" = xno; then
23370     # Now execute the test
23371 
23372   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23373   BOOT_JDK_SUFFIX=""
23374   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23375   if test "x$ALL_JDKS_FOUND" != x; then
23376     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23377 
23378   if test "x$BOOT_JDK_FOUND" = xno; then
23379     # Now execute the test
23380 
23381         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23382         if test -d "$BOOT_JDK"; then
23383           BOOT_JDK_FOUND=maybe
23384           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23385 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23386         fi
23387 
23388 
23389     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23390     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23391       # Do we have a bin/java?
23392       if test ! -x "$BOOT_JDK/bin/java"; then
23393         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23394 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23395         BOOT_JDK_FOUND=no
23396       else
23397         # Do we have a bin/javac?
23398         if test ! -x "$BOOT_JDK/bin/javac"; then
23399           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23400 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23401           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23402 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23403           BOOT_JDK_FOUND=no
23404         else
23405           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23406           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23407             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23409             BOOT_JDK_FOUND=no
23410           else
23411             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23412             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23413 
23414             # Extra M4 quote needed to protect [] in grep expression.
23415             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23416             if test "x$FOUND_CORRECT_VERSION" = x; then
23417               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23419               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23420 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23421               BOOT_JDK_FOUND=no
23422             else
23423               # We're done! :-)
23424               BOOT_JDK_FOUND=yes
23425 
23426   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23427 
23428   # Input might be given as Windows format, start by converting to
23429   # unix format.
23430   path="$BOOT_JDK"
23431   new_path=`$CYGPATH -u "$path"`
23432 
23433   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23434   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23435   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23436   # "foo.exe" is OK but "foo" is an error.
23437   #
23438   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23439   # It is also a way to make sure we got the proper file name for the real test later on.
23440   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23441   if test "x$test_shortpath" = x; then
23442     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23443 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23444     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23445   fi
23446 
23447   # Call helper function which possibly converts this using DOS-style short mode.
23448   # If so, the updated path is stored in $new_path.
23449 
23450   input_path="$new_path"
23451   # Check if we need to convert this using DOS-style short mode. If the path
23452   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23453   # take no chances and rewrite it.
23454   # Note: m4 eats our [], so we need to use [ and ] instead.
23455   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23456   if test "x$has_forbidden_chars" != x; then
23457     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23458     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23459     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23460     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23461       # Going to short mode and back again did indeed matter. Since short mode is
23462       # case insensitive, let's make it lowercase to improve readability.
23463       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23464       # Now convert it back to Unix-stile (cygpath)
23465       input_path=`$CYGPATH -u "$shortmode_path"`
23466       new_path="$input_path"
23467     fi
23468   fi
23469 
23470   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23471   if test "x$test_cygdrive_prefix" = x; then
23472     # As a simple fix, exclude /usr/bin since it's not a real path.
23473     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23474       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23475       # a path prefixed by /cygdrive for fixpath to work.
23476       new_path="$CYGWIN_ROOT_PATH$input_path"
23477     fi
23478   fi
23479 
23480 
23481   if test "x$path" != "x$new_path"; then
23482     BOOT_JDK="$new_path"
23483     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23484 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23485   fi
23486 
23487   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23488 
23489   path="$BOOT_JDK"
23490   has_colon=`$ECHO $path | $GREP ^.:`
23491   new_path="$path"
23492   if test "x$has_colon" = x; then
23493     # Not in mixed or Windows style, start by that.
23494     new_path=`cmd //c echo $path`
23495   fi
23496 
23497 
23498   input_path="$new_path"
23499   # Check if we need to convert this using DOS-style short mode. If the path
23500   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23501   # take no chances and rewrite it.
23502   # Note: m4 eats our [], so we need to use [ and ] instead.
23503   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23504   if test "x$has_forbidden_chars" != x; then
23505     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23506     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23507   fi
23508 
23509 
23510   windows_path="$new_path"
23511   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23512     unix_path=`$CYGPATH -u "$windows_path"`
23513     new_path="$unix_path"
23514   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23515     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23516     new_path="$unix_path"
23517   fi
23518 
23519   if test "x$path" != "x$new_path"; then
23520     BOOT_JDK="$new_path"
23521     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23522 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23523   fi
23524 
23525   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23526   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23527 
23528   else
23529     # We're on a posix platform. Hooray! :)
23530     path="$BOOT_JDK"
23531     has_space=`$ECHO "$path" | $GREP " "`
23532     if test "x$has_space" != x; then
23533       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23534 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23535       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23536     fi
23537 
23538     # Use eval to expand a potential ~
23539     eval path="$path"
23540     if test ! -f "$path" && test ! -d "$path"; then
23541       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23542     fi
23543 
23544     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23545   fi
23546 
23547               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23548 $as_echo_n "checking for Boot JDK... " >&6; }
23549               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23550 $as_echo "$BOOT_JDK" >&6; }
23551               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23552 $as_echo_n "checking Boot JDK version... " >&6; }
23553               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23554               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23555 $as_echo "$BOOT_JDK_VERSION" >&6; }
23556             fi # end check jdk version
23557           fi # end check rt.jar
23558         fi # end check javac
23559       fi # end check java
23560     fi # end check boot jdk found
23561   fi
23562 
23563     done
23564   fi
23565 
23566 
23567     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23568     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23569       # Do we have a bin/java?
23570       if test ! -x "$BOOT_JDK/bin/java"; then
23571         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23572 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23573         BOOT_JDK_FOUND=no
23574       else
23575         # Do we have a bin/javac?
23576         if test ! -x "$BOOT_JDK/bin/javac"; then
23577           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23578 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23579           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23580 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23581           BOOT_JDK_FOUND=no
23582         else
23583           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23584           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23585             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23586 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23587             BOOT_JDK_FOUND=no
23588           else
23589             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23590             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23591 
23592             # Extra M4 quote needed to protect [] in grep expression.
23593             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23594             if test "x$FOUND_CORRECT_VERSION" = x; then
23595               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23596 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23597               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23598 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23599               BOOT_JDK_FOUND=no
23600             else
23601               # We're done! :-)
23602               BOOT_JDK_FOUND=yes
23603 
23604   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23605 
23606   # Input might be given as Windows format, start by converting to
23607   # unix format.
23608   path="$BOOT_JDK"
23609   new_path=`$CYGPATH -u "$path"`
23610 
23611   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23612   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23613   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23614   # "foo.exe" is OK but "foo" is an error.
23615   #
23616   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23617   # It is also a way to make sure we got the proper file name for the real test later on.
23618   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23619   if test "x$test_shortpath" = x; then
23620     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23621 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23622     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23623   fi
23624 
23625   # Call helper function which possibly converts this using DOS-style short mode.
23626   # If so, the updated path is stored in $new_path.
23627 
23628   input_path="$new_path"
23629   # Check if we need to convert this using DOS-style short mode. If the path
23630   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23631   # take no chances and rewrite it.
23632   # Note: m4 eats our [], so we need to use [ and ] instead.
23633   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23634   if test "x$has_forbidden_chars" != x; then
23635     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23636     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23637     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23638     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23639       # Going to short mode and back again did indeed matter. Since short mode is
23640       # case insensitive, let's make it lowercase to improve readability.
23641       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23642       # Now convert it back to Unix-stile (cygpath)
23643       input_path=`$CYGPATH -u "$shortmode_path"`
23644       new_path="$input_path"
23645     fi
23646   fi
23647 
23648   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23649   if test "x$test_cygdrive_prefix" = x; then
23650     # As a simple fix, exclude /usr/bin since it's not a real path.
23651     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23652       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23653       # a path prefixed by /cygdrive for fixpath to work.
23654       new_path="$CYGWIN_ROOT_PATH$input_path"
23655     fi
23656   fi
23657 
23658 
23659   if test "x$path" != "x$new_path"; then
23660     BOOT_JDK="$new_path"
23661     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23662 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23663   fi
23664 
23665   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23666 
23667   path="$BOOT_JDK"
23668   has_colon=`$ECHO $path | $GREP ^.:`
23669   new_path="$path"
23670   if test "x$has_colon" = x; then
23671     # Not in mixed or Windows style, start by that.
23672     new_path=`cmd //c echo $path`
23673   fi
23674 
23675 
23676   input_path="$new_path"
23677   # Check if we need to convert this using DOS-style short mode. If the path
23678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23679   # take no chances and rewrite it.
23680   # Note: m4 eats our [], so we need to use [ and ] instead.
23681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23682   if test "x$has_forbidden_chars" != x; then
23683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23684     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23685   fi
23686 
23687 
23688   windows_path="$new_path"
23689   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23690     unix_path=`$CYGPATH -u "$windows_path"`
23691     new_path="$unix_path"
23692   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23693     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23694     new_path="$unix_path"
23695   fi
23696 
23697   if test "x$path" != "x$new_path"; then
23698     BOOT_JDK="$new_path"
23699     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23700 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23701   fi
23702 
23703   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23704   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23705 
23706   else
23707     # We're on a posix platform. Hooray! :)
23708     path="$BOOT_JDK"
23709     has_space=`$ECHO "$path" | $GREP " "`
23710     if test "x$has_space" != x; then
23711       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23712 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23713       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23714     fi
23715 
23716     # Use eval to expand a potential ~
23717     eval path="$path"
23718     if test ! -f "$path" && test ! -d "$path"; then
23719       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23720     fi
23721 
23722     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23723   fi
23724 
23725               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23726 $as_echo_n "checking for Boot JDK... " >&6; }
23727               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23728 $as_echo "$BOOT_JDK" >&6; }
23729               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23730 $as_echo_n "checking Boot JDK version... " >&6; }
23731               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23732               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23733 $as_echo "$BOOT_JDK_VERSION" >&6; }
23734             fi # end check jdk version
23735           fi # end check rt.jar
23736         fi # end check javac
23737       fi # end check java
23738     fi # end check boot jdk found
23739   fi
23740 
23741   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23742 
23743   if test "x$BOOT_JDK_FOUND" = xno; then
23744     # Now execute the test
23745 
23746   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23747   BOOT_JDK_SUFFIX="/Contents/Home"
23748   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23749   if test "x$ALL_JDKS_FOUND" != x; then
23750     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23751 
23752   if test "x$BOOT_JDK_FOUND" = xno; then
23753     # Now execute the test
23754 
23755         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23756         if test -d "$BOOT_JDK"; then
23757           BOOT_JDK_FOUND=maybe
23758           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23759 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23760         fi
23761 
23762 
23763     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23764     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23765       # Do we have a bin/java?
23766       if test ! -x "$BOOT_JDK/bin/java"; then
23767         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23768 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23769         BOOT_JDK_FOUND=no
23770       else
23771         # Do we have a bin/javac?
23772         if test ! -x "$BOOT_JDK/bin/javac"; then
23773           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23774 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23775           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23776 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23777           BOOT_JDK_FOUND=no
23778         else
23779           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23780           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23781             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23782 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23783             BOOT_JDK_FOUND=no
23784           else
23785             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23786             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23787 
23788             # Extra M4 quote needed to protect [] in grep expression.
23789             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23790             if test "x$FOUND_CORRECT_VERSION" = x; then
23791               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23792 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23793               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23794 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23795               BOOT_JDK_FOUND=no
23796             else
23797               # We're done! :-)
23798               BOOT_JDK_FOUND=yes
23799 
23800   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23801 
23802   # Input might be given as Windows format, start by converting to
23803   # unix format.
23804   path="$BOOT_JDK"
23805   new_path=`$CYGPATH -u "$path"`
23806 
23807   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23808   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23809   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23810   # "foo.exe" is OK but "foo" is an error.
23811   #
23812   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23813   # It is also a way to make sure we got the proper file name for the real test later on.
23814   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23815   if test "x$test_shortpath" = x; then
23816     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23817 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23818     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23819   fi
23820 
23821   # Call helper function which possibly converts this using DOS-style short mode.
23822   # If so, the updated path is stored in $new_path.
23823 
23824   input_path="$new_path"
23825   # Check if we need to convert this using DOS-style short mode. If the path
23826   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23827   # take no chances and rewrite it.
23828   # Note: m4 eats our [], so we need to use [ and ] instead.
23829   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23830   if test "x$has_forbidden_chars" != x; then
23831     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23832     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23833     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23834     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23835       # Going to short mode and back again did indeed matter. Since short mode is
23836       # case insensitive, let's make it lowercase to improve readability.
23837       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23838       # Now convert it back to Unix-stile (cygpath)
23839       input_path=`$CYGPATH -u "$shortmode_path"`
23840       new_path="$input_path"
23841     fi
23842   fi
23843 
23844   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23845   if test "x$test_cygdrive_prefix" = x; then
23846     # As a simple fix, exclude /usr/bin since it's not a real path.
23847     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23848       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23849       # a path prefixed by /cygdrive for fixpath to work.
23850       new_path="$CYGWIN_ROOT_PATH$input_path"
23851     fi
23852   fi
23853 
23854 
23855   if test "x$path" != "x$new_path"; then
23856     BOOT_JDK="$new_path"
23857     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23858 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23859   fi
23860 
23861   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23862 
23863   path="$BOOT_JDK"
23864   has_colon=`$ECHO $path | $GREP ^.:`
23865   new_path="$path"
23866   if test "x$has_colon" = x; then
23867     # Not in mixed or Windows style, start by that.
23868     new_path=`cmd //c echo $path`
23869   fi
23870 
23871 
23872   input_path="$new_path"
23873   # Check if we need to convert this using DOS-style short mode. If the path
23874   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23875   # take no chances and rewrite it.
23876   # Note: m4 eats our [], so we need to use [ and ] instead.
23877   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23878   if test "x$has_forbidden_chars" != x; then
23879     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23880     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23881   fi
23882 
23883 
23884   windows_path="$new_path"
23885   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23886     unix_path=`$CYGPATH -u "$windows_path"`
23887     new_path="$unix_path"
23888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23889     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23890     new_path="$unix_path"
23891   fi
23892 
23893   if test "x$path" != "x$new_path"; then
23894     BOOT_JDK="$new_path"
23895     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23896 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23897   fi
23898 
23899   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23900   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23901 
23902   else
23903     # We're on a posix platform. Hooray! :)
23904     path="$BOOT_JDK"
23905     has_space=`$ECHO "$path" | $GREP " "`
23906     if test "x$has_space" != x; then
23907       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23908 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23909       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23910     fi
23911 
23912     # Use eval to expand a potential ~
23913     eval path="$path"
23914     if test ! -f "$path" && test ! -d "$path"; then
23915       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23916     fi
23917 
23918     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23919   fi
23920 
23921               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23922 $as_echo_n "checking for Boot JDK... " >&6; }
23923               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23924 $as_echo "$BOOT_JDK" >&6; }
23925               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23926 $as_echo_n "checking Boot JDK version... " >&6; }
23927               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23928               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23929 $as_echo "$BOOT_JDK_VERSION" >&6; }
23930             fi # end check jdk version
23931           fi # end check rt.jar
23932         fi # end check javac
23933       fi # end check java
23934     fi # end check boot jdk found
23935   fi
23936 
23937     done
23938   fi
23939 
23940 
23941     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23942     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23943       # Do we have a bin/java?
23944       if test ! -x "$BOOT_JDK/bin/java"; then
23945         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23947         BOOT_JDK_FOUND=no
23948       else
23949         # Do we have a bin/javac?
23950         if test ! -x "$BOOT_JDK/bin/javac"; then
23951           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23953           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23954 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23955           BOOT_JDK_FOUND=no
23956         else
23957           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23958           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23959             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23961             BOOT_JDK_FOUND=no
23962           else
23963             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23964             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23965 
23966             # Extra M4 quote needed to protect [] in grep expression.
23967             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23968             if test "x$FOUND_CORRECT_VERSION" = x; then
23969               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23971               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23972 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23973               BOOT_JDK_FOUND=no
23974             else
23975               # We're done! :-)
23976               BOOT_JDK_FOUND=yes
23977 
23978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23979 
23980   # Input might be given as Windows format, start by converting to
23981   # unix format.
23982   path="$BOOT_JDK"
23983   new_path=`$CYGPATH -u "$path"`
23984 
23985   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23986   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23987   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23988   # "foo.exe" is OK but "foo" is an error.
23989   #
23990   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23991   # It is also a way to make sure we got the proper file name for the real test later on.
23992   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23993   if test "x$test_shortpath" = x; then
23994     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23996     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23997   fi
23998 
23999   # Call helper function which possibly converts this using DOS-style short mode.
24000   # If so, the updated path is stored in $new_path.
24001 
24002   input_path="$new_path"
24003   # Check if we need to convert this using DOS-style short mode. If the path
24004   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24005   # take no chances and rewrite it.
24006   # Note: m4 eats our [], so we need to use [ and ] instead.
24007   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24008   if test "x$has_forbidden_chars" != x; then
24009     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24010     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24011     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24012     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24013       # Going to short mode and back again did indeed matter. Since short mode is
24014       # case insensitive, let's make it lowercase to improve readability.
24015       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24016       # Now convert it back to Unix-stile (cygpath)
24017       input_path=`$CYGPATH -u "$shortmode_path"`
24018       new_path="$input_path"
24019     fi
24020   fi
24021 
24022   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24023   if test "x$test_cygdrive_prefix" = x; then
24024     # As a simple fix, exclude /usr/bin since it's not a real path.
24025     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24026       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24027       # a path prefixed by /cygdrive for fixpath to work.
24028       new_path="$CYGWIN_ROOT_PATH$input_path"
24029     fi
24030   fi
24031 
24032 
24033   if test "x$path" != "x$new_path"; then
24034     BOOT_JDK="$new_path"
24035     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24037   fi
24038 
24039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24040 
24041   path="$BOOT_JDK"
24042   has_colon=`$ECHO $path | $GREP ^.:`
24043   new_path="$path"
24044   if test "x$has_colon" = x; then
24045     # Not in mixed or Windows style, start by that.
24046     new_path=`cmd //c echo $path`
24047   fi
24048 
24049 
24050   input_path="$new_path"
24051   # Check if we need to convert this using DOS-style short mode. If the path
24052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24053   # take no chances and rewrite it.
24054   # Note: m4 eats our [], so we need to use [ and ] instead.
24055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24056   if test "x$has_forbidden_chars" != x; then
24057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24058     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24059   fi
24060 
24061 
24062   windows_path="$new_path"
24063   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24064     unix_path=`$CYGPATH -u "$windows_path"`
24065     new_path="$unix_path"
24066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24067     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24068     new_path="$unix_path"
24069   fi
24070 
24071   if test "x$path" != "x$new_path"; then
24072     BOOT_JDK="$new_path"
24073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24075   fi
24076 
24077   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24078   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24079 
24080   else
24081     # We're on a posix platform. Hooray! :)
24082     path="$BOOT_JDK"
24083     has_space=`$ECHO "$path" | $GREP " "`
24084     if test "x$has_space" != x; then
24085       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24086 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24087       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24088     fi
24089 
24090     # Use eval to expand a potential ~
24091     eval path="$path"
24092     if test ! -f "$path" && test ! -d "$path"; then
24093       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24094     fi
24095 
24096     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24097   fi
24098 
24099               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24100 $as_echo_n "checking for Boot JDK... " >&6; }
24101               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24102 $as_echo "$BOOT_JDK" >&6; }
24103               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24104 $as_echo_n "checking Boot JDK version... " >&6; }
24105               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24106               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24107 $as_echo "$BOOT_JDK_VERSION" >&6; }
24108             fi # end check jdk version
24109           fi # end check rt.jar
24110         fi # end check javac
24111       fi # end check java
24112     fi # end check boot jdk found
24113   fi
24114 
24115 
24116   if test "x$BOOT_JDK_FOUND" = xno; then
24117     # Now execute the test
24118 
24119   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24120   BOOT_JDK_SUFFIX="/Contents/Home"
24121   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24122   if test "x$ALL_JDKS_FOUND" != x; then
24123     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24124 
24125   if test "x$BOOT_JDK_FOUND" = xno; then
24126     # Now execute the test
24127 
24128         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24129         if test -d "$BOOT_JDK"; then
24130           BOOT_JDK_FOUND=maybe
24131           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24132 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24133         fi
24134 
24135 
24136     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24137     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24138       # Do we have a bin/java?
24139       if test ! -x "$BOOT_JDK/bin/java"; then
24140         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24141 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24142         BOOT_JDK_FOUND=no
24143       else
24144         # Do we have a bin/javac?
24145         if test ! -x "$BOOT_JDK/bin/javac"; then
24146           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24147 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24148           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24149 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24150           BOOT_JDK_FOUND=no
24151         else
24152           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24153           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24154             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24155 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24156             BOOT_JDK_FOUND=no
24157           else
24158             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24159             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24160 
24161             # Extra M4 quote needed to protect [] in grep expression.
24162             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24163             if test "x$FOUND_CORRECT_VERSION" = x; then
24164               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24165 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24166               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24167 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24168               BOOT_JDK_FOUND=no
24169             else
24170               # We're done! :-)
24171               BOOT_JDK_FOUND=yes
24172 
24173   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24174 
24175   # Input might be given as Windows format, start by converting to
24176   # unix format.
24177   path="$BOOT_JDK"
24178   new_path=`$CYGPATH -u "$path"`
24179 
24180   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24181   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24182   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24183   # "foo.exe" is OK but "foo" is an error.
24184   #
24185   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24186   # It is also a way to make sure we got the proper file name for the real test later on.
24187   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24188   if test "x$test_shortpath" = x; then
24189     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24191     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24192   fi
24193 
24194   # Call helper function which possibly converts this using DOS-style short mode.
24195   # If so, the updated path is stored in $new_path.
24196 
24197   input_path="$new_path"
24198   # Check if we need to convert this using DOS-style short mode. If the path
24199   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24200   # take no chances and rewrite it.
24201   # Note: m4 eats our [], so we need to use [ and ] instead.
24202   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24203   if test "x$has_forbidden_chars" != x; then
24204     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24205     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24206     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24207     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24208       # Going to short mode and back again did indeed matter. Since short mode is
24209       # case insensitive, let's make it lowercase to improve readability.
24210       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24211       # Now convert it back to Unix-stile (cygpath)
24212       input_path=`$CYGPATH -u "$shortmode_path"`
24213       new_path="$input_path"
24214     fi
24215   fi
24216 
24217   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24218   if test "x$test_cygdrive_prefix" = x; then
24219     # As a simple fix, exclude /usr/bin since it's not a real path.
24220     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24221       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24222       # a path prefixed by /cygdrive for fixpath to work.
24223       new_path="$CYGWIN_ROOT_PATH$input_path"
24224     fi
24225   fi
24226 
24227 
24228   if test "x$path" != "x$new_path"; then
24229     BOOT_JDK="$new_path"
24230     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24231 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24232   fi
24233 
24234   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24235 
24236   path="$BOOT_JDK"
24237   has_colon=`$ECHO $path | $GREP ^.:`
24238   new_path="$path"
24239   if test "x$has_colon" = x; then
24240     # Not in mixed or Windows style, start by that.
24241     new_path=`cmd //c echo $path`
24242   fi
24243 
24244 
24245   input_path="$new_path"
24246   # Check if we need to convert this using DOS-style short mode. If the path
24247   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24248   # take no chances and rewrite it.
24249   # Note: m4 eats our [], so we need to use [ and ] instead.
24250   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24251   if test "x$has_forbidden_chars" != x; then
24252     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24253     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24254   fi
24255 
24256 
24257   windows_path="$new_path"
24258   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24259     unix_path=`$CYGPATH -u "$windows_path"`
24260     new_path="$unix_path"
24261   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24262     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24263     new_path="$unix_path"
24264   fi
24265 
24266   if test "x$path" != "x$new_path"; then
24267     BOOT_JDK="$new_path"
24268     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24269 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24270   fi
24271 
24272   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24273   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24274 
24275   else
24276     # We're on a posix platform. Hooray! :)
24277     path="$BOOT_JDK"
24278     has_space=`$ECHO "$path" | $GREP " "`
24279     if test "x$has_space" != x; then
24280       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24282       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24283     fi
24284 
24285     # Use eval to expand a potential ~
24286     eval path="$path"
24287     if test ! -f "$path" && test ! -d "$path"; then
24288       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24289     fi
24290 
24291     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24292   fi
24293 
24294               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24295 $as_echo_n "checking for Boot JDK... " >&6; }
24296               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24297 $as_echo "$BOOT_JDK" >&6; }
24298               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24299 $as_echo_n "checking Boot JDK version... " >&6; }
24300               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24301               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24302 $as_echo "$BOOT_JDK_VERSION" >&6; }
24303             fi # end check jdk version
24304           fi # end check rt.jar
24305         fi # end check javac
24306       fi # end check java
24307     fi # end check boot jdk found
24308   fi
24309 
24310     done
24311   fi
24312 
24313 
24314     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24315     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24316       # Do we have a bin/java?
24317       if test ! -x "$BOOT_JDK/bin/java"; then
24318         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24319 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24320         BOOT_JDK_FOUND=no
24321       else
24322         # Do we have a bin/javac?
24323         if test ! -x "$BOOT_JDK/bin/javac"; then
24324           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24325 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24326           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24327 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24328           BOOT_JDK_FOUND=no
24329         else
24330           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24331           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24332             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24333 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24334             BOOT_JDK_FOUND=no
24335           else
24336             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24337             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24338 
24339             # Extra M4 quote needed to protect [] in grep expression.
24340             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24341             if test "x$FOUND_CORRECT_VERSION" = x; then
24342               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24343 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24344               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24345 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24346               BOOT_JDK_FOUND=no
24347             else
24348               # We're done! :-)
24349               BOOT_JDK_FOUND=yes
24350 
24351   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24352 
24353   # Input might be given as Windows format, start by converting to
24354   # unix format.
24355   path="$BOOT_JDK"
24356   new_path=`$CYGPATH -u "$path"`
24357 
24358   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24359   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24360   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24361   # "foo.exe" is OK but "foo" is an error.
24362   #
24363   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24364   # It is also a way to make sure we got the proper file name for the real test later on.
24365   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24366   if test "x$test_shortpath" = x; then
24367     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24368 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24369     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24370   fi
24371 
24372   # Call helper function which possibly converts this using DOS-style short mode.
24373   # If so, the updated path is stored in $new_path.
24374 
24375   input_path="$new_path"
24376   # Check if we need to convert this using DOS-style short mode. If the path
24377   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24378   # take no chances and rewrite it.
24379   # Note: m4 eats our [], so we need to use [ and ] instead.
24380   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24381   if test "x$has_forbidden_chars" != x; then
24382     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24383     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24384     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24385     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24386       # Going to short mode and back again did indeed matter. Since short mode is
24387       # case insensitive, let's make it lowercase to improve readability.
24388       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24389       # Now convert it back to Unix-stile (cygpath)
24390       input_path=`$CYGPATH -u "$shortmode_path"`
24391       new_path="$input_path"
24392     fi
24393   fi
24394 
24395   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24396   if test "x$test_cygdrive_prefix" = x; then
24397     # As a simple fix, exclude /usr/bin since it's not a real path.
24398     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24399       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24400       # a path prefixed by /cygdrive for fixpath to work.
24401       new_path="$CYGWIN_ROOT_PATH$input_path"
24402     fi
24403   fi
24404 
24405 
24406   if test "x$path" != "x$new_path"; then
24407     BOOT_JDK="$new_path"
24408     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24409 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24410   fi
24411 
24412   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24413 
24414   path="$BOOT_JDK"
24415   has_colon=`$ECHO $path | $GREP ^.:`
24416   new_path="$path"
24417   if test "x$has_colon" = x; then
24418     # Not in mixed or Windows style, start by that.
24419     new_path=`cmd //c echo $path`
24420   fi
24421 
24422 
24423   input_path="$new_path"
24424   # Check if we need to convert this using DOS-style short mode. If the path
24425   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24426   # take no chances and rewrite it.
24427   # Note: m4 eats our [], so we need to use [ and ] instead.
24428   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24429   if test "x$has_forbidden_chars" != x; then
24430     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24431     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24432   fi
24433 
24434 
24435   windows_path="$new_path"
24436   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24437     unix_path=`$CYGPATH -u "$windows_path"`
24438     new_path="$unix_path"
24439   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24440     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24441     new_path="$unix_path"
24442   fi
24443 
24444   if test "x$path" != "x$new_path"; then
24445     BOOT_JDK="$new_path"
24446     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24447 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24448   fi
24449 
24450   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24451   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24452 
24453   else
24454     # We're on a posix platform. Hooray! :)
24455     path="$BOOT_JDK"
24456     has_space=`$ECHO "$path" | $GREP " "`
24457     if test "x$has_space" != x; then
24458       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24459 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24460       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24461     fi
24462 
24463     # Use eval to expand a potential ~
24464     eval path="$path"
24465     if test ! -f "$path" && test ! -d "$path"; then
24466       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24467     fi
24468 
24469     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24470   fi
24471 
24472               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24473 $as_echo_n "checking for Boot JDK... " >&6; }
24474               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24475 $as_echo "$BOOT_JDK" >&6; }
24476               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24477 $as_echo_n "checking Boot JDK version... " >&6; }
24478               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24479               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24480 $as_echo "$BOOT_JDK_VERSION" >&6; }
24481             fi # end check jdk version
24482           fi # end check rt.jar
24483         fi # end check javac
24484       fi # end check java
24485     fi # end check boot jdk found
24486   fi
24487 
24488   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24489 
24490   if test "x$BOOT_JDK_FOUND" = xno; then
24491     # Now execute the test
24492 
24493   BOOT_JDK_PREFIX="/usr/lib/jvm"
24494   BOOT_JDK_SUFFIX=""
24495   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24496   if test "x$ALL_JDKS_FOUND" != x; then
24497     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24498 
24499   if test "x$BOOT_JDK_FOUND" = xno; then
24500     # Now execute the test
24501 
24502         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24503         if test -d "$BOOT_JDK"; then
24504           BOOT_JDK_FOUND=maybe
24505           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24506 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24507         fi
24508 
24509 
24510     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24511     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24512       # Do we have a bin/java?
24513       if test ! -x "$BOOT_JDK/bin/java"; then
24514         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24515 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24516         BOOT_JDK_FOUND=no
24517       else
24518         # Do we have a bin/javac?
24519         if test ! -x "$BOOT_JDK/bin/javac"; then
24520           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24522           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24523 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24524           BOOT_JDK_FOUND=no
24525         else
24526           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24527           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24528             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24529 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24530             BOOT_JDK_FOUND=no
24531           else
24532             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24533             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24534 
24535             # Extra M4 quote needed to protect [] in grep expression.
24536             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24537             if test "x$FOUND_CORRECT_VERSION" = x; then
24538               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24539 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24540               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24541 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24542               BOOT_JDK_FOUND=no
24543             else
24544               # We're done! :-)
24545               BOOT_JDK_FOUND=yes
24546 
24547   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24548 
24549   # Input might be given as Windows format, start by converting to
24550   # unix format.
24551   path="$BOOT_JDK"
24552   new_path=`$CYGPATH -u "$path"`
24553 
24554   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24555   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24556   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24557   # "foo.exe" is OK but "foo" is an error.
24558   #
24559   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24560   # It is also a way to make sure we got the proper file name for the real test later on.
24561   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24562   if test "x$test_shortpath" = x; then
24563     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24564 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24565     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24566   fi
24567 
24568   # Call helper function which possibly converts this using DOS-style short mode.
24569   # If so, the updated path is stored in $new_path.
24570 
24571   input_path="$new_path"
24572   # Check if we need to convert this using DOS-style short mode. If the path
24573   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24574   # take no chances and rewrite it.
24575   # Note: m4 eats our [], so we need to use [ and ] instead.
24576   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24577   if test "x$has_forbidden_chars" != x; then
24578     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24579     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24580     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24581     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24582       # Going to short mode and back again did indeed matter. Since short mode is
24583       # case insensitive, let's make it lowercase to improve readability.
24584       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24585       # Now convert it back to Unix-stile (cygpath)
24586       input_path=`$CYGPATH -u "$shortmode_path"`
24587       new_path="$input_path"
24588     fi
24589   fi
24590 
24591   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24592   if test "x$test_cygdrive_prefix" = x; then
24593     # As a simple fix, exclude /usr/bin since it's not a real path.
24594     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24595       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24596       # a path prefixed by /cygdrive for fixpath to work.
24597       new_path="$CYGWIN_ROOT_PATH$input_path"
24598     fi
24599   fi
24600 
24601 
24602   if test "x$path" != "x$new_path"; then
24603     BOOT_JDK="$new_path"
24604     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24605 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24606   fi
24607 
24608   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24609 
24610   path="$BOOT_JDK"
24611   has_colon=`$ECHO $path | $GREP ^.:`
24612   new_path="$path"
24613   if test "x$has_colon" = x; then
24614     # Not in mixed or Windows style, start by that.
24615     new_path=`cmd //c echo $path`
24616   fi
24617 
24618 
24619   input_path="$new_path"
24620   # Check if we need to convert this using DOS-style short mode. If the path
24621   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24622   # take no chances and rewrite it.
24623   # Note: m4 eats our [], so we need to use [ and ] instead.
24624   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24625   if test "x$has_forbidden_chars" != x; then
24626     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24627     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24628   fi
24629 
24630 
24631   windows_path="$new_path"
24632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24633     unix_path=`$CYGPATH -u "$windows_path"`
24634     new_path="$unix_path"
24635   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24636     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24637     new_path="$unix_path"
24638   fi
24639 
24640   if test "x$path" != "x$new_path"; then
24641     BOOT_JDK="$new_path"
24642     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24643 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24644   fi
24645 
24646   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24647   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24648 
24649   else
24650     # We're on a posix platform. Hooray! :)
24651     path="$BOOT_JDK"
24652     has_space=`$ECHO "$path" | $GREP " "`
24653     if test "x$has_space" != x; then
24654       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24655 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24656       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24657     fi
24658 
24659     # Use eval to expand a potential ~
24660     eval path="$path"
24661     if test ! -f "$path" && test ! -d "$path"; then
24662       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24663     fi
24664 
24665     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24666   fi
24667 
24668               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24669 $as_echo_n "checking for Boot JDK... " >&6; }
24670               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24671 $as_echo "$BOOT_JDK" >&6; }
24672               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24673 $as_echo_n "checking Boot JDK version... " >&6; }
24674               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24675               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24676 $as_echo "$BOOT_JDK_VERSION" >&6; }
24677             fi # end check jdk version
24678           fi # end check rt.jar
24679         fi # end check javac
24680       fi # end check java
24681     fi # end check boot jdk found
24682   fi
24683 
24684     done
24685   fi
24686 
24687 
24688     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24689     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24690       # Do we have a bin/java?
24691       if test ! -x "$BOOT_JDK/bin/java"; then
24692         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24694         BOOT_JDK_FOUND=no
24695       else
24696         # Do we have a bin/javac?
24697         if test ! -x "$BOOT_JDK/bin/javac"; then
24698           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24700           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24701 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24702           BOOT_JDK_FOUND=no
24703         else
24704           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24705           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24706             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24708             BOOT_JDK_FOUND=no
24709           else
24710             # Oh, this is looking good! We probably have found a pr