1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 UCRT_DLL_DIR
 644 MSVCP_DLL
 645 MSVCR_DLL
 646 LIBCXX
 647 LLVM_LIBS
 648 LLVM_LDFLAGS
 649 LLVM_CFLAGS
 650 LLVM_CONFIG
 651 LIBFFI_LIBS
 652 LIBFFI_CFLAGS
 653 STATIC_CXX_SETTING
 654 LIBDL
 655 LIBM
 656 LIBZIP_CAN_USE_MMAP
 657 USE_EXTERNAL_LIBZ
 658 USE_EXTERNAL_LIBGIF
 659 USE_EXTERNAL_LIBJPEG
 660 FONTCONFIG_CFLAGS
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 DEBUG_BINARIES
 675 STRIP_POLICY
 676 ENABLE_DEBUG_SYMBOLS
 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 678 ZERO_ARCHFLAG
 679 LDFLAGS_CXX_JDK
 680 LDFLAGS_JDKEXE_SUFFIX
 681 LDFLAGS_JDKLIB_SUFFIX
 682 LDFLAGS_JDKEXE
 683 LDFLAGS_JDKLIB
 684 CXXFLAGS_JDKEXE
 685 CXXFLAGS_JDKLIB
 686 CFLAGS_JDKEXE
 687 CFLAGS_JDKLIB
 688 MACOSX_VERSION_MIN
 689 FDLIBM_CFLAGS
 690 USE_FORMAT_OVERFLOW
 691 NO_LIFETIME_DSE_CFLAG
 692 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 693 LEGACY_EXTRA_ASFLAGS
 694 LEGACY_EXTRA_LDFLAGS
 695 LEGACY_EXTRA_CXXFLAGS
 696 LEGACY_EXTRA_CFLAGS
 697 CXXSTD_CXXFLAG
 698 CXX_O_FLAG_NONE
 699 CXX_O_FLAG_NORM
 700 CXX_O_FLAG_HI
 701 CXX_O_FLAG_HIGHEST
 702 C_O_FLAG_NONE
 703 C_O_FLAG_NORM
 704 C_O_FLAG_HI
 705 C_O_FLAG_HIGHEST
 706 CXXFLAGS_DEBUG_SYMBOLS
 707 CFLAGS_DEBUG_SYMBOLS
 708 ASFLAGS_DEBUG_SYMBOLS
 709 CXX_FLAG_DEPS
 710 C_FLAG_DEPS
 711 SET_SHARED_LIBRARY_MAPFILE
 712 SET_SHARED_LIBRARY_NAME
 713 SET_SHARED_LIBRARY_ORIGIN
 714 SET_EXECUTABLE_ORIGIN
 715 SHARED_LIBRARY_FLAGS
 716 CXX_FLAG_REORDER
 717 C_FLAG_REORDER
 718 SYSROOT_LDFLAGS
 719 SYSROOT_CFLAGS
 720 RC_FLAGS
 721 AR_OUT_OPTION
 722 LD_OUT_OPTION
 723 EXE_OUT_OPTION
 724 CC_OUT_OPTION
 725 POST_MCS_CMD
 726 POST_STRIP_CMD
 727 ARFLAGS
 728 COMPILER_TARGET_BITS_FLAG
 729 JT_HOME
 730 JTREGEXE
 731 USING_BROKEN_SUSE_LD
 732 PACKAGE_PATH
 733 LDEXECXX
 734 LDEXE
 735 USE_CLANG
 736 HOTSPOT_LD
 737 HOTSPOT_CXX
 738 HOTSPOT_RC
 739 HOTSPOT_MT
 740 BUILD_LD
 741 BUILD_CXX
 742 BUILD_CC
 743 ac_ct_OBJDUMP
 744 OBJDUMP
 745 ac_ct_OBJCOPY
 746 OBJCOPY
 747 ac_ct_NM
 748 OTOOL
 749 ac_ct_STRIP
 750 MCS
 751 GNM
 752 NM
 753 STRIP
 754 MSBUILD
 755 DUMPBIN
 756 RC
 757 MT
 758 LIPO
 759 ac_ct_OBJC
 760 OBJCFLAGS
 761 OBJC
 762 ac_ct_AR
 763 AR
 764 AS
 765 LDCXX
 766 LD
 767 CXXCPP
 768 CPP
 769 CXX_VERSION_NUMBER
 770 CC_VERSION_NUMBER
 771 ac_ct_CXX
 772 CXXFLAGS
 773 CXX
 774 ac_ct_PROPER_COMPILER_CXX
 775 PROPER_COMPILER_CXX
 776 TOOLCHAIN_PATH_CXX
 777 POTENTIAL_CXX
 778 OBJEXT
 779 EXEEXT
 780 ac_ct_CC
 781 CPPFLAGS
 782 LDFLAGS
 783 CFLAGS
 784 CC
 785 ac_ct_PROPER_COMPILER_CC
 786 PROPER_COMPILER_CC
 787 TOOLCHAIN_PATH_CC
 788 POTENTIAL_CC
 789 SDKPATH
 790 XCODEBUILD
 791 SET_DEVELOPER_DIR
 792 VS_LIB
 793 VS_INCLUDE
 794 VS_PATH
 795 CYGWIN_LINK
 796 EXE_SUFFIX
 797 OBJ_SUFFIX
 798 STATIC_LIBRARY
 799 SHARED_LIBRARY
 800 STATIC_LIBRARY_SUFFIX
 801 SHARED_LIBRARY_SUFFIX
 802 LIBRARY_PREFIX
 803 TOOLCHAIN_TYPE
 804 BUILD_HOTSPOT
 805 HOTSPOT_DIST
 806 BUILD_OUTPUT
 807 OVERRIDE_SRC_ROOT
 808 ADD_SRC_ROOT
 809 JDK_TOPDIR
 810 NASHORN_TOPDIR
 811 HOTSPOT_TOPDIR
 812 JAXWS_TOPDIR
 813 JAXP_TOPDIR
 814 CORBA_TOPDIR
 815 LANGTOOLS_TOPDIR
 816 JAVA_FLAGS_SMALL
 817 JAVA_FLAGS_BIG
 818 JAVA_FLAGS
 819 BOOT_JDK_BITS
 820 JAVAC_FLAGS
 821 BOOT_JDK_SOURCETARGET
 822 BOOT_JDK
 823 BOOT_TOOLSJAR
 824 BOOT_RTJAR
 825 JAVA_CHECK
 826 JAVAC_CHECK
 827 COOKED_BUILD_NUMBER
 828 COOKED_JDK_UPDATE_VERSION
 829 JDK_VERSION
 830 COPYRIGHT_YEAR
 831 VENDOR_URL_VM_BUG
 832 VENDOR_URL_BUG
 833 VENDOR_URL
 834 COMPANY_NAME
 835 MACOSX_BUNDLE_ID_BASE
 836 MACOSX_BUNDLE_NAME_BASE
 837 JDK_RC_PLATFORM_NAME
 838 PRODUCT_SUFFIX
 839 PRODUCT_NAME
 840 LAUNCHER_NAME
 841 MILESTONE
 842 JDK_BUILD_NUMBER
 843 JDK_UPDATE_VERSION
 844 JDK_MICRO_VERSION
 845 JDK_MINOR_VERSION
 846 JDK_MAJOR_VERSION
 847 USER_RELEASE_SUFFIX
 848 ENABLE_JFR
 849 COMPRESS_JARS
 850 UNLIMITED_CRYPTO
 851 CACERTS_FILE
 852 TEST_IN_BUILD
 853 BUILD_HEADLESS
 854 SUPPORT_HEADFUL
 855 SUPPORT_HEADLESS
 856 BDEPS_FTP
 857 BDEPS_UNZIP
 858 OS_VERSION_MICRO
 859 OS_VERSION_MINOR
 860 OS_VERSION_MAJOR
 861 PKG_CONFIG
 862 CODESIGN
 863 XATTR
 864 DSYMUTIL
 865 IS_GNU_TIME
 866 TIME
 867 STAT
 868 HG
 869 READELF
 870 LDD
 871 ZIP
 872 UNZIP
 873 FIND_DELETE
 874 MAKE
 875 CHECK_TOOLSDIR_MAKE
 876 CHECK_TOOLSDIR_GMAKE
 877 CHECK_MAKE
 878 CHECK_GMAKE
 879 PKGHANDLER
 880 OUTPUT_ROOT
 881 CONF_NAME
 882 SPEC
 883 DEVKIT_LIB_DIR
 884 BUILD_VARIANT_RELEASE
 885 DEBUG_CLASSFILES
 886 FASTDEBUG
 887 VARIANT
 888 DEBUG_LEVEL
 889 MACOSX_UNIVERSAL
 890 INCLUDE_SA
 891 JVM_VARIANT_CORE
 892 JVM_VARIANT_ZEROSHARK
 893 JVM_VARIANT_ZERO
 894 JVM_VARIANT_KERNEL
 895 JVM_VARIANT_MINIMAL1
 896 JVM_VARIANT_CLIENT
 897 JVM_VARIANT_SERVER
 898 JVM_VARIANTS
 899 JVM_INTERPRETER
 900 JDK_VARIANT
 901 SET_OPENJDK
 902 BUILD_LOG_WRAPPER
 903 BUILD_LOG_PREVIOUS
 904 BUILD_LOG
 905 TOPDIR
 906 PATH_SEP
 907 ZERO_ARCHDEF
 908 DEFINE_CROSS_COMPILE_ARCH
 909 LP64
 910 OPENJDK_TARGET_OS_EXPORT_DIR
 911 OPENJDK_TARGET_OS_API_DIR
 912 OPENJDK_TARGET_CPU_JLI_CFLAGS
 913 OPENJDK_TARGET_CPU_OSARCH
 914 OPENJDK_TARGET_CPU_ISADIR
 915 OPENJDK_TARGET_CPU_LIBDIR
 916 OPENJDK_TARGET_CPU_LEGACY_LIB
 917 OPENJDK_TARGET_CPU_LEGACY
 918 REQUIRED_OS_VERSION
 919 REQUIRED_OS_NAME
 920 COMPILE_TYPE
 921 OPENJDK_TARGET_CPU_ENDIAN
 922 OPENJDK_TARGET_CPU_BITS
 923 OPENJDK_TARGET_CPU_ARCH
 924 OPENJDK_TARGET_CPU
 925 OPENJDK_TARGET_OS_ENV
 926 OPENJDK_TARGET_OS_API
 927 OPENJDK_TARGET_OS
 928 OPENJDK_BUILD_CPU_ENDIAN
 929 OPENJDK_BUILD_CPU_BITS
 930 OPENJDK_BUILD_CPU_ARCH
 931 OPENJDK_BUILD_CPU
 932 OPENJDK_BUILD_OS_ENV
 933 OPENJDK_BUILD_OS_API
 934 OPENJDK_BUILD_OS
 935 OPENJDK_BUILD_AUTOCONF_NAME
 936 OPENJDK_TARGET_AUTOCONF_NAME
 937 target_os
 938 target_vendor
 939 target_cpu
 940 target
 941 host_os
 942 host_vendor
 943 host_cpu
 944 host
 945 build_os
 946 build_vendor
 947 build_cpu
 948 build
 949 CPIO
 950 SETFILE
 951 DF
 952 READLINK
 953 CYGPATH
 954 SED
 955 FGREP
 956 EGREP
 957 GREP
 958 AWK
 959 XARGS
 960 WHICH
 961 WC
 962 UNIQ
 963 UNAME
 964 TR
 965 TOUCH
 966 TEE
 967 TAR
 968 TAIL
 969 SORT
 970 SH
 971 RM
 972 PRINTF
 973 NAWK
 974 MV
 975 MKTEMP
 976 MKDIR
 977 LS
 978 LN
 979 HEAD
 980 FIND
 981 FILE
 982 EXPR
 983 ECHO
 984 DIRNAME
 985 DIFF
 986 DATE
 987 CUT
 988 CP
 989 COMM
 990 CMP
 991 CHMOD
 992 CAT
 993 BASH
 994 BASENAME
 995 DATE_WHEN_CONFIGURED
 996 CONFIGURE_COMMAND_LINE
 997 CUSTOM_MAKE_DIR
 998 target_alias
 999 host_alias
1000 build_alias
1001 LIBS
1002 ECHO_T
1003 ECHO_N
1004 ECHO_C
1005 DEFS
1006 mandir
1007 localedir
1008 libdir
1009 psdir
1010 pdfdir
1011 dvidir
1012 htmldir
1013 infodir
1014 docdir
1015 oldincludedir
1016 includedir
1017 localstatedir
1018 sharedstatedir
1019 sysconfdir
1020 datadir
1021 datarootdir
1022 libexecdir
1023 sbindir
1024 bindir
1025 program_transform_name
1026 prefix
1027 exec_prefix
1028 PACKAGE_URL
1029 PACKAGE_BUGREPORT
1030 PACKAGE_STRING
1031 PACKAGE_VERSION
1032 PACKAGE_TARNAME
1033 PACKAGE_NAME
1034 PATH_SEPARATOR
1035 SHELL'
1036 ac_subst_files=''
1037 ac_user_opts='
1038 enable_option_checking
1039 with_custom_make_dir
1040 with_target_bits
1041 enable_openjdk_only
1042 with_jdk_variant
1043 with_jvm_interpreter
1044 with_jvm_variants
1045 enable_debug
1046 with_debug_level
1047 with_devkit
1048 with_sys_root
1049 with_sysroot
1050 with_tools_dir
1051 with_toolchain_path
1052 with_extra_path
1053 with_xcode_path
1054 with_conf_name
1055 with_builddeps_conf
1056 with_builddeps_server
1057 with_builddeps_dir
1058 with_builddeps_group
1059 enable_headful
1060 enable_hotspot_test_in_build
1061 with_cacerts_file
1062 enable_unlimited_crypto
1063 enable_jfr
1064 with_milestone
1065 with_update_version
1066 with_user_release_suffix
1067 with_build_number
1068 with_vendor_name
1069 with_vendor_url
1070 with_vendor_bug_url
1071 with_vendor_vm_bug_url
1072 with_copyright_year
1073 with_boot_jdk
1074 with_boot_jdk_jvmargs
1075 with_add_source_root
1076 with_override_source_root
1077 with_adds_and_overrides
1078 with_override_langtools
1079 with_override_corba
1080 with_override_jaxp
1081 with_override_jaxws
1082 with_override_hotspot
1083 with_override_nashorn
1084 with_override_jdk
1085 with_import_hotspot
1086 with_toolchain_type
1087 with_toolchain_version
1088 with_jtreg
1089 with_extra_cflags
1090 with_extra_cxxflags
1091 with_extra_ldflags
1092 with_extra_asflags
1093 enable_debug_symbols
1094 enable_zip_debug_info
1095 with_native_debug_symbols
1096 enable_macosx_runtime_support
1097 with_x
1098 with_cups
1099 with_cups_include
1100 with_freetype
1101 with_freetype_include
1102 with_freetype_lib
1103 with_freetype_src
1104 enable_freetype_bundling
1105 with_alsa
1106 with_alsa_include
1107 with_alsa_lib
1108 with_fontconfig
1109 with_fontconfig_include
1110 with_giflib
1111 with_zlib
1112 with_stdc__lib
1113 with_msvcr_dll
1114 with_msvcp_dll
1115 with_ucrt_dll_dir
1116 with_dxsdk
1117 with_dxsdk_lib
1118 with_dxsdk_include
1119 with_num_cores
1120 with_memory_size
1121 with_jobs
1122 with_sjavac_server_java
1123 enable_sjavac
1124 enable_precompiled_headers
1125 enable_ccache
1126 with_ccache_dir
1127 '
1128       ac_precious_vars='build_alias
1129 host_alias
1130 target_alias
1131 BASENAME
1132 BASH
1133 CAT
1134 CHMOD
1135 CMP
1136 COMM
1137 CP
1138 CUT
1139 DATE
1140 DIFF
1141 DIRNAME
1142 ECHO
1143 EXPR
1144 FILE
1145 FIND
1146 HEAD
1147 LN
1148 LS
1149 MKDIR
1150 MKTEMP
1151 MV
1152 NAWK
1153 PRINTF
1154 RM
1155 SH
1156 SORT
1157 TAIL
1158 TAR
1159 TEE
1160 TOUCH
1161 TR
1162 UNAME
1163 UNIQ
1164 WC
1165 WHICH
1166 XARGS
1167 AWK
1168 GREP
1169 EGREP
1170 FGREP
1171 SED
1172 CYGPATH
1173 READLINK
1174 DF
1175 SETFILE
1176 CPIO
1177 UNZIP
1178 ZIP
1179 LDD
1180 READELF
1181 HG
1182 STAT
1183 TIME
1184 DSYMUTIL
1185 XATTR
1186 CODESIGN
1187 PKG_CONFIG
1188 CC
1189 CFLAGS
1190 LDFLAGS
1191 LIBS
1192 CPPFLAGS
1193 CXX
1194 CXXFLAGS
1195 CCC
1196 CPP
1197 CXXCPP
1198 AS
1199 AR
1200 OBJC
1201 OBJCFLAGS
1202 LIPO
1203 STRIP
1204 NM
1205 GNM
1206 MCS
1207 OBJCOPY
1208 OBJDUMP
1209 BUILD_CC
1210 BUILD_CXX
1211 BUILD_LD
1212 JTREGEXE
1213 XMKMF
1214 FREETYPE_CFLAGS
1215 FREETYPE_LIBS
1216 ALSA_CFLAGS
1217 ALSA_LIBS
1218 LIBFFI_CFLAGS
1219 LIBFFI_LIBS
1220 CCACHE'
1221 
1222 
1223 # Initialize some variables set by options.
1224 ac_init_help=
1225 ac_init_version=false
1226 ac_unrecognized_opts=
1227 ac_unrecognized_sep=
1228 # The variables have the same names as the options, with
1229 # dashes changed to underlines.
1230 cache_file=/dev/null
1231 exec_prefix=NONE
1232 no_create=
1233 no_recursion=
1234 prefix=NONE
1235 program_prefix=NONE
1236 program_suffix=NONE
1237 program_transform_name=s,x,x,
1238 silent=
1239 site=
1240 srcdir=
1241 verbose=
1242 x_includes=NONE
1243 x_libraries=NONE
1244 
1245 # Installation directory options.
1246 # These are left unexpanded so users can "make install exec_prefix=/foo"
1247 # and all the variables that are supposed to be based on exec_prefix
1248 # by default will actually change.
1249 # Use braces instead of parens because sh, perl, etc. also accept them.
1250 # (The list follows the same order as the GNU Coding Standards.)
1251 bindir='${exec_prefix}/bin'
1252 sbindir='${exec_prefix}/sbin'
1253 libexecdir='${exec_prefix}/libexec'
1254 datarootdir='${prefix}/share'
1255 datadir='${datarootdir}'
1256 sysconfdir='${prefix}/etc'
1257 sharedstatedir='${prefix}/com'
1258 localstatedir='${prefix}/var'
1259 includedir='${prefix}/include'
1260 oldincludedir='/usr/include'
1261 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1262 infodir='${datarootdir}/info'
1263 htmldir='${docdir}'
1264 dvidir='${docdir}'
1265 pdfdir='${docdir}'
1266 psdir='${docdir}'
1267 libdir='${exec_prefix}/lib'
1268 localedir='${datarootdir}/locale'
1269 mandir='${datarootdir}/man'
1270 
1271 ac_prev=
1272 ac_dashdash=
1273 for ac_option
1274 do
1275   # If the previous option needs an argument, assign it.
1276   if test -n "$ac_prev"; then
1277     eval $ac_prev=\$ac_option
1278     ac_prev=
1279     continue
1280   fi
1281 
1282   case $ac_option in
1283   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1284   *=)   ac_optarg= ;;
1285   *)    ac_optarg=yes ;;
1286   esac
1287 
1288   # Accept the important Cygnus configure options, so we can diagnose typos.
1289 
1290   case $ac_dashdash$ac_option in
1291   --)
1292     ac_dashdash=yes ;;
1293 
1294   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1295     ac_prev=bindir ;;
1296   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1297     bindir=$ac_optarg ;;
1298 
1299   -build | --build | --buil | --bui | --bu)
1300     ac_prev=build_alias ;;
1301   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1302     build_alias=$ac_optarg ;;
1303 
1304   -cache-file | --cache-file | --cache-fil | --cache-fi \
1305   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1306     ac_prev=cache_file ;;
1307   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1308   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1309     cache_file=$ac_optarg ;;
1310 
1311   --config-cache | -C)
1312     cache_file=config.cache ;;
1313 
1314   -datadir | --datadir | --datadi | --datad)
1315     ac_prev=datadir ;;
1316   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1317     datadir=$ac_optarg ;;
1318 
1319   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1320   | --dataroo | --dataro | --datar)
1321     ac_prev=datarootdir ;;
1322   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1323   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1324     datarootdir=$ac_optarg ;;
1325 
1326   -disable-* | --disable-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       as_fn_error $? "invalid feature name: $ac_useropt"
1331     ac_useropt_orig=$ac_useropt
1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333     case $ac_user_opts in
1334       *"
1335 "enable_$ac_useropt"
1336 "*) ;;
1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1338          ac_unrecognized_sep=', ';;
1339     esac
1340     eval enable_$ac_useropt=no ;;
1341 
1342   -docdir | --docdir | --docdi | --doc | --do)
1343     ac_prev=docdir ;;
1344   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1345     docdir=$ac_optarg ;;
1346 
1347   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1348     ac_prev=dvidir ;;
1349   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1350     dvidir=$ac_optarg ;;
1351 
1352   -enable-* | --enable-*)
1353     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1354     # Reject names that are not valid shell variable names.
1355     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356       as_fn_error $? "invalid feature name: $ac_useropt"
1357     ac_useropt_orig=$ac_useropt
1358     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359     case $ac_user_opts in
1360       *"
1361 "enable_$ac_useropt"
1362 "*) ;;
1363       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1364          ac_unrecognized_sep=', ';;
1365     esac
1366     eval enable_$ac_useropt=\$ac_optarg ;;
1367 
1368   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1369   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1370   | --exec | --exe | --ex)
1371     ac_prev=exec_prefix ;;
1372   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1373   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1374   | --exec=* | --exe=* | --ex=*)
1375     exec_prefix=$ac_optarg ;;
1376 
1377   -gas | --gas | --ga | --g)
1378     # Obsolete; use --with-gas.
1379     with_gas=yes ;;
1380 
1381   -help | --help | --hel | --he | -h)
1382     ac_init_help=long ;;
1383   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1384     ac_init_help=recursive ;;
1385   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1386     ac_init_help=short ;;
1387 
1388   -host | --host | --hos | --ho)
1389     ac_prev=host_alias ;;
1390   -host=* | --host=* | --hos=* | --ho=*)
1391     host_alias=$ac_optarg ;;
1392 
1393   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1394     ac_prev=htmldir ;;
1395   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1396   | --ht=*)
1397     htmldir=$ac_optarg ;;
1398 
1399   -includedir | --includedir | --includedi | --included | --include \
1400   | --includ | --inclu | --incl | --inc)
1401     ac_prev=includedir ;;
1402   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1403   | --includ=* | --inclu=* | --incl=* | --inc=*)
1404     includedir=$ac_optarg ;;
1405 
1406   -infodir | --infodir | --infodi | --infod | --info | --inf)
1407     ac_prev=infodir ;;
1408   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1409     infodir=$ac_optarg ;;
1410 
1411   -libdir | --libdir | --libdi | --libd)
1412     ac_prev=libdir ;;
1413   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1414     libdir=$ac_optarg ;;
1415 
1416   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1417   | --libexe | --libex | --libe)
1418     ac_prev=libexecdir ;;
1419   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1420   | --libexe=* | --libex=* | --libe=*)
1421     libexecdir=$ac_optarg ;;
1422 
1423   -localedir | --localedir | --localedi | --localed | --locale)
1424     ac_prev=localedir ;;
1425   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1426     localedir=$ac_optarg ;;
1427 
1428   -localstatedir | --localstatedir | --localstatedi | --localstated \
1429   | --localstate | --localstat | --localsta | --localst | --locals)
1430     ac_prev=localstatedir ;;
1431   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1432   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1433     localstatedir=$ac_optarg ;;
1434 
1435   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1436     ac_prev=mandir ;;
1437   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1438     mandir=$ac_optarg ;;
1439 
1440   -nfp | --nfp | --nf)
1441     # Obsolete; use --without-fp.
1442     with_fp=no ;;
1443 
1444   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1445   | --no-cr | --no-c | -n)
1446     no_create=yes ;;
1447 
1448   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1449   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1450     no_recursion=yes ;;
1451 
1452   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1453   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1454   | --oldin | --oldi | --old | --ol | --o)
1455     ac_prev=oldincludedir ;;
1456   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1457   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1458   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1459     oldincludedir=$ac_optarg ;;
1460 
1461   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1462     ac_prev=prefix ;;
1463   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1464     prefix=$ac_optarg ;;
1465 
1466   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1467   | --program-pre | --program-pr | --program-p)
1468     ac_prev=program_prefix ;;
1469   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1470   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1471     program_prefix=$ac_optarg ;;
1472 
1473   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1474   | --program-suf | --program-su | --program-s)
1475     ac_prev=program_suffix ;;
1476   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1477   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1478     program_suffix=$ac_optarg ;;
1479 
1480   -program-transform-name | --program-transform-name \
1481   | --program-transform-nam | --program-transform-na \
1482   | --program-transform-n | --program-transform- \
1483   | --program-transform | --program-transfor \
1484   | --program-transfo | --program-transf \
1485   | --program-trans | --program-tran \
1486   | --progr-tra | --program-tr | --program-t)
1487     ac_prev=program_transform_name ;;
1488   -program-transform-name=* | --program-transform-name=* \
1489   | --program-transform-nam=* | --program-transform-na=* \
1490   | --program-transform-n=* | --program-transform-=* \
1491   | --program-transform=* | --program-transfor=* \
1492   | --program-transfo=* | --program-transf=* \
1493   | --program-trans=* | --program-tran=* \
1494   | --progr-tra=* | --program-tr=* | --program-t=*)
1495     program_transform_name=$ac_optarg ;;
1496 
1497   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1498     ac_prev=pdfdir ;;
1499   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1500     pdfdir=$ac_optarg ;;
1501 
1502   -psdir | --psdir | --psdi | --psd | --ps)
1503     ac_prev=psdir ;;
1504   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1505     psdir=$ac_optarg ;;
1506 
1507   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508   | -silent | --silent | --silen | --sile | --sil)
1509     silent=yes ;;
1510 
1511   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1512     ac_prev=sbindir ;;
1513   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1514   | --sbi=* | --sb=*)
1515     sbindir=$ac_optarg ;;
1516 
1517   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1518   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1519   | --sharedst | --shareds | --shared | --share | --shar \
1520   | --sha | --sh)
1521     ac_prev=sharedstatedir ;;
1522   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1523   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1524   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1525   | --sha=* | --sh=*)
1526     sharedstatedir=$ac_optarg ;;
1527 
1528   -site | --site | --sit)
1529     ac_prev=site ;;
1530   -site=* | --site=* | --sit=*)
1531     site=$ac_optarg ;;
1532 
1533   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1534     ac_prev=srcdir ;;
1535   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1536     srcdir=$ac_optarg ;;
1537 
1538   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1539   | --syscon | --sysco | --sysc | --sys | --sy)
1540     ac_prev=sysconfdir ;;
1541   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1542   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1543     sysconfdir=$ac_optarg ;;
1544 
1545   -target | --target | --targe | --targ | --tar | --ta | --t)
1546     ac_prev=target_alias ;;
1547   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1548     target_alias=$ac_optarg ;;
1549 
1550   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1551     verbose=yes ;;
1552 
1553   -version | --version | --versio | --versi | --vers | -V)
1554     ac_init_version=: ;;
1555 
1556   -with-* | --with-*)
1557     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1558     # Reject names that are not valid shell variable names.
1559     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1560       as_fn_error $? "invalid package name: $ac_useropt"
1561     ac_useropt_orig=$ac_useropt
1562     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563     case $ac_user_opts in
1564       *"
1565 "with_$ac_useropt"
1566 "*) ;;
1567       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1568          ac_unrecognized_sep=', ';;
1569     esac
1570     eval with_$ac_useropt=\$ac_optarg ;;
1571 
1572   -without-* | --without-*)
1573     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1574     # Reject names that are not valid shell variable names.
1575     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1576       as_fn_error $? "invalid package name: $ac_useropt"
1577     ac_useropt_orig=$ac_useropt
1578     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579     case $ac_user_opts in
1580       *"
1581 "with_$ac_useropt"
1582 "*) ;;
1583       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1584          ac_unrecognized_sep=', ';;
1585     esac
1586     eval with_$ac_useropt=no ;;
1587 
1588   --x)
1589     # Obsolete; use --with-x.
1590     with_x=yes ;;
1591 
1592   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1593   | --x-incl | --x-inc | --x-in | --x-i)
1594     ac_prev=x_includes ;;
1595   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1596   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1597     x_includes=$ac_optarg ;;
1598 
1599   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1600   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1601     ac_prev=x_libraries ;;
1602   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1603   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1604     x_libraries=$ac_optarg ;;
1605 
1606   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1607 Try \`$0 --help' for more information"
1608     ;;
1609 
1610   *=*)
1611     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1612     # Reject names that are not valid shell variable names.
1613     case $ac_envvar in #(
1614       '' | [0-9]* | *[!_$as_cr_alnum]* )
1615       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1616     esac
1617     eval $ac_envvar=\$ac_optarg
1618     export $ac_envvar ;;
1619 
1620   *)
1621     # FIXME: should be removed in autoconf 3.0.
1622     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1623     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1624       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1625     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1626     ;;
1627 
1628   esac
1629 done
1630 
1631 if test -n "$ac_prev"; then
1632   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1633   as_fn_error $? "missing argument to $ac_option"
1634 fi
1635 
1636 if test -n "$ac_unrecognized_opts"; then
1637   case $enable_option_checking in
1638     no) ;;
1639     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1640     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1641   esac
1642 fi
1643 
1644 # Check all directory arguments for consistency.
1645 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1646                 datadir sysconfdir sharedstatedir localstatedir includedir \
1647                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1648                 libdir localedir mandir
1649 do
1650   eval ac_val=\$$ac_var
1651   # Remove trailing slashes.
1652   case $ac_val in
1653     */ )
1654       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1655       eval $ac_var=\$ac_val;;
1656   esac
1657   # Be sure to have absolute directory names.
1658   case $ac_val in
1659     [\\/$]* | ?:[\\/]* )  continue;;
1660     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1661   esac
1662   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1663 done
1664 
1665 # There might be people who depend on the old broken behavior: `$host'
1666 # used to hold the argument of --host etc.
1667 # FIXME: To remove some day.
1668 build=$build_alias
1669 host=$host_alias
1670 target=$target_alias
1671 
1672 # FIXME: To remove some day.
1673 if test "x$host_alias" != x; then
1674   if test "x$build_alias" = x; then
1675     cross_compiling=maybe
1676   elif test "x$build_alias" != "x$host_alias"; then
1677     cross_compiling=yes
1678   fi
1679 fi
1680 
1681 ac_tool_prefix=
1682 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1683 
1684 test "$silent" = yes && exec 6>/dev/null
1685 
1686 
1687 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1688 ac_ls_di=`ls -di .` &&
1689 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1690   as_fn_error $? "working directory cannot be determined"
1691 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1692   as_fn_error $? "pwd does not report name of working directory"
1693 
1694 
1695 # Find the source files, if location was not specified.
1696 if test -z "$srcdir"; then
1697   ac_srcdir_defaulted=yes
1698   # Try the directory containing this script, then the parent directory.
1699   ac_confdir=`$as_dirname -- "$as_myself" ||
1700 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1701          X"$as_myself" : 'X\(//\)[^/]' \| \
1702          X"$as_myself" : 'X\(//\)$' \| \
1703          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1704 $as_echo X"$as_myself" |
1705     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1706             s//\1/
1707             q
1708           }
1709           /^X\(\/\/\)[^/].*/{
1710             s//\1/
1711             q
1712           }
1713           /^X\(\/\/\)$/{
1714             s//\1/
1715             q
1716           }
1717           /^X\(\/\).*/{
1718             s//\1/
1719             q
1720           }
1721           s/.*/./; q'`
1722   srcdir=$ac_confdir
1723   if test ! -r "$srcdir/$ac_unique_file"; then
1724     srcdir=..
1725   fi
1726 else
1727   ac_srcdir_defaulted=no
1728 fi
1729 if test ! -r "$srcdir/$ac_unique_file"; then
1730   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1731   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1732 fi
1733 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1734 ac_abs_confdir=`(
1735         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1736         pwd)`
1737 # When building in place, set srcdir=.
1738 if test "$ac_abs_confdir" = "$ac_pwd"; then
1739   srcdir=.
1740 fi
1741 # Remove unnecessary trailing slashes from srcdir.
1742 # Double slashes in file names in object file debugging info
1743 # mess up M-x gdb in Emacs.
1744 case $srcdir in
1745 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1746 esac
1747 for ac_var in $ac_precious_vars; do
1748   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1749   eval ac_env_${ac_var}_value=\$${ac_var}
1750   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1751   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1752 done
1753 
1754 #
1755 # Report the --help message.
1756 #
1757 if test "$ac_init_help" = "long"; then
1758   # Omit some internal or obsolete options to make the list less imposing.
1759   # This message is too long to be a string in the A/UX 3.1 sh.
1760   cat <<_ACEOF
1761 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1762 
1763 Usage: $0 [OPTION]... [VAR=VALUE]...
1764 
1765 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1766 VAR=VALUE.  See below for descriptions of some of the useful variables.
1767 
1768 Defaults for the options are specified in brackets.
1769 
1770 Configuration:
1771   -h, --help              display this help and exit
1772       --help=short        display options specific to this package
1773       --help=recursive    display the short help of all the included packages
1774   -V, --version           display version information and exit
1775   -q, --quiet, --silent   do not print \`checking ...' messages
1776       --cache-file=FILE   cache test results in FILE [disabled]
1777   -C, --config-cache      alias for \`--cache-file=config.cache'
1778   -n, --no-create         do not create output files
1779       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1780 
1781 Installation directories:
1782   --prefix=PREFIX         install architecture-independent files in PREFIX
1783                           [$ac_default_prefix]
1784   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1785                           [PREFIX]
1786 
1787 By default, \`make install' will install all the files in
1788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1789 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1790 for instance \`--prefix=\$HOME'.
1791 
1792 For better control, use the options below.
1793 
1794 Fine tuning of the installation directories:
1795   --bindir=DIR            user executables [EPREFIX/bin]
1796   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1797   --libexecdir=DIR        program executables [EPREFIX/libexec]
1798   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1799   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1800   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1801   --libdir=DIR            object code libraries [EPREFIX/lib]
1802   --includedir=DIR        C header files [PREFIX/include]
1803   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1804   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1805   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1806   --infodir=DIR           info documentation [DATAROOTDIR/info]
1807   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1808   --mandir=DIR            man documentation [DATAROOTDIR/man]
1809   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1810   --htmldir=DIR           html documentation [DOCDIR]
1811   --dvidir=DIR            dvi documentation [DOCDIR]
1812   --pdfdir=DIR            pdf documentation [DOCDIR]
1813   --psdir=DIR             ps documentation [DOCDIR]
1814 _ACEOF
1815 
1816   cat <<\_ACEOF
1817 
1818 X features:
1819   --x-includes=DIR    X include files are in DIR
1820   --x-libraries=DIR   X library files are in DIR
1821 
1822 System types:
1823   --build=BUILD     configure for building on BUILD [guessed]
1824   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1825   --target=TARGET   configure for building compilers for TARGET [HOST]
1826 _ACEOF
1827 fi
1828 
1829 if test -n "$ac_init_help"; then
1830   case $ac_init_help in
1831      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1832    esac
1833   cat <<\_ACEOF
1834 
1835 Optional Features:
1836   --disable-option-checking  ignore unrecognized --enable/--with options
1837   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1838   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1839   --enable-openjdk-only   suppress building custom source even if present
1840                           [disabled]
1841   --enable-debug          set the debug level to fastdebug (shorthand for
1842                           --with-debug-level=fastdebug) [disabled]
1843   --disable-headful       disable building headful support (graphical UI
1844                           support) [enabled]
1845   --enable-hotspot-test-in-build
1846                           run the Queens test after Hotspot build [disabled]
1847   --enable-unlimited-crypto
1848                           Enable unlimited crypto policy [disabled]
1849   --disable-jfr           Disable Java Flight Recorder support [enabled]
1850   --disable-debug-symbols disable generation of debug symbols [enabled]
1851   --disable-zip-debug-info
1852                           disable zipping of debug-info files [enabled]
1853   --enable-macosx-runtime-support
1854                           Deprecated. Option is kept for backwards
1855                           compatibility and is ignored
1856   --disable-freetype-bundling
1857                           disable bundling of the freetype library with the
1858                           build result [enabled on Windows or when using
1859                           --with-freetype, disabled otherwise]
1860   --enable-sjavac         use sjavac to do fast incremental compiles
1861                           [disabled]
1862   --disable-precompiled-headers
1863                           disable using precompiled headers when compiling C++
1864                           [enabled]
1865   --enable-ccache         enable using ccache to speed up recompilations
1866                           [disabled]
1867 
1868 Optional Packages:
1869   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1870   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1871   --with-custom-make-dir  use this directory for custom build/make files
1872   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1873                           support it), e.g. --with-target-bits=32 [guessed]
1874   --with-jdk-variant      JDK variant to build (normal) [normal]
1875   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1876   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1877                           client, minimal1, kernel, zero, zeroshark, core)
1878                           [server]
1879   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1880                           [release]
1881   --with-devkit           use this devkit for compilers, tools and resources
1882   --with-sys-root         alias for --with-sysroot for backwards compatability
1883   --with-sysroot          use this directory as sysroot)
1884   --with-tools-dir        alias for --with-toolchain-path for backwards
1885                           compatibility
1886   --with-toolchain-path   prepend these directories when searching for
1887                           toolchain binaries (compilers etc)
1888   --with-extra-path       prepend these directories to the default path
1889   --with-xcode-path       explicit path to Xcode application (generally for
1890                           building on 10.9 and later)
1891   --with-conf-name        use this as the name of the configuration [generated
1892                           from important configuration options]
1893   --with-builddeps-conf   use this configuration file for the builddeps
1894   --with-builddeps-server download and use build dependencies from this server
1895                           url
1896   --with-builddeps-dir    store downloaded build dependencies here
1897                           [/localhome/builddeps]
1898   --with-builddeps-group  chgrp the downloaded build dependencies to this
1899                           group
1900   --with-cacerts-file     specify alternative cacerts file
1901   --with-milestone        Set milestone value for build [internal]
1902   --with-update-version   Set update version value for build [b00]
1903   --with-user-release-suffix
1904                           Add a custom string to the version string if build
1905                           number isn't set.[username_builddateb00]
1906   --with-build-number     Set build number value for build [b00]
1907   --with-vendor-name      Set vendor name. Among others, used to set the
1908                           'java.vendor' and 'java.vm.vendor' system
1909                           properties. [not specified]
1910   --with-vendor-url       Set the 'java.vendor.url' system property [not
1911                           specified]
1912   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1913                           specified]
1914   --with-vendor-vm-bug-url
1915                           Sets the bug URL which will be displayed when the VM
1916                           crashes [not specified]
1917   --with-copyright-year   Set copyright year value for build [current year]
1918   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1919   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1920                           invocations of the Boot JDK, overriding the default
1921                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1922                           -enableassertions"
1923   --with-add-source-root  for each and every source directory, look in this
1924                           additional source root for the same directory; if it
1925                           exists and have files in it, include it in the build
1926   --with-override-source-root
1927                           for each and every source directory, look in this
1928                           override source root for the same directory; if it
1929                           exists, use that directory instead and ignore the
1930                           directory in the original source root
1931   --with-adds-and-overrides
1932                           use the subdirs 'adds' and 'overrides' in the
1933                           specified directory as add-source-root and
1934                           override-source-root
1935   --with-override-langtools
1936                           use this langtools dir for the build
1937   --with-override-corba   use this corba dir for the build
1938   --with-override-jaxp    use this jaxp dir for the build
1939   --with-override-jaxws   use this jaxws dir for the build
1940   --with-override-hotspot use this hotspot dir for the build
1941   --with-override-nashorn use this nashorn dir for the build
1942   --with-override-jdk     use this jdk dir for the build
1943   --with-import-hotspot   import hotspot binaries from this jdk image or
1944                           hotspot build dist dir instead of building from
1945                           source
1946   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1947                           to show possible values [platform dependent]
1948   --with-toolchain-version
1949                           the version of the toolchain to look for, use
1950                           '--help' to show possible values [platform
1951                           dependent]
1952   --with-jtreg            Regression Test Harness [probed]
1953   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1954   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1955   --with-extra-ldflags    extra flags to be used when linking jdk
1956   --with-extra-asflags    extra flags to be passed to the assembler
1957   --with-native-debug-symbols
1958                           set the native debug symbol configuration (none,
1959                           internal, external, zipped) [varying]
1960   --with-x                use the X Window System
1961   --with-cups             specify prefix directory for the cups package
1962                           (expecting the headers under PATH/include)
1963   --with-cups-include     specify directory for the cups include files
1964   --with-freetype         specify prefix directory for the freetype package
1965                           (expecting the libraries under PATH/lib and the
1966                           headers under PATH/include)
1967   --with-freetype-include specify directory for the freetype include files
1968   --with-freetype-lib     specify directory for the freetype library
1969   --with-freetype-src     specify directory with freetype sources to
1970                           automatically build the library (experimental,
1971                           Windows-only)
1972   --with-alsa             specify prefix directory for the alsa package
1973                           (expecting the libraries under PATH/lib and the
1974                           headers under PATH/include)
1975   --with-alsa-include     specify directory for the alsa include files
1976   --with-alsa-lib         specify directory for the alsa library
1977   --with-fontconfig       specify prefix directory for the fontconfig package
1978                           (expecting the headers under PATH/include)
1979   --with-fontconfig-include
1980                           specify directory for the fontconfig include files
1981   --with-giflib           use giflib from build system or OpenJDK source
1982                           (system, bundled) [bundled]
1983   --with-zlib             use zlib from build system or OpenJDK source
1984                           (system, bundled) [bundled]
1985   --with-stdc++lib=<static>,<dynamic>,<default>
1986                           force linking of the C++ runtime on Linux to either
1987                           static or dynamic, default is static with dynamic as
1988                           fallback
1989   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1990                           (Windows only) [probed]
1991   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1992                           (Windows only) [probed]
1993   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
1994                           only) [probed]
1995   --with-dxsdk            Deprecated. Option is kept for backwards
1996                           compatibility and is ignored
1997   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1998                           compatibility and is ignored
1999   --with-dxsdk-include    Deprecated. Option is kept for backwards
2000                           compatibility and is ignored
2001   --with-num-cores        number of cores in the build system, e.g.
2002                           --with-num-cores=8 [probed]
2003   --with-memory-size      memory (in MB) available in the build system, e.g.
2004                           --with-memory-size=1024 [probed]
2005   --with-jobs             number of parallel jobs to let make run [calculated
2006                           based on cores and memory]
2007   --with-sjavac-server-java
2008                           use this java binary for running the sjavac
2009                           background server [Boot JDK java]
2010   --with-ccache-dir       where to store ccache files [~/.ccache]
2011 
2012 Some influential environment variables:
2013   BASENAME    Override default value for BASENAME
2014   BASH        Override default value for BASH
2015   CAT         Override default value for CAT
2016   CHMOD       Override default value for CHMOD
2017   CMP         Override default value for CMP
2018   COMM        Override default value for COMM
2019   CP          Override default value for CP
2020   CUT         Override default value for CUT
2021   DATE        Override default value for DATE
2022   DIFF        Override default value for DIFF
2023   DIRNAME     Override default value for DIRNAME
2024   ECHO        Override default value for ECHO
2025   EXPR        Override default value for EXPR
2026   FILE        Override default value for FILE
2027   FIND        Override default value for FIND
2028   HEAD        Override default value for HEAD
2029   LN          Override default value for LN
2030   LS          Override default value for LS
2031   MKDIR       Override default value for MKDIR
2032   MKTEMP      Override default value for MKTEMP
2033   MV          Override default value for MV
2034   NAWK        Override default value for NAWK
2035   PRINTF      Override default value for PRINTF
2036   RM          Override default value for RM
2037   SH          Override default value for SH
2038   SORT        Override default value for SORT
2039   TAIL        Override default value for TAIL
2040   TAR         Override default value for TAR
2041   TEE         Override default value for TEE
2042   TOUCH       Override default value for TOUCH
2043   TR          Override default value for TR
2044   UNAME       Override default value for UNAME
2045   UNIQ        Override default value for UNIQ
2046   WC          Override default value for WC
2047   WHICH       Override default value for WHICH
2048   XARGS       Override default value for XARGS
2049   AWK         Override default value for AWK
2050   GREP        Override default value for GREP
2051   EGREP       Override default value for EGREP
2052   FGREP       Override default value for FGREP
2053   SED         Override default value for SED
2054   CYGPATH     Override default value for CYGPATH
2055   READLINK    Override default value for READLINK
2056   DF          Override default value for DF
2057   SETFILE     Override default value for SETFILE
2058   CPIO        Override default value for CPIO
2059   UNZIP       Override default value for UNZIP
2060   ZIP         Override default value for ZIP
2061   LDD         Override default value for LDD
2062   READELF     Override default value for READELF
2063   HG          Override default value for HG
2064   STAT        Override default value for STAT
2065   TIME        Override default value for TIME
2066   DSYMUTIL    Override default value for DSYMUTIL
2067   XATTR       Override default value for XATTR
2068   CODESIGN    Override default value for CODESIGN
2069   PKG_CONFIG  path to pkg-config utility
2070   CC          C compiler command
2071   CFLAGS      C compiler flags
2072   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2073               nonstandard directory <lib dir>
2074   LIBS        libraries to pass to the linker, e.g. -l<library>
2075   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2076               you have headers in a nonstandard directory <include dir>
2077   CXX         C++ compiler command
2078   CXXFLAGS    C++ compiler flags
2079   CPP         C preprocessor
2080   CXXCPP      C++ preprocessor
2081   AS          Override default value for AS
2082   AR          Override default value for AR
2083   OBJC        Objective C compiler command
2084   OBJCFLAGS   Objective C compiler flags
2085   LIPO        Override default value for LIPO
2086   STRIP       Override default value for STRIP
2087   NM          Override default value for NM
2088   GNM         Override default value for GNM
2089   MCS         Override default value for MCS
2090   OBJCOPY     Override default value for OBJCOPY
2091   OBJDUMP     Override default value for OBJDUMP
2092   BUILD_CC    Override default value for BUILD_CC
2093   BUILD_CXX   Override default value for BUILD_CXX
2094   BUILD_LD    Override default value for BUILD_LD
2095   JTREGEXE    Override default value for JTREGEXE
2096   XMKMF       Path to xmkmf, Makefile generator for X Window System
2097   FREETYPE_CFLAGS
2098               C compiler flags for FREETYPE, overriding pkg-config
2099   FREETYPE_LIBS
2100               linker flags for FREETYPE, overriding pkg-config
2101   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2102   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2103   LIBFFI_CFLAGS
2104               C compiler flags for LIBFFI, overriding pkg-config
2105   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2106   CCACHE      Override default value for CCACHE
2107 
2108 Use these variables to override the choices made by `configure' or to help
2109 it to find libraries and programs with nonstandard names/locations.
2110 
2111 Report bugs to <build-dev@openjdk.java.net>.
2112 OpenJDK home page: <http://openjdk.java.net>.
2113 _ACEOF
2114 ac_status=$?
2115 fi
2116 
2117 if test "$ac_init_help" = "recursive"; then
2118   # If there are subdirs, report their specific --help.
2119   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2120     test -d "$ac_dir" ||
2121       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2122       continue
2123     ac_builddir=.
2124 
2125 case "$ac_dir" in
2126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2127 *)
2128   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2129   # A ".." for each directory in $ac_dir_suffix.
2130   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2131   case $ac_top_builddir_sub in
2132   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2133   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2134   esac ;;
2135 esac
2136 ac_abs_top_builddir=$ac_pwd
2137 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2138 # for backward compatibility:
2139 ac_top_builddir=$ac_top_build_prefix
2140 
2141 case $srcdir in
2142   .)  # We are building in place.
2143     ac_srcdir=.
2144     ac_top_srcdir=$ac_top_builddir_sub
2145     ac_abs_top_srcdir=$ac_pwd ;;
2146   [\\/]* | ?:[\\/]* )  # Absolute name.
2147     ac_srcdir=$srcdir$ac_dir_suffix;
2148     ac_top_srcdir=$srcdir
2149     ac_abs_top_srcdir=$srcdir ;;
2150   *) # Relative name.
2151     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2152     ac_top_srcdir=$ac_top_build_prefix$srcdir
2153     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2154 esac
2155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2156 
2157     cd "$ac_dir" || { ac_status=$?; continue; }
2158     # Check for guested configure.
2159     if test -f "$ac_srcdir/configure.gnu"; then
2160       echo &&
2161       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2162     elif test -f "$ac_srcdir/configure"; then
2163       echo &&
2164       $SHELL "$ac_srcdir/configure" --help=recursive
2165     else
2166       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2167     fi || ac_status=$?
2168     cd "$ac_pwd" || { ac_status=$?; break; }
2169   done
2170 fi
2171 
2172 test -n "$ac_init_help" && exit $ac_status
2173 if $ac_init_version; then
2174   cat <<\_ACEOF
2175 OpenJDK configure jdk8
2176 generated by GNU Autoconf 2.69
2177 
2178 Copyright (C) 2012 Free Software Foundation, Inc.
2179 This configure script is free software; the Free Software Foundation
2180 gives unlimited permission to copy, distribute and modify it.
2181 _ACEOF
2182   exit
2183 fi
2184 
2185 ## ------------------------ ##
2186 ## Autoconf initialization. ##
2187 ## ------------------------ ##
2188 
2189 # ac_fn_c_try_compile LINENO
2190 # --------------------------
2191 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2192 ac_fn_c_try_compile ()
2193 {
2194   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2195   rm -f conftest.$ac_objext
2196   if { { ac_try="$ac_compile"
2197 case "(($ac_try" in
2198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2199   *) ac_try_echo=$ac_try;;
2200 esac
2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2202 $as_echo "$ac_try_echo"; } >&5
2203   (eval "$ac_compile") 2>conftest.err
2204   ac_status=$?
2205   if test -s conftest.err; then
2206     grep -v '^ *+' conftest.err >conftest.er1
2207     cat conftest.er1 >&5
2208     mv -f conftest.er1 conftest.err
2209   fi
2210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211   test $ac_status = 0; } && {
2212          test -z "$ac_c_werror_flag" ||
2213          test ! -s conftest.err
2214        } && test -s conftest.$ac_objext; then :
2215   ac_retval=0
2216 else
2217   $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219 
2220         ac_retval=1
2221 fi
2222   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223   as_fn_set_status $ac_retval
2224 
2225 } # ac_fn_c_try_compile
2226 
2227 # ac_fn_cxx_try_compile LINENO
2228 # ----------------------------
2229 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2230 ac_fn_cxx_try_compile ()
2231 {
2232   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233   rm -f conftest.$ac_objext
2234   if { { ac_try="$ac_compile"
2235 case "(($ac_try" in
2236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237   *) ac_try_echo=$ac_try;;
2238 esac
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241   (eval "$ac_compile") 2>conftest.err
2242   ac_status=$?
2243   if test -s conftest.err; then
2244     grep -v '^ *+' conftest.err >conftest.er1
2245     cat conftest.er1 >&5
2246     mv -f conftest.er1 conftest.err
2247   fi
2248   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249   test $ac_status = 0; } && {
2250          test -z "$ac_cxx_werror_flag" ||
2251          test ! -s conftest.err
2252        } && test -s conftest.$ac_objext; then :
2253   ac_retval=0
2254 else
2255   $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2257 
2258         ac_retval=1
2259 fi
2260   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2261   as_fn_set_status $ac_retval
2262 
2263 } # ac_fn_cxx_try_compile
2264 
2265 # ac_fn_c_try_cpp LINENO
2266 # ----------------------
2267 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2268 ac_fn_c_try_cpp ()
2269 {
2270   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271   if { { ac_try="$ac_cpp conftest.$ac_ext"
2272 case "(($ac_try" in
2273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274   *) ac_try_echo=$ac_try;;
2275 esac
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2279   ac_status=$?
2280   if test -s conftest.err; then
2281     grep -v '^ *+' conftest.err >conftest.er1
2282     cat conftest.er1 >&5
2283     mv -f conftest.er1 conftest.err
2284   fi
2285   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286   test $ac_status = 0; } > conftest.i && {
2287          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2288          test ! -s conftest.err
2289        }; then :
2290   ac_retval=0
2291 else
2292   $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294 
2295     ac_retval=1
2296 fi
2297   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298   as_fn_set_status $ac_retval
2299 
2300 } # ac_fn_c_try_cpp
2301 
2302 # ac_fn_cxx_try_cpp LINENO
2303 # ------------------------
2304 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2305 ac_fn_cxx_try_cpp ()
2306 {
2307   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308   if { { ac_try="$ac_cpp conftest.$ac_ext"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2314 $as_echo "$ac_try_echo"; } >&5
2315   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2316   ac_status=$?
2317   if test -s conftest.err; then
2318     grep -v '^ *+' conftest.err >conftest.er1
2319     cat conftest.er1 >&5
2320     mv -f conftest.er1 conftest.err
2321   fi
2322   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323   test $ac_status = 0; } > conftest.i && {
2324          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2325          test ! -s conftest.err
2326        }; then :
2327   ac_retval=0
2328 else
2329   $as_echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2331 
2332     ac_retval=1
2333 fi
2334   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2335   as_fn_set_status $ac_retval
2336 
2337 } # ac_fn_cxx_try_cpp
2338 
2339 # ac_fn_objc_try_compile LINENO
2340 # -----------------------------
2341 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2342 ac_fn_objc_try_compile ()
2343 {
2344   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345   rm -f conftest.$ac_objext
2346   if { { ac_try="$ac_compile"
2347 case "(($ac_try" in
2348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349   *) ac_try_echo=$ac_try;;
2350 esac
2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352 $as_echo "$ac_try_echo"; } >&5
2353   (eval "$ac_compile") 2>conftest.err
2354   ac_status=$?
2355   if test -s conftest.err; then
2356     grep -v '^ *+' conftest.err >conftest.er1
2357     cat conftest.er1 >&5
2358     mv -f conftest.er1 conftest.err
2359   fi
2360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361   test $ac_status = 0; } && {
2362          test -z "$ac_objc_werror_flag" ||
2363          test ! -s conftest.err
2364        } && test -s conftest.$ac_objext; then :
2365   ac_retval=0
2366 else
2367   $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369 
2370         ac_retval=1
2371 fi
2372   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373   as_fn_set_status $ac_retval
2374 
2375 } # ac_fn_objc_try_compile
2376 
2377 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2378 # ---------------------------------------------------------
2379 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2380 # the include files in INCLUDES and setting the cache variable VAR
2381 # accordingly.
2382 ac_fn_cxx_check_header_mongrel ()
2383 {
2384   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385   if eval \${$3+:} false; then :
2386   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if eval \${$3+:} false; then :
2389   $as_echo_n "(cached) " >&6
2390 fi
2391 eval ac_res=\$$3
2392                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2393 $as_echo "$ac_res" >&6; }
2394 else
2395   # Is the header compilable?
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2397 $as_echo_n "checking $2 usability... " >&6; }
2398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2399 /* end confdefs.h.  */
2400 $4
2401 #include <$2>
2402 _ACEOF
2403 if ac_fn_cxx_try_compile "$LINENO"; then :
2404   ac_header_compiler=yes
2405 else
2406   ac_header_compiler=no
2407 fi
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2410 $as_echo "$ac_header_compiler" >&6; }
2411 
2412 # Is the header present?
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2414 $as_echo_n "checking $2 presence... " >&6; }
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416 /* end confdefs.h.  */
2417 #include <$2>
2418 _ACEOF
2419 if ac_fn_cxx_try_cpp "$LINENO"; then :
2420   ac_header_preproc=yes
2421 else
2422   ac_header_preproc=no
2423 fi
2424 rm -f conftest.err conftest.i conftest.$ac_ext
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2426 $as_echo "$ac_header_preproc" >&6; }
2427 
2428 # So?  What about this header?
2429 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2430   yes:no: )
2431     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2432 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2434 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2435     ;;
2436   no:yes:* )
2437     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2438 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2440 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2442 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2443     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2444 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2445     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2446 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2447 ( $as_echo "## ----------------------------------------- ##
2448 ## Report this to build-dev@openjdk.java.net ##
2449 ## ----------------------------------------- ##"
2450      ) | sed "s/^/$as_me: WARNING:     /" >&2
2451     ;;
2452 esac
2453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2454 $as_echo_n "checking for $2... " >&6; }
2455 if eval \${$3+:} false; then :
2456   $as_echo_n "(cached) " >&6
2457 else
2458   eval "$3=\$ac_header_compiler"
2459 fi
2460 eval ac_res=\$$3
2461                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2462 $as_echo "$ac_res" >&6; }
2463 fi
2464   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2465 
2466 } # ac_fn_cxx_check_header_mongrel
2467 
2468 # ac_fn_cxx_try_run LINENO
2469 # ------------------------
2470 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2471 # that executables *can* be run.
2472 ac_fn_cxx_try_run ()
2473 {
2474   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475   if { { ac_try="$ac_link"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481 $as_echo "$ac_try_echo"; } >&5
2482   (eval "$ac_link") 2>&5
2483   ac_status=$?
2484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2485   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2486   { { case "(($ac_try" in
2487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488   *) ac_try_echo=$ac_try;;
2489 esac
2490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2491 $as_echo "$ac_try_echo"; } >&5
2492   (eval "$ac_try") 2>&5
2493   ac_status=$?
2494   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2495   test $ac_status = 0; }; }; then :
2496   ac_retval=0
2497 else
2498   $as_echo "$as_me: program exited with status $ac_status" >&5
2499        $as_echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501 
2502        ac_retval=$ac_status
2503 fi
2504   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2505   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2506   as_fn_set_status $ac_retval
2507 
2508 } # ac_fn_cxx_try_run
2509 
2510 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2511 # ---------------------------------------------------------
2512 # Tests whether HEADER exists and can be compiled using the include files in
2513 # INCLUDES, setting the cache variable VAR accordingly.
2514 ac_fn_cxx_check_header_compile ()
2515 {
2516   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2518 $as_echo_n "checking for $2... " >&6; }
2519 if eval \${$3+:} false; then :
2520   $as_echo_n "(cached) " >&6
2521 else
2522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h.  */
2524 $4
2525 #include <$2>
2526 _ACEOF
2527 if ac_fn_cxx_try_compile "$LINENO"; then :
2528   eval "$3=yes"
2529 else
2530   eval "$3=no"
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$3
2535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538 
2539 } # ac_fn_cxx_check_header_compile
2540 
2541 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2542 # ----------------------------------------------
2543 # Tries to find the compile-time value of EXPR in a program that includes
2544 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2545 # computed
2546 ac_fn_cxx_compute_int ()
2547 {
2548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549   if test "$cross_compiling" = yes; then
2550     # Depending upon the size, compute the lo and hi bounds.
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_lo=0 ac_mid=0
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_hi=$ac_mid; break
2584 else
2585   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2586                         if test $ac_lo -le $ac_mid; then
2587                           ac_lo= ac_hi=
2588                           break
2589                         fi
2590                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2591 fi
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2593   done
2594 else
2595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2596 /* end confdefs.h.  */
2597 $4
2598 int
2599 main ()
2600 {
2601 static int test_array [1 - 2 * !(($2) < 0)];
2602 test_array [0] = 0;
2603 return test_array [0];
2604 
2605   ;
2606   return 0;
2607 }
2608 _ACEOF
2609 if ac_fn_cxx_try_compile "$LINENO"; then :
2610   ac_hi=-1 ac_mid=-1
2611   while :; do
2612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 $4
2615 int
2616 main ()
2617 {
2618 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2619 test_array [0] = 0;
2620 return test_array [0];
2621 
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 if ac_fn_cxx_try_compile "$LINENO"; then :
2627   ac_lo=$ac_mid; break
2628 else
2629   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2630                         if test $ac_mid -le $ac_hi; then
2631                           ac_lo= ac_hi=
2632                           break
2633                         fi
2634                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2635 fi
2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637   done
2638 else
2639   ac_lo= ac_hi=
2640 fi
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 # Binary search between lo and hi bounds.
2645 while test "x$ac_lo" != "x$ac_hi"; do
2646   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648 /* end confdefs.h.  */
2649 $4
2650 int
2651 main ()
2652 {
2653 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2654 test_array [0] = 0;
2655 return test_array [0];
2656 
2657   ;
2658   return 0;
2659 }
2660 _ACEOF
2661 if ac_fn_cxx_try_compile "$LINENO"; then :
2662   ac_hi=$ac_mid
2663 else
2664   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2665 fi
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 done
2668 case $ac_lo in #((
2669 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2670 '') ac_retval=1 ;;
2671 esac
2672   else
2673     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h.  */
2675 $4
2676 static long int longval () { return $2; }
2677 static unsigned long int ulongval () { return $2; }
2678 #include <stdio.h>
2679 #include <stdlib.h>
2680 int
2681 main ()
2682 {
2683 
2684   FILE *f = fopen ("conftest.val", "w");
2685   if (! f)
2686     return 1;
2687   if (($2) < 0)
2688     {
2689       long int i = longval ();
2690       if (i != ($2))
2691         return 1;
2692       fprintf (f, "%ld", i);
2693     }
2694   else
2695     {
2696       unsigned long int i = ulongval ();
2697       if (i != ($2))
2698         return 1;
2699       fprintf (f, "%lu", i);
2700     }
2701   /* Do not output a trailing newline, as this causes \r\n confusion
2702      on some platforms.  */
2703   return ferror (f) || fclose (f) != 0;
2704 
2705   ;
2706   return 0;
2707 }
2708 _ACEOF
2709 if ac_fn_cxx_try_run "$LINENO"; then :
2710   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2711 else
2712   ac_retval=1
2713 fi
2714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2715   conftest.$ac_objext conftest.beam conftest.$ac_ext
2716 rm -f conftest.val
2717 
2718   fi
2719   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720   as_fn_set_status $ac_retval
2721 
2722 } # ac_fn_cxx_compute_int
2723 
2724 # ac_fn_cxx_try_link LINENO
2725 # -------------------------
2726 # Try to link conftest.$ac_ext, and return whether this succeeded.
2727 ac_fn_cxx_try_link ()
2728 {
2729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730   rm -f conftest.$ac_objext conftest$ac_exeext
2731   if { { ac_try="$ac_link"
2732 case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2737 $as_echo "$ac_try_echo"; } >&5
2738   (eval "$ac_link") 2>conftest.err
2739   ac_status=$?
2740   if test -s conftest.err; then
2741     grep -v '^ *+' conftest.err >conftest.er1
2742     cat conftest.er1 >&5
2743     mv -f conftest.er1 conftest.err
2744   fi
2745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746   test $ac_status = 0; } && {
2747          test -z "$ac_cxx_werror_flag" ||
2748          test ! -s conftest.err
2749        } && test -s conftest$ac_exeext && {
2750          test "$cross_compiling" = yes ||
2751          test -x conftest$ac_exeext
2752        }; then :
2753   ac_retval=0
2754 else
2755   $as_echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757 
2758         ac_retval=1
2759 fi
2760   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2761   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2762   # interfere with the next link command; also delete a directory that is
2763   # left behind by Apple's compiler.  We do this before executing the actions.
2764   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766   as_fn_set_status $ac_retval
2767 
2768 } # ac_fn_cxx_try_link
2769 
2770 # ac_fn_cxx_check_func LINENO FUNC VAR
2771 # ------------------------------------
2772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2773 ac_fn_cxx_check_func ()
2774 {
2775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2777 $as_echo_n "checking for $2... " >&6; }
2778 if eval \${$3+:} false; then :
2779   $as_echo_n "(cached) " >&6
2780 else
2781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h.  */
2783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2785 #define $2 innocuous_$2
2786 
2787 /* System header to define __stub macros and hopefully few prototypes,
2788     which can conflict with char $2 (); below.
2789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2790     <limits.h> exists even on freestanding compilers.  */
2791 
2792 #ifdef __STDC__
2793 # include <limits.h>
2794 #else
2795 # include <assert.h>
2796 #endif
2797 
2798 #undef $2
2799 
2800 /* Override any GCC internal prototype to avoid an error.
2801    Use char because int might match the return type of a GCC
2802    builtin and then its argument prototype would still apply.  */
2803 #ifdef __cplusplus
2804 extern "C"
2805 #endif
2806 char $2 ();
2807 /* The GNU C library defines this for functions which it implements
2808     to always fail with ENOSYS.  Some functions are actually named
2809     something starting with __ and the normal name is an alias.  */
2810 #if defined __stub_$2 || defined __stub___$2
2811 choke me
2812 #endif
2813 
2814 int
2815 main ()
2816 {
2817 return $2 ();
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 if ac_fn_cxx_try_link "$LINENO"; then :
2823   eval "$3=yes"
2824 else
2825   eval "$3=no"
2826 fi
2827 rm -f core conftest.err conftest.$ac_objext \
2828     conftest$ac_exeext conftest.$ac_ext
2829 fi
2830 eval ac_res=\$$3
2831                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2832 $as_echo "$ac_res" >&6; }
2833   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2834 
2835 } # ac_fn_cxx_check_func
2836 
2837 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2838 # -------------------------------------------------------
2839 # Tests whether HEADER exists and can be compiled using the include files in
2840 # INCLUDES, setting the cache variable VAR accordingly.
2841 ac_fn_c_check_header_compile ()
2842 {
2843   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2845 $as_echo_n "checking for $2... " >&6; }
2846 if eval \${$3+:} false; then :
2847   $as_echo_n "(cached) " >&6
2848 else
2849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h.  */
2851 $4
2852 #include <$2>
2853 _ACEOF
2854 if ac_fn_c_try_compile "$LINENO"; then :
2855   eval "$3=yes"
2856 else
2857   eval "$3=no"
2858 fi
2859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2860 fi
2861 eval ac_res=\$$3
2862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2863 $as_echo "$ac_res" >&6; }
2864   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2865 
2866 } # ac_fn_c_check_header_compile
2867 cat >config.log <<_ACEOF
2868 This file contains any messages produced by compilers while
2869 running configure, to aid debugging if configure makes a mistake.
2870 
2871 It was created by OpenJDK $as_me jdk8, which was
2872 generated by GNU Autoconf 2.69.  Invocation command line was
2873 
2874   $ $0 $@
2875 
2876 _ACEOF
2877 exec 5>>config.log
2878 {
2879 cat <<_ASUNAME
2880 ## --------- ##
2881 ## Platform. ##
2882 ## --------- ##
2883 
2884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2889 
2890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2891 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2892 
2893 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2894 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2896 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2897 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2898 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2899 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2900 
2901 _ASUNAME
2902 
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2905 do
2906   IFS=$as_save_IFS
2907   test -z "$as_dir" && as_dir=.
2908     $as_echo "PATH: $as_dir"
2909   done
2910 IFS=$as_save_IFS
2911 
2912 } >&5
2913 
2914 cat >&5 <<_ACEOF
2915 
2916 
2917 ## ----------- ##
2918 ## Core tests. ##
2919 ## ----------- ##
2920 
2921 _ACEOF
2922 
2923 
2924 # Keep a trace of the command line.
2925 # Strip out --no-create and --no-recursion so they do not pile up.
2926 # Strip out --silent because we don't want to record it for future runs.
2927 # Also quote any args containing shell meta-characters.
2928 # Make two passes to allow for proper duplicate-argument suppression.
2929 ac_configure_args=
2930 ac_configure_args0=
2931 ac_configure_args1=
2932 ac_must_keep_next=false
2933 for ac_pass in 1 2
2934 do
2935   for ac_arg
2936   do
2937     case $ac_arg in
2938     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2939     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2940     | -silent | --silent | --silen | --sile | --sil)
2941       continue ;;
2942     *\'*)
2943       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2944     esac
2945     case $ac_pass in
2946     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2947     2)
2948       as_fn_append ac_configure_args1 " '$ac_arg'"
2949       if test $ac_must_keep_next = true; then
2950         ac_must_keep_next=false # Got value, back to normal.
2951       else
2952         case $ac_arg in
2953           *=* | --config-cache | -C | -disable-* | --disable-* \
2954           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2955           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2956           | -with-* | --with-* | -without-* | --without-* | --x)
2957             case "$ac_configure_args0 " in
2958               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2959             esac
2960             ;;
2961           -* ) ac_must_keep_next=true ;;
2962         esac
2963       fi
2964       as_fn_append ac_configure_args " '$ac_arg'"
2965       ;;
2966     esac
2967   done
2968 done
2969 { ac_configure_args0=; unset ac_configure_args0;}
2970 { ac_configure_args1=; unset ac_configure_args1;}
2971 
2972 # When interrupted or exit'd, cleanup temporary files, and complete
2973 # config.log.  We remove comments because anyway the quotes in there
2974 # would cause problems or look ugly.
2975 # WARNING: Use '\'' to represent an apostrophe within the trap.
2976 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2977 trap 'exit_status=$?
2978   # Save into config.log some information that might help in debugging.
2979   {
2980     echo
2981 
2982     $as_echo "## ---------------- ##
2983 ## Cache variables. ##
2984 ## ---------------- ##"
2985     echo
2986     # The following way of writing the cache mishandles newlines in values,
2987 (
2988   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2989     eval ac_val=\$$ac_var
2990     case $ac_val in #(
2991     *${as_nl}*)
2992       case $ac_var in #(
2993       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2994 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2995       esac
2996       case $ac_var in #(
2997       _ | IFS | as_nl) ;; #(
2998       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2999       *) { eval $ac_var=; unset $ac_var;} ;;
3000       esac ;;
3001     esac
3002   done
3003   (set) 2>&1 |
3004     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3005     *${as_nl}ac_space=\ *)
3006       sed -n \
3007         "s/'\''/'\''\\\\'\'''\''/g;
3008           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3009       ;; #(
3010     *)
3011       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3012       ;;
3013     esac |
3014     sort
3015 )
3016     echo
3017 
3018     $as_echo "## ----------------- ##
3019 ## Output variables. ##
3020 ## ----------------- ##"
3021     echo
3022     for ac_var in $ac_subst_vars
3023     do
3024       eval ac_val=\$$ac_var
3025       case $ac_val in
3026       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3027       esac
3028       $as_echo "$ac_var='\''$ac_val'\''"
3029     done | sort
3030     echo
3031 
3032     if test -n "$ac_subst_files"; then
3033       $as_echo "## ------------------- ##
3034 ## File substitutions. ##
3035 ## ------------------- ##"
3036       echo
3037       for ac_var in $ac_subst_files
3038       do
3039         eval ac_val=\$$ac_var
3040         case $ac_val in
3041         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3042         esac
3043         $as_echo "$ac_var='\''$ac_val'\''"
3044       done | sort
3045       echo
3046     fi
3047 
3048     if test -s confdefs.h; then
3049       $as_echo "## ----------- ##
3050 ## confdefs.h. ##
3051 ## ----------- ##"
3052       echo
3053       cat confdefs.h
3054       echo
3055     fi
3056     test "$ac_signal" != 0 &&
3057       $as_echo "$as_me: caught signal $ac_signal"
3058     $as_echo "$as_me: exit $exit_status"
3059   } >&5
3060   rm -f core *.core core.conftest.* &&
3061     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3062     exit $exit_status
3063 ' 0
3064 for ac_signal in 1 2 13 15; do
3065   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3066 done
3067 ac_signal=0
3068 
3069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3070 rm -f -r conftest* confdefs.h
3071 
3072 $as_echo "/* confdefs.h */" > confdefs.h
3073 
3074 # Predefined preprocessor variables.
3075 
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_NAME "$PACKAGE_NAME"
3078 _ACEOF
3079 
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3082 _ACEOF
3083 
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3086 _ACEOF
3087 
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_STRING "$PACKAGE_STRING"
3090 _ACEOF
3091 
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3094 _ACEOF
3095 
3096 cat >>confdefs.h <<_ACEOF
3097 #define PACKAGE_URL "$PACKAGE_URL"
3098 _ACEOF
3099 
3100 
3101 # Let the site file select an alternate cache file if it wants to.
3102 # Prefer an explicitly selected file to automatically selected ones.
3103 ac_site_file1=NONE
3104 ac_site_file2=NONE
3105 if test -n "$CONFIG_SITE"; then
3106   # We do not want a PATH search for config.site.
3107   case $CONFIG_SITE in #((
3108     -*)  ac_site_file1=./$CONFIG_SITE;;
3109     */*) ac_site_file1=$CONFIG_SITE;;
3110     *)   ac_site_file1=./$CONFIG_SITE;;
3111   esac
3112 elif test "x$prefix" != xNONE; then
3113   ac_site_file1=$prefix/share/config.site
3114   ac_site_file2=$prefix/etc/config.site
3115 else
3116   ac_site_file1=$ac_default_prefix/share/config.site
3117   ac_site_file2=$ac_default_prefix/etc/config.site
3118 fi
3119 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3120 do
3121   test "x$ac_site_file" = xNONE && continue
3122   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3123     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3124 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3125     sed 's/^/| /' "$ac_site_file" >&5
3126     . "$ac_site_file" \
3127       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "failed to load site script $ac_site_file
3130 See \`config.log' for more details" "$LINENO" 5; }
3131   fi
3132 done
3133 
3134 if test -r "$cache_file"; then
3135   # Some versions of bash will fail to source /dev/null (special files
3136   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3137   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3138     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3139 $as_echo "$as_me: loading cache $cache_file" >&6;}
3140     case $cache_file in
3141       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3142       *)                      . "./$cache_file";;
3143     esac
3144   fi
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3147 $as_echo "$as_me: creating cache $cache_file" >&6;}
3148   >$cache_file
3149 fi
3150 
3151 # Check that the precious variables saved in the cache have kept the same
3152 # value.
3153 ac_cache_corrupted=false
3154 for ac_var in $ac_precious_vars; do
3155   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3156   eval ac_new_set=\$ac_env_${ac_var}_set
3157   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3158   eval ac_new_val=\$ac_env_${ac_var}_value
3159   case $ac_old_set,$ac_new_set in
3160     set,)
3161       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3162 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3163       ac_cache_corrupted=: ;;
3164     ,set)
3165       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3166 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3167       ac_cache_corrupted=: ;;
3168     ,);;
3169     *)
3170       if test "x$ac_old_val" != "x$ac_new_val"; then
3171         # differences in whitespace do not lead to failure.
3172         ac_old_val_w=`echo x $ac_old_val`
3173         ac_new_val_w=`echo x $ac_new_val`
3174         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3175           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3176 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3177           ac_cache_corrupted=:
3178         else
3179           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3180 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3181           eval $ac_var=\$ac_old_val
3182         fi
3183         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3184 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3185         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3186 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3187       fi;;
3188   esac
3189   # Pass precious variables to config.status.
3190   if test "$ac_new_set" = set; then
3191     case $ac_new_val in
3192     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3193     *) ac_arg=$ac_var=$ac_new_val ;;
3194     esac
3195     case " $ac_configure_args " in
3196       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3197       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3198     esac
3199   fi
3200 done
3201 if $ac_cache_corrupted; then
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3205 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3206   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3207 fi
3208 ## -------------------- ##
3209 ## Main body of script. ##
3210 ## -------------------- ##
3211 
3212 ac_ext=c
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3217 
3218 
3219 
3220 ac_aux_dir=
3221 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3222   if test -f "$ac_dir/install-sh"; then
3223     ac_aux_dir=$ac_dir
3224     ac_install_sh="$ac_aux_dir/install-sh -c"
3225     break
3226   elif test -f "$ac_dir/install.sh"; then
3227     ac_aux_dir=$ac_dir
3228     ac_install_sh="$ac_aux_dir/install.sh -c"
3229     break
3230   elif test -f "$ac_dir/shtool"; then
3231     ac_aux_dir=$ac_dir
3232     ac_install_sh="$ac_aux_dir/shtool install -c"
3233     break
3234   fi
3235 done
3236 if test -z "$ac_aux_dir"; then
3237   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
3238 fi
3239 
3240 # These three variables are undocumented and unsupported,
3241 # and are intended to be withdrawn in a future Autoconf release.
3242 # They can cause serious problems if a builder's source tree is in a directory
3243 # whose full name contains unusual characters.
3244 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3245 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3246 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3247 
3248 
3249 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3250 
3251 #
3252 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3253 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3254 #
3255 # This code is free software; you can redistribute it and/or modify it
3256 # under the terms of the GNU General Public License version 2 only, as
3257 # published by the Free Software Foundation.  Oracle designates this
3258 # particular file as subject to the "Classpath" exception as provided
3259 # by Oracle in the LICENSE file that accompanied this code.
3260 #
3261 # This code is distributed in the hope that it will be useful, but WITHOUT
3262 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3263 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3264 # version 2 for more details (a copy is included in the LICENSE file that
3265 # accompanied this code).
3266 #
3267 # You should have received a copy of the GNU General Public License version
3268 # 2 along with this work; if not, write to the Free Software Foundation,
3269 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3270 #
3271 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3272 # or visit www.oracle.com if you need additional information or have any
3273 # questions.
3274 #
3275 
3276 #
3277 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3278 #
3279 # This program is free software; you can redistribute it and/or modify
3280 # it under the terms of the GNU General Public License as published by
3281 # the Free Software Foundation; either version 2 of the License, or
3282 # (at your option) any later version.
3283 #
3284 # This program is distributed in the hope that it will be useful, but
3285 # WITHOUT ANY WARRANTY; without even the implied warranty of
3286 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3287 # General Public License for more details.
3288 #
3289 # You should have received a copy of the GNU General Public License
3290 # along with this program; if not, write to the Free Software
3291 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3292 #
3293 # As a special exception to the GNU General Public License, if you
3294 # distribute this file as part of a program that contains a
3295 # configuration script generated by Autoconf, you may include it under
3296 # the same distribution terms that you use for the rest of that program.
3297 
3298 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3299 # ----------------------------------
3300 # PKG_PROG_PKG_CONFIG
3301 
3302 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3303 #
3304 # Check to see whether a particular set of modules exists.  Similar
3305 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3306 #
3307 #
3308 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3309 # this or PKG_CHECK_MODULES is called, or make sure to call
3310 # PKG_CHECK_EXISTS manually
3311 # --------------------------------------------------------------
3312 
3313 
3314 
3315 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3316 # ---------------------------------------------
3317 # _PKG_CONFIG
3318 
3319 # _PKG_SHORT_ERRORS_SUPPORTED
3320 # -----------------------------
3321 # _PKG_SHORT_ERRORS_SUPPORTED
3322 
3323 
3324 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3325 # [ACTION-IF-NOT-FOUND])
3326 #
3327 #
3328 # Note that if there is a possibility the first call to
3329 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3330 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3331 #
3332 #
3333 # --------------------------------------------------------------
3334 # PKG_CHECK_MODULES
3335 
3336 
3337 # Include these first...
3338 #
3339 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3340 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3341 #
3342 # This code is free software; you can redistribute it and/or modify it
3343 # under the terms of the GNU General Public License version 2 only, as
3344 # published by the Free Software Foundation.  Oracle designates this
3345 # particular file as subject to the "Classpath" exception as provided
3346 # by Oracle in the LICENSE file that accompanied this code.
3347 #
3348 # This code is distributed in the hope that it will be useful, but WITHOUT
3349 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3350 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3351 # version 2 for more details (a copy is included in the LICENSE file that
3352 # accompanied this code).
3353 #
3354 # You should have received a copy of the GNU General Public License version
3355 # 2 along with this work; if not, write to the Free Software Foundation,
3356 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3357 #
3358 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3359 # or visit www.oracle.com if you need additional information or have any
3360 # questions.
3361 #
3362 
3363 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3364 # If so, then append $1 to $2 \
3365 # Also set JVM_ARG_OK to true/false depending on outcome.
3366 
3367 
3368 # Appends a string to a path variable, only adding the : when needed.
3369 
3370 
3371 # Prepends a string to a path variable, only adding the : when needed.
3372 
3373 
3374 # This will make sure the given variable points to a full and proper
3375 # path. This means:
3376 # 1) There will be no spaces in the path. On posix platforms,
3377 #    spaces in the path will result in an error. On Windows,
3378 #    the path will be rewritten using short-style to be space-free.
3379 # 2) The path will be absolute, and it will be in unix-style (on
3380 #     cygwin).
3381 # $1: The name of the variable to fix
3382 
3383 
3384 # This will make sure the given variable points to a executable
3385 # with a full and proper path. This means:
3386 # 1) There will be no spaces in the path. On posix platforms,
3387 #    spaces in the path will result in an error. On Windows,
3388 #    the path will be rewritten using short-style to be space-free.
3389 # 2) The path will be absolute, and it will be in unix-style (on
3390 #     cygwin).
3391 # Any arguments given to the executable is preserved.
3392 # If the input variable does not have a directory specification, then
3393 # it need to be in the PATH.
3394 # $1: The name of the variable to fix
3395 
3396 
3397 
3398 
3399 # Register a --with argument but mark it as deprecated
3400 # $1: The name of the with argument to deprecate, not including --with-
3401 
3402 
3403 # Register a --enable argument but mark it as deprecated
3404 # $1: The name of the with argument to deprecate, not including --enable-
3405 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3406 
3407 
3408 
3409 
3410 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3411 # $1: variable to check
3412 
3413 
3414 # Check that there are no unprocessed overridden variables left.
3415 # If so, they are an incorrect argument and we will exit with an error.
3416 
3417 
3418 # Setup a tool for the given variable. If correctly specified by the user,
3419 # use that value, otherwise search for the tool using the supplied code snippet.
3420 # $1: variable to set
3421 # $2: code snippet to call to look for the tool
3422 
3423 
3424 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3425 # $1: variable to set
3426 # $2: executable name (or list of names) to look for
3427 
3428 
3429 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3430 # $1: variable to set
3431 # $2: executable name (or list of names) to look for
3432 
3433 
3434 # Like BASIC_PATH_PROGS but fails if no tool was found.
3435 # $1: variable to set
3436 # $2: executable name (or list of names) to look for
3437 
3438 
3439 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3440 # $1: variable to set
3441 # $2: autoconf macro to call to look for the special tool
3442 
3443 
3444 # Setup the most fundamental tools that relies on not much else to set up,
3445 # but is used by much of the early bootstrap code.
3446 
3447 
3448 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3449 
3450 
3451 # Evaluates platform specific overrides for devkit variables.
3452 # $1: Name of variable
3453 
3454 
3455 
3456 
3457 
3458 
3459 
3460 
3461 
3462 #%%% Simple tools %%%
3463 
3464 # Check if we have found a usable version of make
3465 # $1: the path to a potential make binary (or empty)
3466 # $2: the description on how we found this
3467 
3468 
3469 # Goes looking for a usable version of GNU make.
3470 
3471 
3472 
3473 
3474 
3475 
3476 # Check if build directory is on local disk. If not possible to determine,
3477 # we prefer to claim it's local.
3478 # Argument 1: directory to test
3479 # Argument 2: what to do if it is on local disk
3480 # Argument 3: what to do otherwise (remote disk or failure)
3481 
3482 
3483 # Check that source files have basic read permissions set. This might
3484 # not be the case in cygwin in certain conditions.
3485 
3486 
3487 
3488 
3489 # Code to run after AC_OUTPUT
3490 
3491 
3492 #
3493 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3494 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3495 #
3496 # This code is free software; you can redistribute it and/or modify it
3497 # under the terms of the GNU General Public License version 2 only, as
3498 # published by the Free Software Foundation.  Oracle designates this
3499 # particular file as subject to the "Classpath" exception as provided
3500 # by Oracle in the LICENSE file that accompanied this code.
3501 #
3502 # This code is distributed in the hope that it will be useful, but WITHOUT
3503 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3504 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3505 # version 2 for more details (a copy is included in the LICENSE file that
3506 # accompanied this code).
3507 #
3508 # You should have received a copy of the GNU General Public License version
3509 # 2 along with this work; if not, write to the Free Software Foundation,
3510 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3511 #
3512 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3513 # or visit www.oracle.com if you need additional information or have any
3514 # questions.
3515 #
3516 
3517 
3518 
3519 
3520 
3521 # Helper function which possibly converts a path using DOS-style short mode.
3522 # If so, the updated path is stored in $new_path.
3523 # $1: The path to check
3524 
3525 
3526 # Helper function which possibly converts a path using DOS-style short mode.
3527 # If so, the updated path is stored in $new_path.
3528 # $1: The path to check
3529 
3530 
3531 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3532 # and could probably be heavily simplified. However, all changes in this
3533 # area tend to need lot of testing in different scenarios, and in lack of
3534 # proper unit testing, cleaning this up has not been deemed worth the effort
3535 # at the moment.
3536 
3537 
3538 
3539 
3540 
3541 
3542 
3543 
3544 
3545 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3546 
3547 
3548 
3549 
3550 #
3551 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3552 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3553 #
3554 # This code is free software; you can redistribute it and/or modify it
3555 # under the terms of the GNU General Public License version 2 only, as
3556 # published by the Free Software Foundation.  Oracle designates this
3557 # particular file as subject to the "Classpath" exception as provided
3558 # by Oracle in the LICENSE file that accompanied this code.
3559 #
3560 # This code is distributed in the hope that it will be useful, but WITHOUT
3561 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3562 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3563 # version 2 for more details (a copy is included in the LICENSE file that
3564 # accompanied this code).
3565 #
3566 # You should have received a copy of the GNU General Public License version
3567 # 2 along with this work; if not, write to the Free Software Foundation,
3568 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3569 #
3570 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3571 # or visit www.oracle.com if you need additional information or have any
3572 # questions.
3573 #
3574 
3575 
3576 
3577 
3578 
3579 
3580 
3581 
3582 
3583 
3584 
3585 # ... then the rest
3586 #
3587 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3588 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3589 #
3590 # This code is free software; you can redistribute it and/or modify it
3591 # under the terms of the GNU General Public License version 2 only, as
3592 # published by the Free Software Foundation.  Oracle designates this
3593 # particular file as subject to the "Classpath" exception as provided
3594 # by Oracle in the LICENSE file that accompanied this code.
3595 #
3596 # This code is distributed in the hope that it will be useful, but WITHOUT
3597 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3598 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3599 # version 2 for more details (a copy is included in the LICENSE file that
3600 # accompanied this code).
3601 #
3602 # You should have received a copy of the GNU General Public License version
3603 # 2 along with this work; if not, write to the Free Software Foundation,
3604 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3605 #
3606 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3607 # or visit www.oracle.com if you need additional information or have any
3608 # questions.
3609 #
3610 
3611 # Execute the check given as argument, and verify the result
3612 # If the Boot JDK was previously found, do nothing
3613 # $1 A command line (typically autoconf macro) to execute
3614 
3615 
3616 # Test: Is bootjdk explicitely set by command line arguments?
3617 
3618 
3619 # Test: Is bootjdk available from builddeps?
3620 
3621 
3622 # Test: Is $JAVA_HOME set?
3623 
3624 
3625 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3626 
3627 
3628 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3629 
3630 
3631 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3632 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3633 # $1 = Path to directory containing jdk installations.
3634 # $2 = String to append to the found JDK directory to get the proper JDK home
3635 
3636 
3637 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3638 # environmental variable as base for where to look.
3639 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3640 
3641 
3642 # Test: Is there a JDK installed in default, well-known locations?
3643 
3644 
3645 # Check that a command-line tool in the Boot JDK is correct
3646 # $1 = name of variable to assign
3647 # $2 = name of binary
3648 
3649 
3650 ###############################################################################
3651 #
3652 # We need a Boot JDK to bootstrap the build.
3653 #
3654 
3655 
3656 
3657 
3658 
3659 #
3660 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3661 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3662 #
3663 # This code is free software; you can redistribute it and/or modify it
3664 # under the terms of the GNU General Public License version 2 only, as
3665 # published by the Free Software Foundation.  Oracle designates this
3666 # particular file as subject to the "Classpath" exception as provided
3667 # by Oracle in the LICENSE file that accompanied this code.
3668 #
3669 # This code is distributed in the hope that it will be useful, but WITHOUT
3670 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3671 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3672 # version 2 for more details (a copy is included in the LICENSE file that
3673 # accompanied this code).
3674 #
3675 # You should have received a copy of the GNU General Public License version
3676 # 2 along with this work; if not, write to the Free Software Foundation,
3677 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3678 #
3679 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3680 # or visit www.oracle.com if you need additional information or have any
3681 # questions.
3682 #
3683 
3684 
3685 
3686 
3687 
3688 
3689 
3690 
3691 
3692 
3693 
3694 
3695 
3696 
3697 
3698 
3699 
3700 
3701 
3702 
3703 #
3704 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3705 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3706 #
3707 # This code is free software; you can redistribute it and/or modify it
3708 # under the terms of the GNU General Public License version 2 only, as
3709 # published by the Free Software Foundation.  Oracle designates this
3710 # particular file as subject to the "Classpath" exception as provided
3711 # by Oracle in the LICENSE file that accompanied this code.
3712 #
3713 # This code is distributed in the hope that it will be useful, but WITHOUT
3714 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3715 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3716 # version 2 for more details (a copy is included in the LICENSE file that
3717 # accompanied this code).
3718 #
3719 # You should have received a copy of the GNU General Public License version
3720 # 2 along with this work; if not, write to the Free Software Foundation,
3721 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3722 #
3723 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3724 # or visit www.oracle.com if you need additional information or have any
3725 # questions.
3726 #
3727 
3728 
3729 
3730 
3731 
3732 # Documentation on common flags used for solstudio in HIGHEST.
3733 #
3734 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3735 #          done with care, there are some assumptions below that need to
3736 #          be understood about the use of pointers, and IEEE behavior.
3737 #
3738 # -fns: Use non-standard floating point mode (not IEEE 754)
3739 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3740 # -fsingle: Use single precision floating point with 'float'
3741 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3742 #   (Source with excessing pointer casting and data access with mixed
3743 #    pointer types are not recommended)
3744 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3745 #   (If you expect perfect errno behavior, do not use this)
3746 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3747 # -xrestrict: Pointer parameters to functions do not overlap
3748 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3749 #    If you pass in multiple pointers to the same data, do not use this)
3750 # -xlibmil: Inline some library routines
3751 #   (If you expect perfect errno behavior, do not use this)
3752 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3753 #   (If you expect perfect errno behavior, do not use this)
3754 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3755 
3756     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3757     # Bug?
3758     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3759     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3760     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3761     #fi
3762 
3763 
3764 
3765 
3766 
3767 
3768 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3769 #                                  [RUN-IF-FALSE])
3770 # ------------------------------------------------------------
3771 # Check that the C compiler supports an argument
3772 
3773 
3774 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3775 #                                    [RUN-IF-FALSE])
3776 # ------------------------------------------------------------
3777 # Check that the C++ compiler supports an argument
3778 
3779 
3780 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3781 #                                [RUN-IF-FALSE])
3782 # ------------------------------------------------------------
3783 # Check that the C and C++ compilers support an argument
3784 
3785 
3786 
3787 
3788 
3789 
3790 
3791 #
3792 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3793 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3794 #
3795 # This code is free software; you can redistribute it and/or modify it
3796 # under the terms of the GNU General Public License version 2 only, as
3797 # published by the Free Software Foundation.  Oracle designates this
3798 # particular file as subject to the "Classpath" exception as provided
3799 # by Oracle in the LICENSE file that accompanied this code.
3800 #
3801 # This code is distributed in the hope that it will be useful, but WITHOUT
3802 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3803 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3804 # version 2 for more details (a copy is included in the LICENSE file that
3805 # accompanied this code).
3806 #
3807 # You should have received a copy of the GNU General Public License version
3808 # 2 along with this work; if not, write to the Free Software Foundation,
3809 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3810 #
3811 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3812 # or visit www.oracle.com if you need additional information or have any
3813 # questions.
3814 #
3815 
3816 
3817 
3818 
3819 
3820 cygwin_help() {
3821   case $1 in
3822     unzip)
3823       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3824       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3825       ;;
3826     zip)
3827       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3828       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3829       ;;
3830     make)
3831       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3832       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3833       ;;
3834     freetype)
3835       HELP_MSG="
3836 The freetype library can now be build during the configure process.
3837 Download the freetype sources and unpack them into an arbitrary directory:
3838 
3839 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3840 tar -xzf freetype-2.5.3.tar.gz
3841 
3842 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3843 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3844 builds or into '<freetype_src>/lib32' for 32-bit builds.
3845 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3846 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3847       ;;
3848   esac
3849 }
3850 
3851 msys_help() {
3852   PKGHANDLER_COMMAND=""
3853 }
3854 
3855 apt_help() {
3856   case $1 in
3857     devkit)
3858       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3859     openjdk)
3860       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3861     alsa)
3862       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3863     cups)
3864       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3865     fontconfig)
3866       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3867     freetype)
3868       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3869     pulse)
3870       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3871     x11)
3872       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3873     ccache)
3874       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3875   esac
3876 }
3877 
3878 yum_help() {
3879   case $1 in
3880     devkit)
3881       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3882     openjdk)
3883       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3884     alsa)
3885       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3886     cups)
3887       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3888     fontconfig)
3889       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3890     freetype)
3891       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3892     pulse)
3893       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3894     x11)
3895       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3896     ccache)
3897       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3898   esac
3899 }
3900 
3901 port_help() {
3902   PKGHANDLER_COMMAND=""
3903 }
3904 
3905 pkgutil_help() {
3906   PKGHANDLER_COMMAND=""
3907 }
3908 
3909 pkgadd_help() {
3910   PKGHANDLER_COMMAND=""
3911 }
3912 
3913 # This function will check if we're called from the "configure" wrapper while
3914 # printing --help. If so, we will print out additional information that can
3915 # only be extracted within the autoconf script, and then exit. This must be
3916 # called at the very beginning in configure.ac.
3917 
3918 
3919 
3920 
3921 
3922 
3923 #
3924 # Copyright (c) 2011, 2021, Oracle and/or its affiliates. All rights reserved.
3925 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3926 #
3927 # This code is free software; you can redistribute it and/or modify it
3928 # under the terms of the GNU General Public License version 2 only, as
3929 # published by the Free Software Foundation.  Oracle designates this
3930 # particular file as subject to the "Classpath" exception as provided
3931 # by Oracle in the LICENSE file that accompanied this code.
3932 #
3933 # This code is distributed in the hope that it will be useful, but WITHOUT
3934 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3935 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3936 # version 2 for more details (a copy is included in the LICENSE file that
3937 # accompanied this code).
3938 #
3939 # You should have received a copy of the GNU General Public License version
3940 # 2 along with this work; if not, write to the Free Software Foundation,
3941 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3942 #
3943 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3944 # or visit www.oracle.com if you need additional information or have any
3945 # questions.
3946 #
3947 
3948 
3949 
3950 
3951 
3952 
3953 
3954 
3955 
3956 
3957 ###############################################################################
3958 #
3959 # Should we build only OpenJDK even if closed sources are present?
3960 #
3961 
3962 
3963 
3964 
3965 ###############################################################################
3966 #
3967 # Setup version numbers
3968 #
3969 
3970 
3971 
3972 
3973 
3974 
3975 # Support for customization of the build process. Some build files
3976 # will include counterparts from this location, if they exist. This allows
3977 # for a degree of customization of the build targets and the rules/recipes
3978 # to create them
3979 
3980 # Check whether --with-custom-make-dir was given.
3981 if test "${with_custom_make_dir+set}" = set; then :
3982   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3983 fi
3984 
3985 
3986 
3987 #
3988 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3989 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3990 #
3991 # This code is free software; you can redistribute it and/or modify it
3992 # under the terms of the GNU General Public License version 2 only, as
3993 # published by the Free Software Foundation.  Oracle designates this
3994 # particular file as subject to the "Classpath" exception as provided
3995 # by Oracle in the LICENSE file that accompanied this code.
3996 #
3997 # This code is distributed in the hope that it will be useful, but WITHOUT
3998 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3999 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4000 # version 2 for more details (a copy is included in the LICENSE file that
4001 # accompanied this code).
4002 #
4003 # You should have received a copy of the GNU General Public License version
4004 # 2 along with this work; if not, write to the Free Software Foundation,
4005 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4006 #
4007 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4008 # or visit www.oracle.com if you need additional information or have any
4009 # questions.
4010 #
4011 
4012 
4013 
4014 
4015 
4016 
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 
4025 
4026 ################################################################################
4027 # Setup fontconfig
4028 ################################################################################
4029 
4030 
4031 
4032 
4033 
4034 
4035 
4036 
4037 #
4038 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4039 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4040 #
4041 # This code is free software; you can redistribute it and/or modify it
4042 # under the terms of the GNU General Public License version 2 only, as
4043 # published by the Free Software Foundation.  Oracle designates this
4044 # particular file as subject to the "Classpath" exception as provided
4045 # by Oracle in the LICENSE file that accompanied this code.
4046 #
4047 # This code is distributed in the hope that it will be useful, but WITHOUT
4048 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4049 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4050 # version 2 for more details (a copy is included in the LICENSE file that
4051 # accompanied this code).
4052 #
4053 # You should have received a copy of the GNU General Public License version
4054 # 2 along with this work; if not, write to the Free Software Foundation,
4055 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4056 #
4057 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4058 # or visit www.oracle.com if you need additional information or have any
4059 # questions.
4060 #
4061 
4062 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4063 # Converts autoconf style CPU name to OpenJDK style, into
4064 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4065 
4066 
4067 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4068 # Converts autoconf style OS name to OpenJDK style, into
4069 # VAR_OS and VAR_OS_API.
4070 
4071 
4072 # Expects $host_os $host_cpu $build_os and $build_cpu
4073 # and $with_target_bits to have been setup!
4074 #
4075 # Translate the standard triplet(quadruplet) definition
4076 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4077 # OPENJDK_BUILD_OS, etc.
4078 
4079 
4080 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4081 # accordingly. Must be done after setting up build and target system, but before
4082 # doing anything else with these values.
4083 
4084 
4085 # Setup the legacy variables, for controlling the old makefiles.
4086 #
4087 
4088 
4089 
4090 
4091 #%%% Build and target systems %%%
4092 
4093 
4094 
4095 
4096 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4097 # Add -mX to various FLAGS variables.
4098 
4099 
4100 
4101 
4102 
4103 
4104 #
4105 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4106 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4107 #
4108 # This code is free software; you can redistribute it and/or modify it
4109 # under the terms of the GNU General Public License version 2 only, as
4110 # published by the Free Software Foundation.  Oracle designates this
4111 # particular file as subject to the "Classpath" exception as provided
4112 # by Oracle in the LICENSE file that accompanied this code.
4113 #
4114 # This code is distributed in the hope that it will be useful, but WITHOUT
4115 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4116 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4117 # version 2 for more details (a copy is included in the LICENSE file that
4118 # accompanied this code).
4119 #
4120 # You should have received a copy of the GNU General Public License version
4121 # 2 along with this work; if not, write to the Free Software Foundation,
4122 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4123 #
4124 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4125 # or visit www.oracle.com if you need additional information or have any
4126 # questions.
4127 #
4128 
4129 
4130 
4131 
4132 
4133 
4134 
4135 
4136 #
4137 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4138 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4139 #
4140 # This code is free software; you can redistribute it and/or modify it
4141 # under the terms of the GNU General Public License version 2 only, as
4142 # published by the Free Software Foundation.  Oracle designates this
4143 # particular file as subject to the "Classpath" exception as provided
4144 # by Oracle in the LICENSE file that accompanied this code.
4145 #
4146 # This code is distributed in the hope that it will be useful, but WITHOUT
4147 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4148 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4149 # version 2 for more details (a copy is included in the LICENSE file that
4150 # accompanied this code).
4151 #
4152 # You should have received a copy of the GNU General Public License version
4153 # 2 along with this work; if not, write to the Free Software Foundation,
4154 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4155 #
4156 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4157 # or visit www.oracle.com if you need additional information or have any
4158 # questions.
4159 #
4160 
4161 ########################################################################
4162 # This file is responsible for detecting, verifying and setting up the
4163 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4164 # proper paths to the binaries, but it will not setup any flags.
4165 #
4166 # The binaries used is determined by the toolchain type, which is the family of
4167 # compilers and related tools that are used.
4168 ########################################################################
4169 
4170 
4171 # All valid toolchains, regardless of platform (used by help.m4)
4172 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4173 
4174 # These toolchains are valid on different platforms
4175 VALID_TOOLCHAINS_linux="gcc clang"
4176 VALID_TOOLCHAINS_solaris="solstudio"
4177 VALID_TOOLCHAINS_macosx="gcc clang"
4178 VALID_TOOLCHAINS_aix="xlc"
4179 VALID_TOOLCHAINS_windows="microsoft"
4180 
4181 # Toolchain descriptions
4182 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4183 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4184 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4185 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4186 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4187 
4188 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4189 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4190 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4191 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4192 
4193 
4194 # Check if the configured compiler (C and C++) is of a specific version or
4195 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4196 #
4197 # Arguments:
4198 #   $1:   The version string to check against the found version
4199 #   $2:   block to run if the compiler is at least this version (>=)
4200 #   $3:   block to run if the compiler is older than this version (<)
4201 
4202 
4203 
4204 # Setup a number of variables describing how native output files are
4205 # named on this platform/toolchain.
4206 
4207 
4208 # Determine which toolchain type to use, and make sure it is valid for this
4209 # platform. Setup various information about the selected toolchain.
4210 
4211 
4212 # Before we start detecting the toolchain executables, we might need some
4213 # special setup, e.g. additional paths etc.
4214 
4215 
4216 # Restore path, etc
4217 
4218 
4219 # Check if a compiler is of the toolchain type we expect, and save the version
4220 # information from it. If the compiler does not match the expected type,
4221 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4222 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4223 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4224 #
4225 # $1 = compiler to test (CC or CXX)
4226 # $2 = human readable name of compiler (C or C++)
4227 
4228 
4229 
4230 # Try to locate the given C or C++ compiler in the path, or otherwise.
4231 #
4232 # $1 = compiler to test (CC or CXX)
4233 # $2 = human readable name of compiler (C or C++)
4234 # $3 = list of compiler names to search for
4235 
4236 
4237 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4238 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4239 # archiver (AR). Verify that the compilers are correct according to the
4240 # toolchain type.
4241 
4242 
4243 # Setup additional tools that is considered a part of the toolchain, but not the
4244 # core part. Many of these are highly platform-specific and do not exist,
4245 # and/or are not needed on all platforms.
4246 
4247 
4248 # Setup the build tools (i.e, the compiler and linker used to build programs
4249 # that should be run on the build platform, not the target platform, as a build
4250 # helper). Since the non-cross-compile case uses the normal, target compilers
4251 # for this, we can only do this after these have been setup.
4252 
4253 
4254 # Setup legacy variables that are still needed as alternative ways to refer to
4255 # parts of the toolchain.
4256 
4257 
4258 # Do some additional checks on the detected tools.
4259 
4260 
4261 # Setup the JTReg Regression Test Harness.
4262 
4263 
4264 
4265 #
4266 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4267 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4268 #
4269 # This code is free software; you can redistribute it and/or modify it
4270 # under the terms of the GNU General Public License version 2 only, as
4271 # published by the Free Software Foundation.  Oracle designates this
4272 # particular file as subject to the "Classpath" exception as provided
4273 # by Oracle in the LICENSE file that accompanied this code.
4274 #
4275 # This code is distributed in the hope that it will be useful, but WITHOUT
4276 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4277 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4278 # version 2 for more details (a copy is included in the LICENSE file that
4279 # accompanied this code).
4280 #
4281 # You should have received a copy of the GNU General Public License version
4282 # 2 along with this work; if not, write to the Free Software Foundation,
4283 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4284 #
4285 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4286 # or visit www.oracle.com if you need additional information or have any
4287 # questions.
4288 #
4289 
4290 ################################################################################
4291 # The order of these defines the priority by which we try to find them.
4292 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4293 
4294 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4295 VS_VERSION_INTERNAL_2010=100
4296 VS_MSVCR_2010=msvcr100.dll
4297 # We don't use msvcp on Visual Studio 2010
4298 #VS_MSVCP_2010=msvcp100.dll
4299 VS_ENVVAR_2010="VS100COMNTOOLS"
4300 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4301 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4302 VS_VS_PLATFORM_NAME_2010="v100"
4303 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4304 
4305 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4306 VS_VERSION_INTERNAL_2012=110
4307 VS_MSVCR_2012=msvcr110.dll
4308 VS_MSVCP_2012=msvcp110.dll
4309 VS_ENVVAR_2012="VS110COMNTOOLS"
4310 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4311 VS_SDK_INSTALLDIR_2012=
4312 VS_VS_PLATFORM_NAME_2012="v110"
4313 VS_SDK_PLATFORM_NAME_2012=
4314 
4315 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4316 VS_VERSION_INTERNAL_2013=120
4317 VS_MSVCR_2013=msvcr120.dll
4318 VS_MSVCP_2013=msvcp120.dll
4319 VS_ENVVAR_2013="VS120COMNTOOLS"
4320 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4321 VS_SDK_INSTALLDIR_2013=
4322 VS_VS_PLATFORM_NAME_2013="v120"
4323 VS_SDK_PLATFORM_NAME_2013=
4324 
4325 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4326 VS_VERSION_INTERNAL_2015=140
4327 VS_MSVCR_2015=vcruntime140.dll
4328 VS_MSVCP_2015=msvcp140.dll
4329 VS_ENVVAR_2015="VS140COMNTOOLS"
4330 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4331 VS_SDK_INSTALLDIR_2015=
4332 VS_VS_PLATFORM_NAME_2015="v140"
4333 VS_SDK_PLATFORM_NAME_2015=
4334 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4335 # explicitly specifying Windows Kit 8.1 to be used.
4336 VS_ENV_ARGS_2015="8.1"
4337 
4338 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4339 VS_VERSION_INTERNAL_2017=141
4340 VS_MSVCR_2017=vcruntime140.dll
4341 VS_MSVCP_2017=msvcp140.dll
4342 VS_ENVVAR_2017="VS150COMNTOOLS"
4343 VS_USE_UCRT_2017="true"
4344 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4345 VS_EDITIONS_2017="Community Professional Enterprise"
4346 VS_SDK_INSTALLDIR_2017=
4347 VS_VS_PLATFORM_NAME_2017="v141"
4348 VS_SDK_PLATFORM_NAME_2017=
4349 
4350 ################################################################################
4351 
4352 
4353 
4354 ################################################################################
4355 
4356 
4357 
4358 ################################################################################
4359 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4360 # build environment and assigns it to VS_ENV_CMD
4361 
4362 
4363 ################################################################################
4364 
4365 
4366 
4367 ################################################################################
4368 # Check if the VS env variables were setup prior to running configure.
4369 # If not, then find vcvarsall.bat and run it automatically, and integrate
4370 # the set env variables into the spec file.
4371 
4372 
4373 
4374 
4375 
4376 
4377 
4378 
4379 
4380 
4381 
4382 
4383 
4384 
4385 # This line needs to be here, verbatim, after all includes and the dummy hook
4386 # definitions. It is replaced with custom functionality when building
4387 # custom sources.
4388 #CUSTOM_AUTOCONF_INCLUDE
4389 
4390 # Do not change or remove the following line, it is needed for consistency checks:
4391 DATE_WHEN_GENERATED=1625670527
4392 
4393 ###############################################################################
4394 #
4395 # Initialization / Boot-strapping
4396 #
4397 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4398 # thus it jumps back and forth, each time gaining something needed later on.
4399 #
4400 ###############################################################################
4401 
4402 # If we are requested to print additional help, do that and then exit.
4403 # This must be the very first call.
4404 
4405   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4406     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4407     $PRINTF "Which are valid to use depends on the build platform.\n"
4408     for toolchain in $VALID_TOOLCHAINS_all; do
4409       # Use indirect variable referencing
4410       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4411       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4412       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4413     done
4414 
4415     # And now exit directly
4416     exit 0
4417   fi
4418 
4419 
4420 # Basic initialization that must happen first of all in the normal process.
4421 
4422   # Save the original command line. This is passed to us by the wrapper configure script.
4423 
4424   DATE_WHEN_CONFIGURED=`LANG=C date`
4425 
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4427 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4429 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4430 
4431 
4432   # Start with tools that do not need have cross compilation support
4433   # and can be expected to be found in the default PATH. These tools are
4434   # used by configure. Nor are these tools expected to be found in the
4435   # devkit from the builddeps server either, since they are
4436   # needed to download the devkit.
4437 
4438   # First are all the simple required tools.
4439 
4440 
4441 
4442   # Publish this variable in the help.
4443 
4444 
4445   if test "x$BASENAME" = x; then
4446     # The variable is not set by user, try to locate tool using the code snippet
4447     for ac_prog in basename
4448 do
4449   # Extract the first word of "$ac_prog", so it can be a program name with args.
4450 set dummy $ac_prog; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_path_BASENAME+:} false; then :
4454   $as_echo_n "(cached) " >&6
4455 else
4456   case $BASENAME in
4457   [\\/]* | ?:[\\/]*)
4458   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4459   ;;
4460   *)
4461   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464   IFS=$as_save_IFS
4465   test -z "$as_dir" && as_dir=.
4466     for ac_exec_ext in '' $ac_executable_extensions; do
4467   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470     break 2
4471   fi
4472 done
4473   done
4474 IFS=$as_save_IFS
4475 
4476   ;;
4477 esac
4478 fi
4479 BASENAME=$ac_cv_path_BASENAME
4480 if test -n "$BASENAME"; then
4481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4482 $as_echo "$BASENAME" >&6; }
4483 else
4484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487 
4488 
4489   test -n "$BASENAME" && break
4490 done
4491 
4492   else
4493     # The variable is set, but is it from the command line or the environment?
4494 
4495     # Try to remove the string !BASENAME! from our list.
4496     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4497     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4498       # If it failed, the variable was not from the command line. Ignore it,
4499       # but warn the user (except for BASH, which is always set by the calling BASH).
4500       if test "xBASENAME" != xBASH; then
4501         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4502 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4503       fi
4504       # Try to locate tool using the code snippet
4505       for ac_prog in basename
4506 do
4507   # Extract the first word of "$ac_prog", so it can be a program name with args.
4508 set dummy $ac_prog; ac_word=$2
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510 $as_echo_n "checking for $ac_word... " >&6; }
4511 if ${ac_cv_path_BASENAME+:} false; then :
4512   $as_echo_n "(cached) " >&6
4513 else
4514   case $BASENAME in
4515   [\\/]* | ?:[\\/]*)
4516   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4517   ;;
4518   *)
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524     for ac_exec_ext in '' $ac_executable_extensions; do
4525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531   done
4532 IFS=$as_save_IFS
4533 
4534   ;;
4535 esac
4536 fi
4537 BASENAME=$ac_cv_path_BASENAME
4538 if test -n "$BASENAME"; then
4539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4540 $as_echo "$BASENAME" >&6; }
4541 else
4542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4543 $as_echo "no" >&6; }
4544 fi
4545 
4546 
4547   test -n "$BASENAME" && break
4548 done
4549 
4550     else
4551       # If it succeeded, then it was overridden by the user. We will use it
4552       # for the tool.
4553 
4554       # First remove it from the list of overridden variables, so we can test
4555       # for unknown variables in the end.
4556       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4557 
4558       # Check if the provided tool contains a complete path.
4559       tool_specified="$BASENAME"
4560       tool_basename="${tool_specified##*/}"
4561       if test "x$tool_basename" = "x$tool_specified"; then
4562         # A command without a complete path is provided, search $PATH.
4563         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4564 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4565         # Extract the first word of "$tool_basename", so it can be a program name with args.
4566 set dummy $tool_basename; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_path_BASENAME+:} false; then :
4570   $as_echo_n "(cached) " >&6
4571 else
4572   case $BASENAME in
4573   [\\/]* | ?:[\\/]*)
4574   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4575   ;;
4576   *)
4577   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 for as_dir in $PATH
4579 do
4580   IFS=$as_save_IFS
4581   test -z "$as_dir" && as_dir=.
4582     for ac_exec_ext in '' $ac_executable_extensions; do
4583   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4584     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4585     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4586     break 2
4587   fi
4588 done
4589   done
4590 IFS=$as_save_IFS
4591 
4592   ;;
4593 esac
4594 fi
4595 BASENAME=$ac_cv_path_BASENAME
4596 if test -n "$BASENAME"; then
4597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4598 $as_echo "$BASENAME" >&6; }
4599 else
4600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603 
4604 
4605         if test "x$BASENAME" = x; then
4606           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4607         fi
4608       else
4609         # Otherwise we believe it is a complete path. Use it as it is.
4610         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4611 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4613 $as_echo_n "checking for BASENAME... " >&6; }
4614         if test ! -x "$tool_specified"; then
4615           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4616 $as_echo "not found" >&6; }
4617           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4618         fi
4619         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4620 $as_echo "$tool_specified" >&6; }
4621       fi
4622     fi
4623   fi
4624 
4625 
4626 
4627   if test "x$BASENAME" = x; then
4628     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4629   fi
4630 
4631 
4632 
4633 
4634 
4635   # Publish this variable in the help.
4636 
4637 
4638   if test "x$BASH" = x; then
4639     # The variable is not set by user, try to locate tool using the code snippet
4640     for ac_prog in bash
4641 do
4642   # Extract the first word of "$ac_prog", so it can be a program name with args.
4643 set dummy $ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_path_BASH+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   case $BASH in
4650   [\\/]* | ?:[\\/]*)
4651   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4652   ;;
4653   *)
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_exec_ext in '' $ac_executable_extensions; do
4660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666   done
4667 IFS=$as_save_IFS
4668 
4669   ;;
4670 esac
4671 fi
4672 BASH=$ac_cv_path_BASH
4673 if test -n "$BASH"; then
4674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4675 $as_echo "$BASH" >&6; }
4676 else
4677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 $as_echo "no" >&6; }
4679 fi
4680 
4681 
4682   test -n "$BASH" && break
4683 done
4684 
4685   else
4686     # The variable is set, but is it from the command line or the environment?
4687 
4688     # Try to remove the string !BASH! from our list.
4689     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4690     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4691       # If it failed, the variable was not from the command line. Ignore it,
4692       # but warn the user (except for BASH, which is always set by the calling BASH).
4693       if test "xBASH" != xBASH; then
4694         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4695 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4696       fi
4697       # Try to locate tool using the code snippet
4698       for ac_prog in bash
4699 do
4700   # Extract the first word of "$ac_prog", so it can be a program name with args.
4701 set dummy $ac_prog; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if ${ac_cv_path_BASH+:} false; then :
4705   $as_echo_n "(cached) " >&6
4706 else
4707   case $BASH in
4708   [\\/]* | ?:[\\/]*)
4709   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4710   ;;
4711   *)
4712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717     for ac_exec_ext in '' $ac_executable_extensions; do
4718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4719     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724   done
4725 IFS=$as_save_IFS
4726 
4727   ;;
4728 esac
4729 fi
4730 BASH=$ac_cv_path_BASH
4731 if test -n "$BASH"; then
4732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4733 $as_echo "$BASH" >&6; }
4734 else
4735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4737 fi
4738 
4739 
4740   test -n "$BASH" && break
4741 done
4742 
4743     else
4744       # If it succeeded, then it was overridden by the user. We will use it
4745       # for the tool.
4746 
4747       # First remove it from the list of overridden variables, so we can test
4748       # for unknown variables in the end.
4749       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4750 
4751       # Check if the provided tool contains a complete path.
4752       tool_specified="$BASH"
4753       tool_basename="${tool_specified##*/}"
4754       if test "x$tool_basename" = "x$tool_specified"; then
4755         # A command without a complete path is provided, search $PATH.
4756         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4757 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4758         # Extract the first word of "$tool_basename", so it can be a program name with args.
4759 set dummy $tool_basename; ac_word=$2
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4761 $as_echo_n "checking for $ac_word... " >&6; }
4762 if ${ac_cv_path_BASH+:} false; then :
4763   $as_echo_n "(cached) " >&6
4764 else
4765   case $BASH in
4766   [\\/]* | ?:[\\/]*)
4767   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4768   ;;
4769   *)
4770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771 for as_dir in $PATH
4772 do
4773   IFS=$as_save_IFS
4774   test -z "$as_dir" && as_dir=.
4775     for ac_exec_ext in '' $ac_executable_extensions; do
4776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4777     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4779     break 2
4780   fi
4781 done
4782   done
4783 IFS=$as_save_IFS
4784 
4785   ;;
4786 esac
4787 fi
4788 BASH=$ac_cv_path_BASH
4789 if test -n "$BASH"; then
4790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4791 $as_echo "$BASH" >&6; }
4792 else
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4795 fi
4796 
4797 
4798         if test "x$BASH" = x; then
4799           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4800         fi
4801       else
4802         # Otherwise we believe it is a complete path. Use it as it is.
4803         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4804 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4806 $as_echo_n "checking for BASH... " >&6; }
4807         if test ! -x "$tool_specified"; then
4808           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4809 $as_echo "not found" >&6; }
4810           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4811         fi
4812         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4813 $as_echo "$tool_specified" >&6; }
4814       fi
4815     fi
4816   fi
4817 
4818 
4819 
4820   if test "x$BASH" = x; then
4821     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4822   fi
4823 
4824 
4825 
4826 
4827 
4828   # Publish this variable in the help.
4829 
4830 
4831   if test "x$CAT" = x; then
4832     # The variable is not set by user, try to locate tool using the code snippet
4833     for ac_prog in cat
4834 do
4835   # Extract the first word of "$ac_prog", so it can be a program name with args.
4836 set dummy $ac_prog; ac_word=$2
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838 $as_echo_n "checking for $ac_word... " >&6; }
4839 if ${ac_cv_path_CAT+:} false; then :
4840   $as_echo_n "(cached) " >&6
4841 else
4842   case $CAT in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852     for ac_exec_ext in '' $ac_executable_extensions; do
4853   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4854     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859   done
4860 IFS=$as_save_IFS
4861 
4862   ;;
4863 esac
4864 fi
4865 CAT=$ac_cv_path_CAT
4866 if test -n "$CAT"; then
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4868 $as_echo "$CAT" >&6; }
4869 else
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871 $as_echo "no" >&6; }
4872 fi
4873 
4874 
4875   test -n "$CAT" && break
4876 done
4877 
4878   else
4879     # The variable is set, but is it from the command line or the environment?
4880 
4881     # Try to remove the string !CAT! from our list.
4882     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4883     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4884       # If it failed, the variable was not from the command line. Ignore it,
4885       # but warn the user (except for BASH, which is always set by the calling BASH).
4886       if test "xCAT" != xBASH; then
4887         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4888 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4889       fi
4890       # Try to locate tool using the code snippet
4891       for ac_prog in cat
4892 do
4893   # Extract the first word of "$ac_prog", so it can be a program name with args.
4894 set dummy $ac_prog; ac_word=$2
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4896 $as_echo_n "checking for $ac_word... " >&6; }
4897 if ${ac_cv_path_CAT+:} false; then :
4898   $as_echo_n "(cached) " >&6
4899 else
4900   case $CAT in
4901   [\\/]* | ?:[\\/]*)
4902   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4903   ;;
4904   *)
4905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910     for ac_exec_ext in '' $ac_executable_extensions; do
4911   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917   done
4918 IFS=$as_save_IFS
4919 
4920   ;;
4921 esac
4922 fi
4923 CAT=$ac_cv_path_CAT
4924 if test -n "$CAT"; then
4925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4926 $as_echo "$CAT" >&6; }
4927 else
4928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4930 fi
4931 
4932 
4933   test -n "$CAT" && break
4934 done
4935 
4936     else
4937       # If it succeeded, then it was overridden by the user. We will use it
4938       # for the tool.
4939 
4940       # First remove it from the list of overridden variables, so we can test
4941       # for unknown variables in the end.
4942       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4943 
4944       # Check if the provided tool contains a complete path.
4945       tool_specified="$CAT"
4946       tool_basename="${tool_specified##*/}"
4947       if test "x$tool_basename" = "x$tool_specified"; then
4948         # A command without a complete path is provided, search $PATH.
4949         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4950 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4951         # Extract the first word of "$tool_basename", so it can be a program name with args.
4952 set dummy $tool_basename; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_path_CAT+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   case $CAT in
4959   [\\/]* | ?:[\\/]*)
4960   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4961   ;;
4962   *)
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968     for ac_exec_ext in '' $ac_executable_extensions; do
4969   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4971     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975   done
4976 IFS=$as_save_IFS
4977 
4978   ;;
4979 esac
4980 fi
4981 CAT=$ac_cv_path_CAT
4982 if test -n "$CAT"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4984 $as_echo "$CAT" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989 
4990 
4991         if test "x$CAT" = x; then
4992           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4993         fi
4994       else
4995         # Otherwise we believe it is a complete path. Use it as it is.
4996         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4997 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4998         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4999 $as_echo_n "checking for CAT... " >&6; }
5000         if test ! -x "$tool_specified"; then
5001           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5002 $as_echo "not found" >&6; }
5003           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5004         fi
5005         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5006 $as_echo "$tool_specified" >&6; }
5007       fi
5008     fi
5009   fi
5010 
5011 
5012 
5013   if test "x$CAT" = x; then
5014     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5015   fi
5016 
5017 
5018 
5019 
5020 
5021   # Publish this variable in the help.
5022 
5023 
5024   if test "x$CHMOD" = x; then
5025     # The variable is not set by user, try to locate tool using the code snippet
5026     for ac_prog in chmod
5027 do
5028   # Extract the first word of "$ac_prog", so it can be a program name with args.
5029 set dummy $ac_prog; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if ${ac_cv_path_CHMOD+:} false; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   case $CHMOD in
5036   [\\/]* | ?:[\\/]*)
5037   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5038   ;;
5039   *)
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5047     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054 
5055   ;;
5056 esac
5057 fi
5058 CHMOD=$ac_cv_path_CHMOD
5059 if test -n "$CHMOD"; then
5060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5061 $as_echo "$CHMOD" >&6; }
5062 else
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066 
5067 
5068   test -n "$CHMOD" && break
5069 done
5070 
5071   else
5072     # The variable is set, but is it from the command line or the environment?
5073 
5074     # Try to remove the string !CHMOD! from our list.
5075     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5076     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5077       # If it failed, the variable was not from the command line. Ignore it,
5078       # but warn the user (except for BASH, which is always set by the calling BASH).
5079       if test "xCHMOD" != xBASH; then
5080         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5081 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5082       fi
5083       # Try to locate tool using the code snippet
5084       for ac_prog in chmod
5085 do
5086   # Extract the first word of "$ac_prog", so it can be a program name with args.
5087 set dummy $ac_prog; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_path_CHMOD+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   case $CHMOD in
5094   [\\/]* | ?:[\\/]*)
5095   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5096   ;;
5097   *)
5098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103     for ac_exec_ext in '' $ac_executable_extensions; do
5104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5105     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110   done
5111 IFS=$as_save_IFS
5112 
5113   ;;
5114 esac
5115 fi
5116 CHMOD=$ac_cv_path_CHMOD
5117 if test -n "$CHMOD"; then
5118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5119 $as_echo "$CHMOD" >&6; }
5120 else
5121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5122 $as_echo "no" >&6; }
5123 fi
5124 
5125 
5126   test -n "$CHMOD" && break
5127 done
5128 
5129     else
5130       # If it succeeded, then it was overridden by the user. We will use it
5131       # for the tool.
5132 
5133       # First remove it from the list of overridden variables, so we can test
5134       # for unknown variables in the end.
5135       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5136 
5137       # Check if the provided tool contains a complete path.
5138       tool_specified="$CHMOD"
5139       tool_basename="${tool_specified##*/}"
5140       if test "x$tool_basename" = "x$tool_specified"; then
5141         # A command without a complete path is provided, search $PATH.
5142         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5143 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5144         # Extract the first word of "$tool_basename", so it can be a program name with args.
5145 set dummy $tool_basename; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_CHMOD+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   case $CHMOD in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5163     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170 
5171   ;;
5172 esac
5173 fi
5174 CHMOD=$ac_cv_path_CHMOD
5175 if test -n "$CHMOD"; then
5176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5177 $as_echo "$CHMOD" >&6; }
5178 else
5179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5181 fi
5182 
5183 
5184         if test "x$CHMOD" = x; then
5185           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5186         fi
5187       else
5188         # Otherwise we believe it is a complete path. Use it as it is.
5189         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5190 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5191         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5192 $as_echo_n "checking for CHMOD... " >&6; }
5193         if test ! -x "$tool_specified"; then
5194           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5195 $as_echo "not found" >&6; }
5196           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5197         fi
5198         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5199 $as_echo "$tool_specified" >&6; }
5200       fi
5201     fi
5202   fi
5203 
5204 
5205 
5206   if test "x$CHMOD" = x; then
5207     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5208   fi
5209 
5210 
5211 
5212 
5213 
5214   # Publish this variable in the help.
5215 
5216 
5217   if test "x$CMP" = x; then
5218     # The variable is not set by user, try to locate tool using the code snippet
5219     for ac_prog in cmp
5220 do
5221   # Extract the first word of "$ac_prog", so it can be a program name with args.
5222 set dummy $ac_prog; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_path_CMP+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   case $CMP in
5229   [\\/]* | ?:[\\/]*)
5230   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5231   ;;
5232   *)
5233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5240     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247 
5248   ;;
5249 esac
5250 fi
5251 CMP=$ac_cv_path_CMP
5252 if test -n "$CMP"; then
5253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5254 $as_echo "$CMP" >&6; }
5255 else
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5257 $as_echo "no" >&6; }
5258 fi
5259 
5260 
5261   test -n "$CMP" && break
5262 done
5263 
5264   else
5265     # The variable is set, but is it from the command line or the environment?
5266 
5267     # Try to remove the string !CMP! from our list.
5268     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5269     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5270       # If it failed, the variable was not from the command line. Ignore it,
5271       # but warn the user (except for BASH, which is always set by the calling BASH).
5272       if test "xCMP" != xBASH; then
5273         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5274 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5275       fi
5276       # Try to locate tool using the code snippet
5277       for ac_prog in cmp
5278 do
5279   # Extract the first word of "$ac_prog", so it can be a program name with args.
5280 set dummy $ac_prog; ac_word=$2
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5282 $as_echo_n "checking for $ac_word... " >&6; }
5283 if ${ac_cv_path_CMP+:} false; then :
5284   $as_echo_n "(cached) " >&6
5285 else
5286   case $CMP in
5287   [\\/]* | ?:[\\/]*)
5288   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5289   ;;
5290   *)
5291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5293 do
5294   IFS=$as_save_IFS
5295   test -z "$as_dir" && as_dir=.
5296     for ac_exec_ext in '' $ac_executable_extensions; do
5297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5298     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300     break 2
5301   fi
5302 done
5303   done
5304 IFS=$as_save_IFS
5305 
5306   ;;
5307 esac
5308 fi
5309 CMP=$ac_cv_path_CMP
5310 if test -n "$CMP"; then
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5312 $as_echo "$CMP" >&6; }
5313 else
5314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317 
5318 
5319   test -n "$CMP" && break
5320 done
5321 
5322     else
5323       # If it succeeded, then it was overridden by the user. We will use it
5324       # for the tool.
5325 
5326       # First remove it from the list of overridden variables, so we can test
5327       # for unknown variables in the end.
5328       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5329 
5330       # Check if the provided tool contains a complete path.
5331       tool_specified="$CMP"
5332       tool_basename="${tool_specified##*/}"
5333       if test "x$tool_basename" = "x$tool_specified"; then
5334         # A command without a complete path is provided, search $PATH.
5335         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5336 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5337         # Extract the first word of "$tool_basename", so it can be a program name with args.
5338 set dummy $tool_basename; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if ${ac_cv_path_CMP+:} false; then :
5342   $as_echo_n "(cached) " >&6
5343 else
5344   case $CMP in
5345   [\\/]* | ?:[\\/]*)
5346   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5347   ;;
5348   *)
5349   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5350 for as_dir in $PATH
5351 do
5352   IFS=$as_save_IFS
5353   test -z "$as_dir" && as_dir=.
5354     for ac_exec_ext in '' $ac_executable_extensions; do
5355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5356     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5358     break 2
5359   fi
5360 done
5361   done
5362 IFS=$as_save_IFS
5363 
5364   ;;
5365 esac
5366 fi
5367 CMP=$ac_cv_path_CMP
5368 if test -n "$CMP"; then
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5370 $as_echo "$CMP" >&6; }
5371 else
5372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5374 fi
5375 
5376 
5377         if test "x$CMP" = x; then
5378           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5379         fi
5380       else
5381         # Otherwise we believe it is a complete path. Use it as it is.
5382         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5383 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5384         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5385 $as_echo_n "checking for CMP... " >&6; }
5386         if test ! -x "$tool_specified"; then
5387           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5388 $as_echo "not found" >&6; }
5389           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5390         fi
5391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5392 $as_echo "$tool_specified" >&6; }
5393       fi
5394     fi
5395   fi
5396 
5397 
5398 
5399   if test "x$CMP" = x; then
5400     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5401   fi
5402 
5403 
5404 
5405 
5406 
5407   # Publish this variable in the help.
5408 
5409 
5410   if test "x$COMM" = x; then
5411     # The variable is not set by user, try to locate tool using the code snippet
5412     for ac_prog in comm
5413 do
5414   # Extract the first word of "$ac_prog", so it can be a program name with args.
5415 set dummy $ac_prog; ac_word=$2
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5417 $as_echo_n "checking for $ac_word... " >&6; }
5418 if ${ac_cv_path_COMM+:} false; then :
5419   $as_echo_n "(cached) " >&6
5420 else
5421   case $COMM in
5422   [\\/]* | ?:[\\/]*)
5423   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5424   ;;
5425   *)
5426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 for as_dir in $PATH
5428 do
5429   IFS=$as_save_IFS
5430   test -z "$as_dir" && as_dir=.
5431     for ac_exec_ext in '' $ac_executable_extensions; do
5432   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435     break 2
5436   fi
5437 done
5438   done
5439 IFS=$as_save_IFS
5440 
5441   ;;
5442 esac
5443 fi
5444 COMM=$ac_cv_path_COMM
5445 if test -n "$COMM"; then
5446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5447 $as_echo "$COMM" >&6; }
5448 else
5449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5451 fi
5452 
5453 
5454   test -n "$COMM" && break
5455 done
5456 
5457   else
5458     # The variable is set, but is it from the command line or the environment?
5459 
5460     # Try to remove the string !COMM! from our list.
5461     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5462     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5463       # If it failed, the variable was not from the command line. Ignore it,
5464       # but warn the user (except for BASH, which is always set by the calling BASH).
5465       if test "xCOMM" != xBASH; then
5466         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5467 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5468       fi
5469       # Try to locate tool using the code snippet
5470       for ac_prog in comm
5471 do
5472   # Extract the first word of "$ac_prog", so it can be a program name with args.
5473 set dummy $ac_prog; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_COMM+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   case $COMM in
5480   [\\/]* | ?:[\\/]*)
5481   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5482   ;;
5483   *)
5484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489     for ac_exec_ext in '' $ac_executable_extensions; do
5490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5491     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496   done
5497 IFS=$as_save_IFS
5498 
5499   ;;
5500 esac
5501 fi
5502 COMM=$ac_cv_path_COMM
5503 if test -n "$COMM"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5505 $as_echo "$COMM" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510 
5511 
5512   test -n "$COMM" && break
5513 done
5514 
5515     else
5516       # If it succeeded, then it was overridden by the user. We will use it
5517       # for the tool.
5518 
5519       # First remove it from the list of overridden variables, so we can test
5520       # for unknown variables in the end.
5521       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5522 
5523       # Check if the provided tool contains a complete path.
5524       tool_specified="$COMM"
5525       tool_basename="${tool_specified##*/}"
5526       if test "x$tool_basename" = "x$tool_specified"; then
5527         # A command without a complete path is provided, search $PATH.
5528         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5529 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5530         # Extract the first word of "$tool_basename", so it can be a program name with args.
5531 set dummy $tool_basename; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_path_COMM+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $COMM in
5538   [\\/]* | ?:[\\/]*)
5539   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5540   ;;
5541   *)
5542   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545   IFS=$as_save_IFS
5546   test -z "$as_dir" && as_dir=.
5547     for ac_exec_ext in '' $ac_executable_extensions; do
5548   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551     break 2
5552   fi
5553 done
5554   done
5555 IFS=$as_save_IFS
5556 
5557   ;;
5558 esac
5559 fi
5560 COMM=$ac_cv_path_COMM
5561 if test -n "$COMM"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5563 $as_echo "$COMM" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568 
5569 
5570         if test "x$COMM" = x; then
5571           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5572         fi
5573       else
5574         # Otherwise we believe it is a complete path. Use it as it is.
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5576 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5577         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5578 $as_echo_n "checking for COMM... " >&6; }
5579         if test ! -x "$tool_specified"; then
5580           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5581 $as_echo "not found" >&6; }
5582           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5583         fi
5584         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5585 $as_echo "$tool_specified" >&6; }
5586       fi
5587     fi
5588   fi
5589 
5590 
5591 
5592   if test "x$COMM" = x; then
5593     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5594   fi
5595 
5596 
5597 
5598 
5599 
5600   # Publish this variable in the help.
5601 
5602 
5603   if test "x$CP" = x; then
5604     # The variable is not set by user, try to locate tool using the code snippet
5605     for ac_prog in cp
5606 do
5607   # Extract the first word of "$ac_prog", so it can be a program name with args.
5608 set dummy $ac_prog; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if ${ac_cv_path_CP+:} false; then :
5612   $as_echo_n "(cached) " >&6
5613 else
5614   case $CP in
5615   [\\/]* | ?:[\\/]*)
5616   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5617   ;;
5618   *)
5619   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620 for as_dir in $PATH
5621 do
5622   IFS=$as_save_IFS
5623   test -z "$as_dir" && as_dir=.
5624     for ac_exec_ext in '' $ac_executable_extensions; do
5625   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5627     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5628     break 2
5629   fi
5630 done
5631   done
5632 IFS=$as_save_IFS
5633 
5634   ;;
5635 esac
5636 fi
5637 CP=$ac_cv_path_CP
5638 if test -n "$CP"; then
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5640 $as_echo "$CP" >&6; }
5641 else
5642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 fi
5645 
5646 
5647   test -n "$CP" && break
5648 done
5649 
5650   else
5651     # The variable is set, but is it from the command line or the environment?
5652 
5653     # Try to remove the string !CP! from our list.
5654     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5655     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5656       # If it failed, the variable was not from the command line. Ignore it,
5657       # but warn the user (except for BASH, which is always set by the calling BASH).
5658       if test "xCP" != xBASH; then
5659         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5660 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5661       fi
5662       # Try to locate tool using the code snippet
5663       for ac_prog in cp
5664 do
5665   # Extract the first word of "$ac_prog", so it can be a program name with args.
5666 set dummy $ac_prog; ac_word=$2
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668 $as_echo_n "checking for $ac_word... " >&6; }
5669 if ${ac_cv_path_CP+:} false; then :
5670   $as_echo_n "(cached) " >&6
5671 else
5672   case $CP in
5673   [\\/]* | ?:[\\/]*)
5674   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5675   ;;
5676   *)
5677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5678 for as_dir in $PATH
5679 do
5680   IFS=$as_save_IFS
5681   test -z "$as_dir" && as_dir=.
5682     for ac_exec_ext in '' $ac_executable_extensions; do
5683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5684     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5686     break 2
5687   fi
5688 done
5689   done
5690 IFS=$as_save_IFS
5691 
5692   ;;
5693 esac
5694 fi
5695 CP=$ac_cv_path_CP
5696 if test -n "$CP"; then
5697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5698 $as_echo "$CP" >&6; }
5699 else
5700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5701 $as_echo "no" >&6; }
5702 fi
5703 
5704 
5705   test -n "$CP" && break
5706 done
5707 
5708     else
5709       # If it succeeded, then it was overridden by the user. We will use it
5710       # for the tool.
5711 
5712       # First remove it from the list of overridden variables, so we can test
5713       # for unknown variables in the end.
5714       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5715 
5716       # Check if the provided tool contains a complete path.
5717       tool_specified="$CP"
5718       tool_basename="${tool_specified##*/}"
5719       if test "x$tool_basename" = "x$tool_specified"; then
5720         # A command without a complete path is provided, search $PATH.
5721         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5722 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5723         # Extract the first word of "$tool_basename", so it can be a program name with args.
5724 set dummy $tool_basename; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_CP+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   case $CP in
5731   [\\/]* | ?:[\\/]*)
5732   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5733   ;;
5734   *)
5735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5742     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749 
5750   ;;
5751 esac
5752 fi
5753 CP=$ac_cv_path_CP
5754 if test -n "$CP"; then
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5756 $as_echo "$CP" >&6; }
5757 else
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5760 fi
5761 
5762 
5763         if test "x$CP" = x; then
5764           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5765         fi
5766       else
5767         # Otherwise we believe it is a complete path. Use it as it is.
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5769 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5770         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5771 $as_echo_n "checking for CP... " >&6; }
5772         if test ! -x "$tool_specified"; then
5773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5774 $as_echo "not found" >&6; }
5775           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5776         fi
5777         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5778 $as_echo "$tool_specified" >&6; }
5779       fi
5780     fi
5781   fi
5782 
5783 
5784 
5785   if test "x$CP" = x; then
5786     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5787   fi
5788 
5789 
5790 
5791 
5792 
5793   # Publish this variable in the help.
5794 
5795 
5796   if test "x$CUT" = x; then
5797     # The variable is not set by user, try to locate tool using the code snippet
5798     for ac_prog in cut
5799 do
5800   # Extract the first word of "$ac_prog", so it can be a program name with args.
5801 set dummy $ac_prog; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_CUT+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   case $CUT in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5819     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826 
5827   ;;
5828 esac
5829 fi
5830 CUT=$ac_cv_path_CUT
5831 if test -n "$CUT"; then
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5833 $as_echo "$CUT" >&6; }
5834 else
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838 
5839 
5840   test -n "$CUT" && break
5841 done
5842 
5843   else
5844     # The variable is set, but is it from the command line or the environment?
5845 
5846     # Try to remove the string !CUT! from our list.
5847     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5848     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5849       # If it failed, the variable was not from the command line. Ignore it,
5850       # but warn the user (except for BASH, which is always set by the calling BASH).
5851       if test "xCUT" != xBASH; then
5852         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5853 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5854       fi
5855       # Try to locate tool using the code snippet
5856       for ac_prog in cut
5857 do
5858   # Extract the first word of "$ac_prog", so it can be a program name with args.
5859 set dummy $ac_prog; ac_word=$2
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5861 $as_echo_n "checking for $ac_word... " >&6; }
5862 if ${ac_cv_path_CUT+:} false; then :
5863   $as_echo_n "(cached) " >&6
5864 else
5865   case $CUT in
5866   [\\/]* | ?:[\\/]*)
5867   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5868   ;;
5869   *)
5870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884 
5885   ;;
5886 esac
5887 fi
5888 CUT=$ac_cv_path_CUT
5889 if test -n "$CUT"; then
5890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5891 $as_echo "$CUT" >&6; }
5892 else
5893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896 
5897 
5898   test -n "$CUT" && break
5899 done
5900 
5901     else
5902       # If it succeeded, then it was overridden by the user. We will use it
5903       # for the tool.
5904 
5905       # First remove it from the list of overridden variables, so we can test
5906       # for unknown variables in the end.
5907       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5908 
5909       # Check if the provided tool contains a complete path.
5910       tool_specified="$CUT"
5911       tool_basename="${tool_specified##*/}"
5912       if test "x$tool_basename" = "x$tool_specified"; then
5913         # A command without a complete path is provided, search $PATH.
5914         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5915 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5916         # Extract the first word of "$tool_basename", so it can be a program name with args.
5917 set dummy $tool_basename; ac_word=$2
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5919 $as_echo_n "checking for $ac_word... " >&6; }
5920 if ${ac_cv_path_CUT+:} false; then :
5921   $as_echo_n "(cached) " >&6
5922 else
5923   case $CUT in
5924   [\\/]* | ?:[\\/]*)
5925   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5926   ;;
5927   *)
5928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 for as_dir in $PATH
5930 do
5931   IFS=$as_save_IFS
5932   test -z "$as_dir" && as_dir=.
5933     for ac_exec_ext in '' $ac_executable_extensions; do
5934   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5935     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5937     break 2
5938   fi
5939 done
5940   done
5941 IFS=$as_save_IFS
5942 
5943   ;;
5944 esac
5945 fi
5946 CUT=$ac_cv_path_CUT
5947 if test -n "$CUT"; then
5948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5949 $as_echo "$CUT" >&6; }
5950 else
5951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5952 $as_echo "no" >&6; }
5953 fi
5954 
5955 
5956         if test "x$CUT" = x; then
5957           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5958         fi
5959       else
5960         # Otherwise we believe it is a complete path. Use it as it is.
5961         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5962 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5963         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5964 $as_echo_n "checking for CUT... " >&6; }
5965         if test ! -x "$tool_specified"; then
5966           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5967 $as_echo "not found" >&6; }
5968           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5969         fi
5970         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5971 $as_echo "$tool_specified" >&6; }
5972       fi
5973     fi
5974   fi
5975 
5976 
5977 
5978   if test "x$CUT" = x; then
5979     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5980   fi
5981 
5982 
5983 
5984 
5985 
5986   # Publish this variable in the help.
5987 
5988 
5989   if test "x$DATE" = x; then
5990     # The variable is not set by user, try to locate tool using the code snippet
5991     for ac_prog in date
5992 do
5993   # Extract the first word of "$ac_prog", so it can be a program name with args.
5994 set dummy $ac_prog; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_path_DATE+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   case $DATE in
6001   [\\/]* | ?:[\\/]*)
6002   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6003   ;;
6004   *)
6005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH
6007 do
6008   IFS=$as_save_IFS
6009   test -z "$as_dir" && as_dir=.
6010     for ac_exec_ext in '' $ac_executable_extensions; do
6011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6012     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6014     break 2
6015   fi
6016 done
6017   done
6018 IFS=$as_save_IFS
6019 
6020   ;;
6021 esac
6022 fi
6023 DATE=$ac_cv_path_DATE
6024 if test -n "$DATE"; then
6025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6026 $as_echo "$DATE" >&6; }
6027 else
6028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6029 $as_echo "no" >&6; }
6030 fi
6031 
6032 
6033   test -n "$DATE" && break
6034 done
6035 
6036   else
6037     # The variable is set, but is it from the command line or the environment?
6038 
6039     # Try to remove the string !DATE! from our list.
6040     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6041     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6042       # If it failed, the variable was not from the command line. Ignore it,
6043       # but warn the user (except for BASH, which is always set by the calling BASH).
6044       if test "xDATE" != xBASH; then
6045         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6046 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6047       fi
6048       # Try to locate tool using the code snippet
6049       for ac_prog in date
6050 do
6051   # Extract the first word of "$ac_prog", so it can be a program name with args.
6052 set dummy $ac_prog; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054 $as_echo_n "checking for $ac_word... " >&6; }
6055 if ${ac_cv_path_DATE+:} false; then :
6056   $as_echo_n "(cached) " >&6
6057 else
6058   case $DATE in
6059   [\\/]* | ?:[\\/]*)
6060   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6061   ;;
6062   *)
6063   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6065 do
6066   IFS=$as_save_IFS
6067   test -z "$as_dir" && as_dir=.
6068     for ac_exec_ext in '' $ac_executable_extensions; do
6069   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6070     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072     break 2
6073   fi
6074 done
6075   done
6076 IFS=$as_save_IFS
6077 
6078   ;;
6079 esac
6080 fi
6081 DATE=$ac_cv_path_DATE
6082 if test -n "$DATE"; then
6083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6084 $as_echo "$DATE" >&6; }
6085 else
6086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6087 $as_echo "no" >&6; }
6088 fi
6089 
6090 
6091   test -n "$DATE" && break
6092 done
6093 
6094     else
6095       # If it succeeded, then it was overridden by the user. We will use it
6096       # for the tool.
6097 
6098       # First remove it from the list of overridden variables, so we can test
6099       # for unknown variables in the end.
6100       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6101 
6102       # Check if the provided tool contains a complete path.
6103       tool_specified="$DATE"
6104       tool_basename="${tool_specified##*/}"
6105       if test "x$tool_basename" = "x$tool_specified"; then
6106         # A command without a complete path is provided, search $PATH.
6107         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6108 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6109         # Extract the first word of "$tool_basename", so it can be a program name with args.
6110 set dummy $tool_basename; ac_word=$2
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 $as_echo_n "checking for $ac_word... " >&6; }
6113 if ${ac_cv_path_DATE+:} false; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   case $DATE in
6117   [\\/]* | ?:[\\/]*)
6118   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6119   ;;
6120   *)
6121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124   IFS=$as_save_IFS
6125   test -z "$as_dir" && as_dir=.
6126     for ac_exec_ext in '' $ac_executable_extensions; do
6127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6128     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130     break 2
6131   fi
6132 done
6133   done
6134 IFS=$as_save_IFS
6135 
6136   ;;
6137 esac
6138 fi
6139 DATE=$ac_cv_path_DATE
6140 if test -n "$DATE"; then
6141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6142 $as_echo "$DATE" >&6; }
6143 else
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6145 $as_echo "no" >&6; }
6146 fi
6147 
6148 
6149         if test "x$DATE" = x; then
6150           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6151         fi
6152       else
6153         # Otherwise we believe it is a complete path. Use it as it is.
6154         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6155 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6157 $as_echo_n "checking for DATE... " >&6; }
6158         if test ! -x "$tool_specified"; then
6159           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6160 $as_echo "not found" >&6; }
6161           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6162         fi
6163         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6164 $as_echo "$tool_specified" >&6; }
6165       fi
6166     fi
6167   fi
6168 
6169 
6170 
6171   if test "x$DATE" = x; then
6172     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6173   fi
6174 
6175 
6176 
6177 
6178 
6179   # Publish this variable in the help.
6180 
6181 
6182   if test "x$DIFF" = x; then
6183     # The variable is not set by user, try to locate tool using the code snippet
6184     for ac_prog in gdiff diff
6185 do
6186   # Extract the first word of "$ac_prog", so it can be a program name with args.
6187 set dummy $ac_prog; ac_word=$2
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6189 $as_echo_n "checking for $ac_word... " >&6; }
6190 if ${ac_cv_path_DIFF+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   case $DIFF in
6194   [\\/]* | ?:[\\/]*)
6195   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6196   ;;
6197   *)
6198   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 for as_dir in $PATH
6200 do
6201   IFS=$as_save_IFS
6202   test -z "$as_dir" && as_dir=.
6203     for ac_exec_ext in '' $ac_executable_extensions; do
6204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207     break 2
6208   fi
6209 done
6210   done
6211 IFS=$as_save_IFS
6212 
6213   ;;
6214 esac
6215 fi
6216 DIFF=$ac_cv_path_DIFF
6217 if test -n "$DIFF"; then
6218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6219 $as_echo "$DIFF" >&6; }
6220 else
6221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224 
6225 
6226   test -n "$DIFF" && break
6227 done
6228 
6229   else
6230     # The variable is set, but is it from the command line or the environment?
6231 
6232     # Try to remove the string !DIFF! from our list.
6233     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6234     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6235       # If it failed, the variable was not from the command line. Ignore it,
6236       # but warn the user (except for BASH, which is always set by the calling BASH).
6237       if test "xDIFF" != xBASH; then
6238         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6239 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6240       fi
6241       # Try to locate tool using the code snippet
6242       for ac_prog in gdiff diff
6243 do
6244   # Extract the first word of "$ac_prog", so it can be a program name with args.
6245 set dummy $ac_prog; ac_word=$2
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6247 $as_echo_n "checking for $ac_word... " >&6; }
6248 if ${ac_cv_path_DIFF+:} false; then :
6249   $as_echo_n "(cached) " >&6
6250 else
6251   case $DIFF in
6252   [\\/]* | ?:[\\/]*)
6253   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6254   ;;
6255   *)
6256   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 for as_dir in $PATH
6258 do
6259   IFS=$as_save_IFS
6260   test -z "$as_dir" && as_dir=.
6261     for ac_exec_ext in '' $ac_executable_extensions; do
6262   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6263     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6265     break 2
6266   fi
6267 done
6268   done
6269 IFS=$as_save_IFS
6270 
6271   ;;
6272 esac
6273 fi
6274 DIFF=$ac_cv_path_DIFF
6275 if test -n "$DIFF"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6277 $as_echo "$DIFF" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282 
6283 
6284   test -n "$DIFF" && break
6285 done
6286 
6287     else
6288       # If it succeeded, then it was overridden by the user. We will use it
6289       # for the tool.
6290 
6291       # First remove it from the list of overridden variables, so we can test
6292       # for unknown variables in the end.
6293       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6294 
6295       # Check if the provided tool contains a complete path.
6296       tool_specified="$DIFF"
6297       tool_basename="${tool_specified##*/}"
6298       if test "x$tool_basename" = "x$tool_specified"; then
6299         # A command without a complete path is provided, search $PATH.
6300         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6301 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6302         # Extract the first word of "$tool_basename", so it can be a program name with args.
6303 set dummy $tool_basename; ac_word=$2
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6305 $as_echo_n "checking for $ac_word... " >&6; }
6306 if ${ac_cv_path_DIFF+:} false; then :
6307   $as_echo_n "(cached) " >&6
6308 else
6309   case $DIFF in
6310   [\\/]* | ?:[\\/]*)
6311   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6312   ;;
6313   *)
6314   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328 
6329   ;;
6330 esac
6331 fi
6332 DIFF=$ac_cv_path_DIFF
6333 if test -n "$DIFF"; then
6334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6335 $as_echo "$DIFF" >&6; }
6336 else
6337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6339 fi
6340 
6341 
6342         if test "x$DIFF" = x; then
6343           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6344         fi
6345       else
6346         # Otherwise we believe it is a complete path. Use it as it is.
6347         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6348 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6349         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6350 $as_echo_n "checking for DIFF... " >&6; }
6351         if test ! -x "$tool_specified"; then
6352           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6353 $as_echo "not found" >&6; }
6354           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6355         fi
6356         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6357 $as_echo "$tool_specified" >&6; }
6358       fi
6359     fi
6360   fi
6361 
6362 
6363 
6364   if test "x$DIFF" = x; then
6365     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6366   fi
6367 
6368 
6369 
6370 
6371 
6372   # Publish this variable in the help.
6373 
6374 
6375   if test "x$DIRNAME" = x; then
6376     # The variable is not set by user, try to locate tool using the code snippet
6377     for ac_prog in dirname
6378 do
6379   # Extract the first word of "$ac_prog", so it can be a program name with args.
6380 set dummy $ac_prog; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_path_DIRNAME+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   case $DIRNAME in
6387   [\\/]* | ?:[\\/]*)
6388   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6389   ;;
6390   *)
6391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392 for as_dir in $PATH
6393 do
6394   IFS=$as_save_IFS
6395   test -z "$as_dir" && as_dir=.
6396     for ac_exec_ext in '' $ac_executable_extensions; do
6397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400     break 2
6401   fi
6402 done
6403   done
6404 IFS=$as_save_IFS
6405 
6406   ;;
6407 esac
6408 fi
6409 DIRNAME=$ac_cv_path_DIRNAME
6410 if test -n "$DIRNAME"; then
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6412 $as_echo "$DIRNAME" >&6; }
6413 else
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417 
6418 
6419   test -n "$DIRNAME" && break
6420 done
6421 
6422   else
6423     # The variable is set, but is it from the command line or the environment?
6424 
6425     # Try to remove the string !DIRNAME! from our list.
6426     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6427     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6428       # If it failed, the variable was not from the command line. Ignore it,
6429       # but warn the user (except for BASH, which is always set by the calling BASH).
6430       if test "xDIRNAME" != xBASH; then
6431         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6432 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6433       fi
6434       # Try to locate tool using the code snippet
6435       for ac_prog in dirname
6436 do
6437   # Extract the first word of "$ac_prog", so it can be a program name with args.
6438 set dummy $ac_prog; ac_word=$2
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6440 $as_echo_n "checking for $ac_word... " >&6; }
6441 if ${ac_cv_path_DIRNAME+:} false; then :
6442   $as_echo_n "(cached) " >&6
6443 else
6444   case $DIRNAME in
6445   [\\/]* | ?:[\\/]*)
6446   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6447   ;;
6448   *)
6449   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6456     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463 
6464   ;;
6465 esac
6466 fi
6467 DIRNAME=$ac_cv_path_DIRNAME
6468 if test -n "$DIRNAME"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6470 $as_echo "$DIRNAME" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475 
6476 
6477   test -n "$DIRNAME" && break
6478 done
6479 
6480     else
6481       # If it succeeded, then it was overridden by the user. We will use it
6482       # for the tool.
6483 
6484       # First remove it from the list of overridden variables, so we can test
6485       # for unknown variables in the end.
6486       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6487 
6488       # Check if the provided tool contains a complete path.
6489       tool_specified="$DIRNAME"
6490       tool_basename="${tool_specified##*/}"
6491       if test "x$tool_basename" = "x$tool_specified"; then
6492         # A command without a complete path is provided, search $PATH.
6493         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6494 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6495         # Extract the first word of "$tool_basename", so it can be a program name with args.
6496 set dummy $tool_basename; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_path_DIRNAME+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   case $DIRNAME in
6503   [\\/]* | ?:[\\/]*)
6504   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6505   ;;
6506   *)
6507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510   IFS=$as_save_IFS
6511   test -z "$as_dir" && as_dir=.
6512     for ac_exec_ext in '' $ac_executable_extensions; do
6513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516     break 2
6517   fi
6518 done
6519   done
6520 IFS=$as_save_IFS
6521 
6522   ;;
6523 esac
6524 fi
6525 DIRNAME=$ac_cv_path_DIRNAME
6526 if test -n "$DIRNAME"; then
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6528 $as_echo "$DIRNAME" >&6; }
6529 else
6530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 $as_echo "no" >&6; }
6532 fi
6533 
6534 
6535         if test "x$DIRNAME" = x; then
6536           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6537         fi
6538       else
6539         # Otherwise we believe it is a complete path. Use it as it is.
6540         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6541 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6543 $as_echo_n "checking for DIRNAME... " >&6; }
6544         if test ! -x "$tool_specified"; then
6545           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6546 $as_echo "not found" >&6; }
6547           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6548         fi
6549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6550 $as_echo "$tool_specified" >&6; }
6551       fi
6552     fi
6553   fi
6554 
6555 
6556 
6557   if test "x$DIRNAME" = x; then
6558     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6559   fi
6560 
6561 
6562 
6563 
6564 
6565   # Publish this variable in the help.
6566 
6567 
6568   if test "x$ECHO" = x; then
6569     # The variable is not set by user, try to locate tool using the code snippet
6570     for ac_prog in echo
6571 do
6572   # Extract the first word of "$ac_prog", so it can be a program name with args.
6573 set dummy $ac_prog; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_path_ECHO+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   case $ECHO in
6580   [\\/]* | ?:[\\/]*)
6581   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6582   ;;
6583   *)
6584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 for as_dir in $PATH
6586 do
6587   IFS=$as_save_IFS
6588   test -z "$as_dir" && as_dir=.
6589     for ac_exec_ext in '' $ac_executable_extensions; do
6590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6591     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6593     break 2
6594   fi
6595 done
6596   done
6597 IFS=$as_save_IFS
6598 
6599   ;;
6600 esac
6601 fi
6602 ECHO=$ac_cv_path_ECHO
6603 if test -n "$ECHO"; then
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6605 $as_echo "$ECHO" >&6; }
6606 else
6607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6608 $as_echo "no" >&6; }
6609 fi
6610 
6611 
6612   test -n "$ECHO" && break
6613 done
6614 
6615   else
6616     # The variable is set, but is it from the command line or the environment?
6617 
6618     # Try to remove the string !ECHO! from our list.
6619     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6620     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6621       # If it failed, the variable was not from the command line. Ignore it,
6622       # but warn the user (except for BASH, which is always set by the calling BASH).
6623       if test "xECHO" != xBASH; then
6624         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6625 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6626       fi
6627       # Try to locate tool using the code snippet
6628       for ac_prog in echo
6629 do
6630   # Extract the first word of "$ac_prog", so it can be a program name with args.
6631 set dummy $ac_prog; ac_word=$2
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 $as_echo_n "checking for $ac_word... " >&6; }
6634 if ${ac_cv_path_ECHO+:} false; then :
6635   $as_echo_n "(cached) " >&6
6636 else
6637   case $ECHO in
6638   [\\/]* | ?:[\\/]*)
6639   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6640   ;;
6641   *)
6642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 for as_dir in $PATH
6644 do
6645   IFS=$as_save_IFS
6646   test -z "$as_dir" && as_dir=.
6647     for ac_exec_ext in '' $ac_executable_extensions; do
6648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6649     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6651     break 2
6652   fi
6653 done
6654   done
6655 IFS=$as_save_IFS
6656 
6657   ;;
6658 esac
6659 fi
6660 ECHO=$ac_cv_path_ECHO
6661 if test -n "$ECHO"; then
6662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6663 $as_echo "$ECHO" >&6; }
6664 else
6665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 $as_echo "no" >&6; }
6667 fi
6668 
6669 
6670   test -n "$ECHO" && break
6671 done
6672 
6673     else
6674       # If it succeeded, then it was overridden by the user. We will use it
6675       # for the tool.
6676 
6677       # First remove it from the list of overridden variables, so we can test
6678       # for unknown variables in the end.
6679       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6680 
6681       # Check if the provided tool contains a complete path.
6682       tool_specified="$ECHO"
6683       tool_basename="${tool_specified##*/}"
6684       if test "x$tool_basename" = "x$tool_specified"; then
6685         # A command without a complete path is provided, search $PATH.
6686         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6687 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6688         # Extract the first word of "$tool_basename", so it can be a program name with args.
6689 set dummy $tool_basename; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if ${ac_cv_path_ECHO+:} false; then :
6693   $as_echo_n "(cached) " >&6
6694 else
6695   case $ECHO in
6696   [\\/]* | ?:[\\/]*)
6697   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6698   ;;
6699   *)
6700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703   IFS=$as_save_IFS
6704   test -z "$as_dir" && as_dir=.
6705     for ac_exec_ext in '' $ac_executable_extensions; do
6706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6707     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6709     break 2
6710   fi
6711 done
6712   done
6713 IFS=$as_save_IFS
6714 
6715   ;;
6716 esac
6717 fi
6718 ECHO=$ac_cv_path_ECHO
6719 if test -n "$ECHO"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6721 $as_echo "$ECHO" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726 
6727 
6728         if test "x$ECHO" = x; then
6729           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6730         fi
6731       else
6732         # Otherwise we believe it is a complete path. Use it as it is.
6733         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6734 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6735         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6736 $as_echo_n "checking for ECHO... " >&6; }
6737         if test ! -x "$tool_specified"; then
6738           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6739 $as_echo "not found" >&6; }
6740           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6741         fi
6742         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6743 $as_echo "$tool_specified" >&6; }
6744       fi
6745     fi
6746   fi
6747 
6748 
6749 
6750   if test "x$ECHO" = x; then
6751     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6752   fi
6753 
6754 
6755 
6756 
6757 
6758   # Publish this variable in the help.
6759 
6760 
6761   if test "x$EXPR" = x; then
6762     # The variable is not set by user, try to locate tool using the code snippet
6763     for ac_prog in expr
6764 do
6765   # Extract the first word of "$ac_prog", so it can be a program name with args.
6766 set dummy $ac_prog; ac_word=$2
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6768 $as_echo_n "checking for $ac_word... " >&6; }
6769 if ${ac_cv_path_EXPR+:} false; then :
6770   $as_echo_n "(cached) " >&6
6771 else
6772   case $EXPR in
6773   [\\/]* | ?:[\\/]*)
6774   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6775   ;;
6776   *)
6777   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782     for ac_exec_ext in '' $ac_executable_extensions; do
6783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789   done
6790 IFS=$as_save_IFS
6791 
6792   ;;
6793 esac
6794 fi
6795 EXPR=$ac_cv_path_EXPR
6796 if test -n "$EXPR"; then
6797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6798 $as_echo "$EXPR" >&6; }
6799 else
6800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 $as_echo "no" >&6; }
6802 fi
6803 
6804 
6805   test -n "$EXPR" && break
6806 done
6807 
6808   else
6809     # The variable is set, but is it from the command line or the environment?
6810 
6811     # Try to remove the string !EXPR! from our list.
6812     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6813     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6814       # If it failed, the variable was not from the command line. Ignore it,
6815       # but warn the user (except for BASH, which is always set by the calling BASH).
6816       if test "xEXPR" != xBASH; then
6817         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6818 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6819       fi
6820       # Try to locate tool using the code snippet
6821       for ac_prog in expr
6822 do
6823   # Extract the first word of "$ac_prog", so it can be a program name with args.
6824 set dummy $ac_prog; ac_word=$2
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6826 $as_echo_n "checking for $ac_word... " >&6; }
6827 if ${ac_cv_path_EXPR+:} false; then :
6828   $as_echo_n "(cached) " >&6
6829 else
6830   case $EXPR in
6831   [\\/]* | ?:[\\/]*)
6832   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6833   ;;
6834   *)
6835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6836 for as_dir in $PATH
6837 do
6838   IFS=$as_save_IFS
6839   test -z "$as_dir" && as_dir=.
6840     for ac_exec_ext in '' $ac_executable_extensions; do
6841   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6842     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6843     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6844     break 2
6845   fi
6846 done
6847   done
6848 IFS=$as_save_IFS
6849 
6850   ;;
6851 esac
6852 fi
6853 EXPR=$ac_cv_path_EXPR
6854 if test -n "$EXPR"; then
6855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6856 $as_echo "$EXPR" >&6; }
6857 else
6858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6860 fi
6861 
6862 
6863   test -n "$EXPR" && break
6864 done
6865 
6866     else
6867       # If it succeeded, then it was overridden by the user. We will use it
6868       # for the tool.
6869 
6870       # First remove it from the list of overridden variables, so we can test
6871       # for unknown variables in the end.
6872       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6873 
6874       # Check if the provided tool contains a complete path.
6875       tool_specified="$EXPR"
6876       tool_basename="${tool_specified##*/}"
6877       if test "x$tool_basename" = "x$tool_specified"; then
6878         # A command without a complete path is provided, search $PATH.
6879         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6880 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6881         # Extract the first word of "$tool_basename", so it can be a program name with args.
6882 set dummy $tool_basename; ac_word=$2
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6884 $as_echo_n "checking for $ac_word... " >&6; }
6885 if ${ac_cv_path_EXPR+:} false; then :
6886   $as_echo_n "(cached) " >&6
6887 else
6888   case $EXPR in
6889   [\\/]* | ?:[\\/]*)
6890   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6891   ;;
6892   *)
6893   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907 
6908   ;;
6909 esac
6910 fi
6911 EXPR=$ac_cv_path_EXPR
6912 if test -n "$EXPR"; then
6913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6914 $as_echo "$EXPR" >&6; }
6915 else
6916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6917 $as_echo "no" >&6; }
6918 fi
6919 
6920 
6921         if test "x$EXPR" = x; then
6922           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6923         fi
6924       else
6925         # Otherwise we believe it is a complete path. Use it as it is.
6926         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6927 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6928         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6929 $as_echo_n "checking for EXPR... " >&6; }
6930         if test ! -x "$tool_specified"; then
6931           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6932 $as_echo "not found" >&6; }
6933           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6934         fi
6935         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6936 $as_echo "$tool_specified" >&6; }
6937       fi
6938     fi
6939   fi
6940 
6941 
6942 
6943   if test "x$EXPR" = x; then
6944     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6945   fi
6946 
6947 
6948 
6949 
6950 
6951   # Publish this variable in the help.
6952 
6953 
6954   if test "x$FILE" = x; then
6955     # The variable is not set by user, try to locate tool using the code snippet
6956     for ac_prog in file
6957 do
6958   # Extract the first word of "$ac_prog", so it can be a program name with args.
6959 set dummy $ac_prog; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_path_FILE+:} false; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   case $FILE in
6966   [\\/]* | ?:[\\/]*)
6967   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6968   ;;
6969   *)
6970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6972 do
6973   IFS=$as_save_IFS
6974   test -z "$as_dir" && as_dir=.
6975     for ac_exec_ext in '' $ac_executable_extensions; do
6976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6977     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979     break 2
6980   fi
6981 done
6982   done
6983 IFS=$as_save_IFS
6984 
6985   ;;
6986 esac
6987 fi
6988 FILE=$ac_cv_path_FILE
6989 if test -n "$FILE"; then
6990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6991 $as_echo "$FILE" >&6; }
6992 else
6993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6995 fi
6996 
6997 
6998   test -n "$FILE" && break
6999 done
7000 
7001   else
7002     # The variable is set, but is it from the command line or the environment?
7003 
7004     # Try to remove the string !FILE! from our list.
7005     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7006     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7007       # If it failed, the variable was not from the command line. Ignore it,
7008       # but warn the user (except for BASH, which is always set by the calling BASH).
7009       if test "xFILE" != xBASH; then
7010         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7011 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7012       fi
7013       # Try to locate tool using the code snippet
7014       for ac_prog in file
7015 do
7016   # Extract the first word of "$ac_prog", so it can be a program name with args.
7017 set dummy $ac_prog; ac_word=$2
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7019 $as_echo_n "checking for $ac_word... " >&6; }
7020 if ${ac_cv_path_FILE+:} false; then :
7021   $as_echo_n "(cached) " >&6
7022 else
7023   case $FILE in
7024   [\\/]* | ?:[\\/]*)
7025   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7026   ;;
7027   *)
7028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7030 do
7031   IFS=$as_save_IFS
7032   test -z "$as_dir" && as_dir=.
7033     for ac_exec_ext in '' $ac_executable_extensions; do
7034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037     break 2
7038   fi
7039 done
7040   done
7041 IFS=$as_save_IFS
7042 
7043   ;;
7044 esac
7045 fi
7046 FILE=$ac_cv_path_FILE
7047 if test -n "$FILE"; then
7048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7049 $as_echo "$FILE" >&6; }
7050 else
7051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7053 fi
7054 
7055 
7056   test -n "$FILE" && break
7057 done
7058 
7059     else
7060       # If it succeeded, then it was overridden by the user. We will use it
7061       # for the tool.
7062 
7063       # First remove it from the list of overridden variables, so we can test
7064       # for unknown variables in the end.
7065       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7066 
7067       # Check if the provided tool contains a complete path.
7068       tool_specified="$FILE"
7069       tool_basename="${tool_specified##*/}"
7070       if test "x$tool_basename" = "x$tool_specified"; then
7071         # A command without a complete path is provided, search $PATH.
7072         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7073 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7074         # Extract the first word of "$tool_basename", so it can be a program name with args.
7075 set dummy $tool_basename; ac_word=$2
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7077 $as_echo_n "checking for $ac_word... " >&6; }
7078 if ${ac_cv_path_FILE+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   case $FILE in
7082   [\\/]* | ?:[\\/]*)
7083   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7084   ;;
7085   *)
7086   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087 for as_dir in $PATH
7088 do
7089   IFS=$as_save_IFS
7090   test -z "$as_dir" && as_dir=.
7091     for ac_exec_ext in '' $ac_executable_extensions; do
7092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7093     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095     break 2
7096   fi
7097 done
7098   done
7099 IFS=$as_save_IFS
7100 
7101   ;;
7102 esac
7103 fi
7104 FILE=$ac_cv_path_FILE
7105 if test -n "$FILE"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7107 $as_echo "$FILE" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112 
7113 
7114         if test "x$FILE" = x; then
7115           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7116         fi
7117       else
7118         # Otherwise we believe it is a complete path. Use it as it is.
7119         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7120 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7121         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7122 $as_echo_n "checking for FILE... " >&6; }
7123         if test ! -x "$tool_specified"; then
7124           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7125 $as_echo "not found" >&6; }
7126           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7127         fi
7128         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7129 $as_echo "$tool_specified" >&6; }
7130       fi
7131     fi
7132   fi
7133 
7134 
7135 
7136   if test "x$FILE" = x; then
7137     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7138   fi
7139 
7140 
7141 
7142 
7143 
7144   # Publish this variable in the help.
7145 
7146 
7147   if test "x$FIND" = x; then
7148     # The variable is not set by user, try to locate tool using the code snippet
7149     for ac_prog in find
7150 do
7151   # Extract the first word of "$ac_prog", so it can be a program name with args.
7152 set dummy $ac_prog; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if ${ac_cv_path_FIND+:} false; then :
7156   $as_echo_n "(cached) " >&6
7157 else
7158   case $FIND in
7159   [\\/]* | ?:[\\/]*)
7160   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7161   ;;
7162   *)
7163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166   IFS=$as_save_IFS
7167   test -z "$as_dir" && as_dir=.
7168     for ac_exec_ext in '' $ac_executable_extensions; do
7169   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172     break 2
7173   fi
7174 done
7175   done
7176 IFS=$as_save_IFS
7177 
7178   ;;
7179 esac
7180 fi
7181 FIND=$ac_cv_path_FIND
7182 if test -n "$FIND"; then
7183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7184 $as_echo "$FIND" >&6; }
7185 else
7186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7187 $as_echo "no" >&6; }
7188 fi
7189 
7190 
7191   test -n "$FIND" && break
7192 done
7193 
7194   else
7195     # The variable is set, but is it from the command line or the environment?
7196 
7197     # Try to remove the string !FIND! from our list.
7198     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7199     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7200       # If it failed, the variable was not from the command line. Ignore it,
7201       # but warn the user (except for BASH, which is always set by the calling BASH).
7202       if test "xFIND" != xBASH; then
7203         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7204 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7205       fi
7206       # Try to locate tool using the code snippet
7207       for ac_prog in find
7208 do
7209   # Extract the first word of "$ac_prog", so it can be a program name with args.
7210 set dummy $ac_prog; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_path_FIND+:} false; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   case $FIND in
7217   [\\/]* | ?:[\\/]*)
7218   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7219   ;;
7220   *)
7221   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 for as_dir in $PATH
7223 do
7224   IFS=$as_save_IFS
7225   test -z "$as_dir" && as_dir=.
7226     for ac_exec_ext in '' $ac_executable_extensions; do
7227   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7228     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7229     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7230     break 2
7231   fi
7232 done
7233   done
7234 IFS=$as_save_IFS
7235 
7236   ;;
7237 esac
7238 fi
7239 FIND=$ac_cv_path_FIND
7240 if test -n "$FIND"; then
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7242 $as_echo "$FIND" >&6; }
7243 else
7244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247 
7248 
7249   test -n "$FIND" && break
7250 done
7251 
7252     else
7253       # If it succeeded, then it was overridden by the user. We will use it
7254       # for the tool.
7255 
7256       # First remove it from the list of overridden variables, so we can test
7257       # for unknown variables in the end.
7258       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7259 
7260       # Check if the provided tool contains a complete path.
7261       tool_specified="$FIND"
7262       tool_basename="${tool_specified##*/}"
7263       if test "x$tool_basename" = "x$tool_specified"; then
7264         # A command without a complete path is provided, search $PATH.
7265         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7266 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7267         # Extract the first word of "$tool_basename", so it can be a program name with args.
7268 set dummy $tool_basename; ac_word=$2
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7270 $as_echo_n "checking for $ac_word... " >&6; }
7271 if ${ac_cv_path_FIND+:} false; then :
7272   $as_echo_n "(cached) " >&6
7273 else
7274   case $FIND in
7275   [\\/]* | ?:[\\/]*)
7276   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7277   ;;
7278   *)
7279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7280 for as_dir in $PATH
7281 do
7282   IFS=$as_save_IFS
7283   test -z "$as_dir" && as_dir=.
7284     for ac_exec_ext in '' $ac_executable_extensions; do
7285   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7286     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7288     break 2
7289   fi
7290 done
7291   done
7292 IFS=$as_save_IFS
7293 
7294   ;;
7295 esac
7296 fi
7297 FIND=$ac_cv_path_FIND
7298 if test -n "$FIND"; then
7299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7300 $as_echo "$FIND" >&6; }
7301 else
7302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7304 fi
7305 
7306 
7307         if test "x$FIND" = x; then
7308           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7309         fi
7310       else
7311         # Otherwise we believe it is a complete path. Use it as it is.
7312         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7313 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7314         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7315 $as_echo_n "checking for FIND... " >&6; }
7316         if test ! -x "$tool_specified"; then
7317           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7318 $as_echo "not found" >&6; }
7319           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7320         fi
7321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7322 $as_echo "$tool_specified" >&6; }
7323       fi
7324     fi
7325   fi
7326 
7327 
7328 
7329   if test "x$FIND" = x; then
7330     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7331   fi
7332 
7333 
7334 
7335 
7336 
7337   # Publish this variable in the help.
7338 
7339 
7340   if test "x$HEAD" = x; then
7341     # The variable is not set by user, try to locate tool using the code snippet
7342     for ac_prog in head
7343 do
7344   # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_path_HEAD+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   case $HEAD in
7352   [\\/]* | ?:[\\/]*)
7353   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7354   ;;
7355   *)
7356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370 
7371   ;;
7372 esac
7373 fi
7374 HEAD=$ac_cv_path_HEAD
7375 if test -n "$HEAD"; then
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7377 $as_echo "$HEAD" >&6; }
7378 else
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382 
7383 
7384   test -n "$HEAD" && break
7385 done
7386 
7387   else
7388     # The variable is set, but is it from the command line or the environment?
7389 
7390     # Try to remove the string !HEAD! from our list.
7391     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7392     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7393       # If it failed, the variable was not from the command line. Ignore it,
7394       # but warn the user (except for BASH, which is always set by the calling BASH).
7395       if test "xHEAD" != xBASH; then
7396         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7397 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7398       fi
7399       # Try to locate tool using the code snippet
7400       for ac_prog in head
7401 do
7402   # Extract the first word of "$ac_prog", so it can be a program name with args.
7403 set dummy $ac_prog; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_path_HEAD+:} false; then :
7407   $as_echo_n "(cached) " >&6
7408 else
7409   case $HEAD in
7410   [\\/]* | ?:[\\/]*)
7411   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7412   ;;
7413   *)
7414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7416 do
7417   IFS=$as_save_IFS
7418   test -z "$as_dir" && as_dir=.
7419     for ac_exec_ext in '' $ac_executable_extensions; do
7420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423     break 2
7424   fi
7425 done
7426   done
7427 IFS=$as_save_IFS
7428 
7429   ;;
7430 esac
7431 fi
7432 HEAD=$ac_cv_path_HEAD
7433 if test -n "$HEAD"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7435 $as_echo "$HEAD" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440 
7441 
7442   test -n "$HEAD" && break
7443 done
7444 
7445     else
7446       # If it succeeded, then it was overridden by the user. We will use it
7447       # for the tool.
7448 
7449       # First remove it from the list of overridden variables, so we can test
7450       # for unknown variables in the end.
7451       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7452 
7453       # Check if the provided tool contains a complete path.
7454       tool_specified="$HEAD"
7455       tool_basename="${tool_specified##*/}"
7456       if test "x$tool_basename" = "x$tool_specified"; then
7457         # A command without a complete path is provided, search $PATH.
7458         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7459 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7460         # Extract the first word of "$tool_basename", so it can be a program name with args.
7461 set dummy $tool_basename; ac_word=$2
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 $as_echo_n "checking for $ac_word... " >&6; }
7464 if ${ac_cv_path_HEAD+:} false; then :
7465   $as_echo_n "(cached) " >&6
7466 else
7467   case $HEAD in
7468   [\\/]* | ?:[\\/]*)
7469   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7470   ;;
7471   *)
7472   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486 
7487   ;;
7488 esac
7489 fi
7490 HEAD=$ac_cv_path_HEAD
7491 if test -n "$HEAD"; then
7492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7493 $as_echo "$HEAD" >&6; }
7494 else
7495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496 $as_echo "no" >&6; }
7497 fi
7498 
7499 
7500         if test "x$HEAD" = x; then
7501           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7502         fi
7503       else
7504         # Otherwise we believe it is a complete path. Use it as it is.
7505         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7506 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7508 $as_echo_n "checking for HEAD... " >&6; }
7509         if test ! -x "$tool_specified"; then
7510           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7511 $as_echo "not found" >&6; }
7512           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7513         fi
7514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7515 $as_echo "$tool_specified" >&6; }
7516       fi
7517     fi
7518   fi
7519 
7520 
7521 
7522   if test "x$HEAD" = x; then
7523     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7524   fi
7525 
7526 
7527 
7528 
7529 
7530   # Publish this variable in the help.
7531 
7532 
7533   if test "x$LN" = x; then
7534     # The variable is not set by user, try to locate tool using the code snippet
7535     for ac_prog in ln
7536 do
7537   # Extract the first word of "$ac_prog", so it can be a program name with args.
7538 set dummy $ac_prog; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_path_LN+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   case $LN in
7545   [\\/]* | ?:[\\/]*)
7546   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7547   ;;
7548   *)
7549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563 
7564   ;;
7565 esac
7566 fi
7567 LN=$ac_cv_path_LN
7568 if test -n "$LN"; then
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7570 $as_echo "$LN" >&6; }
7571 else
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575 
7576 
7577   test -n "$LN" && break
7578 done
7579 
7580   else
7581     # The variable is set, but is it from the command line or the environment?
7582 
7583     # Try to remove the string !LN! from our list.
7584     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7585     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7586       # If it failed, the variable was not from the command line. Ignore it,
7587       # but warn the user (except for BASH, which is always set by the calling BASH).
7588       if test "xLN" != xBASH; then
7589         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7590 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7591       fi
7592       # Try to locate tool using the code snippet
7593       for ac_prog in ln
7594 do
7595   # Extract the first word of "$ac_prog", so it can be a program name with args.
7596 set dummy $ac_prog; ac_word=$2
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598 $as_echo_n "checking for $ac_word... " >&6; }
7599 if ${ac_cv_path_LN+:} false; then :
7600   $as_echo_n "(cached) " >&6
7601 else
7602   case $LN in
7603   [\\/]* | ?:[\\/]*)
7604   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7605   ;;
7606   *)
7607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610   IFS=$as_save_IFS
7611   test -z "$as_dir" && as_dir=.
7612     for ac_exec_ext in '' $ac_executable_extensions; do
7613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616     break 2
7617   fi
7618 done
7619   done
7620 IFS=$as_save_IFS
7621 
7622   ;;
7623 esac
7624 fi
7625 LN=$ac_cv_path_LN
7626 if test -n "$LN"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7628 $as_echo "$LN" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633 
7634 
7635   test -n "$LN" && break
7636 done
7637 
7638     else
7639       # If it succeeded, then it was overridden by the user. We will use it
7640       # for the tool.
7641 
7642       # First remove it from the list of overridden variables, so we can test
7643       # for unknown variables in the end.
7644       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7645 
7646       # Check if the provided tool contains a complete path.
7647       tool_specified="$LN"
7648       tool_basename="${tool_specified##*/}"
7649       if test "x$tool_basename" = "x$tool_specified"; then
7650         # A command without a complete path is provided, search $PATH.
7651         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7652 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7653         # Extract the first word of "$tool_basename", so it can be a program name with args.
7654 set dummy $tool_basename; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_path_LN+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   case $LN in
7661   [\\/]* | ?:[\\/]*)
7662   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7663   ;;
7664   *)
7665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666 for as_dir in $PATH
7667 do
7668   IFS=$as_save_IFS
7669   test -z "$as_dir" && as_dir=.
7670     for ac_exec_ext in '' $ac_executable_extensions; do
7671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674     break 2
7675   fi
7676 done
7677   done
7678 IFS=$as_save_IFS
7679 
7680   ;;
7681 esac
7682 fi
7683 LN=$ac_cv_path_LN
7684 if test -n "$LN"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7686 $as_echo "$LN" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691 
7692 
7693         if test "x$LN" = x; then
7694           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7695         fi
7696       else
7697         # Otherwise we believe it is a complete path. Use it as it is.
7698         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7699 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7700         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7701 $as_echo_n "checking for LN... " >&6; }
7702         if test ! -x "$tool_specified"; then
7703           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7704 $as_echo "not found" >&6; }
7705           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7706         fi
7707         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7708 $as_echo "$tool_specified" >&6; }
7709       fi
7710     fi
7711   fi
7712 
7713 
7714 
7715   if test "x$LN" = x; then
7716     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7717   fi
7718 
7719 
7720 
7721 
7722 
7723   # Publish this variable in the help.
7724 
7725 
7726   if test "x$LS" = x; then
7727     # The variable is not set by user, try to locate tool using the code snippet
7728     for ac_prog in ls
7729 do
7730   # Extract the first word of "$ac_prog", so it can be a program name with args.
7731 set dummy $ac_prog; ac_word=$2
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733 $as_echo_n "checking for $ac_word... " >&6; }
7734 if ${ac_cv_path_LS+:} false; then :
7735   $as_echo_n "(cached) " >&6
7736 else
7737   case $LS in
7738   [\\/]* | ?:[\\/]*)
7739   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7740   ;;
7741   *)
7742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745   IFS=$as_save_IFS
7746   test -z "$as_dir" && as_dir=.
7747     for ac_exec_ext in '' $ac_executable_extensions; do
7748   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7749     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7751     break 2
7752   fi
7753 done
7754   done
7755 IFS=$as_save_IFS
7756 
7757   ;;
7758 esac
7759 fi
7760 LS=$ac_cv_path_LS
7761 if test -n "$LS"; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7763 $as_echo "$LS" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767 fi
7768 
7769 
7770   test -n "$LS" && break
7771 done
7772 
7773   else
7774     # The variable is set, but is it from the command line or the environment?
7775 
7776     # Try to remove the string !LS! from our list.
7777     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7778     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7779       # If it failed, the variable was not from the command line. Ignore it,
7780       # but warn the user (except for BASH, which is always set by the calling BASH).
7781       if test "xLS" != xBASH; then
7782         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7783 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7784       fi
7785       # Try to locate tool using the code snippet
7786       for ac_prog in ls
7787 do
7788   # Extract the first word of "$ac_prog", so it can be a program name with args.
7789 set dummy $ac_prog; ac_word=$2
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7791 $as_echo_n "checking for $ac_word... " >&6; }
7792 if ${ac_cv_path_LS+:} false; then :
7793   $as_echo_n "(cached) " >&6
7794 else
7795   case $LS in
7796   [\\/]* | ?:[\\/]*)
7797   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7798   ;;
7799   *)
7800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7802 do
7803   IFS=$as_save_IFS
7804   test -z "$as_dir" && as_dir=.
7805     for ac_exec_ext in '' $ac_executable_extensions; do
7806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7807     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809     break 2
7810   fi
7811 done
7812   done
7813 IFS=$as_save_IFS
7814 
7815   ;;
7816 esac
7817 fi
7818 LS=$ac_cv_path_LS
7819 if test -n "$LS"; then
7820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7821 $as_echo "$LS" >&6; }
7822 else
7823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 fi
7826 
7827 
7828   test -n "$LS" && break
7829 done
7830 
7831     else
7832       # If it succeeded, then it was overridden by the user. We will use it
7833       # for the tool.
7834 
7835       # First remove it from the list of overridden variables, so we can test
7836       # for unknown variables in the end.
7837       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7838 
7839       # Check if the provided tool contains a complete path.
7840       tool_specified="$LS"
7841       tool_basename="${tool_specified##*/}"
7842       if test "x$tool_basename" = "x$tool_specified"; then
7843         # A command without a complete path is provided, search $PATH.
7844         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7845 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7846         # Extract the first word of "$tool_basename", so it can be a program name with args.
7847 set dummy $tool_basename; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if ${ac_cv_path_LS+:} false; then :
7851   $as_echo_n "(cached) " >&6
7852 else
7853   case $LS in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863     for ac_exec_ext in '' $ac_executable_extensions; do
7864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7865     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870   done
7871 IFS=$as_save_IFS
7872 
7873   ;;
7874 esac
7875 fi
7876 LS=$ac_cv_path_LS
7877 if test -n "$LS"; then
7878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7879 $as_echo "$LS" >&6; }
7880 else
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7882 $as_echo "no" >&6; }
7883 fi
7884 
7885 
7886         if test "x$LS" = x; then
7887           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7888         fi
7889       else
7890         # Otherwise we believe it is a complete path. Use it as it is.
7891         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7892 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7893         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7894 $as_echo_n "checking for LS... " >&6; }
7895         if test ! -x "$tool_specified"; then
7896           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7897 $as_echo "not found" >&6; }
7898           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7899         fi
7900         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7901 $as_echo "$tool_specified" >&6; }
7902       fi
7903     fi
7904   fi
7905 
7906 
7907 
7908   if test "x$LS" = x; then
7909     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7910   fi
7911 
7912 
7913 
7914 
7915 
7916   # Publish this variable in the help.
7917 
7918 
7919   if test "x$MKDIR" = x; then
7920     # The variable is not set by user, try to locate tool using the code snippet
7921     for ac_prog in mkdir
7922 do
7923   # Extract the first word of "$ac_prog", so it can be a program name with args.
7924 set dummy $ac_prog; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_path_MKDIR+:} false; then :
7928   $as_echo_n "(cached) " >&6
7929 else
7930   case $MKDIR in
7931   [\\/]* | ?:[\\/]*)
7932   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7933   ;;
7934   *)
7935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938   IFS=$as_save_IFS
7939   test -z "$as_dir" && as_dir=.
7940     for ac_exec_ext in '' $ac_executable_extensions; do
7941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944     break 2
7945   fi
7946 done
7947   done
7948 IFS=$as_save_IFS
7949 
7950   ;;
7951 esac
7952 fi
7953 MKDIR=$ac_cv_path_MKDIR
7954 if test -n "$MKDIR"; then
7955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7956 $as_echo "$MKDIR" >&6; }
7957 else
7958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7960 fi
7961 
7962 
7963   test -n "$MKDIR" && break
7964 done
7965 
7966   else
7967     # The variable is set, but is it from the command line or the environment?
7968 
7969     # Try to remove the string !MKDIR! from our list.
7970     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7971     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7972       # If it failed, the variable was not from the command line. Ignore it,
7973       # but warn the user (except for BASH, which is always set by the calling BASH).
7974       if test "xMKDIR" != xBASH; then
7975         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7976 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7977       fi
7978       # Try to locate tool using the code snippet
7979       for ac_prog in mkdir
7980 do
7981   # Extract the first word of "$ac_prog", so it can be a program name with args.
7982 set dummy $ac_prog; ac_word=$2
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984 $as_echo_n "checking for $ac_word... " >&6; }
7985 if ${ac_cv_path_MKDIR+:} false; then :
7986   $as_echo_n "(cached) " >&6
7987 else
7988   case $MKDIR in
7989   [\\/]* | ?:[\\/]*)
7990   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7991   ;;
7992   *)
7993   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7994 for as_dir in $PATH
7995 do
7996   IFS=$as_save_IFS
7997   test -z "$as_dir" && as_dir=.
7998     for ac_exec_ext in '' $ac_executable_extensions; do
7999   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8000     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8001     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8002     break 2
8003   fi
8004 done
8005   done
8006 IFS=$as_save_IFS
8007 
8008   ;;
8009 esac
8010 fi
8011 MKDIR=$ac_cv_path_MKDIR
8012 if test -n "$MKDIR"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8014 $as_echo "$MKDIR" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019 
8020 
8021   test -n "$MKDIR" && break
8022 done
8023 
8024     else
8025       # If it succeeded, then it was overridden by the user. We will use it
8026       # for the tool.
8027 
8028       # First remove it from the list of overridden variables, so we can test
8029       # for unknown variables in the end.
8030       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8031 
8032       # Check if the provided tool contains a complete path.
8033       tool_specified="$MKDIR"
8034       tool_basename="${tool_specified##*/}"
8035       if test "x$tool_basename" = "x$tool_specified"; then
8036         # A command without a complete path is provided, search $PATH.
8037         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8038 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8039         # Extract the first word of "$tool_basename", so it can be a program name with args.
8040 set dummy $tool_basename; ac_word=$2
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8042 $as_echo_n "checking for $ac_word... " >&6; }
8043 if ${ac_cv_path_MKDIR+:} false; then :
8044   $as_echo_n "(cached) " >&6
8045 else
8046   case $MKDIR in
8047   [\\/]* | ?:[\\/]*)
8048   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8049   ;;
8050   *)
8051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8052 for as_dir in $PATH
8053 do
8054   IFS=$as_save_IFS
8055   test -z "$as_dir" && as_dir=.
8056     for ac_exec_ext in '' $ac_executable_extensions; do
8057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8058     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8060     break 2
8061   fi
8062 done
8063   done
8064 IFS=$as_save_IFS
8065 
8066   ;;
8067 esac
8068 fi
8069 MKDIR=$ac_cv_path_MKDIR
8070 if test -n "$MKDIR"; then
8071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8072 $as_echo "$MKDIR" >&6; }
8073 else
8074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8076 fi
8077 
8078 
8079         if test "x$MKDIR" = x; then
8080           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8081         fi
8082       else
8083         # Otherwise we believe it is a complete path. Use it as it is.
8084         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8085 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8086         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8087 $as_echo_n "checking for MKDIR... " >&6; }
8088         if test ! -x "$tool_specified"; then
8089           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8090 $as_echo "not found" >&6; }
8091           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8092         fi
8093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8094 $as_echo "$tool_specified" >&6; }
8095       fi
8096     fi
8097   fi
8098 
8099 
8100 
8101   if test "x$MKDIR" = x; then
8102     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8103   fi
8104 
8105 
8106 
8107 
8108 
8109   # Publish this variable in the help.
8110 
8111 
8112   if test "x$MKTEMP" = x; then
8113     # The variable is not set by user, try to locate tool using the code snippet
8114     for ac_prog in mktemp
8115 do
8116   # Extract the first word of "$ac_prog", so it can be a program name with args.
8117 set dummy $ac_prog; ac_word=$2
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8119 $as_echo_n "checking for $ac_word... " >&6; }
8120 if ${ac_cv_path_MKTEMP+:} false; then :
8121   $as_echo_n "(cached) " >&6
8122 else
8123   case $MKTEMP in
8124   [\\/]* | ?:[\\/]*)
8125   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8126   ;;
8127   *)
8128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8130 do
8131   IFS=$as_save_IFS
8132   test -z "$as_dir" && as_dir=.
8133     for ac_exec_ext in '' $ac_executable_extensions; do
8134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8135     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137     break 2
8138   fi
8139 done
8140   done
8141 IFS=$as_save_IFS
8142 
8143   ;;
8144 esac
8145 fi
8146 MKTEMP=$ac_cv_path_MKTEMP
8147 if test -n "$MKTEMP"; then
8148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8149 $as_echo "$MKTEMP" >&6; }
8150 else
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8152 $as_echo "no" >&6; }
8153 fi
8154 
8155 
8156   test -n "$MKTEMP" && break
8157 done
8158 
8159   else
8160     # The variable is set, but is it from the command line or the environment?
8161 
8162     # Try to remove the string !MKTEMP! from our list.
8163     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8164     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8165       # If it failed, the variable was not from the command line. Ignore it,
8166       # but warn the user (except for BASH, which is always set by the calling BASH).
8167       if test "xMKTEMP" != xBASH; then
8168         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8169 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8170       fi
8171       # Try to locate tool using the code snippet
8172       for ac_prog in mktemp
8173 do
8174   # Extract the first word of "$ac_prog", so it can be a program name with args.
8175 set dummy $ac_prog; ac_word=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_path_MKTEMP+:} false; then :
8179   $as_echo_n "(cached) " >&6
8180 else
8181   case $MKTEMP in
8182   [\\/]* | ?:[\\/]*)
8183   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8184   ;;
8185   *)
8186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 for as_dir in $PATH
8188 do
8189   IFS=$as_save_IFS
8190   test -z "$as_dir" && as_dir=.
8191     for ac_exec_ext in '' $ac_executable_extensions; do
8192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8193     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195     break 2
8196   fi
8197 done
8198   done
8199 IFS=$as_save_IFS
8200 
8201   ;;
8202 esac
8203 fi
8204 MKTEMP=$ac_cv_path_MKTEMP
8205 if test -n "$MKTEMP"; then
8206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8207 $as_echo "$MKTEMP" >&6; }
8208 else
8209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8210 $as_echo "no" >&6; }
8211 fi
8212 
8213 
8214   test -n "$MKTEMP" && break
8215 done
8216 
8217     else
8218       # If it succeeded, then it was overridden by the user. We will use it
8219       # for the tool.
8220 
8221       # First remove it from the list of overridden variables, so we can test
8222       # for unknown variables in the end.
8223       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8224 
8225       # Check if the provided tool contains a complete path.
8226       tool_specified="$MKTEMP"
8227       tool_basename="${tool_specified##*/}"
8228       if test "x$tool_basename" = "x$tool_specified"; then
8229         # A command without a complete path is provided, search $PATH.
8230         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8231 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8232         # Extract the first word of "$tool_basename", so it can be a program name with args.
8233 set dummy $tool_basename; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if ${ac_cv_path_MKTEMP+:} false; then :
8237   $as_echo_n "(cached) " >&6
8238 else
8239   case $MKTEMP in
8240   [\\/]* | ?:[\\/]*)
8241   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8242   ;;
8243   *)
8244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8246 do
8247   IFS=$as_save_IFS
8248   test -z "$as_dir" && as_dir=.
8249     for ac_exec_ext in '' $ac_executable_extensions; do
8250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8251     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253     break 2
8254   fi
8255 done
8256   done
8257 IFS=$as_save_IFS
8258 
8259   ;;
8260 esac
8261 fi
8262 MKTEMP=$ac_cv_path_MKTEMP
8263 if test -n "$MKTEMP"; then
8264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8265 $as_echo "$MKTEMP" >&6; }
8266 else
8267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270 
8271 
8272         if test "x$MKTEMP" = x; then
8273           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8274         fi
8275       else
8276         # Otherwise we believe it is a complete path. Use it as it is.
8277         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8278 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8279         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8280 $as_echo_n "checking for MKTEMP... " >&6; }
8281         if test ! -x "$tool_specified"; then
8282           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8283 $as_echo "not found" >&6; }
8284           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8285         fi
8286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8287 $as_echo "$tool_specified" >&6; }
8288       fi
8289     fi
8290   fi
8291 
8292 
8293 
8294   if test "x$MKTEMP" = x; then
8295     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8296   fi
8297 
8298 
8299 
8300 
8301 
8302   # Publish this variable in the help.
8303 
8304 
8305   if test "x$MV" = x; then
8306     # The variable is not set by user, try to locate tool using the code snippet
8307     for ac_prog in mv
8308 do
8309   # Extract the first word of "$ac_prog", so it can be a program name with args.
8310 set dummy $ac_prog; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if ${ac_cv_path_MV+:} false; then :
8314   $as_echo_n "(cached) " >&6
8315 else
8316   case $MV in
8317   [\\/]* | ?:[\\/]*)
8318   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8319   ;;
8320   *)
8321   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8323 do
8324   IFS=$as_save_IFS
8325   test -z "$as_dir" && as_dir=.
8326     for ac_exec_ext in '' $ac_executable_extensions; do
8327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8328     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330     break 2
8331   fi
8332 done
8333   done
8334 IFS=$as_save_IFS
8335 
8336   ;;
8337 esac
8338 fi
8339 MV=$ac_cv_path_MV
8340 if test -n "$MV"; then
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8342 $as_echo "$MV" >&6; }
8343 else
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 fi
8347 
8348 
8349   test -n "$MV" && break
8350 done
8351 
8352   else
8353     # The variable is set, but is it from the command line or the environment?
8354 
8355     # Try to remove the string !MV! from our list.
8356     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8357     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8358       # If it failed, the variable was not from the command line. Ignore it,
8359       # but warn the user (except for BASH, which is always set by the calling BASH).
8360       if test "xMV" != xBASH; then
8361         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8362 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8363       fi
8364       # Try to locate tool using the code snippet
8365       for ac_prog in mv
8366 do
8367   # Extract the first word of "$ac_prog", so it can be a program name with args.
8368 set dummy $ac_prog; ac_word=$2
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370 $as_echo_n "checking for $ac_word... " >&6; }
8371 if ${ac_cv_path_MV+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   case $MV in
8375   [\\/]* | ?:[\\/]*)
8376   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8377   ;;
8378   *)
8379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380 for as_dir in $PATH
8381 do
8382   IFS=$as_save_IFS
8383   test -z "$as_dir" && as_dir=.
8384     for ac_exec_ext in '' $ac_executable_extensions; do
8385   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8386     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8387     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8388     break 2
8389   fi
8390 done
8391   done
8392 IFS=$as_save_IFS
8393 
8394   ;;
8395 esac
8396 fi
8397 MV=$ac_cv_path_MV
8398 if test -n "$MV"; then
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8400 $as_echo "$MV" >&6; }
8401 else
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405 
8406 
8407   test -n "$MV" && break
8408 done
8409 
8410     else
8411       # If it succeeded, then it was overridden by the user. We will use it
8412       # for the tool.
8413 
8414       # First remove it from the list of overridden variables, so we can test
8415       # for unknown variables in the end.
8416       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8417 
8418       # Check if the provided tool contains a complete path.
8419       tool_specified="$MV"
8420       tool_basename="${tool_specified##*/}"
8421       if test "x$tool_basename" = "x$tool_specified"; then
8422         # A command without a complete path is provided, search $PATH.
8423         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8424 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8425         # Extract the first word of "$tool_basename", so it can be a program name with args.
8426 set dummy $tool_basename; ac_word=$2
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8428 $as_echo_n "checking for $ac_word... " >&6; }
8429 if ${ac_cv_path_MV+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MV in
8433   [\\/]* | ?:[\\/]*)
8434   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8435   ;;
8436   *)
8437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 for as_dir in $PATH
8439 do
8440   IFS=$as_save_IFS
8441   test -z "$as_dir" && as_dir=.
8442     for ac_exec_ext in '' $ac_executable_extensions; do
8443   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8444     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8445     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8446     break 2
8447   fi
8448 done
8449   done
8450 IFS=$as_save_IFS
8451 
8452   ;;
8453 esac
8454 fi
8455 MV=$ac_cv_path_MV
8456 if test -n "$MV"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8458 $as_echo "$MV" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463 
8464 
8465         if test "x$MV" = x; then
8466           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8467         fi
8468       else
8469         # Otherwise we believe it is a complete path. Use it as it is.
8470         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8471 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8472         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8473 $as_echo_n "checking for MV... " >&6; }
8474         if test ! -x "$tool_specified"; then
8475           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8476 $as_echo "not found" >&6; }
8477           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8478         fi
8479         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8480 $as_echo "$tool_specified" >&6; }
8481       fi
8482     fi
8483   fi
8484 
8485 
8486 
8487   if test "x$MV" = x; then
8488     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8489   fi
8490 
8491 
8492 
8493 
8494 
8495   # Publish this variable in the help.
8496 
8497 
8498   if test "x$NAWK" = x; then
8499     # The variable is not set by user, try to locate tool using the code snippet
8500     for ac_prog in nawk gawk awk
8501 do
8502   # Extract the first word of "$ac_prog", so it can be a program name with args.
8503 set dummy $ac_prog; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if ${ac_cv_path_NAWK+:} false; then :
8507   $as_echo_n "(cached) " >&6
8508 else
8509   case $NAWK in
8510   [\\/]* | ?:[\\/]*)
8511   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8512   ;;
8513   *)
8514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8516 do
8517   IFS=$as_save_IFS
8518   test -z "$as_dir" && as_dir=.
8519     for ac_exec_ext in '' $ac_executable_extensions; do
8520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8521     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523     break 2
8524   fi
8525 done
8526   done
8527 IFS=$as_save_IFS
8528 
8529   ;;
8530 esac
8531 fi
8532 NAWK=$ac_cv_path_NAWK
8533 if test -n "$NAWK"; then
8534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8535 $as_echo "$NAWK" >&6; }
8536 else
8537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8539 fi
8540 
8541 
8542   test -n "$NAWK" && break
8543 done
8544 
8545   else
8546     # The variable is set, but is it from the command line or the environment?
8547 
8548     # Try to remove the string !NAWK! from our list.
8549     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8550     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8551       # If it failed, the variable was not from the command line. Ignore it,
8552       # but warn the user (except for BASH, which is always set by the calling BASH).
8553       if test "xNAWK" != xBASH; then
8554         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8555 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8556       fi
8557       # Try to locate tool using the code snippet
8558       for ac_prog in nawk gawk awk
8559 do
8560   # Extract the first word of "$ac_prog", so it can be a program name with args.
8561 set dummy $ac_prog; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_path_NAWK+:} false; then :
8565   $as_echo_n "(cached) " >&6
8566 else
8567   case $NAWK in
8568   [\\/]* | ?:[\\/]*)
8569   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8570   ;;
8571   *)
8572   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8574 do
8575   IFS=$as_save_IFS
8576   test -z "$as_dir" && as_dir=.
8577     for ac_exec_ext in '' $ac_executable_extensions; do
8578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581     break 2
8582   fi
8583 done
8584   done
8585 IFS=$as_save_IFS
8586 
8587   ;;
8588 esac
8589 fi
8590 NAWK=$ac_cv_path_NAWK
8591 if test -n "$NAWK"; then
8592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8593 $as_echo "$NAWK" >&6; }
8594 else
8595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 fi
8598 
8599 
8600   test -n "$NAWK" && break
8601 done
8602 
8603     else
8604       # If it succeeded, then it was overridden by the user. We will use it
8605       # for the tool.
8606 
8607       # First remove it from the list of overridden variables, so we can test
8608       # for unknown variables in the end.
8609       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8610 
8611       # Check if the provided tool contains a complete path.
8612       tool_specified="$NAWK"
8613       tool_basename="${tool_specified##*/}"
8614       if test "x$tool_basename" = "x$tool_specified"; then
8615         # A command without a complete path is provided, search $PATH.
8616         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8617 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8618         # Extract the first word of "$tool_basename", so it can be a program name with args.
8619 set dummy $tool_basename; ac_word=$2
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621 $as_echo_n "checking for $ac_word... " >&6; }
8622 if ${ac_cv_path_NAWK+:} false; then :
8623   $as_echo_n "(cached) " >&6
8624 else
8625   case $NAWK in
8626   [\\/]* | ?:[\\/]*)
8627   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8628   ;;
8629   *)
8630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644 
8645   ;;
8646 esac
8647 fi
8648 NAWK=$ac_cv_path_NAWK
8649 if test -n "$NAWK"; then
8650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8651 $as_echo "$NAWK" >&6; }
8652 else
8653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654 $as_echo "no" >&6; }
8655 fi
8656 
8657 
8658         if test "x$NAWK" = x; then
8659           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8660         fi
8661       else
8662         # Otherwise we believe it is a complete path. Use it as it is.
8663         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8664 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8665         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8666 $as_echo_n "checking for NAWK... " >&6; }
8667         if test ! -x "$tool_specified"; then
8668           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8669 $as_echo "not found" >&6; }
8670           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8671         fi
8672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8673 $as_echo "$tool_specified" >&6; }
8674       fi
8675     fi
8676   fi
8677 
8678 
8679 
8680   if test "x$NAWK" = x; then
8681     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8682   fi
8683 
8684 
8685 
8686 
8687 
8688   # Publish this variable in the help.
8689 
8690 
8691   if test "x$PRINTF" = x; then
8692     # The variable is not set by user, try to locate tool using the code snippet
8693     for ac_prog in printf
8694 do
8695   # Extract the first word of "$ac_prog", so it can be a program name with args.
8696 set dummy $ac_prog; ac_word=$2
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698 $as_echo_n "checking for $ac_word... " >&6; }
8699 if ${ac_cv_path_PRINTF+:} false; then :
8700   $as_echo_n "(cached) " >&6
8701 else
8702   case $PRINTF in
8703   [\\/]* | ?:[\\/]*)
8704   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8705   ;;
8706   *)
8707   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710   IFS=$as_save_IFS
8711   test -z "$as_dir" && as_dir=.
8712     for ac_exec_ext in '' $ac_executable_extensions; do
8713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716     break 2
8717   fi
8718 done
8719   done
8720 IFS=$as_save_IFS
8721 
8722   ;;
8723 esac
8724 fi
8725 PRINTF=$ac_cv_path_PRINTF
8726 if test -n "$PRINTF"; then
8727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8728 $as_echo "$PRINTF" >&6; }
8729 else
8730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731 $as_echo "no" >&6; }
8732 fi
8733 
8734 
8735   test -n "$PRINTF" && break
8736 done
8737 
8738   else
8739     # The variable is set, but is it from the command line or the environment?
8740 
8741     # Try to remove the string !PRINTF! from our list.
8742     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8743     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8744       # If it failed, the variable was not from the command line. Ignore it,
8745       # but warn the user (except for BASH, which is always set by the calling BASH).
8746       if test "xPRINTF" != xBASH; then
8747         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8748 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8749       fi
8750       # Try to locate tool using the code snippet
8751       for ac_prog in printf
8752 do
8753   # Extract the first word of "$ac_prog", so it can be a program name with args.
8754 set dummy $ac_prog; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if ${ac_cv_path_PRINTF+:} false; then :
8758   $as_echo_n "(cached) " >&6
8759 else
8760   case $PRINTF in
8761   [\\/]* | ?:[\\/]*)
8762   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8763   ;;
8764   *)
8765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in $PATH
8767 do
8768   IFS=$as_save_IFS
8769   test -z "$as_dir" && as_dir=.
8770     for ac_exec_ext in '' $ac_executable_extensions; do
8771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8772     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774     break 2
8775   fi
8776 done
8777   done
8778 IFS=$as_save_IFS
8779 
8780   ;;
8781 esac
8782 fi
8783 PRINTF=$ac_cv_path_PRINTF
8784 if test -n "$PRINTF"; then
8785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8786 $as_echo "$PRINTF" >&6; }
8787 else
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8790 fi
8791 
8792 
8793   test -n "$PRINTF" && break
8794 done
8795 
8796     else
8797       # If it succeeded, then it was overridden by the user. We will use it
8798       # for the tool.
8799 
8800       # First remove it from the list of overridden variables, so we can test
8801       # for unknown variables in the end.
8802       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8803 
8804       # Check if the provided tool contains a complete path.
8805       tool_specified="$PRINTF"
8806       tool_basename="${tool_specified##*/}"
8807       if test "x$tool_basename" = "x$tool_specified"; then
8808         # A command without a complete path is provided, search $PATH.
8809         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8810 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8811         # Extract the first word of "$tool_basename", so it can be a program name with args.
8812 set dummy $tool_basename; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if ${ac_cv_path_PRINTF+:} false; then :
8816   $as_echo_n "(cached) " >&6
8817 else
8818   case $PRINTF in
8819   [\\/]* | ?:[\\/]*)
8820   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8821   ;;
8822   *)
8823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826   IFS=$as_save_IFS
8827   test -z "$as_dir" && as_dir=.
8828     for ac_exec_ext in '' $ac_executable_extensions; do
8829   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8830     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832     break 2
8833   fi
8834 done
8835   done
8836 IFS=$as_save_IFS
8837 
8838   ;;
8839 esac
8840 fi
8841 PRINTF=$ac_cv_path_PRINTF
8842 if test -n "$PRINTF"; then
8843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8844 $as_echo "$PRINTF" >&6; }
8845 else
8846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8848 fi
8849 
8850 
8851         if test "x$PRINTF" = x; then
8852           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8853         fi
8854       else
8855         # Otherwise we believe it is a complete path. Use it as it is.
8856         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8857 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8858         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8859 $as_echo_n "checking for PRINTF... " >&6; }
8860         if test ! -x "$tool_specified"; then
8861           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8862 $as_echo "not found" >&6; }
8863           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8864         fi
8865         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8866 $as_echo "$tool_specified" >&6; }
8867       fi
8868     fi
8869   fi
8870 
8871 
8872 
8873   if test "x$PRINTF" = x; then
8874     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8875   fi
8876 
8877 
8878 
8879 
8880 
8881   # Publish this variable in the help.
8882 
8883 
8884   if test "x$RM" = x; then
8885     # The variable is not set by user, try to locate tool using the code snippet
8886     for ac_prog in rm
8887 do
8888   # Extract the first word of "$ac_prog", so it can be a program name with args.
8889 set dummy $ac_prog; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_path_RM+:} false; then :
8893   $as_echo_n "(cached) " >&6
8894 else
8895   case $RM in
8896   [\\/]* | ?:[\\/]*)
8897   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8898   ;;
8899   *)
8900   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8901 for as_dir in $PATH
8902 do
8903   IFS=$as_save_IFS
8904   test -z "$as_dir" && as_dir=.
8905     for ac_exec_ext in '' $ac_executable_extensions; do
8906   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8907     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8908     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909     break 2
8910   fi
8911 done
8912   done
8913 IFS=$as_save_IFS
8914 
8915   ;;
8916 esac
8917 fi
8918 RM=$ac_cv_path_RM
8919 if test -n "$RM"; then
8920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8921 $as_echo "$RM" >&6; }
8922 else
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924 $as_echo "no" >&6; }
8925 fi
8926 
8927 
8928   test -n "$RM" && break
8929 done
8930 
8931   else
8932     # The variable is set, but is it from the command line or the environment?
8933 
8934     # Try to remove the string !RM! from our list.
8935     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8936     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8937       # If it failed, the variable was not from the command line. Ignore it,
8938       # but warn the user (except for BASH, which is always set by the calling BASH).
8939       if test "xRM" != xBASH; then
8940         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8941 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8942       fi
8943       # Try to locate tool using the code snippet
8944       for ac_prog in rm
8945 do
8946   # Extract the first word of "$ac_prog", so it can be a program name with args.
8947 set dummy $ac_prog; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if ${ac_cv_path_RM+:} false; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   case $RM in
8954   [\\/]* | ?:[\\/]*)
8955   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8956   ;;
8957   *)
8958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959 for as_dir in $PATH
8960 do
8961   IFS=$as_save_IFS
8962   test -z "$as_dir" && as_dir=.
8963     for ac_exec_ext in '' $ac_executable_extensions; do
8964   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8965     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967     break 2
8968   fi
8969 done
8970   done
8971 IFS=$as_save_IFS
8972 
8973   ;;
8974 esac
8975 fi
8976 RM=$ac_cv_path_RM
8977 if test -n "$RM"; then
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8979 $as_echo "$RM" >&6; }
8980 else
8981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8983 fi
8984 
8985 
8986   test -n "$RM" && break
8987 done
8988 
8989     else
8990       # If it succeeded, then it was overridden by the user. We will use it
8991       # for the tool.
8992 
8993       # First remove it from the list of overridden variables, so we can test
8994       # for unknown variables in the end.
8995       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8996 
8997       # Check if the provided tool contains a complete path.
8998       tool_specified="$RM"
8999       tool_basename="${tool_specified##*/}"
9000       if test "x$tool_basename" = "x$tool_specified"; then
9001         # A command without a complete path is provided, search $PATH.
9002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9003 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9004         # Extract the first word of "$tool_basename", so it can be a program name with args.
9005 set dummy $tool_basename; ac_word=$2
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9007 $as_echo_n "checking for $ac_word... " >&6; }
9008 if ${ac_cv_path_RM+:} false; then :
9009   $as_echo_n "(cached) " >&6
9010 else
9011   case $RM in
9012   [\\/]* | ?:[\\/]*)
9013   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9014   ;;
9015   *)
9016   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 for as_dir in $PATH
9018 do
9019   IFS=$as_save_IFS
9020   test -z "$as_dir" && as_dir=.
9021     for ac_exec_ext in '' $ac_executable_extensions; do
9022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9023     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9025     break 2
9026   fi
9027 done
9028   done
9029 IFS=$as_save_IFS
9030 
9031   ;;
9032 esac
9033 fi
9034 RM=$ac_cv_path_RM
9035 if test -n "$RM"; then
9036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9037 $as_echo "$RM" >&6; }
9038 else
9039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9040 $as_echo "no" >&6; }
9041 fi
9042 
9043 
9044         if test "x$RM" = x; then
9045           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9046         fi
9047       else
9048         # Otherwise we believe it is a complete path. Use it as it is.
9049         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9050 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9051         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9052 $as_echo_n "checking for RM... " >&6; }
9053         if test ! -x "$tool_specified"; then
9054           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9055 $as_echo "not found" >&6; }
9056           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9057         fi
9058         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9059 $as_echo "$tool_specified" >&6; }
9060       fi
9061     fi
9062   fi
9063 
9064 
9065 
9066   if test "x$RM" = x; then
9067     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9068   fi
9069 
9070 
9071 
9072 
9073 
9074   # Publish this variable in the help.
9075 
9076 
9077   if test "x$SH" = x; then
9078     # The variable is not set by user, try to locate tool using the code snippet
9079     for ac_prog in sh
9080 do
9081   # Extract the first word of "$ac_prog", so it can be a program name with args.
9082 set dummy $ac_prog; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if ${ac_cv_path_SH+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   case $SH in
9089   [\\/]* | ?:[\\/]*)
9090   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9091   ;;
9092   *)
9093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9095 do
9096   IFS=$as_save_IFS
9097   test -z "$as_dir" && as_dir=.
9098     for ac_exec_ext in '' $ac_executable_extensions; do
9099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9100     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102     break 2
9103   fi
9104 done
9105   done
9106 IFS=$as_save_IFS
9107 
9108   ;;
9109 esac
9110 fi
9111 SH=$ac_cv_path_SH
9112 if test -n "$SH"; then
9113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9114 $as_echo "$SH" >&6; }
9115 else
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117 $as_echo "no" >&6; }
9118 fi
9119 
9120 
9121   test -n "$SH" && break
9122 done
9123 
9124   else
9125     # The variable is set, but is it from the command line or the environment?
9126 
9127     # Try to remove the string !SH! from our list.
9128     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9129     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9130       # If it failed, the variable was not from the command line. Ignore it,
9131       # but warn the user (except for BASH, which is always set by the calling BASH).
9132       if test "xSH" != xBASH; then
9133         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9134 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9135       fi
9136       # Try to locate tool using the code snippet
9137       for ac_prog in sh
9138 do
9139   # Extract the first word of "$ac_prog", so it can be a program name with args.
9140 set dummy $ac_prog; ac_word=$2
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9142 $as_echo_n "checking for $ac_word... " >&6; }
9143 if ${ac_cv_path_SH+:} false; then :
9144   $as_echo_n "(cached) " >&6
9145 else
9146   case $SH in
9147   [\\/]* | ?:[\\/]*)
9148   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9149   ;;
9150   *)
9151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9152 for as_dir in $PATH
9153 do
9154   IFS=$as_save_IFS
9155   test -z "$as_dir" && as_dir=.
9156     for ac_exec_ext in '' $ac_executable_extensions; do
9157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9158     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9160     break 2
9161   fi
9162 done
9163   done
9164 IFS=$as_save_IFS
9165 
9166   ;;
9167 esac
9168 fi
9169 SH=$ac_cv_path_SH
9170 if test -n "$SH"; then
9171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9172 $as_echo "$SH" >&6; }
9173 else
9174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 $as_echo "no" >&6; }
9176 fi
9177 
9178 
9179   test -n "$SH" && break
9180 done
9181 
9182     else
9183       # If it succeeded, then it was overridden by the user. We will use it
9184       # for the tool.
9185 
9186       # First remove it from the list of overridden variables, so we can test
9187       # for unknown variables in the end.
9188       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9189 
9190       # Check if the provided tool contains a complete path.
9191       tool_specified="$SH"
9192       tool_basename="${tool_specified##*/}"
9193       if test "x$tool_basename" = "x$tool_specified"; then
9194         # A command without a complete path is provided, search $PATH.
9195         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9196 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9197         # Extract the first word of "$tool_basename", so it can be a program name with args.
9198 set dummy $tool_basename; ac_word=$2
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9200 $as_echo_n "checking for $ac_word... " >&6; }
9201 if ${ac_cv_path_SH+:} false; then :
9202   $as_echo_n "(cached) " >&6
9203 else
9204   case $SH in
9205   [\\/]* | ?:[\\/]*)
9206   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9207   ;;
9208   *)
9209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9210 for as_dir in $PATH
9211 do
9212   IFS=$as_save_IFS
9213   test -z "$as_dir" && as_dir=.
9214     for ac_exec_ext in '' $ac_executable_extensions; do
9215   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9216     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9217     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9218     break 2
9219   fi
9220 done
9221   done
9222 IFS=$as_save_IFS
9223 
9224   ;;
9225 esac
9226 fi
9227 SH=$ac_cv_path_SH
9228 if test -n "$SH"; then
9229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9230 $as_echo "$SH" >&6; }
9231 else
9232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9234 fi
9235 
9236 
9237         if test "x$SH" = x; then
9238           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9239         fi
9240       else
9241         # Otherwise we believe it is a complete path. Use it as it is.
9242         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9243 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9244         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9245 $as_echo_n "checking for SH... " >&6; }
9246         if test ! -x "$tool_specified"; then
9247           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9248 $as_echo "not found" >&6; }
9249           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9250         fi
9251         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9252 $as_echo "$tool_specified" >&6; }
9253       fi
9254     fi
9255   fi
9256 
9257 
9258 
9259   if test "x$SH" = x; then
9260     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9261   fi
9262 
9263 
9264 
9265 
9266 
9267   # Publish this variable in the help.
9268 
9269 
9270   if test "x$SORT" = x; then
9271     # The variable is not set by user, try to locate tool using the code snippet
9272     for ac_prog in sort
9273 do
9274   # Extract the first word of "$ac_prog", so it can be a program name with args.
9275 set dummy $ac_prog; ac_word=$2
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9277 $as_echo_n "checking for $ac_word... " >&6; }
9278 if ${ac_cv_path_SORT+:} false; then :
9279   $as_echo_n "(cached) " >&6
9280 else
9281   case $SORT in
9282   [\\/]* | ?:[\\/]*)
9283   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9284   ;;
9285   *)
9286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 for as_dir in $PATH
9288 do
9289   IFS=$as_save_IFS
9290   test -z "$as_dir" && as_dir=.
9291     for ac_exec_ext in '' $ac_executable_extensions; do
9292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295     break 2
9296   fi
9297 done
9298   done
9299 IFS=$as_save_IFS
9300 
9301   ;;
9302 esac
9303 fi
9304 SORT=$ac_cv_path_SORT
9305 if test -n "$SORT"; then
9306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9307 $as_echo "$SORT" >&6; }
9308 else
9309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9311 fi
9312 
9313 
9314   test -n "$SORT" && break
9315 done
9316 
9317   else
9318     # The variable is set, but is it from the command line or the environment?
9319 
9320     # Try to remove the string !SORT! from our list.
9321     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9322     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9323       # If it failed, the variable was not from the command line. Ignore it,
9324       # but warn the user (except for BASH, which is always set by the calling BASH).
9325       if test "xSORT" != xBASH; then
9326         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9327 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9328       fi
9329       # Try to locate tool using the code snippet
9330       for ac_prog in sort
9331 do
9332   # Extract the first word of "$ac_prog", so it can be a program name with args.
9333 set dummy $ac_prog; ac_word=$2
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9335 $as_echo_n "checking for $ac_word... " >&6; }
9336 if ${ac_cv_path_SORT+:} false; then :
9337   $as_echo_n "(cached) " >&6
9338 else
9339   case $SORT in
9340   [\\/]* | ?:[\\/]*)
9341   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9342   ;;
9343   *)
9344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9345 for as_dir in $PATH
9346 do
9347   IFS=$as_save_IFS
9348   test -z "$as_dir" && as_dir=.
9349     for ac_exec_ext in '' $ac_executable_extensions; do
9350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9351     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9353     break 2
9354   fi
9355 done
9356   done
9357 IFS=$as_save_IFS
9358 
9359   ;;
9360 esac
9361 fi
9362 SORT=$ac_cv_path_SORT
9363 if test -n "$SORT"; then
9364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9365 $as_echo "$SORT" >&6; }
9366 else
9367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9368 $as_echo "no" >&6; }
9369 fi
9370 
9371 
9372   test -n "$SORT" && break
9373 done
9374 
9375     else
9376       # If it succeeded, then it was overridden by the user. We will use it
9377       # for the tool.
9378 
9379       # First remove it from the list of overridden variables, so we can test
9380       # for unknown variables in the end.
9381       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9382 
9383       # Check if the provided tool contains a complete path.
9384       tool_specified="$SORT"
9385       tool_basename="${tool_specified##*/}"
9386       if test "x$tool_basename" = "x$tool_specified"; then
9387         # A command without a complete path is provided, search $PATH.
9388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9389 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9390         # Extract the first word of "$tool_basename", so it can be a program name with args.
9391 set dummy $tool_basename; ac_word=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; }
9394 if ${ac_cv_path_SORT+:} false; then :
9395   $as_echo_n "(cached) " >&6
9396 else
9397   case $SORT in
9398   [\\/]* | ?:[\\/]*)
9399   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9400   ;;
9401   *)
9402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9404 do
9405   IFS=$as_save_IFS
9406   test -z "$as_dir" && as_dir=.
9407     for ac_exec_ext in '' $ac_executable_extensions; do
9408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9409     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9411     break 2
9412   fi
9413 done
9414   done
9415 IFS=$as_save_IFS
9416 
9417   ;;
9418 esac
9419 fi
9420 SORT=$ac_cv_path_SORT
9421 if test -n "$SORT"; then
9422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9423 $as_echo "$SORT" >&6; }
9424 else
9425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9426 $as_echo "no" >&6; }
9427 fi
9428 
9429 
9430         if test "x$SORT" = x; then
9431           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9432         fi
9433       else
9434         # Otherwise we believe it is a complete path. Use it as it is.
9435         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9436 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9438 $as_echo_n "checking for SORT... " >&6; }
9439         if test ! -x "$tool_specified"; then
9440           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9441 $as_echo "not found" >&6; }
9442           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9443         fi
9444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9445 $as_echo "$tool_specified" >&6; }
9446       fi
9447     fi
9448   fi
9449 
9450 
9451 
9452   if test "x$SORT" = x; then
9453     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9454   fi
9455 
9456 
9457 
9458 
9459 
9460   # Publish this variable in the help.
9461 
9462 
9463   if test "x$TAIL" = x; then
9464     # The variable is not set by user, try to locate tool using the code snippet
9465     for ac_prog in tail
9466 do
9467   # Extract the first word of "$ac_prog", so it can be a program name with args.
9468 set dummy $ac_prog; ac_word=$2
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9470 $as_echo_n "checking for $ac_word... " >&6; }
9471 if ${ac_cv_path_TAIL+:} false; then :
9472   $as_echo_n "(cached) " >&6
9473 else
9474   case $TAIL in
9475   [\\/]* | ?:[\\/]*)
9476   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9477   ;;
9478   *)
9479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9480 for as_dir in $PATH
9481 do
9482   IFS=$as_save_IFS
9483   test -z "$as_dir" && as_dir=.
9484     for ac_exec_ext in '' $ac_executable_extensions; do
9485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9486     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9488     break 2
9489   fi
9490 done
9491   done
9492 IFS=$as_save_IFS
9493 
9494   ;;
9495 esac
9496 fi
9497 TAIL=$ac_cv_path_TAIL
9498 if test -n "$TAIL"; then
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9500 $as_echo "$TAIL" >&6; }
9501 else
9502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9503 $as_echo "no" >&6; }
9504 fi
9505 
9506 
9507   test -n "$TAIL" && break
9508 done
9509 
9510   else
9511     # The variable is set, but is it from the command line or the environment?
9512 
9513     # Try to remove the string !TAIL! from our list.
9514     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9515     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9516       # If it failed, the variable was not from the command line. Ignore it,
9517       # but warn the user (except for BASH, which is always set by the calling BASH).
9518       if test "xTAIL" != xBASH; then
9519         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9520 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9521       fi
9522       # Try to locate tool using the code snippet
9523       for ac_prog in tail
9524 do
9525   # Extract the first word of "$ac_prog", so it can be a program name with args.
9526 set dummy $ac_prog; ac_word=$2
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528 $as_echo_n "checking for $ac_word... " >&6; }
9529 if ${ac_cv_path_TAIL+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   case $TAIL in
9533   [\\/]* | ?:[\\/]*)
9534   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9535   ;;
9536   *)
9537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538 for as_dir in $PATH
9539 do
9540   IFS=$as_save_IFS
9541   test -z "$as_dir" && as_dir=.
9542     for ac_exec_ext in '' $ac_executable_extensions; do
9543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9544     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9546     break 2
9547   fi
9548 done
9549   done
9550 IFS=$as_save_IFS
9551 
9552   ;;
9553 esac
9554 fi
9555 TAIL=$ac_cv_path_TAIL
9556 if test -n "$TAIL"; then
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9558 $as_echo "$TAIL" >&6; }
9559 else
9560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9561 $as_echo "no" >&6; }
9562 fi
9563 
9564 
9565   test -n "$TAIL" && break
9566 done
9567 
9568     else
9569       # If it succeeded, then it was overridden by the user. We will use it
9570       # for the tool.
9571 
9572       # First remove it from the list of overridden variables, so we can test
9573       # for unknown variables in the end.
9574       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9575 
9576       # Check if the provided tool contains a complete path.
9577       tool_specified="$TAIL"
9578       tool_basename="${tool_specified##*/}"
9579       if test "x$tool_basename" = "x$tool_specified"; then
9580         # A command without a complete path is provided, search $PATH.
9581         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9582 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9583         # Extract the first word of "$tool_basename", so it can be a program name with args.
9584 set dummy $tool_basename; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_TAIL+:} false; then :
9588   $as_echo_n "(cached) " >&6
9589 else
9590   case $TAIL in
9591   [\\/]* | ?:[\\/]*)
9592   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9593   ;;
9594   *)
9595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9597 do
9598   IFS=$as_save_IFS
9599   test -z "$as_dir" && as_dir=.
9600     for ac_exec_ext in '' $ac_executable_extensions; do
9601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9602     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604     break 2
9605   fi
9606 done
9607   done
9608 IFS=$as_save_IFS
9609 
9610   ;;
9611 esac
9612 fi
9613 TAIL=$ac_cv_path_TAIL
9614 if test -n "$TAIL"; then
9615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9616 $as_echo "$TAIL" >&6; }
9617 else
9618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9620 fi
9621 
9622 
9623         if test "x$TAIL" = x; then
9624           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9625         fi
9626       else
9627         # Otherwise we believe it is a complete path. Use it as it is.
9628         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9629 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9631 $as_echo_n "checking for TAIL... " >&6; }
9632         if test ! -x "$tool_specified"; then
9633           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9634 $as_echo "not found" >&6; }
9635           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9636         fi
9637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9638 $as_echo "$tool_specified" >&6; }
9639       fi
9640     fi
9641   fi
9642 
9643 
9644 
9645   if test "x$TAIL" = x; then
9646     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9647   fi
9648 
9649 
9650 
9651 
9652 
9653   # Publish this variable in the help.
9654 
9655 
9656   if test "x$TAR" = x; then
9657     # The variable is not set by user, try to locate tool using the code snippet
9658     for ac_prog in tar
9659 do
9660   # Extract the first word of "$ac_prog", so it can be a program name with args.
9661 set dummy $ac_prog; ac_word=$2
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9663 $as_echo_n "checking for $ac_word... " >&6; }
9664 if ${ac_cv_path_TAR+:} false; then :
9665   $as_echo_n "(cached) " >&6
9666 else
9667   case $TAR in
9668   [\\/]* | ?:[\\/]*)
9669   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9670   ;;
9671   *)
9672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9673 for as_dir in $PATH
9674 do
9675   IFS=$as_save_IFS
9676   test -z "$as_dir" && as_dir=.
9677     for ac_exec_ext in '' $ac_executable_extensions; do
9678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9679     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9681     break 2
9682   fi
9683 done
9684   done
9685 IFS=$as_save_IFS
9686 
9687   ;;
9688 esac
9689 fi
9690 TAR=$ac_cv_path_TAR
9691 if test -n "$TAR"; then
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9693 $as_echo "$TAR" >&6; }
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9696 $as_echo "no" >&6; }
9697 fi
9698 
9699 
9700   test -n "$TAR" && break
9701 done
9702 
9703   else
9704     # The variable is set, but is it from the command line or the environment?
9705 
9706     # Try to remove the string !TAR! from our list.
9707     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9708     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9709       # If it failed, the variable was not from the command line. Ignore it,
9710       # but warn the user (except for BASH, which is always set by the calling BASH).
9711       if test "xTAR" != xBASH; then
9712         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9713 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9714       fi
9715       # Try to locate tool using the code snippet
9716       for ac_prog in tar
9717 do
9718   # Extract the first word of "$ac_prog", so it can be a program name with args.
9719 set dummy $ac_prog; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_TAR+:} false; then :
9723   $as_echo_n "(cached) " >&6
9724 else
9725   case $TAR in
9726   [\\/]* | ?:[\\/]*)
9727   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9728   ;;
9729   *)
9730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9732 do
9733   IFS=$as_save_IFS
9734   test -z "$as_dir" && as_dir=.
9735     for ac_exec_ext in '' $ac_executable_extensions; do
9736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9737     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739     break 2
9740   fi
9741 done
9742   done
9743 IFS=$as_save_IFS
9744 
9745   ;;
9746 esac
9747 fi
9748 TAR=$ac_cv_path_TAR
9749 if test -n "$TAR"; then
9750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9751 $as_echo "$TAR" >&6; }
9752 else
9753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9755 fi
9756 
9757 
9758   test -n "$TAR" && break
9759 done
9760 
9761     else
9762       # If it succeeded, then it was overridden by the user. We will use it
9763       # for the tool.
9764 
9765       # First remove it from the list of overridden variables, so we can test
9766       # for unknown variables in the end.
9767       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9768 
9769       # Check if the provided tool contains a complete path.
9770       tool_specified="$TAR"
9771       tool_basename="${tool_specified##*/}"
9772       if test "x$tool_basename" = "x$tool_specified"; then
9773         # A command without a complete path is provided, search $PATH.
9774         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9775 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9776         # Extract the first word of "$tool_basename", so it can be a program name with args.
9777 set dummy $tool_basename; ac_word=$2
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779 $as_echo_n "checking for $ac_word... " >&6; }
9780 if ${ac_cv_path_TAR+:} false; then :
9781   $as_echo_n "(cached) " >&6
9782 else
9783   case $TAR in
9784   [\\/]* | ?:[\\/]*)
9785   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9786   ;;
9787   *)
9788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789 for as_dir in $PATH
9790 do
9791   IFS=$as_save_IFS
9792   test -z "$as_dir" && as_dir=.
9793     for ac_exec_ext in '' $ac_executable_extensions; do
9794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9795     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797     break 2
9798   fi
9799 done
9800   done
9801 IFS=$as_save_IFS
9802 
9803   ;;
9804 esac
9805 fi
9806 TAR=$ac_cv_path_TAR
9807 if test -n "$TAR"; then
9808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9809 $as_echo "$TAR" >&6; }
9810 else
9811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812 $as_echo "no" >&6; }
9813 fi
9814 
9815 
9816         if test "x$TAR" = x; then
9817           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9818         fi
9819       else
9820         # Otherwise we believe it is a complete path. Use it as it is.
9821         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9822 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9823         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9824 $as_echo_n "checking for TAR... " >&6; }
9825         if test ! -x "$tool_specified"; then
9826           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9827 $as_echo "not found" >&6; }
9828           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9829         fi
9830         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9831 $as_echo "$tool_specified" >&6; }
9832       fi
9833     fi
9834   fi
9835 
9836 
9837 
9838   if test "x$TAR" = x; then
9839     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9840   fi
9841 
9842 
9843 
9844 
9845 
9846   # Publish this variable in the help.
9847 
9848 
9849   if test "x$TEE" = x; then
9850     # The variable is not set by user, try to locate tool using the code snippet
9851     for ac_prog in tee
9852 do
9853   # Extract the first word of "$ac_prog", so it can be a program name with args.
9854 set dummy $ac_prog; ac_word=$2
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856 $as_echo_n "checking for $ac_word... " >&6; }
9857 if ${ac_cv_path_TEE+:} false; then :
9858   $as_echo_n "(cached) " >&6
9859 else
9860   case $TEE in
9861   [\\/]* | ?:[\\/]*)
9862   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9863   ;;
9864   *)
9865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9866 for as_dir in $PATH
9867 do
9868   IFS=$as_save_IFS
9869   test -z "$as_dir" && as_dir=.
9870     for ac_exec_ext in '' $ac_executable_extensions; do
9871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9872     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9874     break 2
9875   fi
9876 done
9877   done
9878 IFS=$as_save_IFS
9879 
9880   ;;
9881 esac
9882 fi
9883 TEE=$ac_cv_path_TEE
9884 if test -n "$TEE"; then
9885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9886 $as_echo "$TEE" >&6; }
9887 else
9888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9889 $as_echo "no" >&6; }
9890 fi
9891 
9892 
9893   test -n "$TEE" && break
9894 done
9895 
9896   else
9897     # The variable is set, but is it from the command line or the environment?
9898 
9899     # Try to remove the string !TEE! from our list.
9900     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9901     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9902       # If it failed, the variable was not from the command line. Ignore it,
9903       # but warn the user (except for BASH, which is always set by the calling BASH).
9904       if test "xTEE" != xBASH; then
9905         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9906 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9907       fi
9908       # Try to locate tool using the code snippet
9909       for ac_prog in tee
9910 do
9911   # Extract the first word of "$ac_prog", so it can be a program name with args.
9912 set dummy $ac_prog; ac_word=$2
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9914 $as_echo_n "checking for $ac_word... " >&6; }
9915 if ${ac_cv_path_TEE+:} false; then :
9916   $as_echo_n "(cached) " >&6
9917 else
9918   case $TEE in
9919   [\\/]* | ?:[\\/]*)
9920   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9921   ;;
9922   *)
9923   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH
9925 do
9926   IFS=$as_save_IFS
9927   test -z "$as_dir" && as_dir=.
9928     for ac_exec_ext in '' $ac_executable_extensions; do
9929   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9930     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9931     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932     break 2
9933   fi
9934 done
9935   done
9936 IFS=$as_save_IFS
9937 
9938   ;;
9939 esac
9940 fi
9941 TEE=$ac_cv_path_TEE
9942 if test -n "$TEE"; then
9943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9944 $as_echo "$TEE" >&6; }
9945 else
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 fi
9949 
9950 
9951   test -n "$TEE" && break
9952 done
9953 
9954     else
9955       # If it succeeded, then it was overridden by the user. We will use it
9956       # for the tool.
9957 
9958       # First remove it from the list of overridden variables, so we can test
9959       # for unknown variables in the end.
9960       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9961 
9962       # Check if the provided tool contains a complete path.
9963       tool_specified="$TEE"
9964       tool_basename="${tool_specified##*/}"
9965       if test "x$tool_basename" = "x$tool_specified"; then
9966         # A command without a complete path is provided, search $PATH.
9967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9968 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9969         # Extract the first word of "$tool_basename", so it can be a program name with args.
9970 set dummy $tool_basename; ac_word=$2
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972 $as_echo_n "checking for $ac_word... " >&6; }
9973 if ${ac_cv_path_TEE+:} false; then :
9974   $as_echo_n "(cached) " >&6
9975 else
9976   case $TEE in
9977   [\\/]* | ?:[\\/]*)
9978   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9979   ;;
9980   *)
9981   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9983 do
9984   IFS=$as_save_IFS
9985   test -z "$as_dir" && as_dir=.
9986     for ac_exec_ext in '' $ac_executable_extensions; do
9987   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9988     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9989     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990     break 2
9991   fi
9992 done
9993   done
9994 IFS=$as_save_IFS
9995 
9996   ;;
9997 esac
9998 fi
9999 TEE=$ac_cv_path_TEE
10000 if test -n "$TEE"; then
10001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10002 $as_echo "$TEE" >&6; }
10003 else
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005 $as_echo "no" >&6; }
10006 fi
10007 
10008 
10009         if test "x$TEE" = x; then
10010           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10011         fi
10012       else
10013         # Otherwise we believe it is a complete path. Use it as it is.
10014         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10015 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10016         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10017 $as_echo_n "checking for TEE... " >&6; }
10018         if test ! -x "$tool_specified"; then
10019           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10020 $as_echo "not found" >&6; }
10021           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10022         fi
10023         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10024 $as_echo "$tool_specified" >&6; }
10025       fi
10026     fi
10027   fi
10028 
10029 
10030 
10031   if test "x$TEE" = x; then
10032     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10033   fi
10034 
10035 
10036 
10037 
10038 
10039   # Publish this variable in the help.
10040 
10041 
10042   if test "x$TOUCH" = x; then
10043     # The variable is not set by user, try to locate tool using the code snippet
10044     for ac_prog in touch
10045 do
10046   # Extract the first word of "$ac_prog", so it can be a program name with args.
10047 set dummy $ac_prog; ac_word=$2
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10049 $as_echo_n "checking for $ac_word... " >&6; }
10050 if ${ac_cv_path_TOUCH+:} false; then :
10051   $as_echo_n "(cached) " >&6
10052 else
10053   case $TOUCH in
10054   [\\/]* | ?:[\\/]*)
10055   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10056   ;;
10057   *)
10058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059 for as_dir in $PATH
10060 do
10061   IFS=$as_save_IFS
10062   test -z "$as_dir" && as_dir=.
10063     for ac_exec_ext in '' $ac_executable_extensions; do
10064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10065     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067     break 2
10068   fi
10069 done
10070   done
10071 IFS=$as_save_IFS
10072 
10073   ;;
10074 esac
10075 fi
10076 TOUCH=$ac_cv_path_TOUCH
10077 if test -n "$TOUCH"; then
10078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10079 $as_echo "$TOUCH" >&6; }
10080 else
10081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082 $as_echo "no" >&6; }
10083 fi
10084 
10085 
10086   test -n "$TOUCH" && break
10087 done
10088 
10089   else
10090     # The variable is set, but is it from the command line or the environment?
10091 
10092     # Try to remove the string !TOUCH! from our list.
10093     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10094     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10095       # If it failed, the variable was not from the command line. Ignore it,
10096       # but warn the user (except for BASH, which is always set by the calling BASH).
10097       if test "xTOUCH" != xBASH; then
10098         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10099 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10100       fi
10101       # Try to locate tool using the code snippet
10102       for ac_prog in touch
10103 do
10104   # Extract the first word of "$ac_prog", so it can be a program name with args.
10105 set dummy $ac_prog; ac_word=$2
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107 $as_echo_n "checking for $ac_word... " >&6; }
10108 if ${ac_cv_path_TOUCH+:} false; then :
10109   $as_echo_n "(cached) " >&6
10110 else
10111   case $TOUCH in
10112   [\\/]* | ?:[\\/]*)
10113   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10114   ;;
10115   *)
10116   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10117 for as_dir in $PATH
10118 do
10119   IFS=$as_save_IFS
10120   test -z "$as_dir" && as_dir=.
10121     for ac_exec_ext in '' $ac_executable_extensions; do
10122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10123     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10125     break 2
10126   fi
10127 done
10128   done
10129 IFS=$as_save_IFS
10130 
10131   ;;
10132 esac
10133 fi
10134 TOUCH=$ac_cv_path_TOUCH
10135 if test -n "$TOUCH"; then
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10137 $as_echo "$TOUCH" >&6; }
10138 else
10139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10141 fi
10142 
10143 
10144   test -n "$TOUCH" && break
10145 done
10146 
10147     else
10148       # If it succeeded, then it was overridden by the user. We will use it
10149       # for the tool.
10150 
10151       # First remove it from the list of overridden variables, so we can test
10152       # for unknown variables in the end.
10153       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10154 
10155       # Check if the provided tool contains a complete path.
10156       tool_specified="$TOUCH"
10157       tool_basename="${tool_specified##*/}"
10158       if test "x$tool_basename" = "x$tool_specified"; then
10159         # A command without a complete path is provided, search $PATH.
10160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10161 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10162         # Extract the first word of "$tool_basename", so it can be a program name with args.
10163 set dummy $tool_basename; ac_word=$2
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10165 $as_echo_n "checking for $ac_word... " >&6; }
10166 if ${ac_cv_path_TOUCH+:} false; then :
10167   $as_echo_n "(cached) " >&6
10168 else
10169   case $TOUCH in
10170   [\\/]* | ?:[\\/]*)
10171   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10172   ;;
10173   *)
10174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175 for as_dir in $PATH
10176 do
10177   IFS=$as_save_IFS
10178   test -z "$as_dir" && as_dir=.
10179     for ac_exec_ext in '' $ac_executable_extensions; do
10180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10181     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183     break 2
10184   fi
10185 done
10186   done
10187 IFS=$as_save_IFS
10188 
10189   ;;
10190 esac
10191 fi
10192 TOUCH=$ac_cv_path_TOUCH
10193 if test -n "$TOUCH"; then
10194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10195 $as_echo "$TOUCH" >&6; }
10196 else
10197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10198 $as_echo "no" >&6; }
10199 fi
10200 
10201 
10202         if test "x$TOUCH" = x; then
10203           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10204         fi
10205       else
10206         # Otherwise we believe it is a complete path. Use it as it is.
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10208 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10209         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10210 $as_echo_n "checking for TOUCH... " >&6; }
10211         if test ! -x "$tool_specified"; then
10212           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10213 $as_echo "not found" >&6; }
10214           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10215         fi
10216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10217 $as_echo "$tool_specified" >&6; }
10218       fi
10219     fi
10220   fi
10221 
10222 
10223 
10224   if test "x$TOUCH" = x; then
10225     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10226   fi
10227 
10228 
10229 
10230 
10231 
10232   # Publish this variable in the help.
10233 
10234 
10235   if test "x$TR" = x; then
10236     # The variable is not set by user, try to locate tool using the code snippet
10237     for ac_prog in tr
10238 do
10239   # Extract the first word of "$ac_prog", so it can be a program name with args.
10240 set dummy $ac_prog; ac_word=$2
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242 $as_echo_n "checking for $ac_word... " >&6; }
10243 if ${ac_cv_path_TR+:} false; then :
10244   $as_echo_n "(cached) " >&6
10245 else
10246   case $TR in
10247   [\\/]* | ?:[\\/]*)
10248   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10249   ;;
10250   *)
10251   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10253 do
10254   IFS=$as_save_IFS
10255   test -z "$as_dir" && as_dir=.
10256     for ac_exec_ext in '' $ac_executable_extensions; do
10257   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10258     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10260     break 2
10261   fi
10262 done
10263   done
10264 IFS=$as_save_IFS
10265 
10266   ;;
10267 esac
10268 fi
10269 TR=$ac_cv_path_TR
10270 if test -n "$TR"; then
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10272 $as_echo "$TR" >&6; }
10273 else
10274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10276 fi
10277 
10278 
10279   test -n "$TR" && break
10280 done
10281 
10282   else
10283     # The variable is set, but is it from the command line or the environment?
10284 
10285     # Try to remove the string !TR! from our list.
10286     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10287     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10288       # If it failed, the variable was not from the command line. Ignore it,
10289       # but warn the user (except for BASH, which is always set by the calling BASH).
10290       if test "xTR" != xBASH; then
10291         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10292 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10293       fi
10294       # Try to locate tool using the code snippet
10295       for ac_prog in tr
10296 do
10297   # Extract the first word of "$ac_prog", so it can be a program name with args.
10298 set dummy $ac_prog; ac_word=$2
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10300 $as_echo_n "checking for $ac_word... " >&6; }
10301 if ${ac_cv_path_TR+:} false; then :
10302   $as_echo_n "(cached) " >&6
10303 else
10304   case $TR in
10305   [\\/]* | ?:[\\/]*)
10306   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10307   ;;
10308   *)
10309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10310 for as_dir in $PATH
10311 do
10312   IFS=$as_save_IFS
10313   test -z "$as_dir" && as_dir=.
10314     for ac_exec_ext in '' $ac_executable_extensions; do
10315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10316     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318     break 2
10319   fi
10320 done
10321   done
10322 IFS=$as_save_IFS
10323 
10324   ;;
10325 esac
10326 fi
10327 TR=$ac_cv_path_TR
10328 if test -n "$TR"; then
10329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10330 $as_echo "$TR" >&6; }
10331 else
10332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10333 $as_echo "no" >&6; }
10334 fi
10335 
10336 
10337   test -n "$TR" && break
10338 done
10339 
10340     else
10341       # If it succeeded, then it was overridden by the user. We will use it
10342       # for the tool.
10343 
10344       # First remove it from the list of overridden variables, so we can test
10345       # for unknown variables in the end.
10346       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10347 
10348       # Check if the provided tool contains a complete path.
10349       tool_specified="$TR"
10350       tool_basename="${tool_specified##*/}"
10351       if test "x$tool_basename" = "x$tool_specified"; then
10352         # A command without a complete path is provided, search $PATH.
10353         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10354 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10355         # Extract the first word of "$tool_basename", so it can be a program name with args.
10356 set dummy $tool_basename; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10358 $as_echo_n "checking for $ac_word... " >&6; }
10359 if ${ac_cv_path_TR+:} false; then :
10360   $as_echo_n "(cached) " >&6
10361 else
10362   case $TR in
10363   [\\/]* | ?:[\\/]*)
10364   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10365   ;;
10366   *)
10367   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368 for as_dir in $PATH
10369 do
10370   IFS=$as_save_IFS
10371   test -z "$as_dir" && as_dir=.
10372     for ac_exec_ext in '' $ac_executable_extensions; do
10373   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10374     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10376     break 2
10377   fi
10378 done
10379   done
10380 IFS=$as_save_IFS
10381 
10382   ;;
10383 esac
10384 fi
10385 TR=$ac_cv_path_TR
10386 if test -n "$TR"; then
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10388 $as_echo "$TR" >&6; }
10389 else
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393 
10394 
10395         if test "x$TR" = x; then
10396           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10397         fi
10398       else
10399         # Otherwise we believe it is a complete path. Use it as it is.
10400         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10401 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10402         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10403 $as_echo_n "checking for TR... " >&6; }
10404         if test ! -x "$tool_specified"; then
10405           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10406 $as_echo "not found" >&6; }
10407           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10408         fi
10409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10410 $as_echo "$tool_specified" >&6; }
10411       fi
10412     fi
10413   fi
10414 
10415 
10416 
10417   if test "x$TR" = x; then
10418     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10419   fi
10420 
10421 
10422 
10423 
10424 
10425   # Publish this variable in the help.
10426 
10427 
10428   if test "x$UNAME" = x; then
10429     # The variable is not set by user, try to locate tool using the code snippet
10430     for ac_prog in uname
10431 do
10432   # Extract the first word of "$ac_prog", so it can be a program name with args.
10433 set dummy $ac_prog; ac_word=$2
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435 $as_echo_n "checking for $ac_word... " >&6; }
10436 if ${ac_cv_path_UNAME+:} false; then :
10437   $as_echo_n "(cached) " >&6
10438 else
10439   case $UNAME in
10440   [\\/]* | ?:[\\/]*)
10441   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10442   ;;
10443   *)
10444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10445 for as_dir in $PATH
10446 do
10447   IFS=$as_save_IFS
10448   test -z "$as_dir" && as_dir=.
10449     for ac_exec_ext in '' $ac_executable_extensions; do
10450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10451     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10453     break 2
10454   fi
10455 done
10456   done
10457 IFS=$as_save_IFS
10458 
10459   ;;
10460 esac
10461 fi
10462 UNAME=$ac_cv_path_UNAME
10463 if test -n "$UNAME"; then
10464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10465 $as_echo "$UNAME" >&6; }
10466 else
10467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10468 $as_echo "no" >&6; }
10469 fi
10470 
10471 
10472   test -n "$UNAME" && break
10473 done
10474 
10475   else
10476     # The variable is set, but is it from the command line or the environment?
10477 
10478     # Try to remove the string !UNAME! from our list.
10479     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10480     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10481       # If it failed, the variable was not from the command line. Ignore it,
10482       # but warn the user (except for BASH, which is always set by the calling BASH).
10483       if test "xUNAME" != xBASH; then
10484         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10485 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10486       fi
10487       # Try to locate tool using the code snippet
10488       for ac_prog in uname
10489 do
10490   # Extract the first word of "$ac_prog", so it can be a program name with args.
10491 set dummy $ac_prog; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_path_UNAME+:} false; then :
10495   $as_echo_n "(cached) " >&6
10496 else
10497   case $UNAME in
10498   [\\/]* | ?:[\\/]*)
10499   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10500   ;;
10501   *)
10502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10503 for as_dir in $PATH
10504 do
10505   IFS=$as_save_IFS
10506   test -z "$as_dir" && as_dir=.
10507     for ac_exec_ext in '' $ac_executable_extensions; do
10508   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10509     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10511     break 2
10512   fi
10513 done
10514   done
10515 IFS=$as_save_IFS
10516 
10517   ;;
10518 esac
10519 fi
10520 UNAME=$ac_cv_path_UNAME
10521 if test -n "$UNAME"; then
10522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10523 $as_echo "$UNAME" >&6; }
10524 else
10525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10526 $as_echo "no" >&6; }
10527 fi
10528 
10529 
10530   test -n "$UNAME" && break
10531 done
10532 
10533     else
10534       # If it succeeded, then it was overridden by the user. We will use it
10535       # for the tool.
10536 
10537       # First remove it from the list of overridden variables, so we can test
10538       # for unknown variables in the end.
10539       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10540 
10541       # Check if the provided tool contains a complete path.
10542       tool_specified="$UNAME"
10543       tool_basename="${tool_specified##*/}"
10544       if test "x$tool_basename" = "x$tool_specified"; then
10545         # A command without a complete path is provided, search $PATH.
10546         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10547 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10548         # Extract the first word of "$tool_basename", so it can be a program name with args.
10549 set dummy $tool_basename; ac_word=$2
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551 $as_echo_n "checking for $ac_word... " >&6; }
10552 if ${ac_cv_path_UNAME+:} false; then :
10553   $as_echo_n "(cached) " >&6
10554 else
10555   case $UNAME in
10556   [\\/]* | ?:[\\/]*)
10557   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10558   ;;
10559   *)
10560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561 for as_dir in $PATH
10562 do
10563   IFS=$as_save_IFS
10564   test -z "$as_dir" && as_dir=.
10565     for ac_exec_ext in '' $ac_executable_extensions; do
10566   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10568     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569     break 2
10570   fi
10571 done
10572   done
10573 IFS=$as_save_IFS
10574 
10575   ;;
10576 esac
10577 fi
10578 UNAME=$ac_cv_path_UNAME
10579 if test -n "$UNAME"; then
10580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10581 $as_echo "$UNAME" >&6; }
10582 else
10583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10584 $as_echo "no" >&6; }
10585 fi
10586 
10587 
10588         if test "x$UNAME" = x; then
10589           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10590         fi
10591       else
10592         # Otherwise we believe it is a complete path. Use it as it is.
10593         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10594 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10595         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10596 $as_echo_n "checking for UNAME... " >&6; }
10597         if test ! -x "$tool_specified"; then
10598           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10599 $as_echo "not found" >&6; }
10600           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10601         fi
10602         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10603 $as_echo "$tool_specified" >&6; }
10604       fi
10605     fi
10606   fi
10607 
10608 
10609 
10610   if test "x$UNAME" = x; then
10611     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10612   fi
10613 
10614 
10615 
10616 
10617 
10618   # Publish this variable in the help.
10619 
10620 
10621   if test "x$UNIQ" = x; then
10622     # The variable is not set by user, try to locate tool using the code snippet
10623     for ac_prog in uniq
10624 do
10625   # Extract the first word of "$ac_prog", so it can be a program name with args.
10626 set dummy $ac_prog; ac_word=$2
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10628 $as_echo_n "checking for $ac_word... " >&6; }
10629 if ${ac_cv_path_UNIQ+:} false; then :
10630   $as_echo_n "(cached) " >&6
10631 else
10632   case $UNIQ in
10633   [\\/]* | ?:[\\/]*)
10634   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10635   ;;
10636   *)
10637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10638 for as_dir in $PATH
10639 do
10640   IFS=$as_save_IFS
10641   test -z "$as_dir" && as_dir=.
10642     for ac_exec_ext in '' $ac_executable_extensions; do
10643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10644     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10646     break 2
10647   fi
10648 done
10649   done
10650 IFS=$as_save_IFS
10651 
10652   ;;
10653 esac
10654 fi
10655 UNIQ=$ac_cv_path_UNIQ
10656 if test -n "$UNIQ"; then
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10658 $as_echo "$UNIQ" >&6; }
10659 else
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 fi
10663 
10664 
10665   test -n "$UNIQ" && break
10666 done
10667 
10668   else
10669     # The variable is set, but is it from the command line or the environment?
10670 
10671     # Try to remove the string !UNIQ! from our list.
10672     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10673     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10674       # If it failed, the variable was not from the command line. Ignore it,
10675       # but warn the user (except for BASH, which is always set by the calling BASH).
10676       if test "xUNIQ" != xBASH; then
10677         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10678 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10679       fi
10680       # Try to locate tool using the code snippet
10681       for ac_prog in uniq
10682 do
10683   # Extract the first word of "$ac_prog", so it can be a program name with args.
10684 set dummy $ac_prog; ac_word=$2
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10686 $as_echo_n "checking for $ac_word... " >&6; }
10687 if ${ac_cv_path_UNIQ+:} false; then :
10688   $as_echo_n "(cached) " >&6
10689 else
10690   case $UNIQ in
10691   [\\/]* | ?:[\\/]*)
10692   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10693   ;;
10694   *)
10695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10696 for as_dir in $PATH
10697 do
10698   IFS=$as_save_IFS
10699   test -z "$as_dir" && as_dir=.
10700     for ac_exec_ext in '' $ac_executable_extensions; do
10701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10702     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10704     break 2
10705   fi
10706 done
10707   done
10708 IFS=$as_save_IFS
10709 
10710   ;;
10711 esac
10712 fi
10713 UNIQ=$ac_cv_path_UNIQ
10714 if test -n "$UNIQ"; then
10715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10716 $as_echo "$UNIQ" >&6; }
10717 else
10718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10719 $as_echo "no" >&6; }
10720 fi
10721 
10722 
10723   test -n "$UNIQ" && break
10724 done
10725 
10726     else
10727       # If it succeeded, then it was overridden by the user. We will use it
10728       # for the tool.
10729 
10730       # First remove it from the list of overridden variables, so we can test
10731       # for unknown variables in the end.
10732       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10733 
10734       # Check if the provided tool contains a complete path.
10735       tool_specified="$UNIQ"
10736       tool_basename="${tool_specified##*/}"
10737       if test "x$tool_basename" = "x$tool_specified"; then
10738         # A command without a complete path is provided, search $PATH.
10739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10740 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10741         # Extract the first word of "$tool_basename", so it can be a program name with args.
10742 set dummy $tool_basename; ac_word=$2
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744 $as_echo_n "checking for $ac_word... " >&6; }
10745 if ${ac_cv_path_UNIQ+:} false; then :
10746   $as_echo_n "(cached) " >&6
10747 else
10748   case $UNIQ in
10749   [\\/]* | ?:[\\/]*)
10750   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10751   ;;
10752   *)
10753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754 for as_dir in $PATH
10755 do
10756   IFS=$as_save_IFS
10757   test -z "$as_dir" && as_dir=.
10758     for ac_exec_ext in '' $ac_executable_extensions; do
10759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10760     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10762     break 2
10763   fi
10764 done
10765   done
10766 IFS=$as_save_IFS
10767 
10768   ;;
10769 esac
10770 fi
10771 UNIQ=$ac_cv_path_UNIQ
10772 if test -n "$UNIQ"; then
10773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10774 $as_echo "$UNIQ" >&6; }
10775 else
10776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 fi
10779 
10780 
10781         if test "x$UNIQ" = x; then
10782           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10783         fi
10784       else
10785         # Otherwise we believe it is a complete path. Use it as it is.
10786         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10787 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10789 $as_echo_n "checking for UNIQ... " >&6; }
10790         if test ! -x "$tool_specified"; then
10791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10792 $as_echo "not found" >&6; }
10793           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10794         fi
10795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10796 $as_echo "$tool_specified" >&6; }
10797       fi
10798     fi
10799   fi
10800 
10801 
10802 
10803   if test "x$UNIQ" = x; then
10804     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10805   fi
10806 
10807 
10808 
10809 
10810 
10811   # Publish this variable in the help.
10812 
10813 
10814   if test "x$WC" = x; then
10815     # The variable is not set by user, try to locate tool using the code snippet
10816     for ac_prog in wc
10817 do
10818   # Extract the first word of "$ac_prog", so it can be a program name with args.
10819 set dummy $ac_prog; ac_word=$2
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10821 $as_echo_n "checking for $ac_word... " >&6; }
10822 if ${ac_cv_path_WC+:} false; then :
10823   $as_echo_n "(cached) " >&6
10824 else
10825   case $WC in
10826   [\\/]* | ?:[\\/]*)
10827   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10828   ;;
10829   *)
10830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH
10832 do
10833   IFS=$as_save_IFS
10834   test -z "$as_dir" && as_dir=.
10835     for ac_exec_ext in '' $ac_executable_extensions; do
10836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10837     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10839     break 2
10840   fi
10841 done
10842   done
10843 IFS=$as_save_IFS
10844 
10845   ;;
10846 esac
10847 fi
10848 WC=$ac_cv_path_WC
10849 if test -n "$WC"; then
10850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10851 $as_echo "$WC" >&6; }
10852 else
10853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }
10855 fi
10856 
10857 
10858   test -n "$WC" && break
10859 done
10860 
10861   else
10862     # The variable is set, but is it from the command line or the environment?
10863 
10864     # Try to remove the string !WC! from our list.
10865     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10866     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10867       # If it failed, the variable was not from the command line. Ignore it,
10868       # but warn the user (except for BASH, which is always set by the calling BASH).
10869       if test "xWC" != xBASH; then
10870         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10871 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10872       fi
10873       # Try to locate tool using the code snippet
10874       for ac_prog in wc
10875 do
10876   # Extract the first word of "$ac_prog", so it can be a program name with args.
10877 set dummy $ac_prog; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879 $as_echo_n "checking for $ac_word... " >&6; }
10880 if ${ac_cv_path_WC+:} false; then :
10881   $as_echo_n "(cached) " >&6
10882 else
10883   case $WC in
10884   [\\/]* | ?:[\\/]*)
10885   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10886   ;;
10887   *)
10888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889 for as_dir in $PATH
10890 do
10891   IFS=$as_save_IFS
10892   test -z "$as_dir" && as_dir=.
10893     for ac_exec_ext in '' $ac_executable_extensions; do
10894   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10895     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10896     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10897     break 2
10898   fi
10899 done
10900   done
10901 IFS=$as_save_IFS
10902 
10903   ;;
10904 esac
10905 fi
10906 WC=$ac_cv_path_WC
10907 if test -n "$WC"; then
10908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10909 $as_echo "$WC" >&6; }
10910 else
10911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10912 $as_echo "no" >&6; }
10913 fi
10914 
10915 
10916   test -n "$WC" && break
10917 done
10918 
10919     else
10920       # If it succeeded, then it was overridden by the user. We will use it
10921       # for the tool.
10922 
10923       # First remove it from the list of overridden variables, so we can test
10924       # for unknown variables in the end.
10925       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10926 
10927       # Check if the provided tool contains a complete path.
10928       tool_specified="$WC"
10929       tool_basename="${tool_specified##*/}"
10930       if test "x$tool_basename" = "x$tool_specified"; then
10931         # A command without a complete path is provided, search $PATH.
10932         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10933 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10934         # Extract the first word of "$tool_basename", so it can be a program name with args.
10935 set dummy $tool_basename; ac_word=$2
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937 $as_echo_n "checking for $ac_word... " >&6; }
10938 if ${ac_cv_path_WC+:} false; then :
10939   $as_echo_n "(cached) " >&6
10940 else
10941   case $WC in
10942   [\\/]* | ?:[\\/]*)
10943   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10944   ;;
10945   *)
10946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10947 for as_dir in $PATH
10948 do
10949   IFS=$as_save_IFS
10950   test -z "$as_dir" && as_dir=.
10951     for ac_exec_ext in '' $ac_executable_extensions; do
10952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10953     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955     break 2
10956   fi
10957 done
10958   done
10959 IFS=$as_save_IFS
10960 
10961   ;;
10962 esac
10963 fi
10964 WC=$ac_cv_path_WC
10965 if test -n "$WC"; then
10966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10967 $as_echo "$WC" >&6; }
10968 else
10969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10970 $as_echo "no" >&6; }
10971 fi
10972 
10973 
10974         if test "x$WC" = x; then
10975           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10976         fi
10977       else
10978         # Otherwise we believe it is a complete path. Use it as it is.
10979         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10980 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10982 $as_echo_n "checking for WC... " >&6; }
10983         if test ! -x "$tool_specified"; then
10984           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10985 $as_echo "not found" >&6; }
10986           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10987         fi
10988         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10989 $as_echo "$tool_specified" >&6; }
10990       fi
10991     fi
10992   fi
10993 
10994 
10995 
10996   if test "x$WC" = x; then
10997     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10998   fi
10999 
11000 
11001 
11002 
11003 
11004   # Publish this variable in the help.
11005 
11006 
11007   if test "x$WHICH" = x; then
11008     # The variable is not set by user, try to locate tool using the code snippet
11009     for ac_prog in which
11010 do
11011   # Extract the first word of "$ac_prog", so it can be a program name with args.
11012 set dummy $ac_prog; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_path_WHICH+:} false; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   case $WHICH in
11019   [\\/]* | ?:[\\/]*)
11020   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11021   ;;
11022   *)
11023   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11024 for as_dir in $PATH
11025 do
11026   IFS=$as_save_IFS
11027   test -z "$as_dir" && as_dir=.
11028     for ac_exec_ext in '' $ac_executable_extensions; do
11029   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11030     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11031     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11032     break 2
11033   fi
11034 done
11035   done
11036 IFS=$as_save_IFS
11037 
11038   ;;
11039 esac
11040 fi
11041 WHICH=$ac_cv_path_WHICH
11042 if test -n "$WHICH"; then
11043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11044 $as_echo "$WHICH" >&6; }
11045 else
11046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048 fi
11049 
11050 
11051   test -n "$WHICH" && break
11052 done
11053 
11054   else
11055     # The variable is set, but is it from the command line or the environment?
11056 
11057     # Try to remove the string !WHICH! from our list.
11058     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11059     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11060       # If it failed, the variable was not from the command line. Ignore it,
11061       # but warn the user (except for BASH, which is always set by the calling BASH).
11062       if test "xWHICH" != xBASH; then
11063         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11064 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11065       fi
11066       # Try to locate tool using the code snippet
11067       for ac_prog in which
11068 do
11069   # Extract the first word of "$ac_prog", so it can be a program name with args.
11070 set dummy $ac_prog; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_path_WHICH+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   case $WHICH in
11077   [\\/]* | ?:[\\/]*)
11078   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11079   ;;
11080   *)
11081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11083 do
11084   IFS=$as_save_IFS
11085   test -z "$as_dir" && as_dir=.
11086     for ac_exec_ext in '' $ac_executable_extensions; do
11087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11090     break 2
11091   fi
11092 done
11093   done
11094 IFS=$as_save_IFS
11095 
11096   ;;
11097 esac
11098 fi
11099 WHICH=$ac_cv_path_WHICH
11100 if test -n "$WHICH"; then
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11102 $as_echo "$WHICH" >&6; }
11103 else
11104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11105 $as_echo "no" >&6; }
11106 fi
11107 
11108 
11109   test -n "$WHICH" && break
11110 done
11111 
11112     else
11113       # If it succeeded, then it was overridden by the user. We will use it
11114       # for the tool.
11115 
11116       # First remove it from the list of overridden variables, so we can test
11117       # for unknown variables in the end.
11118       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11119 
11120       # Check if the provided tool contains a complete path.
11121       tool_specified="$WHICH"
11122       tool_basename="${tool_specified##*/}"
11123       if test "x$tool_basename" = "x$tool_specified"; then
11124         # A command without a complete path is provided, search $PATH.
11125         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11126 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11127         # Extract the first word of "$tool_basename", so it can be a program name with args.
11128 set dummy $tool_basename; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_path_WHICH+:} false; then :
11132   $as_echo_n "(cached) " >&6
11133 else
11134   case $WHICH in
11135   [\\/]* | ?:[\\/]*)
11136   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11137   ;;
11138   *)
11139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11141 do
11142   IFS=$as_save_IFS
11143   test -z "$as_dir" && as_dir=.
11144     for ac_exec_ext in '' $ac_executable_extensions; do
11145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11148     break 2
11149   fi
11150 done
11151   done
11152 IFS=$as_save_IFS
11153 
11154   ;;
11155 esac
11156 fi
11157 WHICH=$ac_cv_path_WHICH
11158 if test -n "$WHICH"; then
11159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11160 $as_echo "$WHICH" >&6; }
11161 else
11162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11164 fi
11165 
11166 
11167         if test "x$WHICH" = x; then
11168           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11169         fi
11170       else
11171         # Otherwise we believe it is a complete path. Use it as it is.
11172         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11173 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11174         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11175 $as_echo_n "checking for WHICH... " >&6; }
11176         if test ! -x "$tool_specified"; then
11177           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11178 $as_echo "not found" >&6; }
11179           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11180         fi
11181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11182 $as_echo "$tool_specified" >&6; }
11183       fi
11184     fi
11185   fi
11186 
11187 
11188 
11189   if test "x$WHICH" = x; then
11190     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11191   fi
11192 
11193 
11194 
11195 
11196 
11197   # Publish this variable in the help.
11198 
11199 
11200   if test "x$XARGS" = x; then
11201     # The variable is not set by user, try to locate tool using the code snippet
11202     for ac_prog in xargs
11203 do
11204   # Extract the first word of "$ac_prog", so it can be a program name with args.
11205 set dummy $ac_prog; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207 $as_echo_n "checking for $ac_word... " >&6; }
11208 if ${ac_cv_path_XARGS+:} false; then :
11209   $as_echo_n "(cached) " >&6
11210 else
11211   case $XARGS in
11212   [\\/]* | ?:[\\/]*)
11213   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11214   ;;
11215   *)
11216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217 for as_dir in $PATH
11218 do
11219   IFS=$as_save_IFS
11220   test -z "$as_dir" && as_dir=.
11221     for ac_exec_ext in '' $ac_executable_extensions; do
11222   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11225     break 2
11226   fi
11227 done
11228   done
11229 IFS=$as_save_IFS
11230 
11231   ;;
11232 esac
11233 fi
11234 XARGS=$ac_cv_path_XARGS
11235 if test -n "$XARGS"; then
11236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11237 $as_echo "$XARGS" >&6; }
11238 else
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11240 $as_echo "no" >&6; }
11241 fi
11242 
11243 
11244   test -n "$XARGS" && break
11245 done
11246 
11247   else
11248     # The variable is set, but is it from the command line or the environment?
11249 
11250     # Try to remove the string !XARGS! from our list.
11251     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11252     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11253       # If it failed, the variable was not from the command line. Ignore it,
11254       # but warn the user (except for BASH, which is always set by the calling BASH).
11255       if test "xXARGS" != xBASH; then
11256         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11257 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11258       fi
11259       # Try to locate tool using the code snippet
11260       for ac_prog in xargs
11261 do
11262   # Extract the first word of "$ac_prog", so it can be a program name with args.
11263 set dummy $ac_prog; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265 $as_echo_n "checking for $ac_word... " >&6; }
11266 if ${ac_cv_path_XARGS+:} false; then :
11267   $as_echo_n "(cached) " >&6
11268 else
11269   case $XARGS in
11270   [\\/]* | ?:[\\/]*)
11271   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11272   ;;
11273   *)
11274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11276 do
11277   IFS=$as_save_IFS
11278   test -z "$as_dir" && as_dir=.
11279     for ac_exec_ext in '' $ac_executable_extensions; do
11280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11281     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11283     break 2
11284   fi
11285 done
11286   done
11287 IFS=$as_save_IFS
11288 
11289   ;;
11290 esac
11291 fi
11292 XARGS=$ac_cv_path_XARGS
11293 if test -n "$XARGS"; then
11294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11295 $as_echo "$XARGS" >&6; }
11296 else
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298 $as_echo "no" >&6; }
11299 fi
11300 
11301 
11302   test -n "$XARGS" && break
11303 done
11304 
11305     else
11306       # If it succeeded, then it was overridden by the user. We will use it
11307       # for the tool.
11308 
11309       # First remove it from the list of overridden variables, so we can test
11310       # for unknown variables in the end.
11311       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11312 
11313       # Check if the provided tool contains a complete path.
11314       tool_specified="$XARGS"
11315       tool_basename="${tool_specified##*/}"
11316       if test "x$tool_basename" = "x$tool_specified"; then
11317         # A command without a complete path is provided, search $PATH.
11318         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11319 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11320         # Extract the first word of "$tool_basename", so it can be a program name with args.
11321 set dummy $tool_basename; ac_word=$2
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323 $as_echo_n "checking for $ac_word... " >&6; }
11324 if ${ac_cv_path_XARGS+:} false; then :
11325   $as_echo_n "(cached) " >&6
11326 else
11327   case $XARGS in
11328   [\\/]* | ?:[\\/]*)
11329   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11330   ;;
11331   *)
11332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333 for as_dir in $PATH
11334 do
11335   IFS=$as_save_IFS
11336   test -z "$as_dir" && as_dir=.
11337     for ac_exec_ext in '' $ac_executable_extensions; do
11338   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11339     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341     break 2
11342   fi
11343 done
11344   done
11345 IFS=$as_save_IFS
11346 
11347   ;;
11348 esac
11349 fi
11350 XARGS=$ac_cv_path_XARGS
11351 if test -n "$XARGS"; then
11352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11353 $as_echo "$XARGS" >&6; }
11354 else
11355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11357 fi
11358 
11359 
11360         if test "x$XARGS" = x; then
11361           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11362         fi
11363       else
11364         # Otherwise we believe it is a complete path. Use it as it is.
11365         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11366 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11367         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11368 $as_echo_n "checking for XARGS... " >&6; }
11369         if test ! -x "$tool_specified"; then
11370           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11371 $as_echo "not found" >&6; }
11372           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11373         fi
11374         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11375 $as_echo "$tool_specified" >&6; }
11376       fi
11377     fi
11378   fi
11379 
11380 
11381 
11382   if test "x$XARGS" = x; then
11383     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11384   fi
11385 
11386 
11387 
11388   # Then required tools that require some special treatment.
11389 
11390 
11391   # Publish this variable in the help.
11392 
11393 
11394   if test "x$AWK" = x; then
11395     # The variable is not set by user, try to locate tool using the code snippet
11396     for ac_prog in gawk mawk nawk awk
11397 do
11398   # Extract the first word of "$ac_prog", so it can be a program name with args.
11399 set dummy $ac_prog; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11401 $as_echo_n "checking for $ac_word... " >&6; }
11402 if ${ac_cv_prog_AWK+:} false; then :
11403   $as_echo_n "(cached) " >&6
11404 else
11405   if test -n "$AWK"; then
11406   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11407 else
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11410 do
11411   IFS=$as_save_IFS
11412   test -z "$as_dir" && as_dir=.
11413     for ac_exec_ext in '' $ac_executable_extensions; do
11414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415     ac_cv_prog_AWK="$ac_prog"
11416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11417     break 2
11418   fi
11419 done
11420   done
11421 IFS=$as_save_IFS
11422 
11423 fi
11424 fi
11425 AWK=$ac_cv_prog_AWK
11426 if test -n "$AWK"; then
11427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11428 $as_echo "$AWK" >&6; }
11429 else
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11432 fi
11433 
11434 
11435   test -n "$AWK" && break
11436 done
11437 
11438   else
11439     # The variable is set, but is it from the command line or the environment?
11440 
11441     # Try to remove the string !AWK! from our list.
11442     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11443     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11444       # If it failed, the variable was not from the command line. Ignore it,
11445       # but warn the user (except for BASH, which is always set by the calling BASH).
11446       if test "xAWK" != xBASH; then
11447         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11448 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11449       fi
11450       # Try to locate tool using the code snippet
11451       for ac_prog in gawk mawk nawk awk
11452 do
11453   # Extract the first word of "$ac_prog", so it can be a program name with args.
11454 set dummy $ac_prog; ac_word=$2
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11456 $as_echo_n "checking for $ac_word... " >&6; }
11457 if ${ac_cv_prog_AWK+:} false; then :
11458   $as_echo_n "(cached) " >&6
11459 else
11460   if test -n "$AWK"; then
11461   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11462 else
11463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11464 for as_dir in $PATH
11465 do
11466   IFS=$as_save_IFS
11467   test -z "$as_dir" && as_dir=.
11468     for ac_exec_ext in '' $ac_executable_extensions; do
11469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11470     ac_cv_prog_AWK="$ac_prog"
11471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11472     break 2
11473   fi
11474 done
11475   done
11476 IFS=$as_save_IFS
11477 
11478 fi
11479 fi
11480 AWK=$ac_cv_prog_AWK
11481 if test -n "$AWK"; then
11482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11483 $as_echo "$AWK" >&6; }
11484 else
11485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 $as_echo "no" >&6; }
11487 fi
11488 
11489 
11490   test -n "$AWK" && break
11491 done
11492 
11493     else
11494       # If it succeeded, then it was overridden by the user. We will use it
11495       # for the tool.
11496 
11497       # First remove it from the list of overridden variables, so we can test
11498       # for unknown variables in the end.
11499       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11500 
11501       # Check if the provided tool contains a complete path.
11502       tool_specified="$AWK"
11503       tool_basename="${tool_specified##*/}"
11504       if test "x$tool_basename" = "x$tool_specified"; then
11505         # A command without a complete path is provided, search $PATH.
11506         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11507 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11508         # Extract the first word of "$tool_basename", so it can be a program name with args.
11509 set dummy $tool_basename; ac_word=$2
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11511 $as_echo_n "checking for $ac_word... " >&6; }
11512 if ${ac_cv_path_AWK+:} false; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515   case $AWK in
11516   [\\/]* | ?:[\\/]*)
11517   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11518   ;;
11519   *)
11520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521 for as_dir in $PATH
11522 do
11523   IFS=$as_save_IFS
11524   test -z "$as_dir" && as_dir=.
11525     for ac_exec_ext in '' $ac_executable_extensions; do
11526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11527     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529     break 2
11530   fi
11531 done
11532   done
11533 IFS=$as_save_IFS
11534 
11535   ;;
11536 esac
11537 fi
11538 AWK=$ac_cv_path_AWK
11539 if test -n "$AWK"; then
11540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11541 $as_echo "$AWK" >&6; }
11542 else
11543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11544 $as_echo "no" >&6; }
11545 fi
11546 
11547 
11548         if test "x$AWK" = x; then
11549           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11550         fi
11551       else
11552         # Otherwise we believe it is a complete path. Use it as it is.
11553         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11554 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11555         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11556 $as_echo_n "checking for AWK... " >&6; }
11557         if test ! -x "$tool_specified"; then
11558           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11559 $as_echo "not found" >&6; }
11560           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11561         fi
11562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11563 $as_echo "$tool_specified" >&6; }
11564       fi
11565     fi
11566   fi
11567 
11568 
11569   if test "x$AWK" = x; then
11570     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11571   fi
11572 
11573 
11574 
11575 
11576   # Publish this variable in the help.
11577 
11578 
11579   if test "x$GREP" = x; then
11580     # The variable is not set by user, try to locate tool using the code snippet
11581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11583 if ${ac_cv_path_GREP+:} false; then :
11584   $as_echo_n "(cached) " >&6
11585 else
11586   if test -z "$GREP"; then
11587   ac_path_GREP_found=false
11588   # Loop through the user's path and test for each of PROGNAME-LIST
11589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11591 do
11592   IFS=$as_save_IFS
11593   test -z "$as_dir" && as_dir=.
11594     for ac_prog in grep ggrep; do
11595     for ac_exec_ext in '' $ac_executable_extensions; do
11596       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11597       as_fn_executable_p "$ac_path_GREP" || continue
11598 # Check for GNU ac_path_GREP and select it if it is found.
11599   # Check for GNU $ac_path_GREP
11600 case `"$ac_path_GREP" --version 2>&1` in
11601 *GNU*)
11602   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11603 *)
11604   ac_count=0
11605   $as_echo_n 0123456789 >"conftest.in"
11606   while :
11607   do
11608     cat "conftest.in" "conftest.in" >"conftest.tmp"
11609     mv "conftest.tmp" "conftest.in"
11610     cp "conftest.in" "conftest.nl"
11611     $as_echo 'GREP' >> "conftest.nl"
11612     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11613     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11614     as_fn_arith $ac_count + 1 && ac_count=$as_val
11615     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11616       # Best one so far, save it but keep looking for a better one
11617       ac_cv_path_GREP="$ac_path_GREP"
11618       ac_path_GREP_max=$ac_count
11619     fi
11620     # 10*(2^10) chars as input seems more than enough
11621     test $ac_count -gt 10 && break
11622   done
11623   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11624 esac
11625 
11626       $ac_path_GREP_found && break 3
11627     done
11628   done
11629   done
11630 IFS=$as_save_IFS
11631   if test -z "$ac_cv_path_GREP"; then
11632     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11633   fi
11634 else
11635   ac_cv_path_GREP=$GREP
11636 fi
11637 
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11640 $as_echo "$ac_cv_path_GREP" >&6; }
11641  GREP="$ac_cv_path_GREP"
11642 
11643 
11644   else
11645     # The variable is set, but is it from the command line or the environment?
11646 
11647     # Try to remove the string !GREP! from our list.
11648     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11649     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11650       # If it failed, the variable was not from the command line. Ignore it,
11651       # but warn the user (except for BASH, which is always set by the calling BASH).
11652       if test "xGREP" != xBASH; then
11653         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11654 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11655       fi
11656       # Try to locate tool using the code snippet
11657       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11658 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11659 if ${ac_cv_path_GREP+:} false; then :
11660   $as_echo_n "(cached) " >&6
11661 else
11662   if test -z "$GREP"; then
11663   ac_path_GREP_found=false
11664   # Loop through the user's path and test for each of PROGNAME-LIST
11665   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11667 do
11668   IFS=$as_save_IFS
11669   test -z "$as_dir" && as_dir=.
11670     for ac_prog in grep ggrep; do
11671     for ac_exec_ext in '' $ac_executable_extensions; do
11672       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11673       as_fn_executable_p "$ac_path_GREP" || continue
11674 # Check for GNU ac_path_GREP and select it if it is found.
11675   # Check for GNU $ac_path_GREP
11676 case `"$ac_path_GREP" --version 2>&1` in
11677 *GNU*)
11678   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11679 *)
11680   ac_count=0
11681   $as_echo_n 0123456789 >"conftest.in"
11682   while :
11683   do
11684     cat "conftest.in" "conftest.in" >"conftest.tmp"
11685     mv "conftest.tmp" "conftest.in"
11686     cp "conftest.in" "conftest.nl"
11687     $as_echo 'GREP' >> "conftest.nl"
11688     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11690     as_fn_arith $ac_count + 1 && ac_count=$as_val
11691     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11692       # Best one so far, save it but keep looking for a better one
11693       ac_cv_path_GREP="$ac_path_GREP"
11694       ac_path_GREP_max=$ac_count
11695     fi
11696     # 10*(2^10) chars as input seems more than enough
11697     test $ac_count -gt 10 && break
11698   done
11699   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11700 esac
11701 
11702       $ac_path_GREP_found && break 3
11703     done
11704   done
11705   done
11706 IFS=$as_save_IFS
11707   if test -z "$ac_cv_path_GREP"; then
11708     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11709   fi
11710 else
11711   ac_cv_path_GREP=$GREP
11712 fi
11713 
11714 fi
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11716 $as_echo "$ac_cv_path_GREP" >&6; }
11717  GREP="$ac_cv_path_GREP"
11718 
11719 
11720     else
11721       # If it succeeded, then it was overridden by the user. We will use it
11722       # for the tool.
11723 
11724       # First remove it from the list of overridden variables, so we can test
11725       # for unknown variables in the end.
11726       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11727 
11728       # Check if the provided tool contains a complete path.
11729       tool_specified="$GREP"
11730       tool_basename="${tool_specified##*/}"
11731       if test "x$tool_basename" = "x$tool_specified"; then
11732         # A command without a complete path is provided, search $PATH.
11733         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11734 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11735         # Extract the first word of "$tool_basename", so it can be a program name with args.
11736 set dummy $tool_basename; ac_word=$2
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if ${ac_cv_path_GREP+:} false; then :
11740   $as_echo_n "(cached) " >&6
11741 else
11742   case $GREP in
11743   [\\/]* | ?:[\\/]*)
11744   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11745   ;;
11746   *)
11747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752     for ac_exec_ext in '' $ac_executable_extensions; do
11753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759   done
11760 IFS=$as_save_IFS
11761 
11762   ;;
11763 esac
11764 fi
11765 GREP=$ac_cv_path_GREP
11766 if test -n "$GREP"; then
11767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11768 $as_echo "$GREP" >&6; }
11769 else
11770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11772 fi
11773 
11774 
11775         if test "x$GREP" = x; then
11776           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11777         fi
11778       else
11779         # Otherwise we believe it is a complete path. Use it as it is.
11780         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11781 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11782         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11783 $as_echo_n "checking for GREP... " >&6; }
11784         if test ! -x "$tool_specified"; then
11785           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11786 $as_echo "not found" >&6; }
11787           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11788         fi
11789         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11790 $as_echo "$tool_specified" >&6; }
11791       fi
11792     fi
11793   fi
11794 
11795 
11796   if test "x$GREP" = x; then
11797     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11798   fi
11799 
11800 
11801 
11802 
11803   # Publish this variable in the help.
11804 
11805 
11806   if test "x$EGREP" = x; then
11807     # The variable is not set by user, try to locate tool using the code snippet
11808     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11809 $as_echo_n "checking for egrep... " >&6; }
11810 if ${ac_cv_path_EGREP+:} false; then :
11811   $as_echo_n "(cached) " >&6
11812 else
11813   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11814    then ac_cv_path_EGREP="$GREP -E"
11815    else
11816      if test -z "$EGREP"; then
11817   ac_path_EGREP_found=false
11818   # Loop through the user's path and test for each of PROGNAME-LIST
11819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11821 do
11822   IFS=$as_save_IFS
11823   test -z "$as_dir" && as_dir=.
11824     for ac_prog in egrep; do
11825     for ac_exec_ext in '' $ac_executable_extensions; do
11826       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11827       as_fn_executable_p "$ac_path_EGREP" || continue
11828 # Check for GNU ac_path_EGREP and select it if it is found.
11829   # Check for GNU $ac_path_EGREP
11830 case `"$ac_path_EGREP" --version 2>&1` in
11831 *GNU*)
11832   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11833 *)
11834   ac_count=0
11835   $as_echo_n 0123456789 >"conftest.in"
11836   while :
11837   do
11838     cat "conftest.in" "conftest.in" >"conftest.tmp"
11839     mv "conftest.tmp" "conftest.in"
11840     cp "conftest.in" "conftest.nl"
11841     $as_echo 'EGREP' >> "conftest.nl"
11842     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11843     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11844     as_fn_arith $ac_count + 1 && ac_count=$as_val
11845     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11846       # Best one so far, save it but keep looking for a better one
11847       ac_cv_path_EGREP="$ac_path_EGREP"
11848       ac_path_EGREP_max=$ac_count
11849     fi
11850     # 10*(2^10) chars as input seems more than enough
11851     test $ac_count -gt 10 && break
11852   done
11853   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11854 esac
11855 
11856       $ac_path_EGREP_found && break 3
11857     done
11858   done
11859   done
11860 IFS=$as_save_IFS
11861   if test -z "$ac_cv_path_EGREP"; then
11862     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11863   fi
11864 else
11865   ac_cv_path_EGREP=$EGREP
11866 fi
11867 
11868    fi
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11871 $as_echo "$ac_cv_path_EGREP" >&6; }
11872  EGREP="$ac_cv_path_EGREP"
11873 
11874 
11875   else
11876     # The variable is set, but is it from the command line or the environment?
11877 
11878     # Try to remove the string !EGREP! from our list.
11879     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11880     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11881       # If it failed, the variable was not from the command line. Ignore it,
11882       # but warn the user (except for BASH, which is always set by the calling BASH).
11883       if test "xEGREP" != xBASH; then
11884         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11885 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11886       fi
11887       # Try to locate tool using the code snippet
11888       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11889 $as_echo_n "checking for egrep... " >&6; }
11890 if ${ac_cv_path_EGREP+:} false; then :
11891   $as_echo_n "(cached) " >&6
11892 else
11893   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11894    then ac_cv_path_EGREP="$GREP -E"
11895    else
11896      if test -z "$EGREP"; then
11897   ac_path_EGREP_found=false
11898   # Loop through the user's path and test for each of PROGNAME-LIST
11899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11901 do
11902   IFS=$as_save_IFS
11903   test -z "$as_dir" && as_dir=.
11904     for ac_prog in egrep; do
11905     for ac_exec_ext in '' $ac_executable_extensions; do
11906       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11907       as_fn_executable_p "$ac_path_EGREP" || continue
11908 # Check for GNU ac_path_EGREP and select it if it is found.
11909   # Check for GNU $ac_path_EGREP
11910 case `"$ac_path_EGREP" --version 2>&1` in
11911 *GNU*)
11912   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11913 *)
11914   ac_count=0
11915   $as_echo_n 0123456789 >"conftest.in"
11916   while :
11917   do
11918     cat "conftest.in" "conftest.in" >"conftest.tmp"
11919     mv "conftest.tmp" "conftest.in"
11920     cp "conftest.in" "conftest.nl"
11921     $as_echo 'EGREP' >> "conftest.nl"
11922     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11923     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11924     as_fn_arith $ac_count + 1 && ac_count=$as_val
11925     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11926       # Best one so far, save it but keep looking for a better one
11927       ac_cv_path_EGREP="$ac_path_EGREP"
11928       ac_path_EGREP_max=$ac_count
11929     fi
11930     # 10*(2^10) chars as input seems more than enough
11931     test $ac_count -gt 10 && break
11932   done
11933   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11934 esac
11935 
11936       $ac_path_EGREP_found && break 3
11937     done
11938   done
11939   done
11940 IFS=$as_save_IFS
11941   if test -z "$ac_cv_path_EGREP"; then
11942     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11943   fi
11944 else
11945   ac_cv_path_EGREP=$EGREP
11946 fi
11947 
11948    fi
11949 fi
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11951 $as_echo "$ac_cv_path_EGREP" >&6; }
11952  EGREP="$ac_cv_path_EGREP"
11953 
11954 
11955     else
11956       # If it succeeded, then it was overridden by the user. We will use it
11957       # for the tool.
11958 
11959       # First remove it from the list of overridden variables, so we can test
11960       # for unknown variables in the end.
11961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11962 
11963       # Check if the provided tool contains a complete path.
11964       tool_specified="$EGREP"
11965       tool_basename="${tool_specified##*/}"
11966       if test "x$tool_basename" = "x$tool_specified"; then
11967         # A command without a complete path is provided, search $PATH.
11968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11969 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11970         # Extract the first word of "$tool_basename", so it can be a program name with args.
11971 set dummy $tool_basename; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if ${ac_cv_path_EGREP+:} false; then :
11975   $as_echo_n "(cached) " >&6
11976 else
11977   case $EGREP in
11978   [\\/]* | ?:[\\/]*)
11979   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11980   ;;
11981   *)
11982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11984 do
11985   IFS=$as_save_IFS
11986   test -z "$as_dir" && as_dir=.
11987     for ac_exec_ext in '' $ac_executable_extensions; do
11988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11991     break 2
11992   fi
11993 done
11994   done
11995 IFS=$as_save_IFS
11996 
11997   ;;
11998 esac
11999 fi
12000 EGREP=$ac_cv_path_EGREP
12001 if test -n "$EGREP"; then
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12003 $as_echo "$EGREP" >&6; }
12004 else
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12006 $as_echo "no" >&6; }
12007 fi
12008 
12009 
12010         if test "x$EGREP" = x; then
12011           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12012         fi
12013       else
12014         # Otherwise we believe it is a complete path. Use it as it is.
12015         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12016 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12018 $as_echo_n "checking for EGREP... " >&6; }
12019         if test ! -x "$tool_specified"; then
12020           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12021 $as_echo "not found" >&6; }
12022           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12023         fi
12024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12025 $as_echo "$tool_specified" >&6; }
12026       fi
12027     fi
12028   fi
12029 
12030 
12031   if test "x$EGREP" = x; then
12032     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12033   fi
12034 
12035 
12036 
12037 
12038   # Publish this variable in the help.
12039 
12040 
12041   if test "x$FGREP" = x; then
12042     # The variable is not set by user, try to locate tool using the code snippet
12043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12044 $as_echo_n "checking for fgrep... " >&6; }
12045 if ${ac_cv_path_FGREP+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12049    then ac_cv_path_FGREP="$GREP -F"
12050    else
12051      if test -z "$FGREP"; then
12052   ac_path_FGREP_found=false
12053   # Loop through the user's path and test for each of PROGNAME-LIST
12054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12056 do
12057   IFS=$as_save_IFS
12058   test -z "$as_dir" && as_dir=.
12059     for ac_prog in fgrep; do
12060     for ac_exec_ext in '' $ac_executable_extensions; do
12061       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12062       as_fn_executable_p "$ac_path_FGREP" || continue
12063 # Check for GNU ac_path_FGREP and select it if it is found.
12064   # Check for GNU $ac_path_FGREP
12065 case `"$ac_path_FGREP" --version 2>&1` in
12066 *GNU*)
12067   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12068 *)
12069   ac_count=0
12070   $as_echo_n 0123456789 >"conftest.in"
12071   while :
12072   do
12073     cat "conftest.in" "conftest.in" >"conftest.tmp"
12074     mv "conftest.tmp" "conftest.in"
12075     cp "conftest.in" "conftest.nl"
12076     $as_echo 'FGREP' >> "conftest.nl"
12077     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12078     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12079     as_fn_arith $ac_count + 1 && ac_count=$as_val
12080     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12081       # Best one so far, save it but keep looking for a better one
12082       ac_cv_path_FGREP="$ac_path_FGREP"
12083       ac_path_FGREP_max=$ac_count
12084     fi
12085     # 10*(2^10) chars as input seems more than enough
12086     test $ac_count -gt 10 && break
12087   done
12088   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12089 esac
12090 
12091       $ac_path_FGREP_found && break 3
12092     done
12093   done
12094   done
12095 IFS=$as_save_IFS
12096   if test -z "$ac_cv_path_FGREP"; then
12097     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12098   fi
12099 else
12100   ac_cv_path_FGREP=$FGREP
12101 fi
12102 
12103    fi
12104 fi
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12106 $as_echo "$ac_cv_path_FGREP" >&6; }
12107  FGREP="$ac_cv_path_FGREP"
12108 
12109 
12110   else
12111     # The variable is set, but is it from the command line or the environment?
12112 
12113     # Try to remove the string !FGREP! from our list.
12114     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12115     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12116       # If it failed, the variable was not from the command line. Ignore it,
12117       # but warn the user (except for BASH, which is always set by the calling BASH).
12118       if test "xFGREP" != xBASH; then
12119         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12120 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12121       fi
12122       # Try to locate tool using the code snippet
12123       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12124 $as_echo_n "checking for fgrep... " >&6; }
12125 if ${ac_cv_path_FGREP+:} false; then :
12126   $as_echo_n "(cached) " >&6
12127 else
12128   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12129    then ac_cv_path_FGREP="$GREP -F"
12130    else
12131      if test -z "$FGREP"; then
12132   ac_path_FGREP_found=false
12133   # Loop through the user's path and test for each of PROGNAME-LIST
12134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12136 do
12137   IFS=$as_save_IFS
12138   test -z "$as_dir" && as_dir=.
12139     for ac_prog in fgrep; do
12140     for ac_exec_ext in '' $ac_executable_extensions; do
12141       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12142       as_fn_executable_p "$ac_path_FGREP" || continue
12143 # Check for GNU ac_path_FGREP and select it if it is found.
12144   # Check for GNU $ac_path_FGREP
12145 case `"$ac_path_FGREP" --version 2>&1` in
12146 *GNU*)
12147   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12148 *)
12149   ac_count=0
12150   $as_echo_n 0123456789 >"conftest.in"
12151   while :
12152   do
12153     cat "conftest.in" "conftest.in" >"conftest.tmp"
12154     mv "conftest.tmp" "conftest.in"
12155     cp "conftest.in" "conftest.nl"
12156     $as_echo 'FGREP' >> "conftest.nl"
12157     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12158     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12159     as_fn_arith $ac_count + 1 && ac_count=$as_val
12160     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12161       # Best one so far, save it but keep looking for a better one
12162       ac_cv_path_FGREP="$ac_path_FGREP"
12163       ac_path_FGREP_max=$ac_count
12164     fi
12165     # 10*(2^10) chars as input seems more than enough
12166     test $ac_count -gt 10 && break
12167   done
12168   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12169 esac
12170 
12171       $ac_path_FGREP_found && break 3
12172     done
12173   done
12174   done
12175 IFS=$as_save_IFS
12176   if test -z "$ac_cv_path_FGREP"; then
12177     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12178   fi
12179 else
12180   ac_cv_path_FGREP=$FGREP
12181 fi
12182 
12183    fi
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12186 $as_echo "$ac_cv_path_FGREP" >&6; }
12187  FGREP="$ac_cv_path_FGREP"
12188 
12189 
12190     else
12191       # If it succeeded, then it was overridden by the user. We will use it
12192       # for the tool.
12193 
12194       # First remove it from the list of overridden variables, so we can test
12195       # for unknown variables in the end.
12196       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12197 
12198       # Check if the provided tool contains a complete path.
12199       tool_specified="$FGREP"
12200       tool_basename="${tool_specified##*/}"
12201       if test "x$tool_basename" = "x$tool_specified"; then
12202         # A command without a complete path is provided, search $PATH.
12203         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12204 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12205         # Extract the first word of "$tool_basename", so it can be a program name with args.
12206 set dummy $tool_basename; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if ${ac_cv_path_FGREP+:} false; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   case $FGREP in
12213   [\\/]* | ?:[\\/]*)
12214   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12215   ;;
12216   *)
12217   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12218 for as_dir in $PATH
12219 do
12220   IFS=$as_save_IFS
12221   test -z "$as_dir" && as_dir=.
12222     for ac_exec_ext in '' $ac_executable_extensions; do
12223   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12224     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12226     break 2
12227   fi
12228 done
12229   done
12230 IFS=$as_save_IFS
12231 
12232   ;;
12233 esac
12234 fi
12235 FGREP=$ac_cv_path_FGREP
12236 if test -n "$FGREP"; then
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12238 $as_echo "$FGREP" >&6; }
12239 else
12240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12241 $as_echo "no" >&6; }
12242 fi
12243 
12244 
12245         if test "x$FGREP" = x; then
12246           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12247         fi
12248       else
12249         # Otherwise we believe it is a complete path. Use it as it is.
12250         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12251 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12253 $as_echo_n "checking for FGREP... " >&6; }
12254         if test ! -x "$tool_specified"; then
12255           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12256 $as_echo "not found" >&6; }
12257           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12258         fi
12259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12260 $as_echo "$tool_specified" >&6; }
12261       fi
12262     fi
12263   fi
12264 
12265 
12266   if test "x$FGREP" = x; then
12267     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12268   fi
12269 
12270 
12271 
12272 
12273   # Publish this variable in the help.
12274 
12275 
12276   if test "x$SED" = x; then
12277     # The variable is not set by user, try to locate tool using the code snippet
12278     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12279 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12280 if ${ac_cv_path_SED+:} false; then :
12281   $as_echo_n "(cached) " >&6
12282 else
12283             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12284      for ac_i in 1 2 3 4 5 6 7; do
12285        ac_script="$ac_script$as_nl$ac_script"
12286      done
12287      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12288      { ac_script=; unset ac_script;}
12289      if test -z "$SED"; then
12290   ac_path_SED_found=false
12291   # Loop through the user's path and test for each of PROGNAME-LIST
12292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12293 for as_dir in $PATH
12294 do
12295   IFS=$as_save_IFS
12296   test -z "$as_dir" && as_dir=.
12297     for ac_prog in sed gsed; do
12298     for ac_exec_ext in '' $ac_executable_extensions; do
12299       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12300       as_fn_executable_p "$ac_path_SED" || continue
12301 # Check for GNU ac_path_SED and select it if it is found.
12302   # Check for GNU $ac_path_SED
12303 case `"$ac_path_SED" --version 2>&1` in
12304 *GNU*)
12305   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12306 *)
12307   ac_count=0
12308   $as_echo_n 0123456789 >"conftest.in"
12309   while :
12310   do
12311     cat "conftest.in" "conftest.in" >"conftest.tmp"
12312     mv "conftest.tmp" "conftest.in"
12313     cp "conftest.in" "conftest.nl"
12314     $as_echo '' >> "conftest.nl"
12315     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12316     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12317     as_fn_arith $ac_count + 1 && ac_count=$as_val
12318     if test $ac_count -gt ${ac_path_SED_max-0}; then
12319       # Best one so far, save it but keep looking for a better one
12320       ac_cv_path_SED="$ac_path_SED"
12321       ac_path_SED_max=$ac_count
12322     fi
12323     # 10*(2^10) chars as input seems more than enough
12324     test $ac_count -gt 10 && break
12325   done
12326   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12327 esac
12328 
12329       $ac_path_SED_found && break 3
12330     done
12331   done
12332   done
12333 IFS=$as_save_IFS
12334   if test -z "$ac_cv_path_SED"; then
12335     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12336   fi
12337 else
12338   ac_cv_path_SED=$SED
12339 fi
12340 
12341 fi
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12343 $as_echo "$ac_cv_path_SED" >&6; }
12344  SED="$ac_cv_path_SED"
12345   rm -f conftest.sed
12346 
12347   else
12348     # The variable is set, but is it from the command line or the environment?
12349 
12350     # Try to remove the string !SED! from our list.
12351     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12352     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12353       # If it failed, the variable was not from the command line. Ignore it,
12354       # but warn the user (except for BASH, which is always set by the calling BASH).
12355       if test "xSED" != xBASH; then
12356         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12357 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12358       fi
12359       # Try to locate tool using the code snippet
12360       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12361 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12362 if ${ac_cv_path_SED+:} false; then :
12363   $as_echo_n "(cached) " >&6
12364 else
12365             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12366      for ac_i in 1 2 3 4 5 6 7; do
12367        ac_script="$ac_script$as_nl$ac_script"
12368      done
12369      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12370      { ac_script=; unset ac_script;}
12371      if test -z "$SED"; then
12372   ac_path_SED_found=false
12373   # Loop through the user's path and test for each of PROGNAME-LIST
12374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12376 do
12377   IFS=$as_save_IFS
12378   test -z "$as_dir" && as_dir=.
12379     for ac_prog in sed gsed; do
12380     for ac_exec_ext in '' $ac_executable_extensions; do
12381       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12382       as_fn_executable_p "$ac_path_SED" || continue
12383 # Check for GNU ac_path_SED and select it if it is found.
12384   # Check for GNU $ac_path_SED
12385 case `"$ac_path_SED" --version 2>&1` in
12386 *GNU*)
12387   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12388 *)
12389   ac_count=0
12390   $as_echo_n 0123456789 >"conftest.in"
12391   while :
12392   do
12393     cat "conftest.in" "conftest.in" >"conftest.tmp"
12394     mv "conftest.tmp" "conftest.in"
12395     cp "conftest.in" "conftest.nl"
12396     $as_echo '' >> "conftest.nl"
12397     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12398     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12399     as_fn_arith $ac_count + 1 && ac_count=$as_val
12400     if test $ac_count -gt ${ac_path_SED_max-0}; then
12401       # Best one so far, save it but keep looking for a better one
12402       ac_cv_path_SED="$ac_path_SED"
12403       ac_path_SED_max=$ac_count
12404     fi
12405     # 10*(2^10) chars as input seems more than enough
12406     test $ac_count -gt 10 && break
12407   done
12408   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12409 esac
12410 
12411       $ac_path_SED_found && break 3
12412     done
12413   done
12414   done
12415 IFS=$as_save_IFS
12416   if test -z "$ac_cv_path_SED"; then
12417     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12418   fi
12419 else
12420   ac_cv_path_SED=$SED
12421 fi
12422 
12423 fi
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12425 $as_echo "$ac_cv_path_SED" >&6; }
12426  SED="$ac_cv_path_SED"
12427   rm -f conftest.sed
12428 
12429     else
12430       # If it succeeded, then it was overridden by the user. We will use it
12431       # for the tool.
12432 
12433       # First remove it from the list of overridden variables, so we can test
12434       # for unknown variables in the end.
12435       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12436 
12437       # Check if the provided tool contains a complete path.
12438       tool_specified="$SED"
12439       tool_basename="${tool_specified##*/}"
12440       if test "x$tool_basename" = "x$tool_specified"; then
12441         # A command without a complete path is provided, search $PATH.
12442         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12443 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12444         # Extract the first word of "$tool_basename", so it can be a program name with args.
12445 set dummy $tool_basename; ac_word=$2
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12447 $as_echo_n "checking for $ac_word... " >&6; }
12448 if ${ac_cv_path_SED+:} false; then :
12449   $as_echo_n "(cached) " >&6
12450 else
12451   case $SED in
12452   [\\/]* | ?:[\\/]*)
12453   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12454   ;;
12455   *)
12456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12457 for as_dir in $PATH
12458 do
12459   IFS=$as_save_IFS
12460   test -z "$as_dir" && as_dir=.
12461     for ac_exec_ext in '' $ac_executable_extensions; do
12462   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12463     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12464     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12465     break 2
12466   fi
12467 done
12468   done
12469 IFS=$as_save_IFS
12470 
12471   ;;
12472 esac
12473 fi
12474 SED=$ac_cv_path_SED
12475 if test -n "$SED"; then
12476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12477 $as_echo "$SED" >&6; }
12478 else
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12480 $as_echo "no" >&6; }
12481 fi
12482 
12483 
12484         if test "x$SED" = x; then
12485           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12486         fi
12487       else
12488         # Otherwise we believe it is a complete path. Use it as it is.
12489         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12490 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12492 $as_echo_n "checking for SED... " >&6; }
12493         if test ! -x "$tool_specified"; then
12494           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12495 $as_echo "not found" >&6; }
12496           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12497         fi
12498         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12499 $as_echo "$tool_specified" >&6; }
12500       fi
12501     fi
12502   fi
12503 
12504 
12505   if test "x$SED" = x; then
12506     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12507   fi
12508 
12509 
12510 
12511   # Always force rm.
12512   RM="$RM -f"
12513 
12514   # pwd behaves differently on various platforms and some don't support the -L flag.
12515   # Always use the bash builtin pwd to get uniform behavior.
12516   THEPWDCMD=pwd
12517 
12518   # These are not required on all platforms
12519 
12520 
12521   # Publish this variable in the help.
12522 
12523 
12524   if test "x$CYGPATH" = x; then
12525     # The variable is not set by user, try to locate tool using the code snippet
12526     for ac_prog in cygpath
12527 do
12528   # Extract the first word of "$ac_prog", so it can be a program name with args.
12529 set dummy $ac_prog; ac_word=$2
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12531 $as_echo_n "checking for $ac_word... " >&6; }
12532 if ${ac_cv_path_CYGPATH+:} false; then :
12533   $as_echo_n "(cached) " >&6
12534 else
12535   case $CYGPATH in
12536   [\\/]* | ?:[\\/]*)
12537   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12538   ;;
12539   *)
12540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12541 for as_dir in $PATH
12542 do
12543   IFS=$as_save_IFS
12544   test -z "$as_dir" && as_dir=.
12545     for ac_exec_ext in '' $ac_executable_extensions; do
12546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12547     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12549     break 2
12550   fi
12551 done
12552   done
12553 IFS=$as_save_IFS
12554 
12555   ;;
12556 esac
12557 fi
12558 CYGPATH=$ac_cv_path_CYGPATH
12559 if test -n "$CYGPATH"; then
12560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12561 $as_echo "$CYGPATH" >&6; }
12562 else
12563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12565 fi
12566 
12567 
12568   test -n "$CYGPATH" && break
12569 done
12570 
12571   else
12572     # The variable is set, but is it from the command line or the environment?
12573 
12574     # Try to remove the string !CYGPATH! from our list.
12575     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12576     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12577       # If it failed, the variable was not from the command line. Ignore it,
12578       # but warn the user (except for BASH, which is always set by the calling BASH).
12579       if test "xCYGPATH" != xBASH; then
12580         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12581 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12582       fi
12583       # Try to locate tool using the code snippet
12584       for ac_prog in cygpath
12585 do
12586   # Extract the first word of "$ac_prog", so it can be a program name with args.
12587 set dummy $ac_prog; ac_word=$2
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589 $as_echo_n "checking for $ac_word... " >&6; }
12590 if ${ac_cv_path_CYGPATH+:} false; then :
12591   $as_echo_n "(cached) " >&6
12592 else
12593   case $CYGPATH in
12594   [\\/]* | ?:[\\/]*)
12595   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12596   ;;
12597   *)
12598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12599 for as_dir in $PATH
12600 do
12601   IFS=$as_save_IFS
12602   test -z "$as_dir" && as_dir=.
12603     for ac_exec_ext in '' $ac_executable_extensions; do
12604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12605     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12607     break 2
12608   fi
12609 done
12610   done
12611 IFS=$as_save_IFS
12612 
12613   ;;
12614 esac
12615 fi
12616 CYGPATH=$ac_cv_path_CYGPATH
12617 if test -n "$CYGPATH"; then
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12619 $as_echo "$CYGPATH" >&6; }
12620 else
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624 
12625 
12626   test -n "$CYGPATH" && break
12627 done
12628 
12629     else
12630       # If it succeeded, then it was overridden by the user. We will use it
12631       # for the tool.
12632 
12633       # First remove it from the list of overridden variables, so we can test
12634       # for unknown variables in the end.
12635       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12636 
12637       # Check if the provided tool contains a complete path.
12638       tool_specified="$CYGPATH"
12639       tool_basename="${tool_specified##*/}"
12640       if test "x$tool_basename" = "x$tool_specified"; then
12641         # A command without a complete path is provided, search $PATH.
12642         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12643 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12644         # Extract the first word of "$tool_basename", so it can be a program name with args.
12645 set dummy $tool_basename; ac_word=$2
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12647 $as_echo_n "checking for $ac_word... " >&6; }
12648 if ${ac_cv_path_CYGPATH+:} false; then :
12649   $as_echo_n "(cached) " >&6
12650 else
12651   case $CYGPATH in
12652   [\\/]* | ?:[\\/]*)
12653   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12654   ;;
12655   *)
12656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12658 do
12659   IFS=$as_save_IFS
12660   test -z "$as_dir" && as_dir=.
12661     for ac_exec_ext in '' $ac_executable_extensions; do
12662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12665     break 2
12666   fi
12667 done
12668   done
12669 IFS=$as_save_IFS
12670 
12671   ;;
12672 esac
12673 fi
12674 CYGPATH=$ac_cv_path_CYGPATH
12675 if test -n "$CYGPATH"; then
12676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12677 $as_echo "$CYGPATH" >&6; }
12678 else
12679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12680 $as_echo "no" >&6; }
12681 fi
12682 
12683 
12684         if test "x$CYGPATH" = x; then
12685           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12686         fi
12687       else
12688         # Otherwise we believe it is a complete path. Use it as it is.
12689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12690 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12692 $as_echo_n "checking for CYGPATH... " >&6; }
12693         if test ! -x "$tool_specified"; then
12694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12695 $as_echo "not found" >&6; }
12696           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12697         fi
12698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12699 $as_echo "$tool_specified" >&6; }
12700       fi
12701     fi
12702   fi
12703 
12704 
12705 
12706 
12707   # Publish this variable in the help.
12708 
12709 
12710   if test "x$READLINK" = x; then
12711     # The variable is not set by user, try to locate tool using the code snippet
12712     for ac_prog in greadlink readlink
12713 do
12714   # Extract the first word of "$ac_prog", so it can be a program name with args.
12715 set dummy $ac_prog; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12717 $as_echo_n "checking for $ac_word... " >&6; }
12718 if ${ac_cv_path_READLINK+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721   case $READLINK in
12722   [\\/]* | ?:[\\/]*)
12723   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12724   ;;
12725   *)
12726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12728 do
12729   IFS=$as_save_IFS
12730   test -z "$as_dir" && as_dir=.
12731     for ac_exec_ext in '' $ac_executable_extensions; do
12732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12735     break 2
12736   fi
12737 done
12738   done
12739 IFS=$as_save_IFS
12740 
12741   ;;
12742 esac
12743 fi
12744 READLINK=$ac_cv_path_READLINK
12745 if test -n "$READLINK"; then
12746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12747 $as_echo "$READLINK" >&6; }
12748 else
12749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750 $as_echo "no" >&6; }
12751 fi
12752 
12753 
12754   test -n "$READLINK" && break
12755 done
12756 
12757   else
12758     # The variable is set, but is it from the command line or the environment?
12759 
12760     # Try to remove the string !READLINK! from our list.
12761     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12762     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12763       # If it failed, the variable was not from the command line. Ignore it,
12764       # but warn the user (except for BASH, which is always set by the calling BASH).
12765       if test "xREADLINK" != xBASH; then
12766         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12767 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12768       fi
12769       # Try to locate tool using the code snippet
12770       for ac_prog in greadlink readlink
12771 do
12772   # Extract the first word of "$ac_prog", so it can be a program name with args.
12773 set dummy $ac_prog; ac_word=$2
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12775 $as_echo_n "checking for $ac_word... " >&6; }
12776 if ${ac_cv_path_READLINK+:} false; then :
12777   $as_echo_n "(cached) " >&6
12778 else
12779   case $READLINK in
12780   [\\/]* | ?:[\\/]*)
12781   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12782   ;;
12783   *)
12784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12785 for as_dir in $PATH
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793     break 2
12794   fi
12795 done
12796   done
12797 IFS=$as_save_IFS
12798 
12799   ;;
12800 esac
12801 fi
12802 READLINK=$ac_cv_path_READLINK
12803 if test -n "$READLINK"; then
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12805 $as_echo "$READLINK" >&6; }
12806 else
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12809 fi
12810 
12811 
12812   test -n "$READLINK" && break
12813 done
12814 
12815     else
12816       # If it succeeded, then it was overridden by the user. We will use it
12817       # for the tool.
12818 
12819       # First remove it from the list of overridden variables, so we can test
12820       # for unknown variables in the end.
12821       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12822 
12823       # Check if the provided tool contains a complete path.
12824       tool_specified="$READLINK"
12825       tool_basename="${tool_specified##*/}"
12826       if test "x$tool_basename" = "x$tool_specified"; then
12827         # A command without a complete path is provided, search $PATH.
12828         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12829 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12830         # Extract the first word of "$tool_basename", so it can be a program name with args.
12831 set dummy $tool_basename; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_READLINK+:} false; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $READLINK in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847     for ac_exec_ext in '' $ac_executable_extensions; do
12848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854   done
12855 IFS=$as_save_IFS
12856 
12857   ;;
12858 esac
12859 fi
12860 READLINK=$ac_cv_path_READLINK
12861 if test -n "$READLINK"; then
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12863 $as_echo "$READLINK" >&6; }
12864 else
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868 
12869 
12870         if test "x$READLINK" = x; then
12871           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12872         fi
12873       else
12874         # Otherwise we believe it is a complete path. Use it as it is.
12875         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12876 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12877         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12878 $as_echo_n "checking for READLINK... " >&6; }
12879         if test ! -x "$tool_specified"; then
12880           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12881 $as_echo "not found" >&6; }
12882           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12883         fi
12884         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12885 $as_echo "$tool_specified" >&6; }
12886       fi
12887     fi
12888   fi
12889 
12890 
12891 
12892 
12893   # Publish this variable in the help.
12894 
12895 
12896   if test "x$DF" = x; then
12897     # The variable is not set by user, try to locate tool using the code snippet
12898     for ac_prog in df
12899 do
12900   # Extract the first word of "$ac_prog", so it can be a program name with args.
12901 set dummy $ac_prog; ac_word=$2
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12903 $as_echo_n "checking for $ac_word... " >&6; }
12904 if ${ac_cv_path_DF+:} false; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   case $DF in
12908   [\\/]* | ?:[\\/]*)
12909   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12910   ;;
12911   *)
12912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913 for as_dir in $PATH
12914 do
12915   IFS=$as_save_IFS
12916   test -z "$as_dir" && as_dir=.
12917     for ac_exec_ext in '' $ac_executable_extensions; do
12918   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12919     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12920     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921     break 2
12922   fi
12923 done
12924   done
12925 IFS=$as_save_IFS
12926 
12927   ;;
12928 esac
12929 fi
12930 DF=$ac_cv_path_DF
12931 if test -n "$DF"; then
12932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12933 $as_echo "$DF" >&6; }
12934 else
12935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936 $as_echo "no" >&6; }
12937 fi
12938 
12939 
12940   test -n "$DF" && break
12941 done
12942 
12943   else
12944     # The variable is set, but is it from the command line or the environment?
12945 
12946     # Try to remove the string !DF! from our list.
12947     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12948     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12949       # If it failed, the variable was not from the command line. Ignore it,
12950       # but warn the user (except for BASH, which is always set by the calling BASH).
12951       if test "xDF" != xBASH; then
12952         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12953 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12954       fi
12955       # Try to locate tool using the code snippet
12956       for ac_prog in df
12957 do
12958   # Extract the first word of "$ac_prog", so it can be a program name with args.
12959 set dummy $ac_prog; ac_word=$2
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961 $as_echo_n "checking for $ac_word... " >&6; }
12962 if ${ac_cv_path_DF+:} false; then :
12963   $as_echo_n "(cached) " >&6
12964 else
12965   case $DF in
12966   [\\/]* | ?:[\\/]*)
12967   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12968   ;;
12969   *)
12970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12971 for as_dir in $PATH
12972 do
12973   IFS=$as_save_IFS
12974   test -z "$as_dir" && as_dir=.
12975     for ac_exec_ext in '' $ac_executable_extensions; do
12976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12977     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12979     break 2
12980   fi
12981 done
12982   done
12983 IFS=$as_save_IFS
12984 
12985   ;;
12986 esac
12987 fi
12988 DF=$ac_cv_path_DF
12989 if test -n "$DF"; then
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12991 $as_echo "$DF" >&6; }
12992 else
12993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12995 fi
12996 
12997 
12998   test -n "$DF" && break
12999 done
13000 
13001     else
13002       # If it succeeded, then it was overridden by the user. We will use it
13003       # for the tool.
13004 
13005       # First remove it from the list of overridden variables, so we can test
13006       # for unknown variables in the end.
13007       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13008 
13009       # Check if the provided tool contains a complete path.
13010       tool_specified="$DF"
13011       tool_basename="${tool_specified##*/}"
13012       if test "x$tool_basename" = "x$tool_specified"; then
13013         # A command without a complete path is provided, search $PATH.
13014         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13015 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13016         # Extract the first word of "$tool_basename", so it can be a program name with args.
13017 set dummy $tool_basename; ac_word=$2
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13019 $as_echo_n "checking for $ac_word... " >&6; }
13020 if ${ac_cv_path_DF+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   case $DF in
13024   [\\/]* | ?:[\\/]*)
13025   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13026   ;;
13027   *)
13028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13030 do
13031   IFS=$as_save_IFS
13032   test -z "$as_dir" && as_dir=.
13033     for ac_exec_ext in '' $ac_executable_extensions; do
13034   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13035     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13037     break 2
13038   fi
13039 done
13040   done
13041 IFS=$as_save_IFS
13042 
13043   ;;
13044 esac
13045 fi
13046 DF=$ac_cv_path_DF
13047 if test -n "$DF"; then
13048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13049 $as_echo "$DF" >&6; }
13050 else
13051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13053 fi
13054 
13055 
13056         if test "x$DF" = x; then
13057           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13058         fi
13059       else
13060         # Otherwise we believe it is a complete path. Use it as it is.
13061         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13062 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13063         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13064 $as_echo_n "checking for DF... " >&6; }
13065         if test ! -x "$tool_specified"; then
13066           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13067 $as_echo "not found" >&6; }
13068           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13069         fi
13070         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13071 $as_echo "$tool_specified" >&6; }
13072       fi
13073     fi
13074   fi
13075 
13076 
13077 
13078 
13079   # Publish this variable in the help.
13080 
13081 
13082   if test "x$SETFILE" = x; then
13083     # The variable is not set by user, try to locate tool using the code snippet
13084     for ac_prog in SetFile
13085 do
13086   # Extract the first word of "$ac_prog", so it can be a program name with args.
13087 set dummy $ac_prog; ac_word=$2
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13089 $as_echo_n "checking for $ac_word... " >&6; }
13090 if ${ac_cv_path_SETFILE+:} false; then :
13091   $as_echo_n "(cached) " >&6
13092 else
13093   case $SETFILE in
13094   [\\/]* | ?:[\\/]*)
13095   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13096   ;;
13097   *)
13098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13100 do
13101   IFS=$as_save_IFS
13102   test -z "$as_dir" && as_dir=.
13103     for ac_exec_ext in '' $ac_executable_extensions; do
13104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13107     break 2
13108   fi
13109 done
13110   done
13111 IFS=$as_save_IFS
13112 
13113   ;;
13114 esac
13115 fi
13116 SETFILE=$ac_cv_path_SETFILE
13117 if test -n "$SETFILE"; then
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13119 $as_echo "$SETFILE" >&6; }
13120 else
13121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122 $as_echo "no" >&6; }
13123 fi
13124 
13125 
13126   test -n "$SETFILE" && break
13127 done
13128 
13129   else
13130     # The variable is set, but is it from the command line or the environment?
13131 
13132     # Try to remove the string !SETFILE! from our list.
13133     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13134     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13135       # If it failed, the variable was not from the command line. Ignore it,
13136       # but warn the user (except for BASH, which is always set by the calling BASH).
13137       if test "xSETFILE" != xBASH; then
13138         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13139 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13140       fi
13141       # Try to locate tool using the code snippet
13142       for ac_prog in SetFile
13143 do
13144   # Extract the first word of "$ac_prog", so it can be a program name with args.
13145 set dummy $ac_prog; ac_word=$2
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13147 $as_echo_n "checking for $ac_word... " >&6; }
13148 if ${ac_cv_path_SETFILE+:} false; then :
13149   $as_echo_n "(cached) " >&6
13150 else
13151   case $SETFILE in
13152   [\\/]* | ?:[\\/]*)
13153   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13154   ;;
13155   *)
13156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in $PATH
13158 do
13159   IFS=$as_save_IFS
13160   test -z "$as_dir" && as_dir=.
13161     for ac_exec_ext in '' $ac_executable_extensions; do
13162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13163     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13165     break 2
13166   fi
13167 done
13168   done
13169 IFS=$as_save_IFS
13170 
13171   ;;
13172 esac
13173 fi
13174 SETFILE=$ac_cv_path_SETFILE
13175 if test -n "$SETFILE"; then
13176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13177 $as_echo "$SETFILE" >&6; }
13178 else
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13180 $as_echo "no" >&6; }
13181 fi
13182 
13183 
13184   test -n "$SETFILE" && break
13185 done
13186 
13187     else
13188       # If it succeeded, then it was overridden by the user. We will use it
13189       # for the tool.
13190 
13191       # First remove it from the list of overridden variables, so we can test
13192       # for unknown variables in the end.
13193       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13194 
13195       # Check if the provided tool contains a complete path.
13196       tool_specified="$SETFILE"
13197       tool_basename="${tool_specified##*/}"
13198       if test "x$tool_basename" = "x$tool_specified"; then
13199         # A command without a complete path is provided, search $PATH.
13200         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13201 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13202         # Extract the first word of "$tool_basename", so it can be a program name with args.
13203 set dummy $tool_basename; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13205 $as_echo_n "checking for $ac_word... " >&6; }
13206 if ${ac_cv_path_SETFILE+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   case $SETFILE in
13210   [\\/]* | ?:[\\/]*)
13211   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13212   ;;
13213   *)
13214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215 for as_dir in $PATH
13216 do
13217   IFS=$as_save_IFS
13218   test -z "$as_dir" && as_dir=.
13219     for ac_exec_ext in '' $ac_executable_extensions; do
13220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13221     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13223     break 2
13224   fi
13225 done
13226   done
13227 IFS=$as_save_IFS
13228 
13229   ;;
13230 esac
13231 fi
13232 SETFILE=$ac_cv_path_SETFILE
13233 if test -n "$SETFILE"; then
13234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13235 $as_echo "$SETFILE" >&6; }
13236 else
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13238 $as_echo "no" >&6; }
13239 fi
13240 
13241 
13242         if test "x$SETFILE" = x; then
13243           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13244         fi
13245       else
13246         # Otherwise we believe it is a complete path. Use it as it is.
13247         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13248 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13249         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13250 $as_echo_n "checking for SETFILE... " >&6; }
13251         if test ! -x "$tool_specified"; then
13252           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13253 $as_echo "not found" >&6; }
13254           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13255         fi
13256         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13257 $as_echo "$tool_specified" >&6; }
13258       fi
13259     fi
13260   fi
13261 
13262 
13263 
13264 
13265   # Publish this variable in the help.
13266 
13267 
13268   if test "x$CPIO" = x; then
13269     # The variable is not set by user, try to locate tool using the code snippet
13270     for ac_prog in cpio bsdcpio
13271 do
13272   # Extract the first word of "$ac_prog", so it can be a program name with args.
13273 set dummy $ac_prog; ac_word=$2
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275 $as_echo_n "checking for $ac_word... " >&6; }
13276 if ${ac_cv_path_CPIO+:} false; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   case $CPIO in
13280   [\\/]* | ?:[\\/]*)
13281   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13282   ;;
13283   *)
13284   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285 for as_dir in $PATH
13286 do
13287   IFS=$as_save_IFS
13288   test -z "$as_dir" && as_dir=.
13289     for ac_exec_ext in '' $ac_executable_extensions; do
13290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13291     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293     break 2
13294   fi
13295 done
13296   done
13297 IFS=$as_save_IFS
13298 
13299   ;;
13300 esac
13301 fi
13302 CPIO=$ac_cv_path_CPIO
13303 if test -n "$CPIO"; then
13304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13305 $as_echo "$CPIO" >&6; }
13306 else
13307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308 $as_echo "no" >&6; }
13309 fi
13310 
13311 
13312   test -n "$CPIO" && break
13313 done
13314 
13315   else
13316     # The variable is set, but is it from the command line or the environment?
13317 
13318     # Try to remove the string !CPIO! from our list.
13319     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13320     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13321       # If it failed, the variable was not from the command line. Ignore it,
13322       # but warn the user (except for BASH, which is always set by the calling BASH).
13323       if test "xCPIO" != xBASH; then
13324         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13325 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13326       fi
13327       # Try to locate tool using the code snippet
13328       for ac_prog in cpio bsdcpio
13329 do
13330   # Extract the first word of "$ac_prog", so it can be a program name with args.
13331 set dummy $ac_prog; ac_word=$2
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333 $as_echo_n "checking for $ac_word... " >&6; }
13334 if ${ac_cv_path_CPIO+:} false; then :
13335   $as_echo_n "(cached) " >&6
13336 else
13337   case $CPIO in
13338   [\\/]* | ?:[\\/]*)
13339   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13340   ;;
13341   *)
13342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343 for as_dir in $PATH
13344 do
13345   IFS=$as_save_IFS
13346   test -z "$as_dir" && as_dir=.
13347     for ac_exec_ext in '' $ac_executable_extensions; do
13348   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13349     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13350     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351     break 2
13352   fi
13353 done
13354   done
13355 IFS=$as_save_IFS
13356 
13357   ;;
13358 esac
13359 fi
13360 CPIO=$ac_cv_path_CPIO
13361 if test -n "$CPIO"; then
13362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13363 $as_echo "$CPIO" >&6; }
13364 else
13365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13366 $as_echo "no" >&6; }
13367 fi
13368 
13369 
13370   test -n "$CPIO" && break
13371 done
13372 
13373     else
13374       # If it succeeded, then it was overridden by the user. We will use it
13375       # for the tool.
13376 
13377       # First remove it from the list of overridden variables, so we can test
13378       # for unknown variables in the end.
13379       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13380 
13381       # Check if the provided tool contains a complete path.
13382       tool_specified="$CPIO"
13383       tool_basename="${tool_specified##*/}"
13384       if test "x$tool_basename" = "x$tool_specified"; then
13385         # A command without a complete path is provided, search $PATH.
13386         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13387 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13388         # Extract the first word of "$tool_basename", so it can be a program name with args.
13389 set dummy $tool_basename; ac_word=$2
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13391 $as_echo_n "checking for $ac_word... " >&6; }
13392 if ${ac_cv_path_CPIO+:} false; then :
13393   $as_echo_n "(cached) " >&6
13394 else
13395   case $CPIO in
13396   [\\/]* | ?:[\\/]*)
13397   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13398   ;;
13399   *)
13400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13402 do
13403   IFS=$as_save_IFS
13404   test -z "$as_dir" && as_dir=.
13405     for ac_exec_ext in '' $ac_executable_extensions; do
13406   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13409     break 2
13410   fi
13411 done
13412   done
13413 IFS=$as_save_IFS
13414 
13415   ;;
13416 esac
13417 fi
13418 CPIO=$ac_cv_path_CPIO
13419 if test -n "$CPIO"; then
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13421 $as_echo "$CPIO" >&6; }
13422 else
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13424 $as_echo "no" >&6; }
13425 fi
13426 
13427 
13428         if test "x$CPIO" = x; then
13429           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13430         fi
13431       else
13432         # Otherwise we believe it is a complete path. Use it as it is.
13433         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13434 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13435         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13436 $as_echo_n "checking for CPIO... " >&6; }
13437         if test ! -x "$tool_specified"; then
13438           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13439 $as_echo "not found" >&6; }
13440           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13441         fi
13442         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13443 $as_echo "$tool_specified" >&6; }
13444       fi
13445     fi
13446   fi
13447 
13448 
13449 
13450 
13451 # Now we can determine OpenJDK build and target platforms. This is required to
13452 # have early on.
13453 # Make sure we can run config.sub.
13454 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13455   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13456 
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13458 $as_echo_n "checking build system type... " >&6; }
13459 if ${ac_cv_build+:} false; then :
13460   $as_echo_n "(cached) " >&6
13461 else
13462   ac_build_alias=$build_alias
13463 test "x$ac_build_alias" = x &&
13464   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13465 test "x$ac_build_alias" = x &&
13466   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13467 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13468   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13469 
13470 fi
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13472 $as_echo "$ac_cv_build" >&6; }
13473 case $ac_cv_build in
13474 *-*-*) ;;
13475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13476 esac
13477 build=$ac_cv_build
13478 ac_save_IFS=$IFS; IFS='-'
13479 set x $ac_cv_build
13480 shift
13481 build_cpu=$1
13482 build_vendor=$2
13483 shift; shift
13484 # Remember, the first character of IFS is used to create $*,
13485 # except with old shells:
13486 build_os=$*
13487 IFS=$ac_save_IFS
13488 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13489 
13490 
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13492 $as_echo_n "checking host system type... " >&6; }
13493 if ${ac_cv_host+:} false; then :
13494   $as_echo_n "(cached) " >&6
13495 else
13496   if test "x$host_alias" = x; then
13497   ac_cv_host=$ac_cv_build
13498 else
13499   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13500     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13501 fi
13502 
13503 fi
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13505 $as_echo "$ac_cv_host" >&6; }
13506 case $ac_cv_host in
13507 *-*-*) ;;
13508 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13509 esac
13510 host=$ac_cv_host
13511 ac_save_IFS=$IFS; IFS='-'
13512 set x $ac_cv_host
13513 shift
13514 host_cpu=$1
13515 host_vendor=$2
13516 shift; shift
13517 # Remember, the first character of IFS is used to create $*,
13518 # except with old shells:
13519 host_os=$*
13520 IFS=$ac_save_IFS
13521 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13522 
13523 
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13525 $as_echo_n "checking target system type... " >&6; }
13526 if ${ac_cv_target+:} false; then :
13527   $as_echo_n "(cached) " >&6
13528 else
13529   if test "x$target_alias" = x; then
13530   ac_cv_target=$ac_cv_host
13531 else
13532   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13533     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13534 fi
13535 
13536 fi
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13538 $as_echo "$ac_cv_target" >&6; }
13539 case $ac_cv_target in
13540 *-*-*) ;;
13541 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13542 esac
13543 target=$ac_cv_target
13544 ac_save_IFS=$IFS; IFS='-'
13545 set x $ac_cv_target
13546 shift
13547 target_cpu=$1
13548 target_vendor=$2
13549 shift; shift
13550 # Remember, the first character of IFS is used to create $*,
13551 # except with old shells:
13552 target_os=$*
13553 IFS=$ac_save_IFS
13554 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13555 
13556 
13557 # The aliases save the names the user supplied, while $host etc.
13558 # will get canonicalized.
13559 test -n "$target_alias" &&
13560   test "$program_prefix$program_suffix$program_transform_name" = \
13561     NONENONEs,x,x, &&
13562   program_prefix=${target_alias}-
13563 
13564   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13565   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13566   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13567   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13568   # to use the configure naming style.
13569 
13570 
13571 
13572 
13573 
13574   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13575   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13576   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13577   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13578   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13579   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13580 
13581 
13582 
13583   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13584 
13585   case "$build_os" in
13586     *linux*)
13587       VAR_OS=linux
13588       VAR_OS_API=posix
13589       VAR_OS_ENV=linux
13590       ;;
13591     *solaris*)
13592       VAR_OS=solaris
13593       VAR_OS_API=posix
13594       VAR_OS_ENV=solaris
13595       ;;
13596     *darwin*)
13597       VAR_OS=macosx
13598       VAR_OS_API=posix
13599       VAR_OS_ENV=macosx
13600       ;;
13601     *bsd*)
13602       VAR_OS=bsd
13603       VAR_OS_API=posix
13604       VAR_OS_ENV=bsd
13605       ;;
13606     *cygwin*)
13607       VAR_OS=windows
13608       VAR_OS_API=winapi
13609       VAR_OS_ENV=windows.cygwin
13610       ;;
13611     *mingw*)
13612       VAR_OS=windows
13613       VAR_OS_API=winapi
13614       VAR_OS_ENV=windows.msys
13615       ;;
13616     *aix*)
13617       VAR_OS=aix
13618       VAR_OS_API=posix
13619       VAR_OS_ENV=aix
13620       ;;
13621     *)
13622       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13623       ;;
13624   esac
13625 
13626 
13627   # First argument is the cpu name from the trip/quad
13628   case "$build_cpu" in
13629     x86_64)
13630       VAR_CPU=x86_64
13631       VAR_CPU_ARCH=x86
13632       VAR_CPU_BITS=64
13633       VAR_CPU_ENDIAN=little
13634       ;;
13635     i?86)
13636       VAR_CPU=x86
13637       VAR_CPU_ARCH=x86
13638       VAR_CPU_BITS=32
13639       VAR_CPU_ENDIAN=little
13640       ;;
13641     arm*)
13642       VAR_CPU=arm
13643       VAR_CPU_ARCH=arm
13644       VAR_CPU_BITS=32
13645       VAR_CPU_ENDIAN=little
13646       ;;
13647     aarch64)
13648       VAR_CPU=aarch64
13649       VAR_CPU_ARCH=aarch64
13650       VAR_CPU_BITS=64
13651       VAR_CPU_ENDIAN=little
13652       ;;
13653     powerpc)
13654       VAR_CPU=ppc
13655       VAR_CPU_ARCH=ppc
13656       VAR_CPU_BITS=32
13657       VAR_CPU_ENDIAN=big
13658       ;;
13659     powerpc64)
13660       VAR_CPU=ppc64
13661       VAR_CPU_ARCH=ppc
13662       VAR_CPU_BITS=64
13663       VAR_CPU_ENDIAN=big
13664       ;;
13665     powerpc64le)
13666       VAR_CPU=ppc64le
13667       VAR_CPU_ARCH=ppc
13668       VAR_CPU_BITS=64
13669       VAR_CPU_ENDIAN=little
13670       ;;
13671     s390)
13672       VAR_CPU=s390
13673       VAR_CPU_ARCH=s390
13674       VAR_CPU_BITS=32
13675       VAR_CPU_ENDIAN=big
13676       ;;
13677     s390x)
13678       VAR_CPU=s390x
13679       VAR_CPU_ARCH=s390
13680       VAR_CPU_BITS=64
13681       VAR_CPU_ENDIAN=big
13682       ;;
13683     sparc)
13684       VAR_CPU=sparc
13685       VAR_CPU_ARCH=sparc
13686       VAR_CPU_BITS=32
13687       VAR_CPU_ENDIAN=big
13688       ;;
13689     sparcv9|sparc64)
13690       VAR_CPU=sparcv9
13691       VAR_CPU_ARCH=sparc
13692       VAR_CPU_BITS=64
13693       VAR_CPU_ENDIAN=big
13694       ;;
13695     *)
13696       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13697       ;;
13698   esac
13699 
13700   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13701   OPENJDK_BUILD_OS="$VAR_OS"
13702   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13703   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13704   OPENJDK_BUILD_CPU="$VAR_CPU"
13705   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13706   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13707   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13708 
13709 
13710 
13711 
13712 
13713 
13714 
13715 
13716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13717 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13719 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13720 
13721   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13722 
13723   case "$host_os" in
13724     *linux*)
13725       VAR_OS=linux
13726       VAR_OS_API=posix
13727       VAR_OS_ENV=linux
13728       ;;
13729     *solaris*)
13730       VAR_OS=solaris
13731       VAR_OS_API=posix
13732       VAR_OS_ENV=solaris
13733       ;;
13734     *darwin*)
13735       VAR_OS=macosx
13736       VAR_OS_API=posix
13737       VAR_OS_ENV=macosx
13738       ;;
13739     *bsd*)
13740       VAR_OS=bsd
13741       VAR_OS_API=posix
13742       VAR_OS_ENV=bsd
13743       ;;
13744     *cygwin*)
13745       VAR_OS=windows
13746       VAR_OS_API=winapi
13747       VAR_OS_ENV=windows.cygwin
13748       ;;
13749     *mingw*)
13750       VAR_OS=windows
13751       VAR_OS_API=winapi
13752       VAR_OS_ENV=windows.msys
13753       ;;
13754     *aix*)
13755       VAR_OS=aix
13756       VAR_OS_API=posix
13757       VAR_OS_ENV=aix
13758       ;;
13759     *)
13760       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13761       ;;
13762   esac
13763 
13764 
13765   # First argument is the cpu name from the trip/quad
13766   case "$host_cpu" in
13767     x86_64)
13768       VAR_CPU=x86_64
13769       VAR_CPU_ARCH=x86
13770       VAR_CPU_BITS=64
13771       VAR_CPU_ENDIAN=little
13772       ;;
13773     i?86)
13774       VAR_CPU=x86
13775       VAR_CPU_ARCH=x86
13776       VAR_CPU_BITS=32
13777       VAR_CPU_ENDIAN=little
13778       ;;
13779     arm*)
13780       VAR_CPU=arm
13781       VAR_CPU_ARCH=arm
13782       VAR_CPU_BITS=32
13783       VAR_CPU_ENDIAN=little
13784       ;;
13785     aarch64)
13786       VAR_CPU=aarch64
13787       VAR_CPU_ARCH=aarch64
13788       VAR_CPU_BITS=64
13789       VAR_CPU_ENDIAN=little
13790       ;;
13791     powerpc)
13792       VAR_CPU=ppc
13793       VAR_CPU_ARCH=ppc
13794       VAR_CPU_BITS=32
13795       VAR_CPU_ENDIAN=big
13796       ;;
13797     powerpc64)
13798       VAR_CPU=ppc64
13799       VAR_CPU_ARCH=ppc
13800       VAR_CPU_BITS=64
13801       VAR_CPU_ENDIAN=big
13802       ;;
13803     powerpc64le)
13804       VAR_CPU=ppc64le
13805       VAR_CPU_ARCH=ppc
13806       VAR_CPU_BITS=64
13807       VAR_CPU_ENDIAN=little
13808       ;;
13809     s390)
13810       VAR_CPU=s390
13811       VAR_CPU_ARCH=s390
13812       VAR_CPU_BITS=32
13813       VAR_CPU_ENDIAN=big
13814       ;;
13815     s390x)
13816       VAR_CPU=s390x
13817       VAR_CPU_ARCH=s390
13818       VAR_CPU_BITS=64
13819       VAR_CPU_ENDIAN=big
13820       ;;
13821     sparc)
13822       VAR_CPU=sparc
13823       VAR_CPU_ARCH=sparc
13824       VAR_CPU_BITS=32
13825       VAR_CPU_ENDIAN=big
13826       ;;
13827     sparcv9|sparc64)
13828       VAR_CPU=sparcv9
13829       VAR_CPU_ARCH=sparc
13830       VAR_CPU_BITS=64
13831       VAR_CPU_ENDIAN=big
13832       ;;
13833     *)
13834       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13835       ;;
13836   esac
13837 
13838   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13839   OPENJDK_TARGET_OS="$VAR_OS"
13840   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13841   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13842   OPENJDK_TARGET_CPU="$VAR_CPU"
13843   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13844   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13845   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13846 
13847 
13848 
13849 
13850 
13851 
13852 
13853 
13854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13855 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13857 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13858 
13859 
13860 
13861 # Check whether --with-target-bits was given.
13862 if test "${with_target_bits+set}" = set; then :
13863   withval=$with_target_bits;
13864 fi
13865 
13866 
13867   # We have three types of compiles:
13868   # native  == normal compilation, target system == build system
13869   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13870   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13871   #
13872   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13873     # We're doing a proper cross-compilation
13874     COMPILE_TYPE="cross"
13875   else
13876     COMPILE_TYPE="native"
13877   fi
13878 
13879   if test "x$with_target_bits" != x; then
13880     if test "x$COMPILE_TYPE" = "xcross"; then
13881       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13882     fi
13883 
13884     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13885       # A reduced build is requested
13886       COMPILE_TYPE="reduced"
13887       OPENJDK_TARGET_CPU_BITS=32
13888       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13889         OPENJDK_TARGET_CPU=x86
13890       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13891         OPENJDK_TARGET_CPU=sparc
13892       else
13893         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13894       fi
13895     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13896       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
13897     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13898       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13899 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13900     else
13901       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13902     fi
13903   fi
13904 
13905 
13906   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13907 $as_echo_n "checking compilation type... " >&6; }
13908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13909 $as_echo "$COMPILE_TYPE" >&6; }
13910 
13911 
13912   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13913     REQUIRED_OS_NAME=SunOS
13914     REQUIRED_OS_VERSION=5.10
13915   fi
13916   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13917     REQUIRED_OS_NAME=Linux
13918     REQUIRED_OS_VERSION=2.6
13919   fi
13920   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13921     REQUIRED_OS_NAME=Windows
13922     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13923       REQUIRED_OS_VERSION=5.2
13924     else
13925       REQUIRED_OS_VERSION=5.1
13926     fi
13927   fi
13928   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13929     REQUIRED_OS_NAME=Darwin
13930     REQUIRED_OS_VERSION=11.2
13931   fi
13932 
13933 
13934 
13935 
13936 
13937   # Also store the legacy naming of the cpu.
13938   # Ie i586 and amd64 instead of x86 and x86_64
13939   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13940   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13941     OPENJDK_TARGET_CPU_LEGACY="i586"
13942   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13943     # On all platforms except MacOSX replace x86_64 with amd64.
13944     OPENJDK_TARGET_CPU_LEGACY="amd64"
13945   fi
13946 
13947 
13948   # And the second legacy naming of the cpu.
13949   # Ie i386 and amd64 instead of x86 and x86_64.
13950   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13951   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13952     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13953   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13954     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13955   fi
13956 
13957 
13958   # This is the name of the cpu (but using i386 and amd64 instead of
13959   # x86 and x86_64, respectively), preceeded by a /, to be used when
13960   # locating libraries. On macosx, it's empty, though.
13961   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13962   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13963     OPENJDK_TARGET_CPU_LIBDIR=""
13964   fi
13965 
13966 
13967   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13968   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13969   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13970   OPENJDK_TARGET_CPU_ISADIR=""
13971   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13972     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13973       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13974     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13975       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13976     fi
13977   fi
13978 
13979 
13980   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13981   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13982   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13983     # On linux only, we replace x86 with i386.
13984     OPENJDK_TARGET_CPU_OSARCH="i386"
13985   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13986     # On all platforms except macosx, we replace x86_64 with amd64.
13987     OPENJDK_TARGET_CPU_OSARCH="amd64"
13988   fi
13989 
13990 
13991   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13992   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13993     OPENJDK_TARGET_CPU_JLI="i386"
13994   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13995     # On all platforms except macosx, we replace x86_64 with amd64.
13996     OPENJDK_TARGET_CPU_JLI="amd64"
13997   fi
13998   # Now setup the -D flags for building libjli.
13999   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14000   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14001     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14002       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14003     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14004       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14005     fi
14006   elif test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$TOOLCHAIN_TYPE" = xclang ; then
14007     OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -stdlib=libc++ -mmacosx-version-min=\$(MACOSX_VERSION_MIN)"
14008   fi
14009 
14010 
14011   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
14012   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
14013     OPENJDK_TARGET_OS_API_DIR="solaris"
14014   fi
14015   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14016     OPENJDK_TARGET_OS_API_DIR="windows"
14017   fi
14018 
14019 
14020   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14021       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14022   else
14023       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14024   fi
14025 
14026 
14027   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14028     A_LP64="LP64:="
14029     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14030     # unpack200.exe
14031     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14032       ADD_LP64="-D_LP64=1"
14033     fi
14034   fi
14035   LP64=$A_LP64
14036 
14037 
14038   if test "x$COMPILE_TYPE" = "xcross"; then
14039     # FIXME: ... or should this include reduced builds..?
14040     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14041   else
14042     DEFINE_CROSS_COMPILE_ARCH=""
14043   fi
14044 
14045 
14046   # ZERO_ARCHDEF is used to enable architecture-specific code
14047   case "${OPENJDK_TARGET_CPU}" in
14048     ppc)     ZERO_ARCHDEF=PPC32 ;;
14049     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14050     s390*)   ZERO_ARCHDEF=S390  ;;
14051     sparc*)  ZERO_ARCHDEF=SPARC ;;
14052     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14053     x86)     ZERO_ARCHDEF=IA32  ;;
14054     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14055   esac
14056 
14057 
14058 
14059 
14060 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14061 
14062   # Save the current directory this script was started from
14063   CURDIR="$PWD"
14064 
14065   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14066     PATH_SEP=";"
14067 
14068   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14069   if test $SRC_ROOT_LENGTH -gt 100; then
14070     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14071   fi
14072 
14073   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14074     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14075 $as_echo_n "checking cygwin release... " >&6; }
14076     CYGWIN_VERSION=`$UNAME -r`
14077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14078 $as_echo "$CYGWIN_VERSION" >&6; }
14079     WINDOWS_ENV_VENDOR='cygwin'
14080     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14081 
14082     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14083     if test "x$CYGWIN_VERSION_OLD" != x; then
14084       { $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
14085 $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;}
14086       as_fn_error $? "Cannot continue" "$LINENO" 5
14087     fi
14088     if test "x$CYGPATH" = x; then
14089       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14090     fi
14091     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14092 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14093     # The cmd output ends with Windows line endings (CR/LF)
14094     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14095     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14096     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14098 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14099     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14100     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14101     if test "x$test_cygdrive_prefix" = x; then
14102       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14103     fi
14104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14106 $as_echo_n "checking msys release... " >&6; }
14107     MSYS_VERSION=`$UNAME -r`
14108     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14109 $as_echo "$MSYS_VERSION" >&6; }
14110 
14111     WINDOWS_ENV_VENDOR='msys'
14112     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14113 
14114     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14115 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14116     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14117     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14118 
14119   windows_path="$MSYS_ROOT_PATH"
14120   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14121     unix_path=`$CYGPATH -u "$windows_path"`
14122     MSYS_ROOT_PATH="$unix_path"
14123   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14124     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14125     MSYS_ROOT_PATH="$unix_path"
14126   fi
14127 
14128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14129 $as_echo "$MSYS_ROOT_PATH" >&6; }
14130     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14131   else
14132     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14133   fi
14134 
14135   # Test if windows or unix (cygwin/msys) find is first in path.
14136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14137 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14138   FIND_BINARY_OUTPUT=`find --version 2>&1`
14139   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14141 $as_echo "unix style" >&6; }
14142   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14143     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14144 $as_echo "Windows" >&6; }
14145     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14146 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14147     { $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
14148 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14149     as_fn_error $? "Cannot continue" "$LINENO" 5
14150   else
14151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14152 $as_echo "unknown" >&6; }
14153     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14154 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14155   fi
14156 
14157   else
14158     PATH_SEP=":"
14159   fi
14160 
14161 
14162   # We get the top-level directory from the supporting wrappers.
14163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14164 $as_echo_n "checking for top-level directory... " >&6; }
14165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14166 $as_echo "$TOPDIR" >&6; }
14167 
14168 
14169   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14170 
14171   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14172 
14173   # Input might be given as Windows format, start by converting to
14174   # unix format.
14175   path="$CURDIR"
14176   new_path=`$CYGPATH -u "$path"`
14177 
14178   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14179   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14180   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14181   # "foo.exe" is OK but "foo" is an error.
14182   #
14183   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14184   # It is also a way to make sure we got the proper file name for the real test later on.
14185   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14186   if test "x$test_shortpath" = x; then
14187     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14188 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14189     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14190   fi
14191 
14192   # Call helper function which possibly converts this using DOS-style short mode.
14193   # If so, the updated path is stored in $new_path.
14194 
14195   input_path="$new_path"
14196   # Check if we need to convert this using DOS-style short mode. If the path
14197   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14198   # take no chances and rewrite it.
14199   # Note: m4 eats our [], so we need to use [ and ] instead.
14200   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14201   if test "x$has_forbidden_chars" != x; then
14202     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14203     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14204     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14205     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14206       # Going to short mode and back again did indeed matter. Since short mode is
14207       # case insensitive, let's make it lowercase to improve readability.
14208       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14209       # Now convert it back to Unix-style (cygpath)
14210       input_path=`$CYGPATH -u "$shortmode_path"`
14211       new_path="$input_path"
14212     fi
14213   fi
14214 
14215   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14216   if test "x$test_cygdrive_prefix" = x; then
14217     # As a simple fix, exclude /usr/bin since it's not a real path.
14218     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14219       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14220       # a path prefixed by /cygdrive for fixpath to work.
14221       new_path="$CYGWIN_ROOT_PATH$input_path"
14222     fi
14223   fi
14224 
14225 
14226   if test "x$path" != "x$new_path"; then
14227     CURDIR="$new_path"
14228     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14229 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14230   fi
14231 
14232   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14233 
14234   path="$CURDIR"
14235   has_colon=`$ECHO $path | $GREP ^.:`
14236   new_path="$path"
14237   if test "x$has_colon" = x; then
14238     # Not in mixed or Windows style, start by that.
14239     new_path=`cmd //c echo $path`
14240   fi
14241 
14242 
14243   input_path="$new_path"
14244   # Check if we need to convert this using DOS-style short mode. If the path
14245   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14246   # take no chances and rewrite it.
14247   # Note: m4 eats our [], so we need to use [ and ] instead.
14248   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14249   if test "x$has_forbidden_chars" != x; then
14250     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14251     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14252   fi
14253 
14254 
14255   windows_path="$new_path"
14256   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14257     unix_path=`$CYGPATH -u "$windows_path"`
14258     new_path="$unix_path"
14259   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14260     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14261     new_path="$unix_path"
14262   fi
14263 
14264   if test "x$path" != "x$new_path"; then
14265     CURDIR="$new_path"
14266     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14267 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14268   fi
14269 
14270   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14271   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14272 
14273   else
14274     # We're on a posix platform. Hooray! :)
14275     path="$CURDIR"
14276     has_space=`$ECHO "$path" | $GREP " "`
14277     if test "x$has_space" != x; then
14278       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14279 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14280       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14281     fi
14282 
14283     # Use eval to expand a potential ~
14284     eval path="$path"
14285     if test ! -f "$path" && test ! -d "$path"; then
14286       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14287     fi
14288 
14289     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14290   fi
14291 
14292 
14293   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14294 
14295   # Input might be given as Windows format, start by converting to
14296   # unix format.
14297   path="$TOPDIR"
14298   new_path=`$CYGPATH -u "$path"`
14299 
14300   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14301   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14302   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14303   # "foo.exe" is OK but "foo" is an error.
14304   #
14305   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14306   # It is also a way to make sure we got the proper file name for the real test later on.
14307   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14308   if test "x$test_shortpath" = x; then
14309     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14310 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14311     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14312   fi
14313 
14314   # Call helper function which possibly converts this using DOS-style short mode.
14315   # If so, the updated path is stored in $new_path.
14316 
14317   input_path="$new_path"
14318   # Check if we need to convert this using DOS-style short mode. If the path
14319   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14320   # take no chances and rewrite it.
14321   # Note: m4 eats our [], so we need to use [ and ] instead.
14322   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14323   if test "x$has_forbidden_chars" != x; then
14324     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14325     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14326     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14327     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14328       # Going to short mode and back again did indeed matter. Since short mode is
14329       # case insensitive, let's make it lowercase to improve readability.
14330       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14331       # Now convert it back to Unix-style (cygpath)
14332       input_path=`$CYGPATH -u "$shortmode_path"`
14333       new_path="$input_path"
14334     fi
14335   fi
14336 
14337   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14338   if test "x$test_cygdrive_prefix" = x; then
14339     # As a simple fix, exclude /usr/bin since it's not a real path.
14340     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14341       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14342       # a path prefixed by /cygdrive for fixpath to work.
14343       new_path="$CYGWIN_ROOT_PATH$input_path"
14344     fi
14345   fi
14346 
14347 
14348   if test "x$path" != "x$new_path"; then
14349     TOPDIR="$new_path"
14350     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14351 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14352   fi
14353 
14354   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14355 
14356   path="$TOPDIR"
14357   has_colon=`$ECHO $path | $GREP ^.:`
14358   new_path="$path"
14359   if test "x$has_colon" = x; then
14360     # Not in mixed or Windows style, start by that.
14361     new_path=`cmd //c echo $path`
14362   fi
14363 
14364 
14365   input_path="$new_path"
14366   # Check if we need to convert this using DOS-style short mode. If the path
14367   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14368   # take no chances and rewrite it.
14369   # Note: m4 eats our [], so we need to use [ and ] instead.
14370   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14371   if test "x$has_forbidden_chars" != x; then
14372     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14373     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14374   fi
14375 
14376 
14377   windows_path="$new_path"
14378   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14379     unix_path=`$CYGPATH -u "$windows_path"`
14380     new_path="$unix_path"
14381   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14382     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14383     new_path="$unix_path"
14384   fi
14385 
14386   if test "x$path" != "x$new_path"; then
14387     TOPDIR="$new_path"
14388     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14389 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14390   fi
14391 
14392   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14393   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14394 
14395   else
14396     # We're on a posix platform. Hooray! :)
14397     path="$TOPDIR"
14398     has_space=`$ECHO "$path" | $GREP " "`
14399     if test "x$has_space" != x; then
14400       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14401 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14402       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14403     fi
14404 
14405     # Use eval to expand a potential ~
14406     eval path="$path"
14407     if test ! -f "$path" && test ! -d "$path"; then
14408       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14409     fi
14410 
14411     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14412   fi
14413 
14414   # SRC_ROOT is a traditional alias for TOPDIR.
14415   SRC_ROOT=$TOPDIR
14416 
14417   # Locate the directory of this script.
14418   AUTOCONF_DIR=$TOPDIR/common/autoconf
14419 
14420 
14421   # Setup default logging of stdout and stderr to build.log in the output root.
14422   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14423   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14424   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14425 
14426 
14427 
14428 
14429 
14430 # Check if it's a pure open build or if custom sources are to be used.
14431 
14432   # Check whether --enable-openjdk-only was given.
14433 if test "${enable_openjdk_only+set}" = set; then :
14434   enableval=$enable_openjdk_only;
14435 else
14436   enable_openjdk_only="no"
14437 fi
14438 
14439 
14440   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14441 $as_echo_n "checking for presence of closed sources... " >&6; }
14442   if test -d "$SRC_ROOT/jdk/src/closed"; then
14443     CLOSED_SOURCE_PRESENT=yes
14444   else
14445     CLOSED_SOURCE_PRESENT=no
14446   fi
14447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14448 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14449 
14450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14451 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14452   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14454 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14455 
14456   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14457     OPENJDK=true
14458     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14459       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14460 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14461     fi
14462   else
14463     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14464       OPENJDK=true
14465     else
14466       OPENJDK=false
14467     fi
14468   fi
14469 
14470   if test "x$OPENJDK" = "xtrue"; then
14471     SET_OPENJDK="OPENJDK=true"
14472   fi
14473 
14474 
14475 
14476 
14477 # These are needed to be able to create a configuration name (and thus the output directory)
14478 
14479   ###############################################################################
14480   #
14481   # Check which variant of the JDK that we want to build.
14482   # Currently we have:
14483   #    normal:   standard edition
14484   # but the custom make system may add other variants
14485   #
14486   # Effectively the JDK variant gives a name to a specific set of
14487   # modules to compile into the JDK. In the future, these modules
14488   # might even be Jigsaw modules.
14489   #
14490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14491 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14492 
14493 # Check whether --with-jdk-variant was given.
14494 if test "${with_jdk_variant+set}" = set; then :
14495   withval=$with_jdk_variant;
14496 fi
14497 
14498 
14499   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14500     JDK_VARIANT="normal"
14501   else
14502     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14503   fi
14504 
14505 
14506 
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14508 $as_echo "$JDK_VARIANT" >&6; }
14509 
14510 
14511 ###############################################################################
14512 #
14513 # Check which interpreter of the JVM we want to build.
14514 # Currently we have:
14515 #    template: Template interpreter (the default)
14516 #    cpp     : C++ interpreter
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14518 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14519 
14520 # Check whether --with-jvm-interpreter was given.
14521 if test "${with_jvm_interpreter+set}" = set; then :
14522   withval=$with_jvm_interpreter;
14523 fi
14524 
14525 
14526 if test "x$with_jvm_interpreter" = x; then
14527      with_jvm_interpreter="template"
14528 fi
14529 
14530 JVM_INTERPRETER="$with_jvm_interpreter"
14531 
14532 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14533    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14534 fi
14535 
14536 
14537 
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14539 $as_echo "$with_jvm_interpreter" >&6; }
14540 
14541 
14542 
14543   ###############################################################################
14544   #
14545   # Check which variants of the JVM that we want to build.
14546   # Currently we have:
14547   #    server: normal interpreter and a tiered C1/C2 compiler
14548   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14549   #    minimal1: reduced form of client with optional VM services and features stripped out
14550   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14551   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14552   #    zero: no machine code interpreter, no compiler
14553   #    zeroshark: zero interpreter and shark/llvm compiler backend
14554 #    core: interpreter only, no compiler (only works on some platforms)
14555   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14556 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14557 
14558 # Check whether --with-jvm-variants was given.
14559 if test "${with_jvm_variants+set}" = set; then :
14560   withval=$with_jvm_variants;
14561 fi
14562 
14563 
14564   if test "x$with_jvm_variants" = x; then
14565     with_jvm_variants="server"
14566   fi
14567 
14568   JVM_VARIANTS=",$with_jvm_variants,"
14569   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,//'`
14570 
14571   if test "x$TEST_VARIANTS" != "x,"; then
14572      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14573   fi
14574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14575 $as_echo "$with_jvm_variants" >&6; }
14576 
14577   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14578   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14579   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14580   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14581   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14582   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14583   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14584 
14585   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14586     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14587       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14588     fi
14589   fi
14590   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14591     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14592       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14593     fi
14594   fi
14595   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14596     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14597       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14598     fi
14599   fi
14600 
14601   # Replace the commas with AND for use in the build directory name.
14602   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14603   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/'`
14604   if test "x$COUNT_VARIANTS" != "x,1"; then
14605     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14606   else
14607     BUILDING_MULTIPLE_JVM_VARIANTS=no
14608   fi
14609 
14610 
14611 
14612 
14613 
14614 
14615 
14616 
14617 
14618 
14619   INCLUDE_SA=true
14620   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14621     INCLUDE_SA=false
14622   fi
14623   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14624     INCLUDE_SA=false
14625   fi
14626   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14627     INCLUDE_SA=false
14628   fi
14629 
14630 
14631   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14632     MACOSX_UNIVERSAL="false"
14633   fi
14634 
14635 
14636 
14637 
14638   ###############################################################################
14639   #
14640   # Set the debug level
14641   #    release: no debug information, all optimizations, no asserts.
14642   #    fastdebug: debug information (-g), all optimizations, all asserts
14643   #    slowdebug: debug information (-g), no optimizations, all asserts
14644   #
14645   DEBUG_LEVEL="release"
14646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14647 $as_echo_n "checking which debug level to use... " >&6; }
14648   # Check whether --enable-debug was given.
14649 if test "${enable_debug+set}" = set; then :
14650   enableval=$enable_debug;
14651         ENABLE_DEBUG="${enableval}"
14652         DEBUG_LEVEL="fastdebug"
14653 
14654 else
14655   ENABLE_DEBUG="no"
14656 fi
14657 
14658 
14659 
14660 # Check whether --with-debug-level was given.
14661 if test "${with_debug_level+set}" = set; then :
14662   withval=$with_debug_level;
14663         DEBUG_LEVEL="${withval}"
14664         if test "x$ENABLE_DEBUG" = xyes; then
14665           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14666         fi
14667 
14668 fi
14669 
14670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14671 $as_echo "$DEBUG_LEVEL" >&6; }
14672 
14673   if test "x$DEBUG_LEVEL" != xrelease && \
14674       test "x$DEBUG_LEVEL" != xfastdebug && \
14675       test "x$DEBUG_LEVEL" != xslowdebug; then
14676     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14677   fi
14678 
14679 
14680   ###############################################################################
14681   #
14682   # Setup legacy vars/targets and new vars to deal with different debug levels.
14683   #
14684 
14685   case $DEBUG_LEVEL in
14686     release )
14687       VARIANT="OPT"
14688       FASTDEBUG="false"
14689       DEBUG_CLASSFILES="false"
14690       BUILD_VARIANT_RELEASE=""
14691       HOTSPOT_DEBUG_LEVEL="product"
14692       HOTSPOT_EXPORT="product"
14693       ;;
14694     fastdebug )
14695       VARIANT="DBG"
14696       FASTDEBUG="true"
14697       DEBUG_CLASSFILES="true"
14698       BUILD_VARIANT_RELEASE="-fastdebug"
14699       HOTSPOT_DEBUG_LEVEL="fastdebug"
14700       HOTSPOT_EXPORT="fastdebug"
14701       ;;
14702     slowdebug )
14703       VARIANT="DBG"
14704       FASTDEBUG="false"
14705       DEBUG_CLASSFILES="true"
14706       BUILD_VARIANT_RELEASE="-debug"
14707       HOTSPOT_DEBUG_LEVEL="jvmg"
14708       HOTSPOT_EXPORT="debug"
14709       ;;
14710   esac
14711 
14712   #####
14713   # Generate the legacy makefile targets for hotspot.
14714   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14715   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14716   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14717   # But until then ...
14718   HOTSPOT_TARGET=""
14719 
14720   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14721     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14722   fi
14723 
14724   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14725     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14726   fi
14727 
14728   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14729     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14730   fi
14731 
14732   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14733     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14734   fi
14735 
14736   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14737     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14738   fi
14739 
14740   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14741     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14742   fi
14743 
14744   if test "x$JVM_VARIANT_CORE" = xtrue; then
14745     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14746   fi
14747 
14748   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14749 
14750   # On Macosx universal binaries are produced, but they only contain
14751   # 64 bit intel. This invalidates control of which jvms are built
14752   # from configure, but only server is valid anyway. Fix this
14753   # when hotspot makefiles are rewritten.
14754   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14755     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14756   fi
14757 
14758   #####
14759 
14760 
14761 
14762 
14763 
14764 
14765 
14766 
14767 # With basic setup done, call the custom early hook.
14768 
14769 
14770 # Check if we have devkits, extra paths or sysroot set.
14771 
14772 
14773 # Check whether --with-devkit was given.
14774 if test "${with_devkit+set}" = set; then :
14775   withval=$with_devkit;
14776 fi
14777 
14778 
14779   if test "x$with_devkit" = xyes; then
14780     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14781   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14782 
14783   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14784 
14785   # Input might be given as Windows format, start by converting to
14786   # unix format.
14787   path="$with_devkit"
14788   new_path=`$CYGPATH -u "$path"`
14789 
14790   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14791   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14792   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14793   # "foo.exe" is OK but "foo" is an error.
14794   #
14795   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14796   # It is also a way to make sure we got the proper file name for the real test later on.
14797   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14798   if test "x$test_shortpath" = x; then
14799     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14800 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14801     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14802   fi
14803 
14804   # Call helper function which possibly converts this using DOS-style short mode.
14805   # If so, the updated path is stored in $new_path.
14806 
14807   input_path="$new_path"
14808   # Check if we need to convert this using DOS-style short mode. If the path
14809   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14810   # take no chances and rewrite it.
14811   # Note: m4 eats our [], so we need to use [ and ] instead.
14812   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14813   if test "x$has_forbidden_chars" != x; then
14814     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14815     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14816     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14817     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14818       # Going to short mode and back again did indeed matter. Since short mode is
14819       # case insensitive, let's make it lowercase to improve readability.
14820       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14821       # Now convert it back to Unix-style (cygpath)
14822       input_path=`$CYGPATH -u "$shortmode_path"`
14823       new_path="$input_path"
14824     fi
14825   fi
14826 
14827   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14828   if test "x$test_cygdrive_prefix" = x; then
14829     # As a simple fix, exclude /usr/bin since it's not a real path.
14830     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14831       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14832       # a path prefixed by /cygdrive for fixpath to work.
14833       new_path="$CYGWIN_ROOT_PATH$input_path"
14834     fi
14835   fi
14836 
14837 
14838   if test "x$path" != "x$new_path"; then
14839     with_devkit="$new_path"
14840     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14841 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14842   fi
14843 
14844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14845 
14846   path="$with_devkit"
14847   has_colon=`$ECHO $path | $GREP ^.:`
14848   new_path="$path"
14849   if test "x$has_colon" = x; then
14850     # Not in mixed or Windows style, start by that.
14851     new_path=`cmd //c echo $path`
14852   fi
14853 
14854 
14855   input_path="$new_path"
14856   # Check if we need to convert this using DOS-style short mode. If the path
14857   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14858   # take no chances and rewrite it.
14859   # Note: m4 eats our [], so we need to use [ and ] instead.
14860   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14861   if test "x$has_forbidden_chars" != x; then
14862     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14863     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14864   fi
14865 
14866 
14867   windows_path="$new_path"
14868   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14869     unix_path=`$CYGPATH -u "$windows_path"`
14870     new_path="$unix_path"
14871   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14872     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14873     new_path="$unix_path"
14874   fi
14875 
14876   if test "x$path" != "x$new_path"; then
14877     with_devkit="$new_path"
14878     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14879 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14880   fi
14881 
14882   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14883   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14884 
14885   else
14886     # We're on a posix platform. Hooray! :)
14887     path="$with_devkit"
14888     has_space=`$ECHO "$path" | $GREP " "`
14889     if test "x$has_space" != x; then
14890       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14891 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14892       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14893     fi
14894 
14895     # Use eval to expand a potential ~
14896     eval path="$path"
14897     if test ! -f "$path" && test ! -d "$path"; then
14898       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14899     fi
14900 
14901     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14902   fi
14903 
14904     DEVKIT_ROOT="$with_devkit"
14905     # Check for a meta data info file in the root of the devkit
14906     if test -f "$DEVKIT_ROOT/devkit.info"; then
14907       . $DEVKIT_ROOT/devkit.info
14908       # This potentially sets the following:
14909       # A descriptive name of the devkit
14910 
14911   if test "x$DEVKIT_NAME" = x; then
14912     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14913   fi
14914 
14915       # Corresponds to --with-extra-path
14916 
14917   if test "x$DEVKIT_EXTRA_PATH" = x; then
14918     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14919   fi
14920 
14921       # Corresponds to --with-toolchain-path
14922 
14923   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14924     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14925   fi
14926 
14927       # Corresponds to --with-sysroot
14928 
14929   if test "x$DEVKIT_SYSROOT" = x; then
14930     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14931   fi
14932 
14933 
14934       # Identifies the Visual Studio version in the devkit
14935 
14936   if test "x$DEVKIT_VS_VERSION" = x; then
14937     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14938   fi
14939 
14940       # The Visual Studio include environment variable
14941 
14942   if test "x$DEVKIT_VS_INCLUDE" = x; then
14943     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14944   fi
14945 
14946       # The Visual Studio lib environment variable
14947 
14948   if test "x$DEVKIT_VS_LIB" = x; then
14949     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14950   fi
14951 
14952       # Corresponds to --with-msvcr-dll
14953 
14954   if test "x$DEVKIT_MSVCR_DLL" = x; then
14955     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14956   fi
14957 
14958       # Corresponds to --with-msvcp-dll
14959 
14960   if test "x$DEVKIT_MSVCP_DLL" = x; then
14961     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14962   fi
14963 
14964       # Corresponds to --with-ucrt-dll-dir
14965 
14966   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14967     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14968   fi
14969 
14970     fi
14971 
14972     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14973 $as_echo_n "checking for devkit... " >&6; }
14974     if test "x$DEVKIT_NAME" != x; then
14975       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14976 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14977     else
14978       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14979 $as_echo "$DEVKIT_ROOT" >&6; }
14980     fi
14981 
14982 
14983   if test "x$DEVKIT_EXTRA_PATH" != x; then
14984     if test "x$EXTRA_PATH" = x; then
14985       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14986     else
14987       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14988     fi
14989   fi
14990 
14991 
14992     # Fallback default of just /bin if DEVKIT_PATH is not defined
14993     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14994       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14995     fi
14996 
14997   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14998     if test "x$TOOLCHAIN_PATH" = x; then
14999       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
15000     else
15001       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
15002     fi
15003   fi
15004 
15005 
15006     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
15007     # places for backwards compatiblity.
15008     if test "x$DEVKIT_SYSROOT" != x; then
15009       SYSROOT="$DEVKIT_SYSROOT"
15010     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15011       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15012     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15013       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15014     fi
15015 
15016     if test "x$DEVKIT_ROOT" != x; then
15017       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15018       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15019         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15020       fi
15021 
15022     fi
15023   fi
15024 
15025   # You can force the sysroot if the sysroot encoded into the compiler tools
15026   # is not correct.
15027 
15028 # Check whether --with-sys-root was given.
15029 if test "${with_sys_root+set}" = set; then :
15030   withval=$with_sys_root; SYSROOT=$with_sys_root
15031 
15032 fi
15033 
15034 
15035 
15036 # Check whether --with-sysroot was given.
15037 if test "${with_sysroot+set}" = set; then :
15038   withval=$with_sysroot; SYSROOT=$with_sysroot
15039 
15040 fi
15041 
15042 
15043 
15044 # Check whether --with-tools-dir was given.
15045 if test "${with_tools_dir+set}" = set; then :
15046   withval=$with_tools_dir;
15047   if test "x$with_tools_dir" != x; then
15048     if test "x$TOOLCHAIN_PATH" = x; then
15049       TOOLCHAIN_PATH="$with_tools_dir"
15050     else
15051       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15052     fi
15053   fi
15054 
15055 
15056 fi
15057 
15058 
15059 
15060 # Check whether --with-toolchain-path was given.
15061 if test "${with_toolchain_path+set}" = set; then :
15062   withval=$with_toolchain_path;
15063   if test "x$with_toolchain_path" != x; then
15064     if test "x$TOOLCHAIN_PATH" = x; then
15065       TOOLCHAIN_PATH="$with_toolchain_path"
15066     else
15067       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15068     fi
15069   fi
15070 
15071 
15072 fi
15073 
15074 
15075 
15076 # Check whether --with-extra-path was given.
15077 if test "${with_extra_path+set}" = set; then :
15078   withval=$with_extra_path;
15079   if test "x$with_extra_path" != x; then
15080     if test "x$EXTRA_PATH" = x; then
15081       EXTRA_PATH="$with_extra_path"
15082     else
15083       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15084     fi
15085   fi
15086 
15087 
15088 fi
15089 
15090 
15091   # Prepend the extra path to the global path
15092 
15093   if test "x$EXTRA_PATH" != x; then
15094     if test "x$PATH" = x; then
15095       PATH="$EXTRA_PATH"
15096     else
15097       PATH="$EXTRA_PATH:$PATH"
15098     fi
15099   fi
15100 
15101 
15102   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15103     # Add extra search paths on solaris for utilities like ar and as etc...
15104     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15105   fi
15106 
15107   # Xcode version will be validated later
15108 
15109 # Check whether --with-xcode-path was given.
15110 if test "${with_xcode_path+set}" = set; then :
15111   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15112 
15113 fi
15114 
15115 
15116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15117 $as_echo_n "checking for sysroot... " >&6; }
15118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15119 $as_echo "$SYSROOT" >&6; }
15120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15121 $as_echo_n "checking for toolchain path... " >&6; }
15122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15123 $as_echo "$TOOLCHAIN_PATH" >&6; }
15124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15125 $as_echo_n "checking for extra path... " >&6; }
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15127 $as_echo "$EXTRA_PATH" >&6; }
15128 
15129 
15130 # To properly create a configuration name, we need to have the OpenJDK target
15131 # and options (variants and debug level) parsed.
15132 
15133 
15134 
15135 # Check whether --with-conf-name was given.
15136 if test "${with_conf_name+set}" = set; then :
15137   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15138 fi
15139 
15140 
15141   # Test from where we are running configure, in or outside of src root.
15142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15143 $as_echo_n "checking where to store configuration... " >&6; }
15144   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15145       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15146       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15147     # We are running configure from the src root.
15148     # Create a default ./build/target-variant-debuglevel output root.
15149     if test "x${CONF_NAME}" = x; then
15150       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15151 $as_echo "in default location" >&6; }
15152       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15153     else
15154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15155 $as_echo "in build directory with custom name" >&6; }
15156     fi
15157     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15158     $MKDIR -p "$OUTPUT_ROOT"
15159     if test ! -d "$OUTPUT_ROOT"; then
15160       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15161     fi
15162   else
15163     # We are running configure from outside of the src dir.
15164     # Then use the current directory as output dir!
15165     # If configuration is situated in normal build directory, just use the build
15166     # directory name as configuration name, otherwise use the complete path.
15167     if test "x${CONF_NAME}" = x; then
15168       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15169     fi
15170     OUTPUT_ROOT="$CURDIR"
15171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15172 $as_echo "in current directory" >&6; }
15173 
15174     # WARNING: This might be a bad thing to do. You need to be sure you want to
15175     # have a configuration in this directory. Do some sanity checks!
15176 
15177     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15178       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15179       # other files
15180       files_present=`$LS $OUTPUT_ROOT`
15181       # Configure has already touched config.log and confdefs.h in the current dir when this check
15182       # is performed.
15183       filtered_files=`$ECHO "$files_present" \
15184           | $SED -e 's/config.log//g' \
15185               -e 's/configure.log//g' \
15186               -e 's/confdefs.h//g' \
15187               -e 's/ //g' \
15188           | $TR -d '\n'`
15189       if test "x$filtered_files" != x; then
15190         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15191 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15192         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15193 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15194         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15195 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15196         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15197 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15198         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15199 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15200         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15201 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15202         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15203 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15204         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15205       fi
15206     fi
15207   fi
15208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15209 $as_echo_n "checking what configuration name to use... " >&6; }
15210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15211 $as_echo "$CONF_NAME" >&6; }
15212 
15213 
15214   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15215 
15216   # Input might be given as Windows format, start by converting to
15217   # unix format.
15218   path="$OUTPUT_ROOT"
15219   new_path=`$CYGPATH -u "$path"`
15220 
15221   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15222   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15223   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15224   # "foo.exe" is OK but "foo" is an error.
15225   #
15226   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15227   # It is also a way to make sure we got the proper file name for the real test later on.
15228   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15229   if test "x$test_shortpath" = x; then
15230     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15231 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15232     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15233   fi
15234 
15235   # Call helper function which possibly converts this using DOS-style short mode.
15236   # If so, the updated path is stored in $new_path.
15237 
15238   input_path="$new_path"
15239   # Check if we need to convert this using DOS-style short mode. If the path
15240   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15241   # take no chances and rewrite it.
15242   # Note: m4 eats our [], so we need to use [ and ] instead.
15243   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15244   if test "x$has_forbidden_chars" != x; then
15245     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15246     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15247     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15248     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15249       # Going to short mode and back again did indeed matter. Since short mode is
15250       # case insensitive, let's make it lowercase to improve readability.
15251       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15252       # Now convert it back to Unix-style (cygpath)
15253       input_path=`$CYGPATH -u "$shortmode_path"`
15254       new_path="$input_path"
15255     fi
15256   fi
15257 
15258   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15259   if test "x$test_cygdrive_prefix" = x; then
15260     # As a simple fix, exclude /usr/bin since it's not a real path.
15261     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15262       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15263       # a path prefixed by /cygdrive for fixpath to work.
15264       new_path="$CYGWIN_ROOT_PATH$input_path"
15265     fi
15266   fi
15267 
15268 
15269   if test "x$path" != "x$new_path"; then
15270     OUTPUT_ROOT="$new_path"
15271     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15272 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15273   fi
15274 
15275   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15276 
15277   path="$OUTPUT_ROOT"
15278   has_colon=`$ECHO $path | $GREP ^.:`
15279   new_path="$path"
15280   if test "x$has_colon" = x; then
15281     # Not in mixed or Windows style, start by that.
15282     new_path=`cmd //c echo $path`
15283   fi
15284 
15285 
15286   input_path="$new_path"
15287   # Check if we need to convert this using DOS-style short mode. If the path
15288   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15289   # take no chances and rewrite it.
15290   # Note: m4 eats our [], so we need to use [ and ] instead.
15291   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15292   if test "x$has_forbidden_chars" != x; then
15293     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15294     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15295   fi
15296 
15297 
15298   windows_path="$new_path"
15299   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15300     unix_path=`$CYGPATH -u "$windows_path"`
15301     new_path="$unix_path"
15302   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15303     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15304     new_path="$unix_path"
15305   fi
15306 
15307   if test "x$path" != "x$new_path"; then
15308     OUTPUT_ROOT="$new_path"
15309     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15310 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15311   fi
15312 
15313   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15314   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15315 
15316   else
15317     # We're on a posix platform. Hooray! :)
15318     path="$OUTPUT_ROOT"
15319     has_space=`$ECHO "$path" | $GREP " "`
15320     if test "x$has_space" != x; then
15321       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15322 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15323       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15324     fi
15325 
15326     # Use eval to expand a potential ~
15327     eval path="$path"
15328     if test ! -f "$path" && test ! -d "$path"; then
15329       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15330     fi
15331 
15332     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15333   fi
15334 
15335 
15336   SPEC=$OUTPUT_ROOT/spec.gmk
15337 
15338   CONF_NAME=$CONF_NAME
15339 
15340   OUTPUT_ROOT=$OUTPUT_ROOT
15341 
15342 
15343   # Most of the probed defines are put into config.h
15344   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15345 
15346   # The spec.gmk file contains all variables for the make system.
15347   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15348 
15349   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15350   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15351 
15352   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15353   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15354 
15355   # The compare.sh is used to compare the build output to other builds.
15356   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15357 
15358   # Spec.sh is currently used by compare-objects.sh
15359   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15360 
15361   # The generated Makefile knows where the spec.gmk is and where the source is.
15362   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15363   # which will look for generated configurations
15364   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15365 
15366 
15367 
15368 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15369 
15370   for ac_prog in apt-get yum port pkgutil pkgadd
15371 do
15372   # Extract the first word of "$ac_prog", so it can be a program name with args.
15373 set dummy $ac_prog; ac_word=$2
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15375 $as_echo_n "checking for $ac_word... " >&6; }
15376 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15377   $as_echo_n "(cached) " >&6
15378 else
15379   if test -n "$PKGHANDLER"; then
15380   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15381 else
15382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15383 for as_dir in $PATH
15384 do
15385   IFS=$as_save_IFS
15386   test -z "$as_dir" && as_dir=.
15387     for ac_exec_ext in '' $ac_executable_extensions; do
15388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15389     ac_cv_prog_PKGHANDLER="$ac_prog"
15390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15391     break 2
15392   fi
15393 done
15394   done
15395 IFS=$as_save_IFS
15396 
15397 fi
15398 fi
15399 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15400 if test -n "$PKGHANDLER"; then
15401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15402 $as_echo "$PKGHANDLER" >&6; }
15403 else
15404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405 $as_echo "no" >&6; }
15406 fi
15407 
15408 
15409   test -n "$PKGHANDLER" && break
15410 done
15411 
15412 
15413 
15414 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15415 
15416 
15417   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15418   if test "x$MAKE" != x; then
15419     # User has supplied a make, test it.
15420     if test ! -f "$MAKE"; then
15421       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15422     fi
15423 
15424   MAKE_CANDIDATE=""$MAKE""
15425   DESCRIPTION="user supplied MAKE=$MAKE"
15426   if test "x$MAKE_CANDIDATE" != x; then
15427     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15428 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15429     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15430     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15431     if test "x$IS_GNU_MAKE" = x; then
15432       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15433 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15434     else
15435       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15436       if test "x$IS_MODERN_MAKE" = x; then
15437         { $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
15438 $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;}
15439       else
15440         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15441           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15442             MAKE_EXPECTED_ENV='cygwin'
15443           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15444             MAKE_EXPECTED_ENV='msys'
15445           else
15446             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15447           fi
15448           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15449           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15450         else
15451           # Not relevant for non-Windows
15452           IS_MAKE_CORRECT_ENV=true
15453         fi
15454         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15455           { $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
15456 $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;}
15457         else
15458           FOUND_MAKE=$MAKE_CANDIDATE
15459 
15460   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15461 
15462   # First separate the path from the arguments. This will split at the first
15463   # space.
15464   complete="$FOUND_MAKE"
15465   path="${complete%% *}"
15466   tmp="$complete EOL"
15467   arguments="${tmp#* }"
15468 
15469   # Input might be given as Windows format, start by converting to
15470   # unix format.
15471   new_path=`$CYGPATH -u "$path"`
15472 
15473   # Now try to locate executable using which
15474   new_path=`$WHICH "$new_path" 2> /dev/null`
15475   # bat and cmd files are not always considered executable in cygwin causing which
15476   # to not find them
15477   if test "x$new_path" = x \
15478       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15479       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15480     new_path=`$CYGPATH -u "$path"`
15481   fi
15482   if test "x$new_path" = x; then
15483     # Oops. Which didn't find the executable.
15484     # The splitting of arguments from the executable at a space might have been incorrect,
15485     # since paths with space are more likely in Windows. Give it another try with the whole
15486     # argument.
15487     path="$complete"
15488     arguments="EOL"
15489     new_path=`$CYGPATH -u "$path"`
15490     new_path=`$WHICH "$new_path" 2> /dev/null`
15491     # bat and cmd files are not always considered executable in cygwin causing which
15492     # to not find them
15493     if test "x$new_path" = x \
15494         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15495         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15496       new_path=`$CYGPATH -u "$path"`
15497     fi
15498     if test "x$new_path" = x; then
15499       # It's still not found. Now this is an unrecoverable error.
15500       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15501 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15502       has_space=`$ECHO "$complete" | $GREP " "`
15503       if test "x$has_space" != x; then
15504         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15506       fi
15507       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15508     fi
15509   fi
15510 
15511   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15512   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15513   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15514   # "foo.exe" is OK but "foo" is an error.
15515   #
15516   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15517   # It is also a way to make sure we got the proper file name for the real test later on.
15518   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15519   if test "x$test_shortpath" = x; then
15520     # Short path failed, file does not exist as specified.
15521     # Try adding .exe or .cmd
15522     if test -f "${new_path}.exe"; then
15523       input_to_shortpath="${new_path}.exe"
15524     elif test -f "${new_path}.cmd"; then
15525       input_to_shortpath="${new_path}.cmd"
15526     else
15527       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15528 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15529       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15530 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15531       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15532     fi
15533   else
15534     input_to_shortpath="$new_path"
15535   fi
15536 
15537   # Call helper function which possibly converts this using DOS-style short mode.
15538   # If so, the updated path is stored in $new_path.
15539   new_path="$input_to_shortpath"
15540 
15541   input_path="$input_to_shortpath"
15542   # Check if we need to convert this using DOS-style short mode. If the path
15543   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15544   # take no chances and rewrite it.
15545   # Note: m4 eats our [], so we need to use [ and ] instead.
15546   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15547   if test "x$has_forbidden_chars" != x; then
15548     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15549     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15550     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15551     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15552       # Going to short mode and back again did indeed matter. Since short mode is
15553       # case insensitive, let's make it lowercase to improve readability.
15554       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15555       # Now convert it back to Unix-style (cygpath)
15556       input_path=`$CYGPATH -u "$shortmode_path"`
15557       new_path="$input_path"
15558     fi
15559   fi
15560 
15561   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15562   if test "x$test_cygdrive_prefix" = x; then
15563     # As a simple fix, exclude /usr/bin since it's not a real path.
15564     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15565       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15566       # a path prefixed by /cygdrive for fixpath to work.
15567       new_path="$CYGWIN_ROOT_PATH$input_path"
15568     fi
15569   fi
15570 
15571   # remove trailing .exe if any
15572   new_path="${new_path/%.exe/}"
15573 
15574   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15575 
15576   # First separate the path from the arguments. This will split at the first
15577   # space.
15578   complete="$FOUND_MAKE"
15579   path="${complete%% *}"
15580   tmp="$complete EOL"
15581   arguments="${tmp#* }"
15582 
15583   # Input might be given as Windows format, start by converting to
15584   # unix format.
15585   new_path="$path"
15586 
15587   windows_path="$new_path"
15588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15589     unix_path=`$CYGPATH -u "$windows_path"`
15590     new_path="$unix_path"
15591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15593     new_path="$unix_path"
15594   fi
15595 
15596 
15597   # Now try to locate executable using which
15598   new_path=`$WHICH "$new_path" 2> /dev/null`
15599 
15600   if test "x$new_path" = x; then
15601     # Oops. Which didn't find the executable.
15602     # The splitting of arguments from the executable at a space might have been incorrect,
15603     # since paths with space are more likely in Windows. Give it another try with the whole
15604     # argument.
15605     path="$complete"
15606     arguments="EOL"
15607     new_path="$path"
15608 
15609   windows_path="$new_path"
15610   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15611     unix_path=`$CYGPATH -u "$windows_path"`
15612     new_path="$unix_path"
15613   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15614     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15615     new_path="$unix_path"
15616   fi
15617 
15618 
15619     new_path=`$WHICH "$new_path" 2> /dev/null`
15620     # bat and cmd files are not always considered executable in MSYS causing which
15621     # to not find them
15622     if test "x$new_path" = x \
15623         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15624         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15625       new_path="$path"
15626 
15627   windows_path="$new_path"
15628   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15629     unix_path=`$CYGPATH -u "$windows_path"`
15630     new_path="$unix_path"
15631   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15632     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15633     new_path="$unix_path"
15634   fi
15635 
15636     fi
15637 
15638     if test "x$new_path" = x; then
15639       # It's still not found. Now this is an unrecoverable error.
15640       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15641 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15642       has_space=`$ECHO "$complete" | $GREP " "`
15643       if test "x$has_space" != x; then
15644         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15645 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15646       fi
15647       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15648     fi
15649   fi
15650 
15651   # Now new_path has a complete unix path to the binary
15652   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15653     # Keep paths in /bin as-is, but remove trailing .exe if any
15654     new_path="${new_path/%.exe/}"
15655     # Do not save /bin paths to all_fixpath_prefixes!
15656   else
15657     # Not in mixed or Windows style, start by that.
15658     new_path=`cmd //c echo $new_path`
15659 
15660   input_path="$new_path"
15661   # Check if we need to convert this using DOS-style short mode. If the path
15662   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15663   # take no chances and rewrite it.
15664   # Note: m4 eats our [], so we need to use [ and ] instead.
15665   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15666   if test "x$has_forbidden_chars" != x; then
15667     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15668     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15669   fi
15670 
15671     # Output is in $new_path
15672 
15673   windows_path="$new_path"
15674   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15675     unix_path=`$CYGPATH -u "$windows_path"`
15676     new_path="$unix_path"
15677   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15678     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15679     new_path="$unix_path"
15680   fi
15681 
15682     # remove trailing .exe if any
15683     new_path="${new_path/%.exe/}"
15684 
15685     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15686     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15687   fi
15688 
15689   else
15690     # We're on a posix platform. Hooray! :)
15691     # First separate the path from the arguments. This will split at the first
15692     # space.
15693     complete="$FOUND_MAKE"
15694     path="${complete%% *}"
15695     tmp="$complete EOL"
15696     arguments="${tmp#* }"
15697 
15698     # Cannot rely on the command "which" here since it doesn't always work.
15699     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15700     if test -z "$is_absolute_path"; then
15701       # Path to executable is not absolute. Find it.
15702       IFS_save="$IFS"
15703       IFS=:
15704       for p in $PATH; do
15705         if test -f "$p/$path" && test -x "$p/$path"; then
15706           new_path="$p/$path"
15707           break
15708         fi
15709       done
15710       IFS="$IFS_save"
15711     else
15712       # This is an absolute path, we can use it without further modifications.
15713       new_path="$path"
15714     fi
15715 
15716     if test "x$new_path" = x; then
15717       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15718 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15719       has_space=`$ECHO "$complete" | $GREP " "`
15720       if test "x$has_space" != x; then
15721         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15722 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15723       fi
15724       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15725     fi
15726   fi
15727 
15728   # Now join together the path and the arguments once again
15729   if test "x$arguments" != xEOL; then
15730     new_complete="$new_path ${arguments% *}"
15731   else
15732     new_complete="$new_path"
15733   fi
15734 
15735   if test "x$complete" != "x$new_complete"; then
15736     FOUND_MAKE="$new_complete"
15737     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15738 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15739   fi
15740 
15741         fi
15742       fi
15743     fi
15744   fi
15745 
15746     if test "x$FOUND_MAKE" = x; then
15747       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15748     fi
15749   else
15750     # Try our hardest to locate a correct version of GNU make
15751     for ac_prog in gmake
15752 do
15753   # Extract the first word of "$ac_prog", so it can be a program name with args.
15754 set dummy $ac_prog; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15756 $as_echo_n "checking for $ac_word... " >&6; }
15757 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15758   $as_echo_n "(cached) " >&6
15759 else
15760   case $CHECK_GMAKE in
15761   [\\/]* | ?:[\\/]*)
15762   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15763   ;;
15764   *)
15765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15767 do
15768   IFS=$as_save_IFS
15769   test -z "$as_dir" && as_dir=.
15770     for ac_exec_ext in '' $ac_executable_extensions; do
15771   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15772     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15774     break 2
15775   fi
15776 done
15777   done
15778 IFS=$as_save_IFS
15779 
15780   ;;
15781 esac
15782 fi
15783 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15784 if test -n "$CHECK_GMAKE"; then
15785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15786 $as_echo "$CHECK_GMAKE" >&6; }
15787 else
15788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15789 $as_echo "no" >&6; }
15790 fi
15791 
15792 
15793   test -n "$CHECK_GMAKE" && break
15794 done
15795 
15796 
15797   MAKE_CANDIDATE=""$CHECK_GMAKE""
15798   DESCRIPTION="gmake in PATH"
15799   if test "x$MAKE_CANDIDATE" != x; then
15800     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15801 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15802     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15803     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15804     if test "x$IS_GNU_MAKE" = x; then
15805       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15806 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15807     else
15808       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15809       if test "x$IS_MODERN_MAKE" = x; then
15810         { $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
15811 $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;}
15812       else
15813         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15814           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15815             MAKE_EXPECTED_ENV='cygwin'
15816           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15817             MAKE_EXPECTED_ENV='msys'
15818           else
15819             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15820           fi
15821           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15822           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15823         else
15824           # Not relevant for non-Windows
15825           IS_MAKE_CORRECT_ENV=true
15826         fi
15827         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15828           { $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
15829 $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;}
15830         else
15831           FOUND_MAKE=$MAKE_CANDIDATE
15832 
15833   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15834 
15835   # First separate the path from the arguments. This will split at the first
15836   # space.
15837   complete="$FOUND_MAKE"
15838   path="${complete%% *}"
15839   tmp="$complete EOL"
15840   arguments="${tmp#* }"
15841 
15842   # Input might be given as Windows format, start by converting to
15843   # unix format.
15844   new_path=`$CYGPATH -u "$path"`
15845 
15846   # Now try to locate executable using which
15847   new_path=`$WHICH "$new_path" 2> /dev/null`
15848   # bat and cmd files are not always considered executable in cygwin causing which
15849   # to not find them
15850   if test "x$new_path" = x \
15851       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15852       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15853     new_path=`$CYGPATH -u "$path"`
15854   fi
15855   if test "x$new_path" = x; then
15856     # Oops. Which didn't find the executable.
15857     # The splitting of arguments from the executable at a space might have been incorrect,
15858     # since paths with space are more likely in Windows. Give it another try with the whole
15859     # argument.
15860     path="$complete"
15861     arguments="EOL"
15862     new_path=`$CYGPATH -u "$path"`
15863     new_path=`$WHICH "$new_path" 2> /dev/null`
15864     # bat and cmd files are not always considered executable in cygwin causing which
15865     # to not find them
15866     if test "x$new_path" = x \
15867         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15868         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15869       new_path=`$CYGPATH -u "$path"`
15870     fi
15871     if test "x$new_path" = x; then
15872       # It's still not found. Now this is an unrecoverable error.
15873       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15875       has_space=`$ECHO "$complete" | $GREP " "`
15876       if test "x$has_space" != x; then
15877         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15878 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15879       fi
15880       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15881     fi
15882   fi
15883 
15884   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15885   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15886   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15887   # "foo.exe" is OK but "foo" is an error.
15888   #
15889   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15890   # It is also a way to make sure we got the proper file name for the real test later on.
15891   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15892   if test "x$test_shortpath" = x; then
15893     # Short path failed, file does not exist as specified.
15894     # Try adding .exe or .cmd
15895     if test -f "${new_path}.exe"; then
15896       input_to_shortpath="${new_path}.exe"
15897     elif test -f "${new_path}.cmd"; then
15898       input_to_shortpath="${new_path}.cmd"
15899     else
15900       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15901 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15902       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15903 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15904       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15905     fi
15906   else
15907     input_to_shortpath="$new_path"
15908   fi
15909 
15910   # Call helper function which possibly converts this using DOS-style short mode.
15911   # If so, the updated path is stored in $new_path.
15912   new_path="$input_to_shortpath"
15913 
15914   input_path="$input_to_shortpath"
15915   # Check if we need to convert this using DOS-style short mode. If the path
15916   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15917   # take no chances and rewrite it.
15918   # Note: m4 eats our [], so we need to use [ and ] instead.
15919   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15920   if test "x$has_forbidden_chars" != x; then
15921     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15922     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15923     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15924     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15925       # Going to short mode and back again did indeed matter. Since short mode is
15926       # case insensitive, let's make it lowercase to improve readability.
15927       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15928       # Now convert it back to Unix-style (cygpath)
15929       input_path=`$CYGPATH -u "$shortmode_path"`
15930       new_path="$input_path"
15931     fi
15932   fi
15933 
15934   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15935   if test "x$test_cygdrive_prefix" = x; then
15936     # As a simple fix, exclude /usr/bin since it's not a real path.
15937     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15938       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15939       # a path prefixed by /cygdrive for fixpath to work.
15940       new_path="$CYGWIN_ROOT_PATH$input_path"
15941     fi
15942   fi
15943 
15944   # remove trailing .exe if any
15945   new_path="${new_path/%.exe/}"
15946 
15947   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15948 
15949   # First separate the path from the arguments. This will split at the first
15950   # space.
15951   complete="$FOUND_MAKE"
15952   path="${complete%% *}"
15953   tmp="$complete EOL"
15954   arguments="${tmp#* }"
15955 
15956   # Input might be given as Windows format, start by converting to
15957   # unix format.
15958   new_path="$path"
15959 
15960   windows_path="$new_path"
15961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15962     unix_path=`$CYGPATH -u "$windows_path"`
15963     new_path="$unix_path"
15964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15966     new_path="$unix_path"
15967   fi
15968 
15969 
15970   # Now try to locate executable using which
15971   new_path=`$WHICH "$new_path" 2> /dev/null`
15972 
15973   if test "x$new_path" = x; then
15974     # Oops. Which didn't find the executable.
15975     # The splitting of arguments from the executable at a space might have been incorrect,
15976     # since paths with space are more likely in Windows. Give it another try with the whole
15977     # argument.
15978     path="$complete"
15979     arguments="EOL"
15980     new_path="$path"
15981 
15982   windows_path="$new_path"
15983   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15984     unix_path=`$CYGPATH -u "$windows_path"`
15985     new_path="$unix_path"
15986   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15987     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15988     new_path="$unix_path"
15989   fi
15990 
15991 
15992     new_path=`$WHICH "$new_path" 2> /dev/null`
15993     # bat and cmd files are not always considered executable in MSYS causing which
15994     # to not find them
15995     if test "x$new_path" = x \
15996         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15997         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15998       new_path="$path"
15999 
16000   windows_path="$new_path"
16001   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16002     unix_path=`$CYGPATH -u "$windows_path"`
16003     new_path="$unix_path"
16004   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16005     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16006     new_path="$unix_path"
16007   fi
16008 
16009     fi
16010 
16011     if test "x$new_path" = x; then
16012       # It's still not found. Now this is an unrecoverable error.
16013       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16014 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16015       has_space=`$ECHO "$complete" | $GREP " "`
16016       if test "x$has_space" != x; then
16017         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16018 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16019       fi
16020       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16021     fi
16022   fi
16023 
16024   # Now new_path has a complete unix path to the binary
16025   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16026     # Keep paths in /bin as-is, but remove trailing .exe if any
16027     new_path="${new_path/%.exe/}"
16028     # Do not save /bin paths to all_fixpath_prefixes!
16029   else
16030     # Not in mixed or Windows style, start by that.
16031     new_path=`cmd //c echo $new_path`
16032 
16033   input_path="$new_path"
16034   # Check if we need to convert this using DOS-style short mode. If the path
16035   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16036   # take no chances and rewrite it.
16037   # Note: m4 eats our [], so we need to use [ and ] instead.
16038   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16039   if test "x$has_forbidden_chars" != x; then
16040     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16041     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16042   fi
16043 
16044     # Output is in $new_path
16045 
16046   windows_path="$new_path"
16047   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16048     unix_path=`$CYGPATH -u "$windows_path"`
16049     new_path="$unix_path"
16050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16051     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16052     new_path="$unix_path"
16053   fi
16054 
16055     # remove trailing .exe if any
16056     new_path="${new_path/%.exe/}"
16057 
16058     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16059     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16060   fi
16061 
16062   else
16063     # We're on a posix platform. Hooray! :)
16064     # First separate the path from the arguments. This will split at the first
16065     # space.
16066     complete="$FOUND_MAKE"
16067     path="${complete%% *}"
16068     tmp="$complete EOL"
16069     arguments="${tmp#* }"
16070 
16071     # Cannot rely on the command "which" here since it doesn't always work.
16072     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16073     if test -z "$is_absolute_path"; then
16074       # Path to executable is not absolute. Find it.
16075       IFS_save="$IFS"
16076       IFS=:
16077       for p in $PATH; do
16078         if test -f "$p/$path" && test -x "$p/$path"; then
16079           new_path="$p/$path"
16080           break
16081         fi
16082       done
16083       IFS="$IFS_save"
16084     else
16085       # This is an absolute path, we can use it without further modifications.
16086       new_path="$path"
16087     fi
16088 
16089     if test "x$new_path" = x; then
16090       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16091 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16092       has_space=`$ECHO "$complete" | $GREP " "`
16093       if test "x$has_space" != x; then
16094         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16095 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16096       fi
16097       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16098     fi
16099   fi
16100 
16101   # Now join together the path and the arguments once again
16102   if test "x$arguments" != xEOL; then
16103     new_complete="$new_path ${arguments% *}"
16104   else
16105     new_complete="$new_path"
16106   fi
16107 
16108   if test "x$complete" != "x$new_complete"; then
16109     FOUND_MAKE="$new_complete"
16110     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16111 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16112   fi
16113 
16114         fi
16115       fi
16116     fi
16117   fi
16118 
16119 
16120     if test "x$FOUND_MAKE" = x; then
16121       for ac_prog in make
16122 do
16123   # Extract the first word of "$ac_prog", so it can be a program name with args.
16124 set dummy $ac_prog; ac_word=$2
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16126 $as_echo_n "checking for $ac_word... " >&6; }
16127 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16128   $as_echo_n "(cached) " >&6
16129 else
16130   case $CHECK_MAKE in
16131   [\\/]* | ?:[\\/]*)
16132   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16133   ;;
16134   *)
16135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16136 for as_dir in $PATH
16137 do
16138   IFS=$as_save_IFS
16139   test -z "$as_dir" && as_dir=.
16140     for ac_exec_ext in '' $ac_executable_extensions; do
16141   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16142     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16144     break 2
16145   fi
16146 done
16147   done
16148 IFS=$as_save_IFS
16149 
16150   ;;
16151 esac
16152 fi
16153 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16154 if test -n "$CHECK_MAKE"; then
16155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16156 $as_echo "$CHECK_MAKE" >&6; }
16157 else
16158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16159 $as_echo "no" >&6; }
16160 fi
16161 
16162 
16163   test -n "$CHECK_MAKE" && break
16164 done
16165 
16166 
16167   MAKE_CANDIDATE=""$CHECK_MAKE""
16168   DESCRIPTION="make in PATH"
16169   if test "x$MAKE_CANDIDATE" != x; then
16170     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16171 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16172     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16173     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16174     if test "x$IS_GNU_MAKE" = x; then
16175       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16176 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16177     else
16178       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16179       if test "x$IS_MODERN_MAKE" = x; then
16180         { $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
16181 $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;}
16182       else
16183         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16184           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16185             MAKE_EXPECTED_ENV='cygwin'
16186           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16187             MAKE_EXPECTED_ENV='msys'
16188           else
16189             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16190           fi
16191           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16192           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16193         else
16194           # Not relevant for non-Windows
16195           IS_MAKE_CORRECT_ENV=true
16196         fi
16197         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16198           { $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
16199 $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;}
16200         else
16201           FOUND_MAKE=$MAKE_CANDIDATE
16202 
16203   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16204 
16205   # First separate the path from the arguments. This will split at the first
16206   # space.
16207   complete="$FOUND_MAKE"
16208   path="${complete%% *}"
16209   tmp="$complete EOL"
16210   arguments="${tmp#* }"
16211 
16212   # Input might be given as Windows format, start by converting to
16213   # unix format.
16214   new_path=`$CYGPATH -u "$path"`
16215 
16216   # Now try to locate executable using which
16217   new_path=`$WHICH "$new_path" 2> /dev/null`
16218   # bat and cmd files are not always considered executable in cygwin causing which
16219   # to not find them
16220   if test "x$new_path" = x \
16221       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16222       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16223     new_path=`$CYGPATH -u "$path"`
16224   fi
16225   if test "x$new_path" = x; then
16226     # Oops. Which didn't find the executable.
16227     # The splitting of arguments from the executable at a space might have been incorrect,
16228     # since paths with space are more likely in Windows. Give it another try with the whole
16229     # argument.
16230     path="$complete"
16231     arguments="EOL"
16232     new_path=`$CYGPATH -u "$path"`
16233     new_path=`$WHICH "$new_path" 2> /dev/null`
16234     # bat and cmd files are not always considered executable in cygwin causing which
16235     # to not find them
16236     if test "x$new_path" = x \
16237         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16238         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16239       new_path=`$CYGPATH -u "$path"`
16240     fi
16241     if test "x$new_path" = x; then
16242       # It's still not found. Now this is an unrecoverable error.
16243       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16244 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16245       has_space=`$ECHO "$complete" | $GREP " "`
16246       if test "x$has_space" != x; then
16247         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16248 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16249       fi
16250       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16251     fi
16252   fi
16253 
16254   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16255   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16256   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16257   # "foo.exe" is OK but "foo" is an error.
16258   #
16259   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16260   # It is also a way to make sure we got the proper file name for the real test later on.
16261   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16262   if test "x$test_shortpath" = x; then
16263     # Short path failed, file does not exist as specified.
16264     # Try adding .exe or .cmd
16265     if test -f "${new_path}.exe"; then
16266       input_to_shortpath="${new_path}.exe"
16267     elif test -f "${new_path}.cmd"; then
16268       input_to_shortpath="${new_path}.cmd"
16269     else
16270       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16271 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16272       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16273 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16274       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16275     fi
16276   else
16277     input_to_shortpath="$new_path"
16278   fi
16279 
16280   # Call helper function which possibly converts this using DOS-style short mode.
16281   # If so, the updated path is stored in $new_path.
16282   new_path="$input_to_shortpath"
16283 
16284   input_path="$input_to_shortpath"
16285   # Check if we need to convert this using DOS-style short mode. If the path
16286   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16287   # take no chances and rewrite it.
16288   # Note: m4 eats our [], so we need to use [ and ] instead.
16289   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16290   if test "x$has_forbidden_chars" != x; then
16291     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16292     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16293     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16294     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16295       # Going to short mode and back again did indeed matter. Since short mode is
16296       # case insensitive, let's make it lowercase to improve readability.
16297       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16298       # Now convert it back to Unix-style (cygpath)
16299       input_path=`$CYGPATH -u "$shortmode_path"`
16300       new_path="$input_path"
16301     fi
16302   fi
16303 
16304   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16305   if test "x$test_cygdrive_prefix" = x; then
16306     # As a simple fix, exclude /usr/bin since it's not a real path.
16307     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16308       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16309       # a path prefixed by /cygdrive for fixpath to work.
16310       new_path="$CYGWIN_ROOT_PATH$input_path"
16311     fi
16312   fi
16313 
16314   # remove trailing .exe if any
16315   new_path="${new_path/%.exe/}"
16316 
16317   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16318 
16319   # First separate the path from the arguments. This will split at the first
16320   # space.
16321   complete="$FOUND_MAKE"
16322   path="${complete%% *}"
16323   tmp="$complete EOL"
16324   arguments="${tmp#* }"
16325 
16326   # Input might be given as Windows format, start by converting to
16327   # unix format.
16328   new_path="$path"
16329 
16330   windows_path="$new_path"
16331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16332     unix_path=`$CYGPATH -u "$windows_path"`
16333     new_path="$unix_path"
16334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16335     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16336     new_path="$unix_path"
16337   fi
16338 
16339 
16340   # Now try to locate executable using which
16341   new_path=`$WHICH "$new_path" 2> /dev/null`
16342 
16343   if test "x$new_path" = x; then
16344     # Oops. Which didn't find the executable.
16345     # The splitting of arguments from the executable at a space might have been incorrect,
16346     # since paths with space are more likely in Windows. Give it another try with the whole
16347     # argument.
16348     path="$complete"
16349     arguments="EOL"
16350     new_path="$path"
16351 
16352   windows_path="$new_path"
16353   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16354     unix_path=`$CYGPATH -u "$windows_path"`
16355     new_path="$unix_path"
16356   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16357     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16358     new_path="$unix_path"
16359   fi
16360 
16361 
16362     new_path=`$WHICH "$new_path" 2> /dev/null`
16363     # bat and cmd files are not always considered executable in MSYS causing which
16364     # to not find them
16365     if test "x$new_path" = x \
16366         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16367         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16368       new_path="$path"
16369 
16370   windows_path="$new_path"
16371   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16372     unix_path=`$CYGPATH -u "$windows_path"`
16373     new_path="$unix_path"
16374   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16375     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16376     new_path="$unix_path"
16377   fi
16378 
16379     fi
16380 
16381     if test "x$new_path" = x; then
16382       # It's still not found. Now this is an unrecoverable error.
16383       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16384 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16385       has_space=`$ECHO "$complete" | $GREP " "`
16386       if test "x$has_space" != x; then
16387         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16388 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16389       fi
16390       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16391     fi
16392   fi
16393 
16394   # Now new_path has a complete unix path to the binary
16395   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16396     # Keep paths in /bin as-is, but remove trailing .exe if any
16397     new_path="${new_path/%.exe/}"
16398     # Do not save /bin paths to all_fixpath_prefixes!
16399   else
16400     # Not in mixed or Windows style, start by that.
16401     new_path=`cmd //c echo $new_path`
16402 
16403   input_path="$new_path"
16404   # Check if we need to convert this using DOS-style short mode. If the path
16405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16406   # take no chances and rewrite it.
16407   # Note: m4 eats our [], so we need to use [ and ] instead.
16408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16409   if test "x$has_forbidden_chars" != x; then
16410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16411     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16412   fi
16413 
16414     # Output is in $new_path
16415 
16416   windows_path="$new_path"
16417   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16418     unix_path=`$CYGPATH -u "$windows_path"`
16419     new_path="$unix_path"
16420   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16421     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16422     new_path="$unix_path"
16423   fi
16424 
16425     # remove trailing .exe if any
16426     new_path="${new_path/%.exe/}"
16427 
16428     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16429     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16430   fi
16431 
16432   else
16433     # We're on a posix platform. Hooray! :)
16434     # First separate the path from the arguments. This will split at the first
16435     # space.
16436     complete="$FOUND_MAKE"
16437     path="${complete%% *}"
16438     tmp="$complete EOL"
16439     arguments="${tmp#* }"
16440 
16441     # Cannot rely on the command "which" here since it doesn't always work.
16442     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16443     if test -z "$is_absolute_path"; then
16444       # Path to executable is not absolute. Find it.
16445       IFS_save="$IFS"
16446       IFS=:
16447       for p in $PATH; do
16448         if test -f "$p/$path" && test -x "$p/$path"; then
16449           new_path="$p/$path"
16450           break
16451         fi
16452       done
16453       IFS="$IFS_save"
16454     else
16455       # This is an absolute path, we can use it without further modifications.
16456       new_path="$path"
16457     fi
16458 
16459     if test "x$new_path" = x; then
16460       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16461 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16462       has_space=`$ECHO "$complete" | $GREP " "`
16463       if test "x$has_space" != x; then
16464         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16465 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16466       fi
16467       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16468     fi
16469   fi
16470 
16471   # Now join together the path and the arguments once again
16472   if test "x$arguments" != xEOL; then
16473     new_complete="$new_path ${arguments% *}"
16474   else
16475     new_complete="$new_path"
16476   fi
16477 
16478   if test "x$complete" != "x$new_complete"; then
16479     FOUND_MAKE="$new_complete"
16480     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16481 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16482   fi
16483 
16484         fi
16485       fi
16486     fi
16487   fi
16488 
16489     fi
16490 
16491     if test "x$FOUND_MAKE" = x; then
16492       if test "x$TOOLCHAIN_PATH" != x; then
16493         # We have a toolchain path, check that as well before giving up.
16494         OLD_PATH=$PATH
16495         PATH=$TOOLCHAIN_PATH:$PATH
16496         for ac_prog in gmake
16497 do
16498   # Extract the first word of "$ac_prog", so it can be a program name with args.
16499 set dummy $ac_prog; ac_word=$2
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16501 $as_echo_n "checking for $ac_word... " >&6; }
16502 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16503   $as_echo_n "(cached) " >&6
16504 else
16505   case $CHECK_TOOLSDIR_GMAKE in
16506   [\\/]* | ?:[\\/]*)
16507   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16508   ;;
16509   *)
16510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16511 for as_dir in $PATH
16512 do
16513   IFS=$as_save_IFS
16514   test -z "$as_dir" && as_dir=.
16515     for ac_exec_ext in '' $ac_executable_extensions; do
16516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16517     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16519     break 2
16520   fi
16521 done
16522   done
16523 IFS=$as_save_IFS
16524 
16525   ;;
16526 esac
16527 fi
16528 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16529 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16531 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16532 else
16533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16534 $as_echo "no" >&6; }
16535 fi
16536 
16537 
16538   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16539 done
16540 
16541 
16542   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16543   DESCRIPTION="gmake in tools-dir"
16544   if test "x$MAKE_CANDIDATE" != x; then
16545     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16546 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16547     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16548     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16549     if test "x$IS_GNU_MAKE" = x; then
16550       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16551 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16552     else
16553       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16554       if test "x$IS_MODERN_MAKE" = x; then
16555         { $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
16556 $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;}
16557       else
16558         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16559           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16560             MAKE_EXPECTED_ENV='cygwin'
16561           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16562             MAKE_EXPECTED_ENV='msys'
16563           else
16564             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16565           fi
16566           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16567           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16568         else
16569           # Not relevant for non-Windows
16570           IS_MAKE_CORRECT_ENV=true
16571         fi
16572         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16573           { $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
16574 $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;}
16575         else
16576           FOUND_MAKE=$MAKE_CANDIDATE
16577 
16578   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16579 
16580   # First separate the path from the arguments. This will split at the first
16581   # space.
16582   complete="$FOUND_MAKE"
16583   path="${complete%% *}"
16584   tmp="$complete EOL"
16585   arguments="${tmp#* }"
16586 
16587   # Input might be given as Windows format, start by converting to
16588   # unix format.
16589   new_path=`$CYGPATH -u "$path"`
16590 
16591   # Now try to locate executable using which
16592   new_path=`$WHICH "$new_path" 2> /dev/null`
16593   # bat and cmd files are not always considered executable in cygwin causing which
16594   # to not find them
16595   if test "x$new_path" = x \
16596       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16597       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16598     new_path=`$CYGPATH -u "$path"`
16599   fi
16600   if test "x$new_path" = x; then
16601     # Oops. Which didn't find the executable.
16602     # The splitting of arguments from the executable at a space might have been incorrect,
16603     # since paths with space are more likely in Windows. Give it another try with the whole
16604     # argument.
16605     path="$complete"
16606     arguments="EOL"
16607     new_path=`$CYGPATH -u "$path"`
16608     new_path=`$WHICH "$new_path" 2> /dev/null`
16609     # bat and cmd files are not always considered executable in cygwin causing which
16610     # to not find them
16611     if test "x$new_path" = x \
16612         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16613         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16614       new_path=`$CYGPATH -u "$path"`
16615     fi
16616     if test "x$new_path" = x; then
16617       # It's still not found. Now this is an unrecoverable error.
16618       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16619 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16620       has_space=`$ECHO "$complete" | $GREP " "`
16621       if test "x$has_space" != x; then
16622         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16623 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16624       fi
16625       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16626     fi
16627   fi
16628 
16629   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16630   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16631   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16632   # "foo.exe" is OK but "foo" is an error.
16633   #
16634   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16635   # It is also a way to make sure we got the proper file name for the real test later on.
16636   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16637   if test "x$test_shortpath" = x; then
16638     # Short path failed, file does not exist as specified.
16639     # Try adding .exe or .cmd
16640     if test -f "${new_path}.exe"; then
16641       input_to_shortpath="${new_path}.exe"
16642     elif test -f "${new_path}.cmd"; then
16643       input_to_shortpath="${new_path}.cmd"
16644     else
16645       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16646 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16647       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16648 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16649       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16650     fi
16651   else
16652     input_to_shortpath="$new_path"
16653   fi
16654 
16655   # Call helper function which possibly converts this using DOS-style short mode.
16656   # If so, the updated path is stored in $new_path.
16657   new_path="$input_to_shortpath"
16658 
16659   input_path="$input_to_shortpath"
16660   # Check if we need to convert this using DOS-style short mode. If the path
16661   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16662   # take no chances and rewrite it.
16663   # Note: m4 eats our [], so we need to use [ and ] instead.
16664   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16665   if test "x$has_forbidden_chars" != x; then
16666     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16667     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16668     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16669     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16670       # Going to short mode and back again did indeed matter. Since short mode is
16671       # case insensitive, let's make it lowercase to improve readability.
16672       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16673       # Now convert it back to Unix-style (cygpath)
16674       input_path=`$CYGPATH -u "$shortmode_path"`
16675       new_path="$input_path"
16676     fi
16677   fi
16678 
16679   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16680   if test "x$test_cygdrive_prefix" = x; then
16681     # As a simple fix, exclude /usr/bin since it's not a real path.
16682     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16683       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16684       # a path prefixed by /cygdrive for fixpath to work.
16685       new_path="$CYGWIN_ROOT_PATH$input_path"
16686     fi
16687   fi
16688 
16689   # remove trailing .exe if any
16690   new_path="${new_path/%.exe/}"
16691 
16692   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16693 
16694   # First separate the path from the arguments. This will split at the first
16695   # space.
16696   complete="$FOUND_MAKE"
16697   path="${complete%% *}"
16698   tmp="$complete EOL"
16699   arguments="${tmp#* }"
16700 
16701   # Input might be given as Windows format, start by converting to
16702   # unix format.
16703   new_path="$path"
16704 
16705   windows_path="$new_path"
16706   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16707     unix_path=`$CYGPATH -u "$windows_path"`
16708     new_path="$unix_path"
16709   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16710     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16711     new_path="$unix_path"
16712   fi
16713 
16714 
16715   # Now try to locate executable using which
16716   new_path=`$WHICH "$new_path" 2> /dev/null`
16717 
16718   if test "x$new_path" = x; then
16719     # Oops. Which didn't find the executable.
16720     # The splitting of arguments from the executable at a space might have been incorrect,
16721     # since paths with space are more likely in Windows. Give it another try with the whole
16722     # argument.
16723     path="$complete"
16724     arguments="EOL"
16725     new_path="$path"
16726 
16727   windows_path="$new_path"
16728   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16729     unix_path=`$CYGPATH -u "$windows_path"`
16730     new_path="$unix_path"
16731   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16732     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16733     new_path="$unix_path"
16734   fi
16735 
16736 
16737     new_path=`$WHICH "$new_path" 2> /dev/null`
16738     # bat and cmd files are not always considered executable in MSYS causing which
16739     # to not find them
16740     if test "x$new_path" = x \
16741         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16742         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16743       new_path="$path"
16744 
16745   windows_path="$new_path"
16746   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16747     unix_path=`$CYGPATH -u "$windows_path"`
16748     new_path="$unix_path"
16749   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16750     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16751     new_path="$unix_path"
16752   fi
16753 
16754     fi
16755 
16756     if test "x$new_path" = x; then
16757       # It's still not found. Now this is an unrecoverable error.
16758       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16759 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16760       has_space=`$ECHO "$complete" | $GREP " "`
16761       if test "x$has_space" != x; then
16762         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16763 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16764       fi
16765       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16766     fi
16767   fi
16768 
16769   # Now new_path has a complete unix path to the binary
16770   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16771     # Keep paths in /bin as-is, but remove trailing .exe if any
16772     new_path="${new_path/%.exe/}"
16773     # Do not save /bin paths to all_fixpath_prefixes!
16774   else
16775     # Not in mixed or Windows style, start by that.
16776     new_path=`cmd //c echo $new_path`
16777 
16778   input_path="$new_path"
16779   # Check if we need to convert this using DOS-style short mode. If the path
16780   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16781   # take no chances and rewrite it.
16782   # Note: m4 eats our [], so we need to use [ and ] instead.
16783   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16784   if test "x$has_forbidden_chars" != x; then
16785     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16786     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16787   fi
16788 
16789     # Output is in $new_path
16790 
16791   windows_path="$new_path"
16792   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16793     unix_path=`$CYGPATH -u "$windows_path"`
16794     new_path="$unix_path"
16795   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16796     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16797     new_path="$unix_path"
16798   fi
16799 
16800     # remove trailing .exe if any
16801     new_path="${new_path/%.exe/}"
16802 
16803     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16804     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16805   fi
16806 
16807   else
16808     # We're on a posix platform. Hooray! :)
16809     # First separate the path from the arguments. This will split at the first
16810     # space.
16811     complete="$FOUND_MAKE"
16812     path="${complete%% *}"
16813     tmp="$complete EOL"
16814     arguments="${tmp#* }"
16815 
16816     # Cannot rely on the command "which" here since it doesn't always work.
16817     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16818     if test -z "$is_absolute_path"; then
16819       # Path to executable is not absolute. Find it.
16820       IFS_save="$IFS"
16821       IFS=:
16822       for p in $PATH; do
16823         if test -f "$p/$path" && test -x "$p/$path"; then
16824           new_path="$p/$path"
16825           break
16826         fi
16827       done
16828       IFS="$IFS_save"
16829     else
16830       # This is an absolute path, we can use it without further modifications.
16831       new_path="$path"
16832     fi
16833 
16834     if test "x$new_path" = x; then
16835       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16836 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16837       has_space=`$ECHO "$complete" | $GREP " "`
16838       if test "x$has_space" != x; then
16839         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16840 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16841       fi
16842       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16843     fi
16844   fi
16845 
16846   # Now join together the path and the arguments once again
16847   if test "x$arguments" != xEOL; then
16848     new_complete="$new_path ${arguments% *}"
16849   else
16850     new_complete="$new_path"
16851   fi
16852 
16853   if test "x$complete" != "x$new_complete"; then
16854     FOUND_MAKE="$new_complete"
16855     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16856 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16857   fi
16858 
16859         fi
16860       fi
16861     fi
16862   fi
16863 
16864         if test "x$FOUND_MAKE" = x; then
16865           for ac_prog in make
16866 do
16867   # Extract the first word of "$ac_prog", so it can be a program name with args.
16868 set dummy $ac_prog; ac_word=$2
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16870 $as_echo_n "checking for $ac_word... " >&6; }
16871 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16872   $as_echo_n "(cached) " >&6
16873 else
16874   case $CHECK_TOOLSDIR_MAKE in
16875   [\\/]* | ?:[\\/]*)
16876   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16877   ;;
16878   *)
16879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16880 for as_dir in $PATH
16881 do
16882   IFS=$as_save_IFS
16883   test -z "$as_dir" && as_dir=.
16884     for ac_exec_ext in '' $ac_executable_extensions; do
16885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16886     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16888     break 2
16889   fi
16890 done
16891   done
16892 IFS=$as_save_IFS
16893 
16894   ;;
16895 esac
16896 fi
16897 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16898 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16900 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16901 else
16902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16903 $as_echo "no" >&6; }
16904 fi
16905 
16906 
16907   test -n "$CHECK_TOOLSDIR_MAKE" && break
16908 done
16909 
16910 
16911   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16912   DESCRIPTION="make in tools-dir"
16913   if test "x$MAKE_CANDIDATE" != x; then
16914     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16915 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16916     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16917     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16918     if test "x$IS_GNU_MAKE" = x; then
16919       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16920 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16921     else
16922       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16923       if test "x$IS_MODERN_MAKE" = x; then
16924         { $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
16925 $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;}
16926       else
16927         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16928           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16929             MAKE_EXPECTED_ENV='cygwin'
16930           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16931             MAKE_EXPECTED_ENV='msys'
16932           else
16933             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16934           fi
16935           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16936           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16937         else
16938           # Not relevant for non-Windows
16939           IS_MAKE_CORRECT_ENV=true
16940         fi
16941         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16942           { $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
16943 $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;}
16944         else
16945           FOUND_MAKE=$MAKE_CANDIDATE
16946 
16947   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16948 
16949   # First separate the path from the arguments. This will split at the first
16950   # space.
16951   complete="$FOUND_MAKE"
16952   path="${complete%% *}"
16953   tmp="$complete EOL"
16954   arguments="${tmp#* }"
16955 
16956   # Input might be given as Windows format, start by converting to
16957   # unix format.
16958   new_path=`$CYGPATH -u "$path"`
16959 
16960   # Now try to locate executable using which
16961   new_path=`$WHICH "$new_path" 2> /dev/null`
16962   # bat and cmd files are not always considered executable in cygwin causing which
16963   # to not find them
16964   if test "x$new_path" = x \
16965       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16966       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16967     new_path=`$CYGPATH -u "$path"`
16968   fi
16969   if test "x$new_path" = x; then
16970     # Oops. Which didn't find the executable.
16971     # The splitting of arguments from the executable at a space might have been incorrect,
16972     # since paths with space are more likely in Windows. Give it another try with the whole
16973     # argument.
16974     path="$complete"
16975     arguments="EOL"
16976     new_path=`$CYGPATH -u "$path"`
16977     new_path=`$WHICH "$new_path" 2> /dev/null`
16978     # bat and cmd files are not always considered executable in cygwin causing which
16979     # to not find them
16980     if test "x$new_path" = x \
16981         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16982         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16983       new_path=`$CYGPATH -u "$path"`
16984     fi
16985     if test "x$new_path" = x; then
16986       # It's still not found. Now this is an unrecoverable error.
16987       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16988 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16989       has_space=`$ECHO "$complete" | $GREP " "`
16990       if test "x$has_space" != x; then
16991         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16992 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16993       fi
16994       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16995     fi
16996   fi
16997 
16998   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16999   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17000   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17001   # "foo.exe" is OK but "foo" is an error.
17002   #
17003   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17004   # It is also a way to make sure we got the proper file name for the real test later on.
17005   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17006   if test "x$test_shortpath" = x; then
17007     # Short path failed, file does not exist as specified.
17008     # Try adding .exe or .cmd
17009     if test -f "${new_path}.exe"; then
17010       input_to_shortpath="${new_path}.exe"
17011     elif test -f "${new_path}.cmd"; then
17012       input_to_shortpath="${new_path}.cmd"
17013     else
17014       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17015 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17016       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17017 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17018       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17019     fi
17020   else
17021     input_to_shortpath="$new_path"
17022   fi
17023 
17024   # Call helper function which possibly converts this using DOS-style short mode.
17025   # If so, the updated path is stored in $new_path.
17026   new_path="$input_to_shortpath"
17027 
17028   input_path="$input_to_shortpath"
17029   # Check if we need to convert this using DOS-style short mode. If the path
17030   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17031   # take no chances and rewrite it.
17032   # Note: m4 eats our [], so we need to use [ and ] instead.
17033   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17034   if test "x$has_forbidden_chars" != x; then
17035     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17036     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17037     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17038     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17039       # Going to short mode and back again did indeed matter. Since short mode is
17040       # case insensitive, let's make it lowercase to improve readability.
17041       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17042       # Now convert it back to Unix-style (cygpath)
17043       input_path=`$CYGPATH -u "$shortmode_path"`
17044       new_path="$input_path"
17045     fi
17046   fi
17047 
17048   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17049   if test "x$test_cygdrive_prefix" = x; then
17050     # As a simple fix, exclude /usr/bin since it's not a real path.
17051     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17052       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17053       # a path prefixed by /cygdrive for fixpath to work.
17054       new_path="$CYGWIN_ROOT_PATH$input_path"
17055     fi
17056   fi
17057 
17058   # remove trailing .exe if any
17059   new_path="${new_path/%.exe/}"
17060 
17061   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17062 
17063   # First separate the path from the arguments. This will split at the first
17064   # space.
17065   complete="$FOUND_MAKE"
17066   path="${complete%% *}"
17067   tmp="$complete EOL"
17068   arguments="${tmp#* }"
17069 
17070   # Input might be given as Windows format, start by converting to
17071   # unix format.
17072   new_path="$path"
17073 
17074   windows_path="$new_path"
17075   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17076     unix_path=`$CYGPATH -u "$windows_path"`
17077     new_path="$unix_path"
17078   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17079     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17080     new_path="$unix_path"
17081   fi
17082 
17083 
17084   # Now try to locate executable using which
17085   new_path=`$WHICH "$new_path" 2> /dev/null`
17086 
17087   if test "x$new_path" = x; then
17088     # Oops. Which didn't find the executable.
17089     # The splitting of arguments from the executable at a space might have been incorrect,
17090     # since paths with space are more likely in Windows. Give it another try with the whole
17091     # argument.
17092     path="$complete"
17093     arguments="EOL"
17094     new_path="$path"
17095 
17096   windows_path="$new_path"
17097   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17098     unix_path=`$CYGPATH -u "$windows_path"`
17099     new_path="$unix_path"
17100   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17101     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17102     new_path="$unix_path"
17103   fi
17104 
17105 
17106     new_path=`$WHICH "$new_path" 2> /dev/null`
17107     # bat and cmd files are not always considered executable in MSYS causing which
17108     # to not find them
17109     if test "x$new_path" = x \
17110         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17111         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17112       new_path="$path"
17113 
17114   windows_path="$new_path"
17115   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17116     unix_path=`$CYGPATH -u "$windows_path"`
17117     new_path="$unix_path"
17118   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17119     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17120     new_path="$unix_path"
17121   fi
17122 
17123     fi
17124 
17125     if test "x$new_path" = x; then
17126       # It's still not found. Now this is an unrecoverable error.
17127       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17128 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17129       has_space=`$ECHO "$complete" | $GREP " "`
17130       if test "x$has_space" != x; then
17131         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17132 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17133       fi
17134       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17135     fi
17136   fi
17137 
17138   # Now new_path has a complete unix path to the binary
17139   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17140     # Keep paths in /bin as-is, but remove trailing .exe if any
17141     new_path="${new_path/%.exe/}"
17142     # Do not save /bin paths to all_fixpath_prefixes!
17143   else
17144     # Not in mixed or Windows style, start by that.
17145     new_path=`cmd //c echo $new_path`
17146 
17147   input_path="$new_path"
17148   # Check if we need to convert this using DOS-style short mode. If the path
17149   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17150   # take no chances and rewrite it.
17151   # Note: m4 eats our [], so we need to use [ and ] instead.
17152   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17153   if test "x$has_forbidden_chars" != x; then
17154     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17155     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17156   fi
17157 
17158     # Output is in $new_path
17159 
17160   windows_path="$new_path"
17161   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17162     unix_path=`$CYGPATH -u "$windows_path"`
17163     new_path="$unix_path"
17164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17165     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17166     new_path="$unix_path"
17167   fi
17168 
17169     # remove trailing .exe if any
17170     new_path="${new_path/%.exe/}"
17171 
17172     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17173     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17174   fi
17175 
17176   else
17177     # We're on a posix platform. Hooray! :)
17178     # First separate the path from the arguments. This will split at the first
17179     # space.
17180     complete="$FOUND_MAKE"
17181     path="${complete%% *}"
17182     tmp="$complete EOL"
17183     arguments="${tmp#* }"
17184 
17185     # Cannot rely on the command "which" here since it doesn't always work.
17186     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17187     if test -z "$is_absolute_path"; then
17188       # Path to executable is not absolute. Find it.
17189       IFS_save="$IFS"
17190       IFS=:
17191       for p in $PATH; do
17192         if test -f "$p/$path" && test -x "$p/$path"; then
17193           new_path="$p/$path"
17194           break
17195         fi
17196       done
17197       IFS="$IFS_save"
17198     else
17199       # This is an absolute path, we can use it without further modifications.
17200       new_path="$path"
17201     fi
17202 
17203     if test "x$new_path" = x; then
17204       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17205 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17206       has_space=`$ECHO "$complete" | $GREP " "`
17207       if test "x$has_space" != x; then
17208         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17209 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17210       fi
17211       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17212     fi
17213   fi
17214 
17215   # Now join together the path and the arguments once again
17216   if test "x$arguments" != xEOL; then
17217     new_complete="$new_path ${arguments% *}"
17218   else
17219     new_complete="$new_path"
17220   fi
17221 
17222   if test "x$complete" != "x$new_complete"; then
17223     FOUND_MAKE="$new_complete"
17224     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17225 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17226   fi
17227 
17228         fi
17229       fi
17230     fi
17231   fi
17232 
17233         fi
17234         PATH=$OLD_PATH
17235       fi
17236     fi
17237 
17238     if test "x$FOUND_MAKE" = x; then
17239       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
17240     fi
17241   fi
17242 
17243   MAKE=$FOUND_MAKE
17244 
17245   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17246 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17247 
17248 
17249 
17250   # Test if find supports -delete
17251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17252 $as_echo_n "checking if find supports -delete... " >&6; }
17253   FIND_DELETE="-delete"
17254 
17255   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17256 
17257   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17258 
17259   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17260   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17261     # No, it does not.
17262     rm $DELETEDIR/TestIfFindSupportsDelete
17263     FIND_DELETE="-exec rm \{\} \+"
17264     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265 $as_echo "no" >&6; }
17266   else
17267     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17268 $as_echo "yes" >&6; }
17269   fi
17270   rmdir $DELETEDIR
17271 
17272 
17273 
17274   # These tools might not be installed by default,
17275   # need hint on how to install them.
17276 
17277 
17278 
17279   # Publish this variable in the help.
17280 
17281 
17282   if test "x$UNZIP" = x; then
17283     # The variable is not set by user, try to locate tool using the code snippet
17284     for ac_prog in unzip
17285 do
17286   # Extract the first word of "$ac_prog", so it can be a program name with args.
17287 set dummy $ac_prog; ac_word=$2
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17289 $as_echo_n "checking for $ac_word... " >&6; }
17290 if ${ac_cv_path_UNZIP+:} false; then :
17291   $as_echo_n "(cached) " >&6
17292 else
17293   case $UNZIP in
17294   [\\/]* | ?:[\\/]*)
17295   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17296   ;;
17297   *)
17298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17299 for as_dir in $PATH
17300 do
17301   IFS=$as_save_IFS
17302   test -z "$as_dir" && as_dir=.
17303     for ac_exec_ext in '' $ac_executable_extensions; do
17304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17305     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17307     break 2
17308   fi
17309 done
17310   done
17311 IFS=$as_save_IFS
17312 
17313   ;;
17314 esac
17315 fi
17316 UNZIP=$ac_cv_path_UNZIP
17317 if test -n "$UNZIP"; then
17318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17319 $as_echo "$UNZIP" >&6; }
17320 else
17321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 $as_echo "no" >&6; }
17323 fi
17324 
17325 
17326   test -n "$UNZIP" && break
17327 done
17328 
17329   else
17330     # The variable is set, but is it from the command line or the environment?
17331 
17332     # Try to remove the string !UNZIP! from our list.
17333     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17334     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17335       # If it failed, the variable was not from the command line. Ignore it,
17336       # but warn the user (except for BASH, which is always set by the calling BASH).
17337       if test "xUNZIP" != xBASH; then
17338         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17339 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17340       fi
17341       # Try to locate tool using the code snippet
17342       for ac_prog in unzip
17343 do
17344   # Extract the first word of "$ac_prog", so it can be a program name with args.
17345 set dummy $ac_prog; ac_word=$2
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17347 $as_echo_n "checking for $ac_word... " >&6; }
17348 if ${ac_cv_path_UNZIP+:} false; then :
17349   $as_echo_n "(cached) " >&6
17350 else
17351   case $UNZIP in
17352   [\\/]* | ?:[\\/]*)
17353   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17354   ;;
17355   *)
17356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17357 for as_dir in $PATH
17358 do
17359   IFS=$as_save_IFS
17360   test -z "$as_dir" && as_dir=.
17361     for ac_exec_ext in '' $ac_executable_extensions; do
17362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17363     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17365     break 2
17366   fi
17367 done
17368   done
17369 IFS=$as_save_IFS
17370 
17371   ;;
17372 esac
17373 fi
17374 UNZIP=$ac_cv_path_UNZIP
17375 if test -n "$UNZIP"; then
17376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17377 $as_echo "$UNZIP" >&6; }
17378 else
17379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17380 $as_echo "no" >&6; }
17381 fi
17382 
17383 
17384   test -n "$UNZIP" && break
17385 done
17386 
17387     else
17388       # If it succeeded, then it was overridden by the user. We will use it
17389       # for the tool.
17390 
17391       # First remove it from the list of overridden variables, so we can test
17392       # for unknown variables in the end.
17393       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17394 
17395       # Check if the provided tool contains a complete path.
17396       tool_specified="$UNZIP"
17397       tool_basename="${tool_specified##*/}"
17398       if test "x$tool_basename" = "x$tool_specified"; then
17399         # A command without a complete path is provided, search $PATH.
17400         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17401 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17402         # Extract the first word of "$tool_basename", so it can be a program name with args.
17403 set dummy $tool_basename; ac_word=$2
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17405 $as_echo_n "checking for $ac_word... " >&6; }
17406 if ${ac_cv_path_UNZIP+:} false; then :
17407   $as_echo_n "(cached) " >&6
17408 else
17409   case $UNZIP in
17410   [\\/]* | ?:[\\/]*)
17411   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17412   ;;
17413   *)
17414   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17415 for as_dir in $PATH
17416 do
17417   IFS=$as_save_IFS
17418   test -z "$as_dir" && as_dir=.
17419     for ac_exec_ext in '' $ac_executable_extensions; do
17420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17421     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17423     break 2
17424   fi
17425 done
17426   done
17427 IFS=$as_save_IFS
17428 
17429   ;;
17430 esac
17431 fi
17432 UNZIP=$ac_cv_path_UNZIP
17433 if test -n "$UNZIP"; then
17434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17435 $as_echo "$UNZIP" >&6; }
17436 else
17437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17438 $as_echo "no" >&6; }
17439 fi
17440 
17441 
17442         if test "x$UNZIP" = x; then
17443           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17444         fi
17445       else
17446         # Otherwise we believe it is a complete path. Use it as it is.
17447         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17448 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17449         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17450 $as_echo_n "checking for UNZIP... " >&6; }
17451         if test ! -x "$tool_specified"; then
17452           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17453 $as_echo "not found" >&6; }
17454           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17455         fi
17456         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17457 $as_echo "$tool_specified" >&6; }
17458       fi
17459     fi
17460   fi
17461 
17462 
17463 
17464   if test "x$UNZIP" = x; then
17465     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17466   fi
17467 
17468 
17469 
17470 
17471 
17472   # Publish this variable in the help.
17473 
17474 
17475   if test "x$ZIP" = x; then
17476     # The variable is not set by user, try to locate tool using the code snippet
17477     for ac_prog in zip
17478 do
17479   # Extract the first word of "$ac_prog", so it can be a program name with args.
17480 set dummy $ac_prog; ac_word=$2
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17482 $as_echo_n "checking for $ac_word... " >&6; }
17483 if ${ac_cv_path_ZIP+:} false; then :
17484   $as_echo_n "(cached) " >&6
17485 else
17486   case $ZIP in
17487   [\\/]* | ?:[\\/]*)
17488   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17489   ;;
17490   *)
17491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17492 for as_dir in $PATH
17493 do
17494   IFS=$as_save_IFS
17495   test -z "$as_dir" && as_dir=.
17496     for ac_exec_ext in '' $ac_executable_extensions; do
17497   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17498     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17500     break 2
17501   fi
17502 done
17503   done
17504 IFS=$as_save_IFS
17505 
17506   ;;
17507 esac
17508 fi
17509 ZIP=$ac_cv_path_ZIP
17510 if test -n "$ZIP"; then
17511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17512 $as_echo "$ZIP" >&6; }
17513 else
17514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17515 $as_echo "no" >&6; }
17516 fi
17517 
17518 
17519   test -n "$ZIP" && break
17520 done
17521 
17522   else
17523     # The variable is set, but is it from the command line or the environment?
17524 
17525     # Try to remove the string !ZIP! from our list.
17526     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17527     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17528       # If it failed, the variable was not from the command line. Ignore it,
17529       # but warn the user (except for BASH, which is always set by the calling BASH).
17530       if test "xZIP" != xBASH; then
17531         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17532 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17533       fi
17534       # Try to locate tool using the code snippet
17535       for ac_prog in zip
17536 do
17537   # Extract the first word of "$ac_prog", so it can be a program name with args.
17538 set dummy $ac_prog; ac_word=$2
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17540 $as_echo_n "checking for $ac_word... " >&6; }
17541 if ${ac_cv_path_ZIP+:} false; then :
17542   $as_echo_n "(cached) " >&6
17543 else
17544   case $ZIP in
17545   [\\/]* | ?:[\\/]*)
17546   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17547   ;;
17548   *)
17549   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17550 for as_dir in $PATH
17551 do
17552   IFS=$as_save_IFS
17553   test -z "$as_dir" && as_dir=.
17554     for ac_exec_ext in '' $ac_executable_extensions; do
17555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17556     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17558     break 2
17559   fi
17560 done
17561   done
17562 IFS=$as_save_IFS
17563 
17564   ;;
17565 esac
17566 fi
17567 ZIP=$ac_cv_path_ZIP
17568 if test -n "$ZIP"; then
17569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17570 $as_echo "$ZIP" >&6; }
17571 else
17572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17573 $as_echo "no" >&6; }
17574 fi
17575 
17576 
17577   test -n "$ZIP" && break
17578 done
17579 
17580     else
17581       # If it succeeded, then it was overridden by the user. We will use it
17582       # for the tool.
17583 
17584       # First remove it from the list of overridden variables, so we can test
17585       # for unknown variables in the end.
17586       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17587 
17588       # Check if the provided tool contains a complete path.
17589       tool_specified="$ZIP"
17590       tool_basename="${tool_specified##*/}"
17591       if test "x$tool_basename" = "x$tool_specified"; then
17592         # A command without a complete path is provided, search $PATH.
17593         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17594 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17595         # Extract the first word of "$tool_basename", so it can be a program name with args.
17596 set dummy $tool_basename; ac_word=$2
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17598 $as_echo_n "checking for $ac_word... " >&6; }
17599 if ${ac_cv_path_ZIP+:} false; then :
17600   $as_echo_n "(cached) " >&6
17601 else
17602   case $ZIP in
17603   [\\/]* | ?:[\\/]*)
17604   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17605   ;;
17606   *)
17607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17608 for as_dir in $PATH
17609 do
17610   IFS=$as_save_IFS
17611   test -z "$as_dir" && as_dir=.
17612     for ac_exec_ext in '' $ac_executable_extensions; do
17613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17614     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17616     break 2
17617   fi
17618 done
17619   done
17620 IFS=$as_save_IFS
17621 
17622   ;;
17623 esac
17624 fi
17625 ZIP=$ac_cv_path_ZIP
17626 if test -n "$ZIP"; then
17627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17628 $as_echo "$ZIP" >&6; }
17629 else
17630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17631 $as_echo "no" >&6; }
17632 fi
17633 
17634 
17635         if test "x$ZIP" = x; then
17636           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17637         fi
17638       else
17639         # Otherwise we believe it is a complete path. Use it as it is.
17640         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17641 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17642         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17643 $as_echo_n "checking for ZIP... " >&6; }
17644         if test ! -x "$tool_specified"; then
17645           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17646 $as_echo "not found" >&6; }
17647           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17648         fi
17649         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17650 $as_echo "$tool_specified" >&6; }
17651       fi
17652     fi
17653   fi
17654 
17655 
17656 
17657   if test "x$ZIP" = x; then
17658     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17659   fi
17660 
17661 
17662 
17663   # Non-required basic tools
17664 
17665 
17666 
17667   # Publish this variable in the help.
17668 
17669 
17670   if test "x$LDD" = x; then
17671     # The variable is not set by user, try to locate tool using the code snippet
17672     for ac_prog in ldd
17673 do
17674   # Extract the first word of "$ac_prog", so it can be a program name with args.
17675 set dummy $ac_prog; ac_word=$2
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17677 $as_echo_n "checking for $ac_word... " >&6; }
17678 if ${ac_cv_path_LDD+:} false; then :
17679   $as_echo_n "(cached) " >&6
17680 else
17681   case $LDD in
17682   [\\/]* | ?:[\\/]*)
17683   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17684   ;;
17685   *)
17686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17687 for as_dir in $PATH
17688 do
17689   IFS=$as_save_IFS
17690   test -z "$as_dir" && as_dir=.
17691     for ac_exec_ext in '' $ac_executable_extensions; do
17692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17693     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17695     break 2
17696   fi
17697 done
17698   done
17699 IFS=$as_save_IFS
17700 
17701   ;;
17702 esac
17703 fi
17704 LDD=$ac_cv_path_LDD
17705 if test -n "$LDD"; then
17706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17707 $as_echo "$LDD" >&6; }
17708 else
17709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17710 $as_echo "no" >&6; }
17711 fi
17712 
17713 
17714   test -n "$LDD" && break
17715 done
17716 
17717   else
17718     # The variable is set, but is it from the command line or the environment?
17719 
17720     # Try to remove the string !LDD! from our list.
17721     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17722     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17723       # If it failed, the variable was not from the command line. Ignore it,
17724       # but warn the user (except for BASH, which is always set by the calling BASH).
17725       if test "xLDD" != xBASH; then
17726         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17727 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17728       fi
17729       # Try to locate tool using the code snippet
17730       for ac_prog in ldd
17731 do
17732   # Extract the first word of "$ac_prog", so it can be a program name with args.
17733 set dummy $ac_prog; ac_word=$2
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17735 $as_echo_n "checking for $ac_word... " >&6; }
17736 if ${ac_cv_path_LDD+:} false; then :
17737   $as_echo_n "(cached) " >&6
17738 else
17739   case $LDD in
17740   [\\/]* | ?:[\\/]*)
17741   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17742   ;;
17743   *)
17744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17745 for as_dir in $PATH
17746 do
17747   IFS=$as_save_IFS
17748   test -z "$as_dir" && as_dir=.
17749     for ac_exec_ext in '' $ac_executable_extensions; do
17750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17751     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17753     break 2
17754   fi
17755 done
17756   done
17757 IFS=$as_save_IFS
17758 
17759   ;;
17760 esac
17761 fi
17762 LDD=$ac_cv_path_LDD
17763 if test -n "$LDD"; then
17764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17765 $as_echo "$LDD" >&6; }
17766 else
17767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17768 $as_echo "no" >&6; }
17769 fi
17770 
17771 
17772   test -n "$LDD" && break
17773 done
17774 
17775     else
17776       # If it succeeded, then it was overridden by the user. We will use it
17777       # for the tool.
17778 
17779       # First remove it from the list of overridden variables, so we can test
17780       # for unknown variables in the end.
17781       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17782 
17783       # Check if the provided tool contains a complete path.
17784       tool_specified="$LDD"
17785       tool_basename="${tool_specified##*/}"
17786       if test "x$tool_basename" = "x$tool_specified"; then
17787         # A command without a complete path is provided, search $PATH.
17788         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17789 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17790         # Extract the first word of "$tool_basename", so it can be a program name with args.
17791 set dummy $tool_basename; ac_word=$2
17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17793 $as_echo_n "checking for $ac_word... " >&6; }
17794 if ${ac_cv_path_LDD+:} false; then :
17795   $as_echo_n "(cached) " >&6
17796 else
17797   case $LDD in
17798   [\\/]* | ?:[\\/]*)
17799   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17800   ;;
17801   *)
17802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17803 for as_dir in $PATH
17804 do
17805   IFS=$as_save_IFS
17806   test -z "$as_dir" && as_dir=.
17807     for ac_exec_ext in '' $ac_executable_extensions; do
17808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17809     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17811     break 2
17812   fi
17813 done
17814   done
17815 IFS=$as_save_IFS
17816 
17817   ;;
17818 esac
17819 fi
17820 LDD=$ac_cv_path_LDD
17821 if test -n "$LDD"; then
17822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17823 $as_echo "$LDD" >&6; }
17824 else
17825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17826 $as_echo "no" >&6; }
17827 fi
17828 
17829 
17830         if test "x$LDD" = x; then
17831           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17832         fi
17833       else
17834         # Otherwise we believe it is a complete path. Use it as it is.
17835         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17836 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17837         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17838 $as_echo_n "checking for LDD... " >&6; }
17839         if test ! -x "$tool_specified"; then
17840           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17841 $as_echo "not found" >&6; }
17842           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17843         fi
17844         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17845 $as_echo "$tool_specified" >&6; }
17846       fi
17847     fi
17848   fi
17849 
17850 
17851   if test "x$LDD" = "x"; then
17852     # List shared lib dependencies is used for
17853     # debug output and checking for forbidden dependencies.
17854     # We can build without it.
17855     LDD="true"
17856   fi
17857 
17858 
17859   # Publish this variable in the help.
17860 
17861 
17862   if test "x$READELF" = x; then
17863     # The variable is not set by user, try to locate tool using the code snippet
17864     for ac_prog in readelf greadelf
17865 do
17866   # Extract the first word of "$ac_prog", so it can be a program name with args.
17867 set dummy $ac_prog; ac_word=$2
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17869 $as_echo_n "checking for $ac_word... " >&6; }
17870 if ${ac_cv_path_READELF+:} false; then :
17871   $as_echo_n "(cached) " >&6
17872 else
17873   case $READELF in
17874   [\\/]* | ?:[\\/]*)
17875   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17876   ;;
17877   *)
17878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17879 for as_dir in $PATH
17880 do
17881   IFS=$as_save_IFS
17882   test -z "$as_dir" && as_dir=.
17883     for ac_exec_ext in '' $ac_executable_extensions; do
17884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17885     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17887     break 2
17888   fi
17889 done
17890   done
17891 IFS=$as_save_IFS
17892 
17893   ;;
17894 esac
17895 fi
17896 READELF=$ac_cv_path_READELF
17897 if test -n "$READELF"; then
17898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17899 $as_echo "$READELF" >&6; }
17900 else
17901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17902 $as_echo "no" >&6; }
17903 fi
17904 
17905 
17906   test -n "$READELF" && break
17907 done
17908 
17909   else
17910     # The variable is set, but is it from the command line or the environment?
17911 
17912     # Try to remove the string !READELF! from our list.
17913     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17914     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17915       # If it failed, the variable was not from the command line. Ignore it,
17916       # but warn the user (except for BASH, which is always set by the calling BASH).
17917       if test "xREADELF" != xBASH; then
17918         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17919 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17920       fi
17921       # Try to locate tool using the code snippet
17922       for ac_prog in readelf greadelf
17923 do
17924   # Extract the first word of "$ac_prog", so it can be a program name with args.
17925 set dummy $ac_prog; ac_word=$2
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17927 $as_echo_n "checking for $ac_word... " >&6; }
17928 if ${ac_cv_path_READELF+:} false; then :
17929   $as_echo_n "(cached) " >&6
17930 else
17931   case $READELF in
17932   [\\/]* | ?:[\\/]*)
17933   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17934   ;;
17935   *)
17936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17937 for as_dir in $PATH
17938 do
17939   IFS=$as_save_IFS
17940   test -z "$as_dir" && as_dir=.
17941     for ac_exec_ext in '' $ac_executable_extensions; do
17942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17943     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17945     break 2
17946   fi
17947 done
17948   done
17949 IFS=$as_save_IFS
17950 
17951   ;;
17952 esac
17953 fi
17954 READELF=$ac_cv_path_READELF
17955 if test -n "$READELF"; then
17956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17957 $as_echo "$READELF" >&6; }
17958 else
17959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17960 $as_echo "no" >&6; }
17961 fi
17962 
17963 
17964   test -n "$READELF" && break
17965 done
17966 
17967     else
17968       # If it succeeded, then it was overridden by the user. We will use it
17969       # for the tool.
17970 
17971       # First remove it from the list of overridden variables, so we can test
17972       # for unknown variables in the end.
17973       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17974 
17975       # Check if the provided tool contains a complete path.
17976       tool_specified="$READELF"
17977       tool_basename="${tool_specified##*/}"
17978       if test "x$tool_basename" = "x$tool_specified"; then
17979         # A command without a complete path is provided, search $PATH.
17980         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17981 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17982         # Extract the first word of "$tool_basename", so it can be a program name with args.
17983 set dummy $tool_basename; ac_word=$2
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17985 $as_echo_n "checking for $ac_word... " >&6; }
17986 if ${ac_cv_path_READELF+:} false; then :
17987   $as_echo_n "(cached) " >&6
17988 else
17989   case $READELF in
17990   [\\/]* | ?:[\\/]*)
17991   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17992   ;;
17993   *)
17994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17995 for as_dir in $PATH
17996 do
17997   IFS=$as_save_IFS
17998   test -z "$as_dir" && as_dir=.
17999     for ac_exec_ext in '' $ac_executable_extensions; do
18000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18001     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18003     break 2
18004   fi
18005 done
18006   done
18007 IFS=$as_save_IFS
18008 
18009   ;;
18010 esac
18011 fi
18012 READELF=$ac_cv_path_READELF
18013 if test -n "$READELF"; then
18014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18015 $as_echo "$READELF" >&6; }
18016 else
18017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18018 $as_echo "no" >&6; }
18019 fi
18020 
18021 
18022         if test "x$READELF" = x; then
18023           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18024         fi
18025       else
18026         # Otherwise we believe it is a complete path. Use it as it is.
18027         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18028 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18029         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18030 $as_echo_n "checking for READELF... " >&6; }
18031         if test ! -x "$tool_specified"; then
18032           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18033 $as_echo "not found" >&6; }
18034           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18035         fi
18036         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18037 $as_echo "$tool_specified" >&6; }
18038       fi
18039     fi
18040   fi
18041 
18042 
18043 
18044 
18045   # Publish this variable in the help.
18046 
18047 
18048   if test "x$HG" = x; then
18049     # The variable is not set by user, try to locate tool using the code snippet
18050     for ac_prog in hg
18051 do
18052   # Extract the first word of "$ac_prog", so it can be a program name with args.
18053 set dummy $ac_prog; ac_word=$2
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18055 $as_echo_n "checking for $ac_word... " >&6; }
18056 if ${ac_cv_path_HG+:} false; then :
18057   $as_echo_n "(cached) " >&6
18058 else
18059   case $HG in
18060   [\\/]* | ?:[\\/]*)
18061   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18062   ;;
18063   *)
18064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18065 for as_dir in $PATH
18066 do
18067   IFS=$as_save_IFS
18068   test -z "$as_dir" && as_dir=.
18069     for ac_exec_ext in '' $ac_executable_extensions; do
18070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18071     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18073     break 2
18074   fi
18075 done
18076   done
18077 IFS=$as_save_IFS
18078 
18079   ;;
18080 esac
18081 fi
18082 HG=$ac_cv_path_HG
18083 if test -n "$HG"; then
18084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18085 $as_echo "$HG" >&6; }
18086 else
18087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18088 $as_echo "no" >&6; }
18089 fi
18090 
18091 
18092   test -n "$HG" && break
18093 done
18094 
18095   else
18096     # The variable is set, but is it from the command line or the environment?
18097 
18098     # Try to remove the string !HG! from our list.
18099     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18100     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18101       # If it failed, the variable was not from the command line. Ignore it,
18102       # but warn the user (except for BASH, which is always set by the calling BASH).
18103       if test "xHG" != xBASH; then
18104         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18105 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18106       fi
18107       # Try to locate tool using the code snippet
18108       for ac_prog in hg
18109 do
18110   # Extract the first word of "$ac_prog", so it can be a program name with args.
18111 set dummy $ac_prog; ac_word=$2
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18113 $as_echo_n "checking for $ac_word... " >&6; }
18114 if ${ac_cv_path_HG+:} false; then :
18115   $as_echo_n "(cached) " >&6
18116 else
18117   case $HG in
18118   [\\/]* | ?:[\\/]*)
18119   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18120   ;;
18121   *)
18122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18123 for as_dir in $PATH
18124 do
18125   IFS=$as_save_IFS
18126   test -z "$as_dir" && as_dir=.
18127     for ac_exec_ext in '' $ac_executable_extensions; do
18128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18129     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18131     break 2
18132   fi
18133 done
18134   done
18135 IFS=$as_save_IFS
18136 
18137   ;;
18138 esac
18139 fi
18140 HG=$ac_cv_path_HG
18141 if test -n "$HG"; then
18142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18143 $as_echo "$HG" >&6; }
18144 else
18145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18146 $as_echo "no" >&6; }
18147 fi
18148 
18149 
18150   test -n "$HG" && break
18151 done
18152 
18153     else
18154       # If it succeeded, then it was overridden by the user. We will use it
18155       # for the tool.
18156 
18157       # First remove it from the list of overridden variables, so we can test
18158       # for unknown variables in the end.
18159       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18160 
18161       # Check if the provided tool contains a complete path.
18162       tool_specified="$HG"
18163       tool_basename="${tool_specified##*/}"
18164       if test "x$tool_basename" = "x$tool_specified"; then
18165         # A command without a complete path is provided, search $PATH.
18166         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18167 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18168         # Extract the first word of "$tool_basename", so it can be a program name with args.
18169 set dummy $tool_basename; ac_word=$2
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18171 $as_echo_n "checking for $ac_word... " >&6; }
18172 if ${ac_cv_path_HG+:} false; then :
18173   $as_echo_n "(cached) " >&6
18174 else
18175   case $HG in
18176   [\\/]* | ?:[\\/]*)
18177   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18178   ;;
18179   *)
18180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18181 for as_dir in $PATH
18182 do
18183   IFS=$as_save_IFS
18184   test -z "$as_dir" && as_dir=.
18185     for ac_exec_ext in '' $ac_executable_extensions; do
18186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18187     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18189     break 2
18190   fi
18191 done
18192   done
18193 IFS=$as_save_IFS
18194 
18195   ;;
18196 esac
18197 fi
18198 HG=$ac_cv_path_HG
18199 if test -n "$HG"; then
18200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18201 $as_echo "$HG" >&6; }
18202 else
18203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18205 fi
18206 
18207 
18208         if test "x$HG" = x; then
18209           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18210         fi
18211       else
18212         # Otherwise we believe it is a complete path. Use it as it is.
18213         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18214 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18216 $as_echo_n "checking for HG... " >&6; }
18217         if test ! -x "$tool_specified"; then
18218           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18219 $as_echo "not found" >&6; }
18220           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18221         fi
18222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18223 $as_echo "$tool_specified" >&6; }
18224       fi
18225     fi
18226   fi
18227 
18228 
18229 
18230 
18231   # Publish this variable in the help.
18232 
18233 
18234   if test "x$STAT" = x; then
18235     # The variable is not set by user, try to locate tool using the code snippet
18236     for ac_prog in stat
18237 do
18238   # Extract the first word of "$ac_prog", so it can be a program name with args.
18239 set dummy $ac_prog; ac_word=$2
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18241 $as_echo_n "checking for $ac_word... " >&6; }
18242 if ${ac_cv_path_STAT+:} false; then :
18243   $as_echo_n "(cached) " >&6
18244 else
18245   case $STAT in
18246   [\\/]* | ?:[\\/]*)
18247   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18248   ;;
18249   *)
18250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18251 for as_dir in $PATH
18252 do
18253   IFS=$as_save_IFS
18254   test -z "$as_dir" && as_dir=.
18255     for ac_exec_ext in '' $ac_executable_extensions; do
18256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18257     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18259     break 2
18260   fi
18261 done
18262   done
18263 IFS=$as_save_IFS
18264 
18265   ;;
18266 esac
18267 fi
18268 STAT=$ac_cv_path_STAT
18269 if test -n "$STAT"; then
18270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18271 $as_echo "$STAT" >&6; }
18272 else
18273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18274 $as_echo "no" >&6; }
18275 fi
18276 
18277 
18278   test -n "$STAT" && break
18279 done
18280 
18281   else
18282     # The variable is set, but is it from the command line or the environment?
18283 
18284     # Try to remove the string !STAT! from our list.
18285     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18286     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18287       # If it failed, the variable was not from the command line. Ignore it,
18288       # but warn the user (except for BASH, which is always set by the calling BASH).
18289       if test "xSTAT" != xBASH; then
18290         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18291 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18292       fi
18293       # Try to locate tool using the code snippet
18294       for ac_prog in stat
18295 do
18296   # Extract the first word of "$ac_prog", so it can be a program name with args.
18297 set dummy $ac_prog; ac_word=$2
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18299 $as_echo_n "checking for $ac_word... " >&6; }
18300 if ${ac_cv_path_STAT+:} false; then :
18301   $as_echo_n "(cached) " >&6
18302 else
18303   case $STAT in
18304   [\\/]* | ?:[\\/]*)
18305   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18306   ;;
18307   *)
18308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18309 for as_dir in $PATH
18310 do
18311   IFS=$as_save_IFS
18312   test -z "$as_dir" && as_dir=.
18313     for ac_exec_ext in '' $ac_executable_extensions; do
18314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18315     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18317     break 2
18318   fi
18319 done
18320   done
18321 IFS=$as_save_IFS
18322 
18323   ;;
18324 esac
18325 fi
18326 STAT=$ac_cv_path_STAT
18327 if test -n "$STAT"; then
18328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18329 $as_echo "$STAT" >&6; }
18330 else
18331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18332 $as_echo "no" >&6; }
18333 fi
18334 
18335 
18336   test -n "$STAT" && break
18337 done
18338 
18339     else
18340       # If it succeeded, then it was overridden by the user. We will use it
18341       # for the tool.
18342 
18343       # First remove it from the list of overridden variables, so we can test
18344       # for unknown variables in the end.
18345       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18346 
18347       # Check if the provided tool contains a complete path.
18348       tool_specified="$STAT"
18349       tool_basename="${tool_specified##*/}"
18350       if test "x$tool_basename" = "x$tool_specified"; then
18351         # A command without a complete path is provided, search $PATH.
18352         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18353 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18354         # Extract the first word of "$tool_basename", so it can be a program name with args.
18355 set dummy $tool_basename; ac_word=$2
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18357 $as_echo_n "checking for $ac_word... " >&6; }
18358 if ${ac_cv_path_STAT+:} false; then :
18359   $as_echo_n "(cached) " >&6
18360 else
18361   case $STAT in
18362   [\\/]* | ?:[\\/]*)
18363   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18364   ;;
18365   *)
18366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18367 for as_dir in $PATH
18368 do
18369   IFS=$as_save_IFS
18370   test -z "$as_dir" && as_dir=.
18371     for ac_exec_ext in '' $ac_executable_extensions; do
18372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18373     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18375     break 2
18376   fi
18377 done
18378   done
18379 IFS=$as_save_IFS
18380 
18381   ;;
18382 esac
18383 fi
18384 STAT=$ac_cv_path_STAT
18385 if test -n "$STAT"; then
18386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18387 $as_echo "$STAT" >&6; }
18388 else
18389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390 $as_echo "no" >&6; }
18391 fi
18392 
18393 
18394         if test "x$STAT" = x; then
18395           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18396         fi
18397       else
18398         # Otherwise we believe it is a complete path. Use it as it is.
18399         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18400 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18401         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18402 $as_echo_n "checking for STAT... " >&6; }
18403         if test ! -x "$tool_specified"; then
18404           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18405 $as_echo "not found" >&6; }
18406           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18407         fi
18408         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18409 $as_echo "$tool_specified" >&6; }
18410       fi
18411     fi
18412   fi
18413 
18414 
18415 
18416 
18417   # Publish this variable in the help.
18418 
18419 
18420   if test "x$TIME" = x; then
18421     # The variable is not set by user, try to locate tool using the code snippet
18422     for ac_prog in time
18423 do
18424   # Extract the first word of "$ac_prog", so it can be a program name with args.
18425 set dummy $ac_prog; ac_word=$2
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18427 $as_echo_n "checking for $ac_word... " >&6; }
18428 if ${ac_cv_path_TIME+:} false; then :
18429   $as_echo_n "(cached) " >&6
18430 else
18431   case $TIME in
18432   [\\/]* | ?:[\\/]*)
18433   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18434   ;;
18435   *)
18436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18437 for as_dir in $PATH
18438 do
18439   IFS=$as_save_IFS
18440   test -z "$as_dir" && as_dir=.
18441     for ac_exec_ext in '' $ac_executable_extensions; do
18442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18443     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18445     break 2
18446   fi
18447 done
18448   done
18449 IFS=$as_save_IFS
18450 
18451   ;;
18452 esac
18453 fi
18454 TIME=$ac_cv_path_TIME
18455 if test -n "$TIME"; then
18456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18457 $as_echo "$TIME" >&6; }
18458 else
18459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18461 fi
18462 
18463 
18464   test -n "$TIME" && break
18465 done
18466 
18467   else
18468     # The variable is set, but is it from the command line or the environment?
18469 
18470     # Try to remove the string !TIME! from our list.
18471     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18472     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18473       # If it failed, the variable was not from the command line. Ignore it,
18474       # but warn the user (except for BASH, which is always set by the calling BASH).
18475       if test "xTIME" != xBASH; then
18476         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18477 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18478       fi
18479       # Try to locate tool using the code snippet
18480       for ac_prog in time
18481 do
18482   # Extract the first word of "$ac_prog", so it can be a program name with args.
18483 set dummy $ac_prog; ac_word=$2
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18485 $as_echo_n "checking for $ac_word... " >&6; }
18486 if ${ac_cv_path_TIME+:} false; then :
18487   $as_echo_n "(cached) " >&6
18488 else
18489   case $TIME in
18490   [\\/]* | ?:[\\/]*)
18491   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18492   ;;
18493   *)
18494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18495 for as_dir in $PATH
18496 do
18497   IFS=$as_save_IFS
18498   test -z "$as_dir" && as_dir=.
18499     for ac_exec_ext in '' $ac_executable_extensions; do
18500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18501     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18503     break 2
18504   fi
18505 done
18506   done
18507 IFS=$as_save_IFS
18508 
18509   ;;
18510 esac
18511 fi
18512 TIME=$ac_cv_path_TIME
18513 if test -n "$TIME"; then
18514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18515 $as_echo "$TIME" >&6; }
18516 else
18517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18518 $as_echo "no" >&6; }
18519 fi
18520 
18521 
18522   test -n "$TIME" && break
18523 done
18524 
18525     else
18526       # If it succeeded, then it was overridden by the user. We will use it
18527       # for the tool.
18528 
18529       # First remove it from the list of overridden variables, so we can test
18530       # for unknown variables in the end.
18531       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18532 
18533       # Check if the provided tool contains a complete path.
18534       tool_specified="$TIME"
18535       tool_basename="${tool_specified##*/}"
18536       if test "x$tool_basename" = "x$tool_specified"; then
18537         # A command without a complete path is provided, search $PATH.
18538         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18539 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18540         # Extract the first word of "$tool_basename", so it can be a program name with args.
18541 set dummy $tool_basename; ac_word=$2
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18543 $as_echo_n "checking for $ac_word... " >&6; }
18544 if ${ac_cv_path_TIME+:} false; then :
18545   $as_echo_n "(cached) " >&6
18546 else
18547   case $TIME in
18548   [\\/]* | ?:[\\/]*)
18549   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18550   ;;
18551   *)
18552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18554 do
18555   IFS=$as_save_IFS
18556   test -z "$as_dir" && as_dir=.
18557     for ac_exec_ext in '' $ac_executable_extensions; do
18558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18559     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18561     break 2
18562   fi
18563 done
18564   done
18565 IFS=$as_save_IFS
18566 
18567   ;;
18568 esac
18569 fi
18570 TIME=$ac_cv_path_TIME
18571 if test -n "$TIME"; then
18572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18573 $as_echo "$TIME" >&6; }
18574 else
18575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18576 $as_echo "no" >&6; }
18577 fi
18578 
18579 
18580         if test "x$TIME" = x; then
18581           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18582         fi
18583       else
18584         # Otherwise we believe it is a complete path. Use it as it is.
18585         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18586 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18588 $as_echo_n "checking for TIME... " >&6; }
18589         if test ! -x "$tool_specified"; then
18590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18591 $as_echo "not found" >&6; }
18592           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18593         fi
18594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18595 $as_echo "$tool_specified" >&6; }
18596       fi
18597     fi
18598   fi
18599 
18600 
18601   # Check if it's GNU time
18602   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18603   if test "x$IS_GNU_TIME" != x; then
18604     IS_GNU_TIME=yes
18605   else
18606     IS_GNU_TIME=no
18607   fi
18608 
18609 
18610   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18611 
18612 
18613 
18614   # Publish this variable in the help.
18615 
18616 
18617   if test "x$COMM" = x; then
18618     # The variable is not set by user, try to locate tool using the code snippet
18619     for ac_prog in comm
18620 do
18621   # Extract the first word of "$ac_prog", so it can be a program name with args.
18622 set dummy $ac_prog; ac_word=$2
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18624 $as_echo_n "checking for $ac_word... " >&6; }
18625 if ${ac_cv_path_COMM+:} false; then :
18626   $as_echo_n "(cached) " >&6
18627 else
18628   case $COMM in
18629   [\\/]* | ?:[\\/]*)
18630   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18631   ;;
18632   *)
18633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18634 for as_dir in $PATH
18635 do
18636   IFS=$as_save_IFS
18637   test -z "$as_dir" && as_dir=.
18638     for ac_exec_ext in '' $ac_executable_extensions; do
18639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18640     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18642     break 2
18643   fi
18644 done
18645   done
18646 IFS=$as_save_IFS
18647 
18648   ;;
18649 esac
18650 fi
18651 COMM=$ac_cv_path_COMM
18652 if test -n "$COMM"; then
18653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18654 $as_echo "$COMM" >&6; }
18655 else
18656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18657 $as_echo "no" >&6; }
18658 fi
18659 
18660 
18661   test -n "$COMM" && break
18662 done
18663 
18664   else
18665     # The variable is set, but is it from the command line or the environment?
18666 
18667     # Try to remove the string !COMM! from our list.
18668     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18669     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18670       # If it failed, the variable was not from the command line. Ignore it,
18671       # but warn the user (except for BASH, which is always set by the calling BASH).
18672       if test "xCOMM" != xBASH; then
18673         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18674 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18675       fi
18676       # Try to locate tool using the code snippet
18677       for ac_prog in comm
18678 do
18679   # Extract the first word of "$ac_prog", so it can be a program name with args.
18680 set dummy $ac_prog; ac_word=$2
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18682 $as_echo_n "checking for $ac_word... " >&6; }
18683 if ${ac_cv_path_COMM+:} false; then :
18684   $as_echo_n "(cached) " >&6
18685 else
18686   case $COMM in
18687   [\\/]* | ?:[\\/]*)
18688   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18689   ;;
18690   *)
18691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18692 for as_dir in $PATH
18693 do
18694   IFS=$as_save_IFS
18695   test -z "$as_dir" && as_dir=.
18696     for ac_exec_ext in '' $ac_executable_extensions; do
18697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18698     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18700     break 2
18701   fi
18702 done
18703   done
18704 IFS=$as_save_IFS
18705 
18706   ;;
18707 esac
18708 fi
18709 COMM=$ac_cv_path_COMM
18710 if test -n "$COMM"; then
18711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18712 $as_echo "$COMM" >&6; }
18713 else
18714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18715 $as_echo "no" >&6; }
18716 fi
18717 
18718 
18719   test -n "$COMM" && break
18720 done
18721 
18722     else
18723       # If it succeeded, then it was overridden by the user. We will use it
18724       # for the tool.
18725 
18726       # First remove it from the list of overridden variables, so we can test
18727       # for unknown variables in the end.
18728       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18729 
18730       # Check if the provided tool contains a complete path.
18731       tool_specified="$COMM"
18732       tool_basename="${tool_specified##*/}"
18733       if test "x$tool_basename" = "x$tool_specified"; then
18734         # A command without a complete path is provided, search $PATH.
18735         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18736 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18737         # Extract the first word of "$tool_basename", so it can be a program name with args.
18738 set dummy $tool_basename; ac_word=$2
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18740 $as_echo_n "checking for $ac_word... " >&6; }
18741 if ${ac_cv_path_COMM+:} false; then :
18742   $as_echo_n "(cached) " >&6
18743 else
18744   case $COMM in
18745   [\\/]* | ?:[\\/]*)
18746   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18747   ;;
18748   *)
18749   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18750 for as_dir in $PATH
18751 do
18752   IFS=$as_save_IFS
18753   test -z "$as_dir" && as_dir=.
18754     for ac_exec_ext in '' $ac_executable_extensions; do
18755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18756     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18758     break 2
18759   fi
18760 done
18761   done
18762 IFS=$as_save_IFS
18763 
18764   ;;
18765 esac
18766 fi
18767 COMM=$ac_cv_path_COMM
18768 if test -n "$COMM"; then
18769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18770 $as_echo "$COMM" >&6; }
18771 else
18772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18773 $as_echo "no" >&6; }
18774 fi
18775 
18776 
18777         if test "x$COMM" = x; then
18778           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18779         fi
18780       else
18781         # Otherwise we believe it is a complete path. Use it as it is.
18782         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18783 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18784         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18785 $as_echo_n "checking for COMM... " >&6; }
18786         if test ! -x "$tool_specified"; then
18787           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18788 $as_echo "not found" >&6; }
18789           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18790         fi
18791         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18792 $as_echo "$tool_specified" >&6; }
18793       fi
18794     fi
18795   fi
18796 
18797 
18798 
18799   if test "x$COMM" = x; then
18800     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18801   fi
18802 
18803 
18804   fi
18805 
18806   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18807 
18808 
18809 
18810   # Publish this variable in the help.
18811 
18812 
18813   if test "x$DSYMUTIL" = x; then
18814     # The variable is not set by user, try to locate tool using the code snippet
18815     for ac_prog in dsymutil
18816 do
18817   # Extract the first word of "$ac_prog", so it can be a program name with args.
18818 set dummy $ac_prog; ac_word=$2
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18820 $as_echo_n "checking for $ac_word... " >&6; }
18821 if ${ac_cv_path_DSYMUTIL+:} false; then :
18822   $as_echo_n "(cached) " >&6
18823 else
18824   case $DSYMUTIL in
18825   [\\/]* | ?:[\\/]*)
18826   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18827   ;;
18828   *)
18829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18830 for as_dir in $PATH
18831 do
18832   IFS=$as_save_IFS
18833   test -z "$as_dir" && as_dir=.
18834     for ac_exec_ext in '' $ac_executable_extensions; do
18835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18836     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18838     break 2
18839   fi
18840 done
18841   done
18842 IFS=$as_save_IFS
18843 
18844   ;;
18845 esac
18846 fi
18847 DSYMUTIL=$ac_cv_path_DSYMUTIL
18848 if test -n "$DSYMUTIL"; then
18849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18850 $as_echo "$DSYMUTIL" >&6; }
18851 else
18852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853 $as_echo "no" >&6; }
18854 fi
18855 
18856 
18857   test -n "$DSYMUTIL" && break
18858 done
18859 
18860   else
18861     # The variable is set, but is it from the command line or the environment?
18862 
18863     # Try to remove the string !DSYMUTIL! from our list.
18864     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18865     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18866       # If it failed, the variable was not from the command line. Ignore it,
18867       # but warn the user (except for BASH, which is always set by the calling BASH).
18868       if test "xDSYMUTIL" != xBASH; then
18869         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18870 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18871       fi
18872       # Try to locate tool using the code snippet
18873       for ac_prog in dsymutil
18874 do
18875   # Extract the first word of "$ac_prog", so it can be a program name with args.
18876 set dummy $ac_prog; ac_word=$2
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18878 $as_echo_n "checking for $ac_word... " >&6; }
18879 if ${ac_cv_path_DSYMUTIL+:} false; then :
18880   $as_echo_n "(cached) " >&6
18881 else
18882   case $DSYMUTIL in
18883   [\\/]* | ?:[\\/]*)
18884   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18885   ;;
18886   *)
18887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18888 for as_dir in $PATH
18889 do
18890   IFS=$as_save_IFS
18891   test -z "$as_dir" && as_dir=.
18892     for ac_exec_ext in '' $ac_executable_extensions; do
18893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18894     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18896     break 2
18897   fi
18898 done
18899   done
18900 IFS=$as_save_IFS
18901 
18902   ;;
18903 esac
18904 fi
18905 DSYMUTIL=$ac_cv_path_DSYMUTIL
18906 if test -n "$DSYMUTIL"; then
18907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18908 $as_echo "$DSYMUTIL" >&6; }
18909 else
18910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18911 $as_echo "no" >&6; }
18912 fi
18913 
18914 
18915   test -n "$DSYMUTIL" && break
18916 done
18917 
18918     else
18919       # If it succeeded, then it was overridden by the user. We will use it
18920       # for the tool.
18921 
18922       # First remove it from the list of overridden variables, so we can test
18923       # for unknown variables in the end.
18924       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18925 
18926       # Check if the provided tool contains a complete path.
18927       tool_specified="$DSYMUTIL"
18928       tool_basename="${tool_specified##*/}"
18929       if test "x$tool_basename" = "x$tool_specified"; then
18930         # A command without a complete path is provided, search $PATH.
18931         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18932 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18933         # Extract the first word of "$tool_basename", so it can be a program name with args.
18934 set dummy $tool_basename; ac_word=$2
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18936 $as_echo_n "checking for $ac_word... " >&6; }
18937 if ${ac_cv_path_DSYMUTIL+:} false; then :
18938   $as_echo_n "(cached) " >&6
18939 else
18940   case $DSYMUTIL in
18941   [\\/]* | ?:[\\/]*)
18942   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18943   ;;
18944   *)
18945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18946 for as_dir in $PATH
18947 do
18948   IFS=$as_save_IFS
18949   test -z "$as_dir" && as_dir=.
18950     for ac_exec_ext in '' $ac_executable_extensions; do
18951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18952     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18954     break 2
18955   fi
18956 done
18957   done
18958 IFS=$as_save_IFS
18959 
18960   ;;
18961 esac
18962 fi
18963 DSYMUTIL=$ac_cv_path_DSYMUTIL
18964 if test -n "$DSYMUTIL"; then
18965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18966 $as_echo "$DSYMUTIL" >&6; }
18967 else
18968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18969 $as_echo "no" >&6; }
18970 fi
18971 
18972 
18973         if test "x$DSYMUTIL" = x; then
18974           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18975         fi
18976       else
18977         # Otherwise we believe it is a complete path. Use it as it is.
18978         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18979 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18980         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18981 $as_echo_n "checking for DSYMUTIL... " >&6; }
18982         if test ! -x "$tool_specified"; then
18983           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18984 $as_echo "not found" >&6; }
18985           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18986         fi
18987         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18988 $as_echo "$tool_specified" >&6; }
18989       fi
18990     fi
18991   fi
18992 
18993 
18994 
18995   if test "x$DSYMUTIL" = x; then
18996     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18997   fi
18998 
18999 
19000 
19001 
19002 
19003   # Publish this variable in the help.
19004 
19005 
19006   if test "x$XATTR" = x; then
19007     # The variable is not set by user, try to locate tool using the code snippet
19008     for ac_prog in xattr
19009 do
19010   # Extract the first word of "$ac_prog", so it can be a program name with args.
19011 set dummy $ac_prog; ac_word=$2
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19013 $as_echo_n "checking for $ac_word... " >&6; }
19014 if ${ac_cv_path_XATTR+:} false; then :
19015   $as_echo_n "(cached) " >&6
19016 else
19017   case $XATTR in
19018   [\\/]* | ?:[\\/]*)
19019   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19020   ;;
19021   *)
19022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19023 for as_dir in $PATH
19024 do
19025   IFS=$as_save_IFS
19026   test -z "$as_dir" && as_dir=.
19027     for ac_exec_ext in '' $ac_executable_extensions; do
19028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19029     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19031     break 2
19032   fi
19033 done
19034   done
19035 IFS=$as_save_IFS
19036 
19037   ;;
19038 esac
19039 fi
19040 XATTR=$ac_cv_path_XATTR
19041 if test -n "$XATTR"; then
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19043 $as_echo "$XATTR" >&6; }
19044 else
19045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19046 $as_echo "no" >&6; }
19047 fi
19048 
19049 
19050   test -n "$XATTR" && break
19051 done
19052 
19053   else
19054     # The variable is set, but is it from the command line or the environment?
19055 
19056     # Try to remove the string !XATTR! from our list.
19057     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19058     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19059       # If it failed, the variable was not from the command line. Ignore it,
19060       # but warn the user (except for BASH, which is always set by the calling BASH).
19061       if test "xXATTR" != xBASH; then
19062         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19063 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19064       fi
19065       # Try to locate tool using the code snippet
19066       for ac_prog in xattr
19067 do
19068   # Extract the first word of "$ac_prog", so it can be a program name with args.
19069 set dummy $ac_prog; ac_word=$2
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19071 $as_echo_n "checking for $ac_word... " >&6; }
19072 if ${ac_cv_path_XATTR+:} false; then :
19073   $as_echo_n "(cached) " >&6
19074 else
19075   case $XATTR in
19076   [\\/]* | ?:[\\/]*)
19077   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19078   ;;
19079   *)
19080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19081 for as_dir in $PATH
19082 do
19083   IFS=$as_save_IFS
19084   test -z "$as_dir" && as_dir=.
19085     for ac_exec_ext in '' $ac_executable_extensions; do
19086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19087     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19089     break 2
19090   fi
19091 done
19092   done
19093 IFS=$as_save_IFS
19094 
19095   ;;
19096 esac
19097 fi
19098 XATTR=$ac_cv_path_XATTR
19099 if test -n "$XATTR"; then
19100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19101 $as_echo "$XATTR" >&6; }
19102 else
19103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19104 $as_echo "no" >&6; }
19105 fi
19106 
19107 
19108   test -n "$XATTR" && break
19109 done
19110 
19111     else
19112       # If it succeeded, then it was overridden by the user. We will use it
19113       # for the tool.
19114 
19115       # First remove it from the list of overridden variables, so we can test
19116       # for unknown variables in the end.
19117       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19118 
19119       # Check if the provided tool contains a complete path.
19120       tool_specified="$XATTR"
19121       tool_basename="${tool_specified##*/}"
19122       if test "x$tool_basename" = "x$tool_specified"; then
19123         # A command without a complete path is provided, search $PATH.
19124         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19125 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19126         # Extract the first word of "$tool_basename", so it can be a program name with args.
19127 set dummy $tool_basename; ac_word=$2
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19129 $as_echo_n "checking for $ac_word... " >&6; }
19130 if ${ac_cv_path_XATTR+:} false; then :
19131   $as_echo_n "(cached) " >&6
19132 else
19133   case $XATTR in
19134   [\\/]* | ?:[\\/]*)
19135   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19136   ;;
19137   *)
19138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19139 for as_dir in $PATH
19140 do
19141   IFS=$as_save_IFS
19142   test -z "$as_dir" && as_dir=.
19143     for ac_exec_ext in '' $ac_executable_extensions; do
19144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19145     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19147     break 2
19148   fi
19149 done
19150   done
19151 IFS=$as_save_IFS
19152 
19153   ;;
19154 esac
19155 fi
19156 XATTR=$ac_cv_path_XATTR
19157 if test -n "$XATTR"; then
19158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19159 $as_echo "$XATTR" >&6; }
19160 else
19161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19162 $as_echo "no" >&6; }
19163 fi
19164 
19165 
19166         if test "x$XATTR" = x; then
19167           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19168         fi
19169       else
19170         # Otherwise we believe it is a complete path. Use it as it is.
19171         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19172 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19174 $as_echo_n "checking for XATTR... " >&6; }
19175         if test ! -x "$tool_specified"; then
19176           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19177 $as_echo "not found" >&6; }
19178           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19179         fi
19180         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19181 $as_echo "$tool_specified" >&6; }
19182       fi
19183     fi
19184   fi
19185 
19186 
19187 
19188   if test "x$XATTR" = x; then
19189     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19190   fi
19191 
19192 
19193 
19194 
19195   # Publish this variable in the help.
19196 
19197 
19198   if test "x$CODESIGN" = x; then
19199     # The variable is not set by user, try to locate tool using the code snippet
19200     for ac_prog in codesign
19201 do
19202   # Extract the first word of "$ac_prog", so it can be a program name with args.
19203 set dummy $ac_prog; ac_word=$2
19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19205 $as_echo_n "checking for $ac_word... " >&6; }
19206 if ${ac_cv_path_CODESIGN+:} false; then :
19207   $as_echo_n "(cached) " >&6
19208 else
19209   case $CODESIGN in
19210   [\\/]* | ?:[\\/]*)
19211   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19212   ;;
19213   *)
19214   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19215 for as_dir in $PATH
19216 do
19217   IFS=$as_save_IFS
19218   test -z "$as_dir" && as_dir=.
19219     for ac_exec_ext in '' $ac_executable_extensions; do
19220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19221     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19223     break 2
19224   fi
19225 done
19226   done
19227 IFS=$as_save_IFS
19228 
19229   ;;
19230 esac
19231 fi
19232 CODESIGN=$ac_cv_path_CODESIGN
19233 if test -n "$CODESIGN"; then
19234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19235 $as_echo "$CODESIGN" >&6; }
19236 else
19237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19238 $as_echo "no" >&6; }
19239 fi
19240 
19241 
19242   test -n "$CODESIGN" && break
19243 done
19244 
19245   else
19246     # The variable is set, but is it from the command line or the environment?
19247 
19248     # Try to remove the string !CODESIGN! from our list.
19249     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19250     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19251       # If it failed, the variable was not from the command line. Ignore it,
19252       # but warn the user (except for BASH, which is always set by the calling BASH).
19253       if test "xCODESIGN" != xBASH; then
19254         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19255 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19256       fi
19257       # Try to locate tool using the code snippet
19258       for ac_prog in codesign
19259 do
19260   # Extract the first word of "$ac_prog", so it can be a program name with args.
19261 set dummy $ac_prog; ac_word=$2
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19263 $as_echo_n "checking for $ac_word... " >&6; }
19264 if ${ac_cv_path_CODESIGN+:} false; then :
19265   $as_echo_n "(cached) " >&6
19266 else
19267   case $CODESIGN in
19268   [\\/]* | ?:[\\/]*)
19269   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19270   ;;
19271   *)
19272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19273 for as_dir in $PATH
19274 do
19275   IFS=$as_save_IFS
19276   test -z "$as_dir" && as_dir=.
19277     for ac_exec_ext in '' $ac_executable_extensions; do
19278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19279     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19281     break 2
19282   fi
19283 done
19284   done
19285 IFS=$as_save_IFS
19286 
19287   ;;
19288 esac
19289 fi
19290 CODESIGN=$ac_cv_path_CODESIGN
19291 if test -n "$CODESIGN"; then
19292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19293 $as_echo "$CODESIGN" >&6; }
19294 else
19295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19296 $as_echo "no" >&6; }
19297 fi
19298 
19299 
19300   test -n "$CODESIGN" && break
19301 done
19302 
19303     else
19304       # If it succeeded, then it was overridden by the user. We will use it
19305       # for the tool.
19306 
19307       # First remove it from the list of overridden variables, so we can test
19308       # for unknown variables in the end.
19309       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19310 
19311       # Check if the provided tool contains a complete path.
19312       tool_specified="$CODESIGN"
19313       tool_basename="${tool_specified##*/}"
19314       if test "x$tool_basename" = "x$tool_specified"; then
19315         # A command without a complete path is provided, search $PATH.
19316         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19317 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19318         # Extract the first word of "$tool_basename", so it can be a program name with args.
19319 set dummy $tool_basename; ac_word=$2
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19321 $as_echo_n "checking for $ac_word... " >&6; }
19322 if ${ac_cv_path_CODESIGN+:} false; then :
19323   $as_echo_n "(cached) " >&6
19324 else
19325   case $CODESIGN in
19326   [\\/]* | ?:[\\/]*)
19327   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19328   ;;
19329   *)
19330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19331 for as_dir in $PATH
19332 do
19333   IFS=$as_save_IFS
19334   test -z "$as_dir" && as_dir=.
19335     for ac_exec_ext in '' $ac_executable_extensions; do
19336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19337     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19339     break 2
19340   fi
19341 done
19342   done
19343 IFS=$as_save_IFS
19344 
19345   ;;
19346 esac
19347 fi
19348 CODESIGN=$ac_cv_path_CODESIGN
19349 if test -n "$CODESIGN"; then
19350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19351 $as_echo "$CODESIGN" >&6; }
19352 else
19353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19354 $as_echo "no" >&6; }
19355 fi
19356 
19357 
19358         if test "x$CODESIGN" = x; then
19359           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19360         fi
19361       else
19362         # Otherwise we believe it is a complete path. Use it as it is.
19363         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19364 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19365         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19366 $as_echo_n "checking for CODESIGN... " >&6; }
19367         if test ! -x "$tool_specified"; then
19368           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19369 $as_echo "not found" >&6; }
19370           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19371         fi
19372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19373 $as_echo "$tool_specified" >&6; }
19374       fi
19375     fi
19376   fi
19377 
19378 
19379     if test "x$CODESIGN" != "x"; then
19380       # Verify that the openjdk_codesign certificate is present
19381       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19382 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19383       rm -f codesign-testfile
19384       touch codesign-testfile
19385       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19386       rm -f codesign-testfile
19387       if test "x$CODESIGN" = x; then
19388         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19389 $as_echo "no" >&6; }
19390       else
19391         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19392 $as_echo "yes" >&6; }
19393       fi
19394     fi
19395   fi
19396 
19397 
19398 # Check if pkg-config is available.
19399 
19400 
19401 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19402         if test -n "$ac_tool_prefix"; then
19403   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19404 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19406 $as_echo_n "checking for $ac_word... " >&6; }
19407 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19408   $as_echo_n "(cached) " >&6
19409 else
19410   case $PKG_CONFIG in
19411   [\\/]* | ?:[\\/]*)
19412   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19413   ;;
19414   *)
19415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19416 for as_dir in $PATH
19417 do
19418   IFS=$as_save_IFS
19419   test -z "$as_dir" && as_dir=.
19420     for ac_exec_ext in '' $ac_executable_extensions; do
19421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19422     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19424     break 2
19425   fi
19426 done
19427   done
19428 IFS=$as_save_IFS
19429 
19430   ;;
19431 esac
19432 fi
19433 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19434 if test -n "$PKG_CONFIG"; then
19435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19436 $as_echo "$PKG_CONFIG" >&6; }
19437 else
19438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19439 $as_echo "no" >&6; }
19440 fi
19441 
19442 
19443 fi
19444 if test -z "$ac_cv_path_PKG_CONFIG"; then
19445   ac_pt_PKG_CONFIG=$PKG_CONFIG
19446   # Extract the first word of "pkg-config", so it can be a program name with args.
19447 set dummy pkg-config; ac_word=$2
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19449 $as_echo_n "checking for $ac_word... " >&6; }
19450 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19451   $as_echo_n "(cached) " >&6
19452 else
19453   case $ac_pt_PKG_CONFIG in
19454   [\\/]* | ?:[\\/]*)
19455   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19456   ;;
19457   *)
19458   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19459 for as_dir in $PATH
19460 do
19461   IFS=$as_save_IFS
19462   test -z "$as_dir" && as_dir=.
19463     for ac_exec_ext in '' $ac_executable_extensions; do
19464   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19465     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19467     break 2
19468   fi
19469 done
19470   done
19471 IFS=$as_save_IFS
19472 
19473   ;;
19474 esac
19475 fi
19476 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19477 if test -n "$ac_pt_PKG_CONFIG"; then
19478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19479 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19480 else
19481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19482 $as_echo "no" >&6; }
19483 fi
19484 
19485   if test "x$ac_pt_PKG_CONFIG" = x; then
19486     PKG_CONFIG=""
19487   else
19488     case $cross_compiling:$ac_tool_warned in
19489 yes:)
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19491 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19492 ac_tool_warned=yes ;;
19493 esac
19494     PKG_CONFIG=$ac_pt_PKG_CONFIG
19495   fi
19496 else
19497   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19498 fi
19499 
19500 fi
19501 if test -n "$PKG_CONFIG"; then
19502         _pkg_min_version=0.9.0
19503         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19504 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19505         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19506                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19507 $as_echo "yes" >&6; }
19508         else
19509                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19510 $as_echo "no" >&6; }
19511                 PKG_CONFIG=""
19512         fi
19513 
19514 fi
19515 
19516 # After basic tools have been setup, we can check build os specific details.
19517 
19518   ###############################################################################
19519 
19520   # Note that this is the build platform OS version!
19521 
19522   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19523   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19524   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19525   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19526 
19527 
19528 
19529 
19530 
19531 # Setup builddeps, for automatic downloading of tools we need.
19532 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19533 # boot-jdk setup, but we need to have basic tools setup first.
19534 
19535 
19536 # Check whether --with-builddeps-conf was given.
19537 if test "${with_builddeps_conf+set}" = set; then :
19538   withval=$with_builddeps_conf;
19539 fi
19540 
19541 
19542 
19543 # Check whether --with-builddeps-server was given.
19544 if test "${with_builddeps_server+set}" = set; then :
19545   withval=$with_builddeps_server;
19546 fi
19547 
19548 
19549 
19550 # Check whether --with-builddeps-dir was given.
19551 if test "${with_builddeps_dir+set}" = set; then :
19552   withval=$with_builddeps_dir;
19553 else
19554   with_builddeps_dir=/localhome/builddeps
19555 fi
19556 
19557 
19558 
19559 # Check whether --with-builddeps-group was given.
19560 if test "${with_builddeps_group+set}" = set; then :
19561   withval=$with_builddeps_group;
19562 fi
19563 
19564 
19565 
19566 
19567   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19568     if test "x$with_builddeps_conf" != x; then
19569       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19570 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19571       builddepsfile=$with_builddeps_conf
19572       if test -s $builddepsfile; then
19573         . $builddepsfile
19574         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19575 $as_echo "loaded!" >&6; }
19576       else
19577         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19578       fi
19579     else
19580       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19581 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19582       builddepsfile=`mktemp`
19583       touch $builddepsfile
19584       # Put all found confs into a single file.
19585       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19586       # Source the file to acquire the variables
19587       if test -s $builddepsfile; then
19588         . $builddepsfile
19589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19590 $as_echo "found at least one!" >&6; }
19591       else
19592         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19593       fi
19594     fi
19595     # Create build and target names that use _ instead of "-" and ".".
19596     # This is necessary to use them in variable names.
19597     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19598     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19599     # Extract rewrite information for build and target
19600     eval rewritten_build=\${REWRITE_${build_var}}
19601     if test "x$rewritten_build" = x; then
19602       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19603       echo Build stays the same $rewritten_build
19604     else
19605       echo Rewriting build for builddeps into $rewritten_build
19606     fi
19607     eval rewritten_target=\${REWRITE_${target_var}}
19608     if test "x$rewritten_target" = x; then
19609       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19610       echo Target stays the same $rewritten_target
19611     else
19612       echo Rewriting target for builddeps into $rewritten_target
19613     fi
19614     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19615     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19616   fi
19617   for ac_prog in 7z unzip
19618 do
19619   # Extract the first word of "$ac_prog", so it can be a program name with args.
19620 set dummy $ac_prog; ac_word=$2
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19622 $as_echo_n "checking for $ac_word... " >&6; }
19623 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19624   $as_echo_n "(cached) " >&6
19625 else
19626   if test -n "$BDEPS_UNZIP"; then
19627   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19628 else
19629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19630 for as_dir in $PATH
19631 do
19632   IFS=$as_save_IFS
19633   test -z "$as_dir" && as_dir=.
19634     for ac_exec_ext in '' $ac_executable_extensions; do
19635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19636     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19638     break 2
19639   fi
19640 done
19641   done
19642 IFS=$as_save_IFS
19643 
19644 fi
19645 fi
19646 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19647 if test -n "$BDEPS_UNZIP"; then
19648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19649 $as_echo "$BDEPS_UNZIP" >&6; }
19650 else
19651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19652 $as_echo "no" >&6; }
19653 fi
19654 
19655 
19656   test -n "$BDEPS_UNZIP" && break
19657 done
19658 
19659   if test "x$BDEPS_UNZIP" = x7z; then
19660     BDEPS_UNZIP="7z x"
19661   fi
19662 
19663   for ac_prog in wget lftp ftp
19664 do
19665   # Extract the first word of "$ac_prog", so it can be a program name with args.
19666 set dummy $ac_prog; ac_word=$2
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19668 $as_echo_n "checking for $ac_word... " >&6; }
19669 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19670   $as_echo_n "(cached) " >&6
19671 else
19672   if test -n "$BDEPS_FTP"; then
19673   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19674 else
19675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19676 for as_dir in $PATH
19677 do
19678   IFS=$as_save_IFS
19679   test -z "$as_dir" && as_dir=.
19680     for ac_exec_ext in '' $ac_executable_extensions; do
19681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19682     ac_cv_prog_BDEPS_FTP="$ac_prog"
19683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19684     break 2
19685   fi
19686 done
19687   done
19688 IFS=$as_save_IFS
19689 
19690 fi
19691 fi
19692 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19693 if test -n "$BDEPS_FTP"; then
19694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19695 $as_echo "$BDEPS_FTP" >&6; }
19696 else
19697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19698 $as_echo "no" >&6; }
19699 fi
19700 
19701 
19702   test -n "$BDEPS_FTP" && break
19703 done
19704 
19705 
19706 
19707 ###############################################################################
19708 #
19709 # Determine OpenJDK variants, options and version numbers.
19710 #
19711 ###############################################################################
19712 
19713 # We need build & target for this.
19714 
19715 
19716   ###############################################################################
19717   #
19718   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19719   # We always build headless support.
19720   #
19721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19722 $as_echo_n "checking headful support... " >&6; }
19723   # Check whether --enable-headful was given.
19724 if test "${enable_headful+set}" = set; then :
19725   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19726 else
19727   SUPPORT_HEADFUL=yes
19728 fi
19729 
19730 
19731   SUPPORT_HEADLESS=yes
19732   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19733 
19734   if test "x$SUPPORT_HEADFUL" = xyes; then
19735     # We are building both headful and headless.
19736     headful_msg="include support for both headful and headless"
19737   fi
19738 
19739   if test "x$SUPPORT_HEADFUL" = xno; then
19740     # Thus we are building headless only.
19741     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19742     headful_msg="headless only"
19743   fi
19744 
19745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19746 $as_echo "$headful_msg" >&6; }
19747 
19748 
19749 
19750 
19751 
19752   # Control wether Hotspot runs Queens test after build.
19753   # Check whether --enable-hotspot-test-in-build was given.
19754 if test "${enable_hotspot_test_in_build+set}" = set; then :
19755   enableval=$enable_hotspot_test_in_build;
19756 else
19757   enable_hotspot_test_in_build=no
19758 fi
19759 
19760   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19761     TEST_IN_BUILD=true
19762   else
19763     TEST_IN_BUILD=false
19764   fi
19765 
19766 
19767   ###############################################################################
19768   #
19769   # Choose cacerts source file
19770   #
19771 
19772 # Check whether --with-cacerts-file was given.
19773 if test "${with_cacerts_file+set}" = set; then :
19774   withval=$with_cacerts_file;
19775 fi
19776 
19777   if test "x$with_cacerts_file" != x; then
19778     CACERTS_FILE=$with_cacerts_file
19779   fi
19780 
19781 
19782   ###############################################################################
19783   #
19784   # Enable or disable unlimited crypto
19785   #
19786   # Check whether --enable-unlimited-crypto was given.
19787 if test "${enable_unlimited_crypto+set}" = set; then :
19788   enableval=$enable_unlimited_crypto;
19789 else
19790   enable_unlimited_crypto=no
19791 fi
19792 
19793   if test "x$enable_unlimited_crypto" = "xyes"; then
19794     UNLIMITED_CRYPTO=true
19795   else
19796     UNLIMITED_CRYPTO=false
19797   fi
19798 
19799 
19800   ###############################################################################
19801   #
19802   # Enable or disable the elliptic curve crypto implementation
19803   #
19804 
19805 
19806   ###############################################################################
19807   #
19808   # Compress jars
19809   #
19810   COMPRESS_JARS=false
19811 
19812 
19813 
19814   ###############################################################################
19815   #
19816   # Enable or disable JFR
19817   #
19818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build JFR" >&5
19819 $as_echo_n "checking whether to build JFR... " >&6; }
19820   # Check whether --enable-jfr was given.
19821 if test "${enable_jfr+set}" = set; then :
19822   enableval=$enable_jfr;
19823 else
19824   enable_jfr=auto
19825 fi
19826 
19827   if test "x$enable_jfr" = "xno"; then
19828     ENABLE_JFR=false
19829   elif test "x$enable_jfr" = "xyes" -o "x$enable_jfr" = "xauto"; then
19830     if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then
19831       if test "x$enable_jfr" = "xyes"; then
19832         as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5
19833       else
19834         ENABLE_JFR=false
19835       fi
19836     elif test "x$OPENJDK_TARGET_OS" = xaix; then
19837       if test "x$enable_jfr" = "xyes"; then
19838         as_fn_error $? "AIX does not support JFR" "$LINENO" 5
19839       else
19840         ENABLE_JFR=false
19841       fi
19842     else
19843       ENABLE_JFR=true
19844     fi
19845   else
19846     as_fn_error $? "--enable-jfr must be set to either yes or no" "$LINENO" 5
19847   fi
19848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5
19849 $as_echo "$ENABLE_JFR" >&6; }
19850 
19851 
19852 
19853   # Source the version numbers
19854   . $AUTOCONF_DIR/version-numbers
19855 
19856   # Get the settings from parameters
19857 
19858 # Check whether --with-milestone was given.
19859 if test "${with_milestone+set}" = set; then :
19860   withval=$with_milestone;
19861 fi
19862 
19863   if test "x$with_milestone" = xyes; then
19864     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19865   elif test "x$with_milestone" != x; then
19866     MILESTONE="$with_milestone"
19867   fi
19868   if test "x$MILESTONE" = x; then
19869     MILESTONE=internal
19870   fi
19871 
19872 
19873 # Check whether --with-update-version was given.
19874 if test "${with_update_version+set}" = set; then :
19875   withval=$with_update_version;
19876 fi
19877 
19878   if test "x$with_update_version" = xyes; then
19879     as_fn_error $? "Update version must have a value" "$LINENO" 5
19880   elif test "x$with_update_version" != x; then
19881     JDK_UPDATE_VERSION="$with_update_version"
19882     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19883     # to a bug in expr (which reduces it to just X). To work around this, we
19884     # always add a 0 to one digit update versions.
19885     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19886       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19887     fi
19888   fi
19889 
19890 
19891 # Check whether --with-user-release-suffix was given.
19892 if test "${with_user_release_suffix+set}" = set; then :
19893   withval=$with_user_release_suffix;
19894 fi
19895 
19896   if test "x$with_user_release_suffix" = xyes; then
19897     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19898   elif test "x$with_user_release_suffix" != x; then
19899     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19900   fi
19901 
19902 
19903 # Check whether --with-build-number was given.
19904 if test "${with_build_number+set}" = set; then :
19905   withval=$with_build_number;
19906 fi
19907 
19908   if test "x$with_build_number" = xyes; then
19909     as_fn_error $? "Build number must have a value" "$LINENO" 5
19910   elif test "x$with_build_number" != x; then
19911     JDK_BUILD_NUMBER="$with_build_number"
19912   fi
19913   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19914   if test "x$JDK_BUILD_NUMBER" = x; then
19915     JDK_BUILD_NUMBER=b00
19916     if test "x$USER_RELEASE_SUFFIX" = x; then
19917       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19918       # Avoid [:alnum:] since it depends on the locale.
19919       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19920       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19921     fi
19922   fi
19923 
19924   # Now set the JDK version, milestone, build number etc.
19925 
19926 
19927 
19928 
19929 
19930 
19931 
19932 
19933 
19934 
19935 
19936 
19937 
19938 
19939   # The vendor name, if any
19940 
19941 # Check whether --with-vendor-name was given.
19942 if test "${with_vendor_name+set}" = set; then :
19943   withval=$with_vendor_name;
19944 fi
19945 
19946   if test "x$with_vendor_name" = xyes; then
19947     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19948   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19949     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19950   elif test "x$with_vendor_name" != x; then
19951     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19952     # Otherwise we will use the value from "version-numbers" included above.
19953     COMPANY_NAME="$with_vendor_name"
19954   fi
19955 
19956 
19957   # The vendor URL, if any
19958 
19959 # Check whether --with-vendor-url was given.
19960 if test "${with_vendor_url+set}" = set; then :
19961   withval=$with_vendor_url;
19962 fi
19963 
19964   if test "x$with_vendor_url" = xyes; then
19965     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19966   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19967     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19968   else
19969     VENDOR_URL="$with_vendor_url"
19970   fi
19971 
19972 
19973   # The vendor bug URL, if any
19974 
19975 # Check whether --with-vendor-bug-url was given.
19976 if test "${with_vendor_bug_url+set}" = set; then :
19977   withval=$with_vendor_bug_url;
19978 fi
19979 
19980   if test "x$with_vendor_bug_url" = xyes; then
19981     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19982   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19983     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19984   else
19985     VENDOR_URL_BUG="$with_vendor_bug_url"
19986   fi
19987 
19988 
19989   # The vendor VM bug URL, if any
19990 
19991 # Check whether --with-vendor-vm-bug-url was given.
19992 if test "${with_vendor_vm_bug_url+set}" = set; then :
19993   withval=$with_vendor_vm_bug_url;
19994 fi
19995 
19996   if test "x$with_vendor_vm_bug_url" = xyes; then
19997     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19998   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19999     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
20000   else
20001     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
20002   fi
20003 
20004 
20005 
20006 # Check whether --with-copyright-year was given.
20007 if test "${with_copyright_year+set}" = set; then :
20008   withval=$with_copyright_year;
20009 fi
20010 
20011   if test "x$with_copyright_year" = xyes; then
20012     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20013   elif test "x$with_copyright_year" != x; then
20014     COPYRIGHT_YEAR="$with_copyright_year"
20015   else
20016     COPYRIGHT_YEAR=`date +'%Y'`
20017   fi
20018 
20019 
20020   if test "x$JDK_UPDATE_VERSION" != x; then
20021     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20022   else
20023     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20024   fi
20025 
20026 
20027   # The cooked update version used to encode trailing letters in the update
20028   # version into a trailing number. That is no longer needed, but need to
20029   # keep the format in 8u for compatibility.
20030   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
20031 
20032 
20033   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20034 
20035 
20036 
20037 ###############################################################################
20038 #
20039 # Setup BootJDK, used to bootstrap the build.
20040 #
20041 ###############################################################################
20042 
20043 
20044   BOOT_JDK_FOUND=no
20045 
20046 # Check whether --with-boot-jdk was given.
20047 if test "${with_boot_jdk+set}" = set; then :
20048   withval=$with_boot_jdk;
20049 fi
20050 
20051 
20052   # We look for the Boot JDK through various means, going from more certain to
20053   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20054   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20055   # must check if this is indeed valid; otherwise we'll continue looking.
20056 
20057   # Test: Is bootjdk explicitely set by command line arguments?
20058 
20059   if test "x$BOOT_JDK_FOUND" = xno; then
20060     # Now execute the test
20061 
20062   if test "x$with_boot_jdk" != x; then
20063     BOOT_JDK=$with_boot_jdk
20064     BOOT_JDK_FOUND=maybe
20065     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20066 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20067   fi
20068 
20069 
20070     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20071     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20072       # Do we have a bin/java?
20073       if test ! -x "$BOOT_JDK/bin/java"; then
20074         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20076         BOOT_JDK_FOUND=no
20077       else
20078         # Do we have a bin/javac?
20079         if test ! -x "$BOOT_JDK/bin/javac"; then
20080           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20082           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20083 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20084           BOOT_JDK_FOUND=no
20085         else
20086           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20087           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20088             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20089 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20090             BOOT_JDK_FOUND=no
20091           else
20092             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20093             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20094 
20095             # Extra M4 quote needed to protect [] in grep expression.
20096             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20097             if test "x$FOUND_VERSION_78" = x; then
20098               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20100               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20101 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20102               BOOT_JDK_FOUND=no
20103             else
20104               # We're done! :-)
20105               BOOT_JDK_FOUND=yes
20106 
20107   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20108 
20109   # Input might be given as Windows format, start by converting to
20110   # unix format.
20111   path="$BOOT_JDK"
20112   new_path=`$CYGPATH -u "$path"`
20113 
20114   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20115   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20116   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20117   # "foo.exe" is OK but "foo" is an error.
20118   #
20119   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20120   # It is also a way to make sure we got the proper file name for the real test later on.
20121   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20122   if test "x$test_shortpath" = x; then
20123     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20125     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20126   fi
20127 
20128   # Call helper function which possibly converts this using DOS-style short mode.
20129   # If so, the updated path is stored in $new_path.
20130 
20131   input_path="$new_path"
20132   # Check if we need to convert this using DOS-style short mode. If the path
20133   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20134   # take no chances and rewrite it.
20135   # Note: m4 eats our [], so we need to use [ and ] instead.
20136   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20137   if test "x$has_forbidden_chars" != x; then
20138     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20139     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20140     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20141     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20142       # Going to short mode and back again did indeed matter. Since short mode is
20143       # case insensitive, let's make it lowercase to improve readability.
20144       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20145       # Now convert it back to Unix-style (cygpath)
20146       input_path=`$CYGPATH -u "$shortmode_path"`
20147       new_path="$input_path"
20148     fi
20149   fi
20150 
20151   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20152   if test "x$test_cygdrive_prefix" = x; then
20153     # As a simple fix, exclude /usr/bin since it's not a real path.
20154     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20155       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20156       # a path prefixed by /cygdrive for fixpath to work.
20157       new_path="$CYGWIN_ROOT_PATH$input_path"
20158     fi
20159   fi
20160 
20161 
20162   if test "x$path" != "x$new_path"; then
20163     BOOT_JDK="$new_path"
20164     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20165 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20166   fi
20167 
20168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20169 
20170   path="$BOOT_JDK"
20171   has_colon=`$ECHO $path | $GREP ^.:`
20172   new_path="$path"
20173   if test "x$has_colon" = x; then
20174     # Not in mixed or Windows style, start by that.
20175     new_path=`cmd //c echo $path`
20176   fi
20177 
20178 
20179   input_path="$new_path"
20180   # Check if we need to convert this using DOS-style short mode. If the path
20181   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20182   # take no chances and rewrite it.
20183   # Note: m4 eats our [], so we need to use [ and ] instead.
20184   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20185   if test "x$has_forbidden_chars" != x; then
20186     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20187     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20188   fi
20189 
20190 
20191   windows_path="$new_path"
20192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20193     unix_path=`$CYGPATH -u "$windows_path"`
20194     new_path="$unix_path"
20195   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20196     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20197     new_path="$unix_path"
20198   fi
20199 
20200   if test "x$path" != "x$new_path"; then
20201     BOOT_JDK="$new_path"
20202     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20203 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20204   fi
20205 
20206   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20207   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20208 
20209   else
20210     # We're on a posix platform. Hooray! :)
20211     path="$BOOT_JDK"
20212     has_space=`$ECHO "$path" | $GREP " "`
20213     if test "x$has_space" != x; then
20214       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20216       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20217     fi
20218 
20219     # Use eval to expand a potential ~
20220     eval path="$path"
20221     if test ! -f "$path" && test ! -d "$path"; then
20222       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20223     fi
20224 
20225     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20226   fi
20227 
20228               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20229 $as_echo_n "checking for Boot JDK... " >&6; }
20230               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20231 $as_echo "$BOOT_JDK" >&6; }
20232               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20233 $as_echo_n "checking Boot JDK version... " >&6; }
20234               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20235               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20236 $as_echo "$BOOT_JDK_VERSION" >&6; }
20237             fi # end check jdk version
20238           fi # end check rt.jar
20239         fi # end check javac
20240       fi # end check java
20241     fi # end check boot jdk found
20242   fi
20243 
20244   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20245     # Having specified an argument which is incorrect will produce an instant failure;
20246     # we should not go on looking
20247     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20248   fi
20249 
20250   # Test: Is bootjdk available from builddeps?
20251 
20252   if test "x$BOOT_JDK_FOUND" = xno; then
20253     # Now execute the test
20254 
20255 
20256 
20257   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20258     # Source the builddeps file again, to make sure it uses the latest variables!
20259     . $builddepsfile
20260     # Look for a target and build machine specific resource!
20261     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20262     if test "x$resource" = x; then
20263       # Ok, lets instead look for a target specific resource
20264       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20265     fi
20266     if test "x$resource" = x; then
20267       # Ok, lets instead look for a build specific resource
20268       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20269     fi
20270     if test "x$resource" = x; then
20271       # Ok, lets instead look for a generic resource
20272       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20273       resource=${builddep_bootjdk}
20274     fi
20275     if test "x$resource" != x; then
20276       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20277 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20278       # If the resource in the builddeps.conf file is an existing directory,
20279       # for example /java/linux/cups
20280       if test -d ${resource}; then
20281         depdir=${resource}
20282       else
20283 
20284   # bootjdk is for example mymodule
20285   # $resource is for example libs/general/libmymod_1_2_3.zip
20286   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20287   # $with_builddeps_dir is for example /localhome/builddeps
20288   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20289   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20290   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20291   filename=`basename $resource`
20292   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20293   filebase=${filename%%.*}
20294   extension=${filename#*.}
20295   installdir=$with_builddeps_dir/$filebase
20296   if test ! -f $installdir/$filename.unpacked; then
20297     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20298 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20299     if test ! -d $installdir; then
20300       mkdir -p $installdir
20301     fi
20302     if test ! -d $installdir; then
20303       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20304     fi
20305     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20306     touch $tmpfile
20307     if test ! -f $tmpfile; then
20308       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20309     fi
20310 
20311   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20312   # $tmpfile is the local file name for the downloaded file.
20313   VALID_TOOL=no
20314   if test "x$BDEPS_FTP" = xwget; then
20315     VALID_TOOL=yes
20316     wget -O $tmpfile $with_builddeps_server/$resource
20317   fi
20318   if test "x$BDEPS_FTP" = xlftp; then
20319     VALID_TOOL=yes
20320     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20321   fi
20322   if test "x$BDEPS_FTP" = xftp; then
20323     VALID_TOOL=yes
20324     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20325     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20326     FTPUSERPWD=${FTPSERVER%%@*}
20327     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20328       FTPUSER=${userpwd%%:*}
20329       FTPPWD=${userpwd#*@}
20330       FTPSERVER=${FTPSERVER#*@}
20331     else
20332       FTPUSER=ftp
20333       FTPPWD=ftp
20334     fi
20335     # the "pass" command does not work on some
20336     # ftp clients (read ftp.exe) but if it works,
20337     # passive mode is better!
20338     ( \
20339         echo "user $FTPUSER $FTPPWD"        ; \
20340         echo "pass"                         ; \
20341         echo "bin"                          ; \
20342         echo "get $FTPPATH $tmpfile"              ; \
20343     ) | ftp -in $FTPSERVER
20344   fi
20345   if test "x$VALID_TOOL" != xyes; then
20346     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20347   fi
20348 
20349     mv $tmpfile $installdir/$filename
20350     if test ! -s $installdir/$filename; then
20351       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20352     fi
20353     case "$extension" in
20354       zip)  echo "Unzipping $installdir/$filename..."
20355         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20356         ;;
20357       tar.gz) echo "Untaring $installdir/$filename..."
20358         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20359         ;;
20360       tgz) echo "Untaring $installdir/$filename..."
20361         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20362         ;;
20363       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20364         ;;
20365     esac
20366   fi
20367   if test -f $installdir/$filename.unpacked; then
20368     depdir=$installdir
20369   fi
20370 
20371       fi
20372       # Source the builddeps file again, because in the previous command, the depdir
20373       # was updated to point at the current build dependency install directory.
20374       . $builddepsfile
20375       # Now extract variables from the builddeps.conf files.
20376       theroot=${builddep_bootjdk_ROOT}
20377       thecflags=${builddep_bootjdk_CFLAGS}
20378       thelibs=${builddep_bootjdk_LIBS}
20379       if test "x$depdir" = x; then
20380         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20381       fi
20382       BOOT_JDK=$depdir
20383       if test "x$theroot" != x; then
20384         BOOT_JDK="$theroot"
20385       fi
20386       if test "x$thecflags" != x; then
20387         BOOT_JDK_CFLAGS="$thecflags"
20388       fi
20389       if test "x$thelibs" != x; then
20390         BOOT_JDK_LIBS="$thelibs"
20391       fi
20392       BOOT_JDK_FOUND=maybe
20393       else BOOT_JDK_FOUND=no
20394 
20395     fi
20396     else BOOT_JDK_FOUND=no
20397 
20398   fi
20399 
20400 
20401 
20402     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20403     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20404       # Do we have a bin/java?
20405       if test ! -x "$BOOT_JDK/bin/java"; then
20406         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20408         BOOT_JDK_FOUND=no
20409       else
20410         # Do we have a bin/javac?
20411         if test ! -x "$BOOT_JDK/bin/javac"; then
20412           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20414           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20415 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20416           BOOT_JDK_FOUND=no
20417         else
20418           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20419           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20420             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20422             BOOT_JDK_FOUND=no
20423           else
20424             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20425             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20426 
20427             # Extra M4 quote needed to protect [] in grep expression.
20428             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20429             if test "x$FOUND_VERSION_78" = x; then
20430               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20431 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20432               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20433 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20434               BOOT_JDK_FOUND=no
20435             else
20436               # We're done! :-)
20437               BOOT_JDK_FOUND=yes
20438 
20439   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20440 
20441   # Input might be given as Windows format, start by converting to
20442   # unix format.
20443   path="$BOOT_JDK"
20444   new_path=`$CYGPATH -u "$path"`
20445 
20446   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20447   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20448   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20449   # "foo.exe" is OK but "foo" is an error.
20450   #
20451   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20452   # It is also a way to make sure we got the proper file name for the real test later on.
20453   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20454   if test "x$test_shortpath" = x; then
20455     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20456 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20457     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20458   fi
20459 
20460   # Call helper function which possibly converts this using DOS-style short mode.
20461   # If so, the updated path is stored in $new_path.
20462 
20463   input_path="$new_path"
20464   # Check if we need to convert this using DOS-style short mode. If the path
20465   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20466   # take no chances and rewrite it.
20467   # Note: m4 eats our [], so we need to use [ and ] instead.
20468   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20469   if test "x$has_forbidden_chars" != x; then
20470     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20471     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20472     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20473     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20474       # Going to short mode and back again did indeed matter. Since short mode is
20475       # case insensitive, let's make it lowercase to improve readability.
20476       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20477       # Now convert it back to Unix-style (cygpath)
20478       input_path=`$CYGPATH -u "$shortmode_path"`
20479       new_path="$input_path"
20480     fi
20481   fi
20482 
20483   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20484   if test "x$test_cygdrive_prefix" = x; then
20485     # As a simple fix, exclude /usr/bin since it's not a real path.
20486     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20487       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20488       # a path prefixed by /cygdrive for fixpath to work.
20489       new_path="$CYGWIN_ROOT_PATH$input_path"
20490     fi
20491   fi
20492 
20493 
20494   if test "x$path" != "x$new_path"; then
20495     BOOT_JDK="$new_path"
20496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20498   fi
20499 
20500   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20501 
20502   path="$BOOT_JDK"
20503   has_colon=`$ECHO $path | $GREP ^.:`
20504   new_path="$path"
20505   if test "x$has_colon" = x; then
20506     # Not in mixed or Windows style, start by that.
20507     new_path=`cmd //c echo $path`
20508   fi
20509 
20510 
20511   input_path="$new_path"
20512   # Check if we need to convert this using DOS-style short mode. If the path
20513   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20514   # take no chances and rewrite it.
20515   # Note: m4 eats our [], so we need to use [ and ] instead.
20516   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20517   if test "x$has_forbidden_chars" != x; then
20518     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20519     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20520   fi
20521 
20522 
20523   windows_path="$new_path"
20524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20525     unix_path=`$CYGPATH -u "$windows_path"`
20526     new_path="$unix_path"
20527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20528     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20529     new_path="$unix_path"
20530   fi
20531 
20532   if test "x$path" != "x$new_path"; then
20533     BOOT_JDK="$new_path"
20534     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20535 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20536   fi
20537 
20538   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20539   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20540 
20541   else
20542     # We're on a posix platform. Hooray! :)
20543     path="$BOOT_JDK"
20544     has_space=`$ECHO "$path" | $GREP " "`
20545     if test "x$has_space" != x; then
20546       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20547 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20548       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20549     fi
20550 
20551     # Use eval to expand a potential ~
20552     eval path="$path"
20553     if test ! -f "$path" && test ! -d "$path"; then
20554       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20555     fi
20556 
20557     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20558   fi
20559 
20560               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20561 $as_echo_n "checking for Boot JDK... " >&6; }
20562               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20563 $as_echo "$BOOT_JDK" >&6; }
20564               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20565 $as_echo_n "checking Boot JDK version... " >&6; }
20566               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20567               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20568 $as_echo "$BOOT_JDK_VERSION" >&6; }
20569             fi # end check jdk version
20570           fi # end check rt.jar
20571         fi # end check javac
20572       fi # end check java
20573     fi # end check boot jdk found
20574   fi
20575 
20576 
20577   # Test: Is $JAVA_HOME set?
20578 
20579   if test "x$BOOT_JDK_FOUND" = xno; then
20580     # Now execute the test
20581 
20582   if test "x$JAVA_HOME" != x; then
20583     JAVA_HOME_PROCESSED="$JAVA_HOME"
20584 
20585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20586 
20587   # Input might be given as Windows format, start by converting to
20588   # unix format.
20589   path="$JAVA_HOME_PROCESSED"
20590   new_path=`$CYGPATH -u "$path"`
20591 
20592   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20593   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20594   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20595   # "foo.exe" is OK but "foo" is an error.
20596   #
20597   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20598   # It is also a way to make sure we got the proper file name for the real test later on.
20599   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20600   if test "x$test_shortpath" = x; then
20601     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20602 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20603     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20604   fi
20605 
20606   # Call helper function which possibly converts this using DOS-style short mode.
20607   # If so, the updated path is stored in $new_path.
20608 
20609   input_path="$new_path"
20610   # Check if we need to convert this using DOS-style short mode. If the path
20611   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20612   # take no chances and rewrite it.
20613   # Note: m4 eats our [], so we need to use [ and ] instead.
20614   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20615   if test "x$has_forbidden_chars" != x; then
20616     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20617     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20618     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20619     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20620       # Going to short mode and back again did indeed matter. Since short mode is
20621       # case insensitive, let's make it lowercase to improve readability.
20622       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20623       # Now convert it back to Unix-style (cygpath)
20624       input_path=`$CYGPATH -u "$shortmode_path"`
20625       new_path="$input_path"
20626     fi
20627   fi
20628 
20629   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20630   if test "x$test_cygdrive_prefix" = x; then
20631     # As a simple fix, exclude /usr/bin since it's not a real path.
20632     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20633       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20634       # a path prefixed by /cygdrive for fixpath to work.
20635       new_path="$CYGWIN_ROOT_PATH$input_path"
20636     fi
20637   fi
20638 
20639 
20640   if test "x$path" != "x$new_path"; then
20641     JAVA_HOME_PROCESSED="$new_path"
20642     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20643 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20644   fi
20645 
20646   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20647 
20648   path="$JAVA_HOME_PROCESSED"
20649   has_colon=`$ECHO $path | $GREP ^.:`
20650   new_path="$path"
20651   if test "x$has_colon" = x; then
20652     # Not in mixed or Windows style, start by that.
20653     new_path=`cmd //c echo $path`
20654   fi
20655 
20656 
20657   input_path="$new_path"
20658   # Check if we need to convert this using DOS-style short mode. If the path
20659   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20660   # take no chances and rewrite it.
20661   # Note: m4 eats our [], so we need to use [ and ] instead.
20662   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20663   if test "x$has_forbidden_chars" != x; then
20664     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20665     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20666   fi
20667 
20668 
20669   windows_path="$new_path"
20670   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20671     unix_path=`$CYGPATH -u "$windows_path"`
20672     new_path="$unix_path"
20673   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20674     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20675     new_path="$unix_path"
20676   fi
20677 
20678   if test "x$path" != "x$new_path"; then
20679     JAVA_HOME_PROCESSED="$new_path"
20680     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20681 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20682   fi
20683 
20684   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20685   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20686 
20687   else
20688     # We're on a posix platform. Hooray! :)
20689     path="$JAVA_HOME_PROCESSED"
20690     has_space=`$ECHO "$path" | $GREP " "`
20691     if test "x$has_space" != x; then
20692       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20693 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20694       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20695     fi
20696 
20697     # Use eval to expand a potential ~
20698     eval path="$path"
20699     if test ! -f "$path" && test ! -d "$path"; then
20700       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20701     fi
20702 
20703     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20704   fi
20705 
20706     if test ! -d "$JAVA_HOME_PROCESSED"; then
20707       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20708 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20709     else
20710       # Aha, the user has set a JAVA_HOME
20711       # let us use that as the Boot JDK.
20712       BOOT_JDK="$JAVA_HOME_PROCESSED"
20713       BOOT_JDK_FOUND=maybe
20714       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20715 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20716     fi
20717   fi
20718 
20719 
20720     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20721     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20722       # Do we have a bin/java?
20723       if test ! -x "$BOOT_JDK/bin/java"; then
20724         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20726         BOOT_JDK_FOUND=no
20727       else
20728         # Do we have a bin/javac?
20729         if test ! -x "$BOOT_JDK/bin/javac"; then
20730           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20732           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20733 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20734           BOOT_JDK_FOUND=no
20735         else
20736           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20737           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20738             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20739 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20740             BOOT_JDK_FOUND=no
20741           else
20742             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20743             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20744 
20745             # Extra M4 quote needed to protect [] in grep expression.
20746             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20747             if test "x$FOUND_VERSION_78" = x; then
20748               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20749 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20750               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20751 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20752               BOOT_JDK_FOUND=no
20753             else
20754               # We're done! :-)
20755               BOOT_JDK_FOUND=yes
20756 
20757   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20758 
20759   # Input might be given as Windows format, start by converting to
20760   # unix format.
20761   path="$BOOT_JDK"
20762   new_path=`$CYGPATH -u "$path"`
20763 
20764   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20765   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20766   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20767   # "foo.exe" is OK but "foo" is an error.
20768   #
20769   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20770   # It is also a way to make sure we got the proper file name for the real test later on.
20771   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20772   if test "x$test_shortpath" = x; then
20773     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20775     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20776   fi
20777 
20778   # Call helper function which possibly converts this using DOS-style short mode.
20779   # If so, the updated path is stored in $new_path.
20780 
20781   input_path="$new_path"
20782   # Check if we need to convert this using DOS-style short mode. If the path
20783   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20784   # take no chances and rewrite it.
20785   # Note: m4 eats our [], so we need to use [ and ] instead.
20786   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20787   if test "x$has_forbidden_chars" != x; then
20788     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20789     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20790     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20791     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20792       # Going to short mode and back again did indeed matter. Since short mode is
20793       # case insensitive, let's make it lowercase to improve readability.
20794       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20795       # Now convert it back to Unix-style (cygpath)
20796       input_path=`$CYGPATH -u "$shortmode_path"`
20797       new_path="$input_path"
20798     fi
20799   fi
20800 
20801   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20802   if test "x$test_cygdrive_prefix" = x; then
20803     # As a simple fix, exclude /usr/bin since it's not a real path.
20804     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20805       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20806       # a path prefixed by /cygdrive for fixpath to work.
20807       new_path="$CYGWIN_ROOT_PATH$input_path"
20808     fi
20809   fi
20810 
20811 
20812   if test "x$path" != "x$new_path"; then
20813     BOOT_JDK="$new_path"
20814     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20815 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20816   fi
20817 
20818   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20819 
20820   path="$BOOT_JDK"
20821   has_colon=`$ECHO $path | $GREP ^.:`
20822   new_path="$path"
20823   if test "x$has_colon" = x; then
20824     # Not in mixed or Windows style, start by that.
20825     new_path=`cmd //c echo $path`
20826   fi
20827 
20828 
20829   input_path="$new_path"
20830   # Check if we need to convert this using DOS-style short mode. If the path
20831   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20832   # take no chances and rewrite it.
20833   # Note: m4 eats our [], so we need to use [ and ] instead.
20834   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20835   if test "x$has_forbidden_chars" != x; then
20836     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20837     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20838   fi
20839 
20840 
20841   windows_path="$new_path"
20842   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20843     unix_path=`$CYGPATH -u "$windows_path"`
20844     new_path="$unix_path"
20845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20846     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20847     new_path="$unix_path"
20848   fi
20849 
20850   if test "x$path" != "x$new_path"; then
20851     BOOT_JDK="$new_path"
20852     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20853 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20854   fi
20855 
20856   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20857   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20858 
20859   else
20860     # We're on a posix platform. Hooray! :)
20861     path="$BOOT_JDK"
20862     has_space=`$ECHO "$path" | $GREP " "`
20863     if test "x$has_space" != x; then
20864       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20865 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20866       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20867     fi
20868 
20869     # Use eval to expand a potential ~
20870     eval path="$path"
20871     if test ! -f "$path" && test ! -d "$path"; then
20872       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20873     fi
20874 
20875     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20876   fi
20877 
20878               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20879 $as_echo_n "checking for Boot JDK... " >&6; }
20880               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20881 $as_echo "$BOOT_JDK" >&6; }
20882               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20883 $as_echo_n "checking Boot JDK version... " >&6; }
20884               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20885               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20886 $as_echo "$BOOT_JDK_VERSION" >&6; }
20887             fi # end check jdk version
20888           fi # end check rt.jar
20889         fi # end check javac
20890       fi # end check java
20891     fi # end check boot jdk found
20892   fi
20893 
20894 
20895   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20896 
20897   if test "x$BOOT_JDK_FOUND" = xno; then
20898     # Now execute the test
20899 
20900   if test -x /usr/libexec/java_home; then
20901     BOOT_JDK=`/usr/libexec/java_home`
20902     BOOT_JDK_FOUND=maybe
20903     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20904 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20905   fi
20906 
20907 
20908     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20909     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20910       # Do we have a bin/java?
20911       if test ! -x "$BOOT_JDK/bin/java"; then
20912         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20913 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20914         BOOT_JDK_FOUND=no
20915       else
20916         # Do we have a bin/javac?
20917         if test ! -x "$BOOT_JDK/bin/javac"; then
20918           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20920           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20921 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20922           BOOT_JDK_FOUND=no
20923         else
20924           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20925           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20926             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20927 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20928             BOOT_JDK_FOUND=no
20929           else
20930             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20931             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20932 
20933             # Extra M4 quote needed to protect [] in grep expression.
20934             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20935             if test "x$FOUND_VERSION_78" = x; then
20936               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20938               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20939 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20940               BOOT_JDK_FOUND=no
20941             else
20942               # We're done! :-)
20943               BOOT_JDK_FOUND=yes
20944 
20945   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20946 
20947   # Input might be given as Windows format, start by converting to
20948   # unix format.
20949   path="$BOOT_JDK"
20950   new_path=`$CYGPATH -u "$path"`
20951 
20952   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20953   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20954   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20955   # "foo.exe" is OK but "foo" is an error.
20956   #
20957   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20958   # It is also a way to make sure we got the proper file name for the real test later on.
20959   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20960   if test "x$test_shortpath" = x; then
20961     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20962 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20963     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20964   fi
20965 
20966   # Call helper function which possibly converts this using DOS-style short mode.
20967   # If so, the updated path is stored in $new_path.
20968 
20969   input_path="$new_path"
20970   # Check if we need to convert this using DOS-style short mode. If the path
20971   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20972   # take no chances and rewrite it.
20973   # Note: m4 eats our [], so we need to use [ and ] instead.
20974   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20975   if test "x$has_forbidden_chars" != x; then
20976     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20977     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20978     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20979     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20980       # Going to short mode and back again did indeed matter. Since short mode is
20981       # case insensitive, let's make it lowercase to improve readability.
20982       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20983       # Now convert it back to Unix-style (cygpath)
20984       input_path=`$CYGPATH -u "$shortmode_path"`
20985       new_path="$input_path"
20986     fi
20987   fi
20988 
20989   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20990   if test "x$test_cygdrive_prefix" = x; then
20991     # As a simple fix, exclude /usr/bin since it's not a real path.
20992     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20993       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20994       # a path prefixed by /cygdrive for fixpath to work.
20995       new_path="$CYGWIN_ROOT_PATH$input_path"
20996     fi
20997   fi
20998 
20999 
21000   if test "x$path" != "x$new_path"; then
21001     BOOT_JDK="$new_path"
21002     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21003 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21004   fi
21005 
21006   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21007 
21008   path="$BOOT_JDK"
21009   has_colon=`$ECHO $path | $GREP ^.:`
21010   new_path="$path"
21011   if test "x$has_colon" = x; then
21012     # Not in mixed or Windows style, start by that.
21013     new_path=`cmd //c echo $path`
21014   fi
21015 
21016 
21017   input_path="$new_path"
21018   # Check if we need to convert this using DOS-style short mode. If the path
21019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21020   # take no chances and rewrite it.
21021   # Note: m4 eats our [], so we need to use [ and ] instead.
21022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21023   if test "x$has_forbidden_chars" != x; then
21024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21025     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21026   fi
21027 
21028 
21029   windows_path="$new_path"
21030   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21031     unix_path=`$CYGPATH -u "$windows_path"`
21032     new_path="$unix_path"
21033   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21034     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21035     new_path="$unix_path"
21036   fi
21037 
21038   if test "x$path" != "x$new_path"; then
21039     BOOT_JDK="$new_path"
21040     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21041 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21042   fi
21043 
21044   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21045   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21046 
21047   else
21048     # We're on a posix platform. Hooray! :)
21049     path="$BOOT_JDK"
21050     has_space=`$ECHO "$path" | $GREP " "`
21051     if test "x$has_space" != x; then
21052       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21053 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21054       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21055     fi
21056 
21057     # Use eval to expand a potential ~
21058     eval path="$path"
21059     if test ! -f "$path" && test ! -d "$path"; then
21060       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21061     fi
21062 
21063     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21064   fi
21065 
21066               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21067 $as_echo_n "checking for Boot JDK... " >&6; }
21068               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21069 $as_echo "$BOOT_JDK" >&6; }
21070               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21071 $as_echo_n "checking Boot JDK version... " >&6; }
21072               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21073               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21074 $as_echo "$BOOT_JDK_VERSION" >&6; }
21075             fi # end check jdk version
21076           fi # end check rt.jar
21077         fi # end check javac
21078       fi # end check java
21079     fi # end check boot jdk found
21080   fi
21081 
21082 
21083   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21084 
21085   if test "x$BOOT_JDK_FOUND" = xno; then
21086     # Now execute the test
21087 
21088   # Extract the first word of "javac", so it can be a program name with args.
21089 set dummy javac; ac_word=$2
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21091 $as_echo_n "checking for $ac_word... " >&6; }
21092 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21093   $as_echo_n "(cached) " >&6
21094 else
21095   case $JAVAC_CHECK in
21096   [\\/]* | ?:[\\/]*)
21097   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21098   ;;
21099   *)
21100   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21101 for as_dir in $PATH
21102 do
21103   IFS=$as_save_IFS
21104   test -z "$as_dir" && as_dir=.
21105     for ac_exec_ext in '' $ac_executable_extensions; do
21106   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21107     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21108     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21109     break 2
21110   fi
21111 done
21112   done
21113 IFS=$as_save_IFS
21114 
21115   ;;
21116 esac
21117 fi
21118 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21119 if test -n "$JAVAC_CHECK"; then
21120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21121 $as_echo "$JAVAC_CHECK" >&6; }
21122 else
21123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21125 fi
21126 
21127 
21128   # Extract the first word of "java", so it can be a program name with args.
21129 set dummy java; ac_word=$2
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21131 $as_echo_n "checking for $ac_word... " >&6; }
21132 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21133   $as_echo_n "(cached) " >&6
21134 else
21135   case $JAVA_CHECK in
21136   [\\/]* | ?:[\\/]*)
21137   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21138   ;;
21139   *)
21140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21141 for as_dir in $PATH
21142 do
21143   IFS=$as_save_IFS
21144   test -z "$as_dir" && as_dir=.
21145     for ac_exec_ext in '' $ac_executable_extensions; do
21146   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21147     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21149     break 2
21150   fi
21151 done
21152   done
21153 IFS=$as_save_IFS
21154 
21155   ;;
21156 esac
21157 fi
21158 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21159 if test -n "$JAVA_CHECK"; then
21160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21161 $as_echo "$JAVA_CHECK" >&6; }
21162 else
21163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21164 $as_echo "no" >&6; }
21165 fi
21166 
21167 
21168   BINARY="$JAVAC_CHECK"
21169   if test "x$JAVAC_CHECK" = x; then
21170     BINARY="$JAVA_CHECK"
21171   fi
21172   if test "x$BINARY" != x; then
21173     # So there is a java(c) binary, it might be part of a JDK.
21174     # Lets find the JDK/JRE directory by following symbolic links.
21175     # Linux/GNU systems often have links from /usr/bin/java to
21176     # /etc/alternatives/java to the real JDK binary.
21177 
21178   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21179     # Follow a chain of symbolic links. Use readlink
21180     # where it exists, else fall back to horribly
21181     # complicated shell code.
21182     if test "x$READLINK_TESTED" != yes; then
21183       # On MacOSX there is a readlink tool with a different
21184       # purpose than the GNU readlink tool. Check the found readlink.
21185       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21186       if test "x$ISGNU" = x; then
21187         # A readlink that we do not know how to use.
21188         # Are there other non-GNU readlinks out there?
21189         READLINK_TESTED=yes
21190         READLINK=
21191       fi
21192     fi
21193 
21194     if test "x$READLINK" != x; then
21195       BINARY=`$READLINK -f $BINARY`
21196     else
21197       # Save the current directory for restoring afterwards
21198       STARTDIR=$PWD
21199       COUNTER=0
21200       sym_link_dir=`$DIRNAME $BINARY`
21201       sym_link_file=`$BASENAME $BINARY`
21202       cd $sym_link_dir
21203       # Use -P flag to resolve symlinks in directories.
21204       cd `$THEPWDCMD -P`
21205       sym_link_dir=`$THEPWDCMD -P`
21206       # Resolve file symlinks
21207       while test $COUNTER -lt 20; do
21208         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21209         if test "x$ISLINK" == x; then
21210           # This is not a symbolic link! We are done!
21211           break
21212         fi
21213         # Again resolve directory symlinks since the target of the just found
21214         # link could be in a different directory
21215         cd `$DIRNAME $ISLINK`
21216         sym_link_dir=`$THEPWDCMD -P`
21217         sym_link_file=`$BASENAME $ISLINK`
21218         let COUNTER=COUNTER+1
21219       done
21220       cd $STARTDIR
21221       BINARY=$sym_link_dir/$sym_link_file
21222     fi
21223   fi
21224 
21225     BOOT_JDK=`dirname "$BINARY"`
21226     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21227     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21228       # Looks like we found ourselves an JDK
21229       BOOT_JDK_FOUND=maybe
21230       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21231 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21232     fi
21233   fi
21234 
21235 
21236     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21237     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21238       # Do we have a bin/java?
21239       if test ! -x "$BOOT_JDK/bin/java"; then
21240         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21242         BOOT_JDK_FOUND=no
21243       else
21244         # Do we have a bin/javac?
21245         if test ! -x "$BOOT_JDK/bin/javac"; then
21246           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21248           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21250           BOOT_JDK_FOUND=no
21251         else
21252           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21253           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21254             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21256             BOOT_JDK_FOUND=no
21257           else
21258             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21259             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21260 
21261             # Extra M4 quote needed to protect [] in grep expression.
21262             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21263             if test "x$FOUND_VERSION_78" = x; then
21264               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21266               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21267 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21268               BOOT_JDK_FOUND=no
21269             else
21270               # We're done! :-)
21271               BOOT_JDK_FOUND=yes
21272 
21273   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21274 
21275   # Input might be given as Windows format, start by converting to
21276   # unix format.
21277   path="$BOOT_JDK"
21278   new_path=`$CYGPATH -u "$path"`
21279 
21280   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21281   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21282   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21283   # "foo.exe" is OK but "foo" is an error.
21284   #
21285   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21286   # It is also a way to make sure we got the proper file name for the real test later on.
21287   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21288   if test "x$test_shortpath" = x; then
21289     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21291     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21292   fi
21293 
21294   # Call helper function which possibly converts this using DOS-style short mode.
21295   # If so, the updated path is stored in $new_path.
21296 
21297   input_path="$new_path"
21298   # Check if we need to convert this using DOS-style short mode. If the path
21299   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21300   # take no chances and rewrite it.
21301   # Note: m4 eats our [], so we need to use [ and ] instead.
21302   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21303   if test "x$has_forbidden_chars" != x; then
21304     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21305     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21306     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21307     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21308       # Going to short mode and back again did indeed matter. Since short mode is
21309       # case insensitive, let's make it lowercase to improve readability.
21310       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21311       # Now convert it back to Unix-style (cygpath)
21312       input_path=`$CYGPATH -u "$shortmode_path"`
21313       new_path="$input_path"
21314     fi
21315   fi
21316 
21317   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21318   if test "x$test_cygdrive_prefix" = x; then
21319     # As a simple fix, exclude /usr/bin since it's not a real path.
21320     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21321       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21322       # a path prefixed by /cygdrive for fixpath to work.
21323       new_path="$CYGWIN_ROOT_PATH$input_path"
21324     fi
21325   fi
21326 
21327 
21328   if test "x$path" != "x$new_path"; then
21329     BOOT_JDK="$new_path"
21330     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21332   fi
21333 
21334   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21335 
21336   path="$BOOT_JDK"
21337   has_colon=`$ECHO $path | $GREP ^.:`
21338   new_path="$path"
21339   if test "x$has_colon" = x; then
21340     # Not in mixed or Windows style, start by that.
21341     new_path=`cmd //c echo $path`
21342   fi
21343 
21344 
21345   input_path="$new_path"
21346   # Check if we need to convert this using DOS-style short mode. If the path
21347   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21348   # take no chances and rewrite it.
21349   # Note: m4 eats our [], so we need to use [ and ] instead.
21350   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21351   if test "x$has_forbidden_chars" != x; then
21352     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21353     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21354   fi
21355 
21356 
21357   windows_path="$new_path"
21358   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21359     unix_path=`$CYGPATH -u "$windows_path"`
21360     new_path="$unix_path"
21361   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21362     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21363     new_path="$unix_path"
21364   fi
21365 
21366   if test "x$path" != "x$new_path"; then
21367     BOOT_JDK="$new_path"
21368     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21369 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21370   fi
21371 
21372   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21373   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21374 
21375   else
21376     # We're on a posix platform. Hooray! :)
21377     path="$BOOT_JDK"
21378     has_space=`$ECHO "$path" | $GREP " "`
21379     if test "x$has_space" != x; then
21380       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21382       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21383     fi
21384 
21385     # Use eval to expand a potential ~
21386     eval path="$path"
21387     if test ! -f "$path" && test ! -d "$path"; then
21388       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21389     fi
21390 
21391     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21392   fi
21393 
21394               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21395 $as_echo_n "checking for Boot JDK... " >&6; }
21396               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21397 $as_echo "$BOOT_JDK" >&6; }
21398               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21399 $as_echo_n "checking Boot JDK version... " >&6; }
21400               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21402 $as_echo "$BOOT_JDK_VERSION" >&6; }
21403             fi # end check jdk version
21404           fi # end check rt.jar
21405         fi # end check javac
21406       fi # end check java
21407     fi # end check boot jdk found
21408   fi
21409 
21410 
21411   # Test: Is there a JDK installed in default, well-known locations?
21412 
21413   if test "x$BOOT_JDK_FOUND" = xno; then
21414     # Now execute the test
21415 
21416   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21417 
21418   if test "x$BOOT_JDK_FOUND" = xno; then
21419     # Now execute the test
21420 
21421   if test "x$ProgramW6432" != x; then
21422     VIRTUAL_DIR="$ProgramW6432/Java"
21423 
21424   windows_path="$VIRTUAL_DIR"
21425   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21426     unix_path=`$CYGPATH -u "$windows_path"`
21427     VIRTUAL_DIR="$unix_path"
21428   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21429     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21430     VIRTUAL_DIR="$unix_path"
21431   fi
21432 
21433 
21434   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21435   BOOT_JDK_SUFFIX=""
21436   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21437   if test "x$ALL_JDKS_FOUND" != x; then
21438     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21439 
21440   if test "x$BOOT_JDK_FOUND" = xno; then
21441     # Now execute the test
21442 
21443         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21444         if test -d "$BOOT_JDK"; then
21445           BOOT_JDK_FOUND=maybe
21446           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21447 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21448         fi
21449 
21450 
21451     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21452     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21453       # Do we have a bin/java?
21454       if test ! -x "$BOOT_JDK/bin/java"; then
21455         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21456 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21457         BOOT_JDK_FOUND=no
21458       else
21459         # Do we have a bin/javac?
21460         if test ! -x "$BOOT_JDK/bin/javac"; then
21461           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21462 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21463           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21464 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21465           BOOT_JDK_FOUND=no
21466         else
21467           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21468           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21469             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21470 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21471             BOOT_JDK_FOUND=no
21472           else
21473             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21474             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21475 
21476             # Extra M4 quote needed to protect [] in grep expression.
21477             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21478             if test "x$FOUND_VERSION_78" = x; then
21479               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21481               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21482 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21483               BOOT_JDK_FOUND=no
21484             else
21485               # We're done! :-)
21486               BOOT_JDK_FOUND=yes
21487 
21488   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21489 
21490   # Input might be given as Windows format, start by converting to
21491   # unix format.
21492   path="$BOOT_JDK"
21493   new_path=`$CYGPATH -u "$path"`
21494 
21495   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21496   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21497   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21498   # "foo.exe" is OK but "foo" is an error.
21499   #
21500   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21501   # It is also a way to make sure we got the proper file name for the real test later on.
21502   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21503   if test "x$test_shortpath" = x; then
21504     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21505 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21506     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21507   fi
21508 
21509   # Call helper function which possibly converts this using DOS-style short mode.
21510   # If so, the updated path is stored in $new_path.
21511 
21512   input_path="$new_path"
21513   # Check if we need to convert this using DOS-style short mode. If the path
21514   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21515   # take no chances and rewrite it.
21516   # Note: m4 eats our [], so we need to use [ and ] instead.
21517   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21518   if test "x$has_forbidden_chars" != x; then
21519     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21520     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21521     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21522     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21523       # Going to short mode and back again did indeed matter. Since short mode is
21524       # case insensitive, let's make it lowercase to improve readability.
21525       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21526       # Now convert it back to Unix-style (cygpath)
21527       input_path=`$CYGPATH -u "$shortmode_path"`
21528       new_path="$input_path"
21529     fi
21530   fi
21531 
21532   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21533   if test "x$test_cygdrive_prefix" = x; then
21534     # As a simple fix, exclude /usr/bin since it's not a real path.
21535     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21536       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21537       # a path prefixed by /cygdrive for fixpath to work.
21538       new_path="$CYGWIN_ROOT_PATH$input_path"
21539     fi
21540   fi
21541 
21542 
21543   if test "x$path" != "x$new_path"; then
21544     BOOT_JDK="$new_path"
21545     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21546 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21547   fi
21548 
21549   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21550 
21551   path="$BOOT_JDK"
21552   has_colon=`$ECHO $path | $GREP ^.:`
21553   new_path="$path"
21554   if test "x$has_colon" = x; then
21555     # Not in mixed or Windows style, start by that.
21556     new_path=`cmd //c echo $path`
21557   fi
21558 
21559 
21560   input_path="$new_path"
21561   # Check if we need to convert this using DOS-style short mode. If the path
21562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21563   # take no chances and rewrite it.
21564   # Note: m4 eats our [], so we need to use [ and ] instead.
21565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21566   if test "x$has_forbidden_chars" != x; then
21567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21568     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21569   fi
21570 
21571 
21572   windows_path="$new_path"
21573   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21574     unix_path=`$CYGPATH -u "$windows_path"`
21575     new_path="$unix_path"
21576   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21577     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21578     new_path="$unix_path"
21579   fi
21580 
21581   if test "x$path" != "x$new_path"; then
21582     BOOT_JDK="$new_path"
21583     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21584 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21585   fi
21586 
21587   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21588   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21589 
21590   else
21591     # We're on a posix platform. Hooray! :)
21592     path="$BOOT_JDK"
21593     has_space=`$ECHO "$path" | $GREP " "`
21594     if test "x$has_space" != x; then
21595       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21597       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21598     fi
21599 
21600     # Use eval to expand a potential ~
21601     eval path="$path"
21602     if test ! -f "$path" && test ! -d "$path"; then
21603       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21604     fi
21605 
21606     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21607   fi
21608 
21609               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21610 $as_echo_n "checking for Boot JDK... " >&6; }
21611               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21612 $as_echo "$BOOT_JDK" >&6; }
21613               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21614 $as_echo_n "checking Boot JDK version... " >&6; }
21615               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21616               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21617 $as_echo "$BOOT_JDK_VERSION" >&6; }
21618             fi # end check jdk version
21619           fi # end check rt.jar
21620         fi # end check javac
21621       fi # end check java
21622     fi # end check boot jdk found
21623   fi
21624 
21625     done
21626   fi
21627 
21628   fi
21629 
21630 
21631     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21632     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21633       # Do we have a bin/java?
21634       if test ! -x "$BOOT_JDK/bin/java"; then
21635         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21636 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21637         BOOT_JDK_FOUND=no
21638       else
21639         # Do we have a bin/javac?
21640         if test ! -x "$BOOT_JDK/bin/javac"; then
21641           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21643           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21644 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21645           BOOT_JDK_FOUND=no
21646         else
21647           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21648           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21649             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21650 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21651             BOOT_JDK_FOUND=no
21652           else
21653             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21654             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21655 
21656             # Extra M4 quote needed to protect [] in grep expression.
21657             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21658             if test "x$FOUND_VERSION_78" = x; then
21659               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21660 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21661               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21662 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21663               BOOT_JDK_FOUND=no
21664             else
21665               # We're done! :-)
21666               BOOT_JDK_FOUND=yes
21667 
21668   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21669 
21670   # Input might be given as Windows format, start by converting to
21671   # unix format.
21672   path="$BOOT_JDK"
21673   new_path=`$CYGPATH -u "$path"`
21674 
21675   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21676   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21677   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21678   # "foo.exe" is OK but "foo" is an error.
21679   #
21680   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21681   # It is also a way to make sure we got the proper file name for the real test later on.
21682   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21683   if test "x$test_shortpath" = x; then
21684     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21685 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21686     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21687   fi
21688 
21689   # Call helper function which possibly converts this using DOS-style short mode.
21690   # If so, the updated path is stored in $new_path.
21691 
21692   input_path="$new_path"
21693   # Check if we need to convert this using DOS-style short mode. If the path
21694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21695   # take no chances and rewrite it.
21696   # Note: m4 eats our [], so we need to use [ and ] instead.
21697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21698   if test "x$has_forbidden_chars" != x; then
21699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21700     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21701     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21702     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21703       # Going to short mode and back again did indeed matter. Since short mode is
21704       # case insensitive, let's make it lowercase to improve readability.
21705       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21706       # Now convert it back to Unix-style (cygpath)
21707       input_path=`$CYGPATH -u "$shortmode_path"`
21708       new_path="$input_path"
21709     fi
21710   fi
21711 
21712   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21713   if test "x$test_cygdrive_prefix" = x; then
21714     # As a simple fix, exclude /usr/bin since it's not a real path.
21715     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21716       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21717       # a path prefixed by /cygdrive for fixpath to work.
21718       new_path="$CYGWIN_ROOT_PATH$input_path"
21719     fi
21720   fi
21721 
21722 
21723   if test "x$path" != "x$new_path"; then
21724     BOOT_JDK="$new_path"
21725     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21726 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21727   fi
21728 
21729   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21730 
21731   path="$BOOT_JDK"
21732   has_colon=`$ECHO $path | $GREP ^.:`
21733   new_path="$path"
21734   if test "x$has_colon" = x; then
21735     # Not in mixed or Windows style, start by that.
21736     new_path=`cmd //c echo $path`
21737   fi
21738 
21739 
21740   input_path="$new_path"
21741   # Check if we need to convert this using DOS-style short mode. If the path
21742   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21743   # take no chances and rewrite it.
21744   # Note: m4 eats our [], so we need to use [ and ] instead.
21745   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21746   if test "x$has_forbidden_chars" != x; then
21747     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21748     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21749   fi
21750 
21751 
21752   windows_path="$new_path"
21753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21754     unix_path=`$CYGPATH -u "$windows_path"`
21755     new_path="$unix_path"
21756   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21757     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21758     new_path="$unix_path"
21759   fi
21760 
21761   if test "x$path" != "x$new_path"; then
21762     BOOT_JDK="$new_path"
21763     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21764 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21765   fi
21766 
21767   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21768   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21769 
21770   else
21771     # We're on a posix platform. Hooray! :)
21772     path="$BOOT_JDK"
21773     has_space=`$ECHO "$path" | $GREP " "`
21774     if test "x$has_space" != x; then
21775       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21776 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21777       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21778     fi
21779 
21780     # Use eval to expand a potential ~
21781     eval path="$path"
21782     if test ! -f "$path" && test ! -d "$path"; then
21783       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21784     fi
21785 
21786     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21787   fi
21788 
21789               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21790 $as_echo_n "checking for Boot JDK... " >&6; }
21791               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21792 $as_echo "$BOOT_JDK" >&6; }
21793               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21794 $as_echo_n "checking Boot JDK version... " >&6; }
21795               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21796               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21797 $as_echo "$BOOT_JDK_VERSION" >&6; }
21798             fi # end check jdk version
21799           fi # end check rt.jar
21800         fi # end check javac
21801       fi # end check java
21802     fi # end check boot jdk found
21803   fi
21804 
21805 
21806   if test "x$BOOT_JDK_FOUND" = xno; then
21807     # Now execute the test
21808 
21809   if test "x$PROGRAMW6432" != x; then
21810     VIRTUAL_DIR="$PROGRAMW6432/Java"
21811 
21812   windows_path="$VIRTUAL_DIR"
21813   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21814     unix_path=`$CYGPATH -u "$windows_path"`
21815     VIRTUAL_DIR="$unix_path"
21816   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21817     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21818     VIRTUAL_DIR="$unix_path"
21819   fi
21820 
21821 
21822   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21823   BOOT_JDK_SUFFIX=""
21824   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21825   if test "x$ALL_JDKS_FOUND" != x; then
21826     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21827 
21828   if test "x$BOOT_JDK_FOUND" = xno; then
21829     # Now execute the test
21830 
21831         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21832         if test -d "$BOOT_JDK"; then
21833           BOOT_JDK_FOUND=maybe
21834           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21835 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21836         fi
21837 
21838 
21839     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21840     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21841       # Do we have a bin/java?
21842       if test ! -x "$BOOT_JDK/bin/java"; then
21843         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21844 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21845         BOOT_JDK_FOUND=no
21846       else
21847         # Do we have a bin/javac?
21848         if test ! -x "$BOOT_JDK/bin/javac"; then
21849           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21850 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21851           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21852 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21853           BOOT_JDK_FOUND=no
21854         else
21855           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21856           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21857             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21859             BOOT_JDK_FOUND=no
21860           else
21861             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21862             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21863 
21864             # Extra M4 quote needed to protect [] in grep expression.
21865             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21866             if test "x$FOUND_VERSION_78" = x; then
21867               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21869               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21870 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21871               BOOT_JDK_FOUND=no
21872             else
21873               # We're done! :-)
21874               BOOT_JDK_FOUND=yes
21875 
21876   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21877 
21878   # Input might be given as Windows format, start by converting to
21879   # unix format.
21880   path="$BOOT_JDK"
21881   new_path=`$CYGPATH -u "$path"`
21882 
21883   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21884   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21885   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21886   # "foo.exe" is OK but "foo" is an error.
21887   #
21888   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21889   # It is also a way to make sure we got the proper file name for the real test later on.
21890   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21891   if test "x$test_shortpath" = x; then
21892     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21894     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21895   fi
21896 
21897   # Call helper function which possibly converts this using DOS-style short mode.
21898   # If so, the updated path is stored in $new_path.
21899 
21900   input_path="$new_path"
21901   # Check if we need to convert this using DOS-style short mode. If the path
21902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21903   # take no chances and rewrite it.
21904   # Note: m4 eats our [], so we need to use [ and ] instead.
21905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21906   if test "x$has_forbidden_chars" != x; then
21907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21908     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21909     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21910     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21911       # Going to short mode and back again did indeed matter. Since short mode is
21912       # case insensitive, let's make it lowercase to improve readability.
21913       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21914       # Now convert it back to Unix-style (cygpath)
21915       input_path=`$CYGPATH -u "$shortmode_path"`
21916       new_path="$input_path"
21917     fi
21918   fi
21919 
21920   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21921   if test "x$test_cygdrive_prefix" = x; then
21922     # As a simple fix, exclude /usr/bin since it's not a real path.
21923     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21924       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21925       # a path prefixed by /cygdrive for fixpath to work.
21926       new_path="$CYGWIN_ROOT_PATH$input_path"
21927     fi
21928   fi
21929 
21930 
21931   if test "x$path" != "x$new_path"; then
21932     BOOT_JDK="$new_path"
21933     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21935   fi
21936 
21937   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21938 
21939   path="$BOOT_JDK"
21940   has_colon=`$ECHO $path | $GREP ^.:`
21941   new_path="$path"
21942   if test "x$has_colon" = x; then
21943     # Not in mixed or Windows style, start by that.
21944     new_path=`cmd //c echo $path`
21945   fi
21946 
21947 
21948   input_path="$new_path"
21949   # Check if we need to convert this using DOS-style short mode. If the path
21950   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21951   # take no chances and rewrite it.
21952   # Note: m4 eats our [], so we need to use [ and ] instead.
21953   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21954   if test "x$has_forbidden_chars" != x; then
21955     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21956     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21957   fi
21958 
21959 
21960   windows_path="$new_path"
21961   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21962     unix_path=`$CYGPATH -u "$windows_path"`
21963     new_path="$unix_path"
21964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21965     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21966     new_path="$unix_path"
21967   fi
21968 
21969   if test "x$path" != "x$new_path"; then
21970     BOOT_JDK="$new_path"
21971     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21973   fi
21974 
21975   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21976   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21977 
21978   else
21979     # We're on a posix platform. Hooray! :)
21980     path="$BOOT_JDK"
21981     has_space=`$ECHO "$path" | $GREP " "`
21982     if test "x$has_space" != x; then
21983       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21985       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21986     fi
21987 
21988     # Use eval to expand a potential ~
21989     eval path="$path"
21990     if test ! -f "$path" && test ! -d "$path"; then
21991       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21992     fi
21993 
21994     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21995   fi
21996 
21997               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21998 $as_echo_n "checking for Boot JDK... " >&6; }
21999               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22000 $as_echo "$BOOT_JDK" >&6; }
22001               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22002 $as_echo_n "checking Boot JDK version... " >&6; }
22003               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22004               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22005 $as_echo "$BOOT_JDK_VERSION" >&6; }
22006             fi # end check jdk version
22007           fi # end check rt.jar
22008         fi # end check javac
22009       fi # end check java
22010     fi # end check boot jdk found
22011   fi
22012 
22013     done
22014   fi
22015 
22016   fi
22017 
22018 
22019     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22020     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22021       # Do we have a bin/java?
22022       if test ! -x "$BOOT_JDK/bin/java"; then
22023         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22025         BOOT_JDK_FOUND=no
22026       else
22027         # Do we have a bin/javac?
22028         if test ! -x "$BOOT_JDK/bin/javac"; then
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22031           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22032 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22033           BOOT_JDK_FOUND=no
22034         else
22035           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22036           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22037             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22039             BOOT_JDK_FOUND=no
22040           else
22041             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22042             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22043 
22044             # Extra M4 quote needed to protect [] in grep expression.
22045             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22046             if test "x$FOUND_VERSION_78" = x; then
22047               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22048 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22049               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22050 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22051               BOOT_JDK_FOUND=no
22052             else
22053               # We're done! :-)
22054               BOOT_JDK_FOUND=yes
22055 
22056   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22057 
22058   # Input might be given as Windows format, start by converting to
22059   # unix format.
22060   path="$BOOT_JDK"
22061   new_path=`$CYGPATH -u "$path"`
22062 
22063   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22064   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22065   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22066   # "foo.exe" is OK but "foo" is an error.
22067   #
22068   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22069   # It is also a way to make sure we got the proper file name for the real test later on.
22070   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22071   if test "x$test_shortpath" = x; then
22072     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22074     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22075   fi
22076 
22077   # Call helper function which possibly converts this using DOS-style short mode.
22078   # If so, the updated path is stored in $new_path.
22079 
22080   input_path="$new_path"
22081   # Check if we need to convert this using DOS-style short mode. If the path
22082   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22083   # take no chances and rewrite it.
22084   # Note: m4 eats our [], so we need to use [ and ] instead.
22085   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22086   if test "x$has_forbidden_chars" != x; then
22087     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22088     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22089     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22090     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22091       # Going to short mode and back again did indeed matter. Since short mode is
22092       # case insensitive, let's make it lowercase to improve readability.
22093       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22094       # Now convert it back to Unix-style (cygpath)
22095       input_path=`$CYGPATH -u "$shortmode_path"`
22096       new_path="$input_path"
22097     fi
22098   fi
22099 
22100   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22101   if test "x$test_cygdrive_prefix" = x; then
22102     # As a simple fix, exclude /usr/bin since it's not a real path.
22103     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22104       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22105       # a path prefixed by /cygdrive for fixpath to work.
22106       new_path="$CYGWIN_ROOT_PATH$input_path"
22107     fi
22108   fi
22109 
22110 
22111   if test "x$path" != "x$new_path"; then
22112     BOOT_JDK="$new_path"
22113     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22114 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22115   fi
22116 
22117   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22118 
22119   path="$BOOT_JDK"
22120   has_colon=`$ECHO $path | $GREP ^.:`
22121   new_path="$path"
22122   if test "x$has_colon" = x; then
22123     # Not in mixed or Windows style, start by that.
22124     new_path=`cmd //c echo $path`
22125   fi
22126 
22127 
22128   input_path="$new_path"
22129   # Check if we need to convert this using DOS-style short mode. If the path
22130   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22131   # take no chances and rewrite it.
22132   # Note: m4 eats our [], so we need to use [ and ] instead.
22133   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22134   if test "x$has_forbidden_chars" != x; then
22135     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22136     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22137   fi
22138 
22139 
22140   windows_path="$new_path"
22141   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22142     unix_path=`$CYGPATH -u "$windows_path"`
22143     new_path="$unix_path"
22144   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22145     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22146     new_path="$unix_path"
22147   fi
22148 
22149   if test "x$path" != "x$new_path"; then
22150     BOOT_JDK="$new_path"
22151     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22153   fi
22154 
22155   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22156   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22157 
22158   else
22159     # We're on a posix platform. Hooray! :)
22160     path="$BOOT_JDK"
22161     has_space=`$ECHO "$path" | $GREP " "`
22162     if test "x$has_space" != x; then
22163       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22164 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22165       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22166     fi
22167 
22168     # Use eval to expand a potential ~
22169     eval path="$path"
22170     if test ! -f "$path" && test ! -d "$path"; then
22171       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22172     fi
22173 
22174     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22175   fi
22176 
22177               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22178 $as_echo_n "checking for Boot JDK... " >&6; }
22179               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22180 $as_echo "$BOOT_JDK" >&6; }
22181               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22182 $as_echo_n "checking Boot JDK version... " >&6; }
22183               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22184               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22185 $as_echo "$BOOT_JDK_VERSION" >&6; }
22186             fi # end check jdk version
22187           fi # end check rt.jar
22188         fi # end check javac
22189       fi # end check java
22190     fi # end check boot jdk found
22191   fi
22192 
22193 
22194   if test "x$BOOT_JDK_FOUND" = xno; then
22195     # Now execute the test
22196 
22197   if test "x$PROGRAMFILES" != x; then
22198     VIRTUAL_DIR="$PROGRAMFILES/Java"
22199 
22200   windows_path="$VIRTUAL_DIR"
22201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22202     unix_path=`$CYGPATH -u "$windows_path"`
22203     VIRTUAL_DIR="$unix_path"
22204   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22205     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22206     VIRTUAL_DIR="$unix_path"
22207   fi
22208 
22209 
22210   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22211   BOOT_JDK_SUFFIX=""
22212   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22213   if test "x$ALL_JDKS_FOUND" != x; then
22214     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22215 
22216   if test "x$BOOT_JDK_FOUND" = xno; then
22217     # Now execute the test
22218 
22219         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22220         if test -d "$BOOT_JDK"; then
22221           BOOT_JDK_FOUND=maybe
22222           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22223 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22224         fi
22225 
22226 
22227     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22228     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22229       # Do we have a bin/java?
22230       if test ! -x "$BOOT_JDK/bin/java"; then
22231         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22233         BOOT_JDK_FOUND=no
22234       else
22235         # Do we have a bin/javac?
22236         if test ! -x "$BOOT_JDK/bin/javac"; then
22237           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22238 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22239           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22240 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22241           BOOT_JDK_FOUND=no
22242         else
22243           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22244           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22245             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22247             BOOT_JDK_FOUND=no
22248           else
22249             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22250             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22251 
22252             # Extra M4 quote needed to protect [] in grep expression.
22253             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22254             if test "x$FOUND_VERSION_78" = x; then
22255               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22257               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22258 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22259               BOOT_JDK_FOUND=no
22260             else
22261               # We're done! :-)
22262               BOOT_JDK_FOUND=yes
22263 
22264   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22265 
22266   # Input might be given as Windows format, start by converting to
22267   # unix format.
22268   path="$BOOT_JDK"
22269   new_path=`$CYGPATH -u "$path"`
22270 
22271   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22272   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22273   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22274   # "foo.exe" is OK but "foo" is an error.
22275   #
22276   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22277   # It is also a way to make sure we got the proper file name for the real test later on.
22278   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22279   if test "x$test_shortpath" = x; then
22280     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22281 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22282     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22283   fi
22284 
22285   # Call helper function which possibly converts this using DOS-style short mode.
22286   # If so, the updated path is stored in $new_path.
22287 
22288   input_path="$new_path"
22289   # Check if we need to convert this using DOS-style short mode. If the path
22290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22291   # take no chances and rewrite it.
22292   # Note: m4 eats our [], so we need to use [ and ] instead.
22293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22294   if test "x$has_forbidden_chars" != x; then
22295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22296     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22297     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22298     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22299       # Going to short mode and back again did indeed matter. Since short mode is
22300       # case insensitive, let's make it lowercase to improve readability.
22301       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22302       # Now convert it back to Unix-style (cygpath)
22303       input_path=`$CYGPATH -u "$shortmode_path"`
22304       new_path="$input_path"
22305     fi
22306   fi
22307 
22308   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22309   if test "x$test_cygdrive_prefix" = x; then
22310     # As a simple fix, exclude /usr/bin since it's not a real path.
22311     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22312       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22313       # a path prefixed by /cygdrive for fixpath to work.
22314       new_path="$CYGWIN_ROOT_PATH$input_path"
22315     fi
22316   fi
22317 
22318 
22319   if test "x$path" != "x$new_path"; then
22320     BOOT_JDK="$new_path"
22321     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22322 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22323   fi
22324 
22325   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22326 
22327   path="$BOOT_JDK"
22328   has_colon=`$ECHO $path | $GREP ^.:`
22329   new_path="$path"
22330   if test "x$has_colon" = x; then
22331     # Not in mixed or Windows style, start by that.
22332     new_path=`cmd //c echo $path`
22333   fi
22334 
22335 
22336   input_path="$new_path"
22337   # Check if we need to convert this using DOS-style short mode. If the path
22338   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22339   # take no chances and rewrite it.
22340   # Note: m4 eats our [], so we need to use [ and ] instead.
22341   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22342   if test "x$has_forbidden_chars" != x; then
22343     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22344     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22345   fi
22346 
22347 
22348   windows_path="$new_path"
22349   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22350     unix_path=`$CYGPATH -u "$windows_path"`
22351     new_path="$unix_path"
22352   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22353     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22354     new_path="$unix_path"
22355   fi
22356 
22357   if test "x$path" != "x$new_path"; then
22358     BOOT_JDK="$new_path"
22359     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22360 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22361   fi
22362 
22363   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22364   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22365 
22366   else
22367     # We're on a posix platform. Hooray! :)
22368     path="$BOOT_JDK"
22369     has_space=`$ECHO "$path" | $GREP " "`
22370     if test "x$has_space" != x; then
22371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22373       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22374     fi
22375 
22376     # Use eval to expand a potential ~
22377     eval path="$path"
22378     if test ! -f "$path" && test ! -d "$path"; then
22379       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22380     fi
22381 
22382     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22383   fi
22384 
22385               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22386 $as_echo_n "checking for Boot JDK... " >&6; }
22387               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22388 $as_echo "$BOOT_JDK" >&6; }
22389               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22390 $as_echo_n "checking Boot JDK version... " >&6; }
22391               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22392               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22393 $as_echo "$BOOT_JDK_VERSION" >&6; }
22394             fi # end check jdk version
22395           fi # end check rt.jar
22396         fi # end check javac
22397       fi # end check java
22398     fi # end check boot jdk found
22399   fi
22400 
22401     done
22402   fi
22403 
22404   fi
22405 
22406 
22407     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22408     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22409       # Do we have a bin/java?
22410       if test ! -x "$BOOT_JDK/bin/java"; then
22411         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22412 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22413         BOOT_JDK_FOUND=no
22414       else
22415         # Do we have a bin/javac?
22416         if test ! -x "$BOOT_JDK/bin/javac"; then
22417           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22418 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22419           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22420 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22421           BOOT_JDK_FOUND=no
22422         else
22423           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22424           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22425             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22426 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22427             BOOT_JDK_FOUND=no
22428           else
22429             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22430             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22431 
22432             # Extra M4 quote needed to protect [] in grep expression.
22433             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22434             if test "x$FOUND_VERSION_78" = x; then
22435               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22437               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22438 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22439               BOOT_JDK_FOUND=no
22440             else
22441               # We're done! :-)
22442               BOOT_JDK_FOUND=yes
22443 
22444   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22445 
22446   # Input might be given as Windows format, start by converting to
22447   # unix format.
22448   path="$BOOT_JDK"
22449   new_path=`$CYGPATH -u "$path"`
22450 
22451   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22452   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22453   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22454   # "foo.exe" is OK but "foo" is an error.
22455   #
22456   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22457   # It is also a way to make sure we got the proper file name for the real test later on.
22458   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22459   if test "x$test_shortpath" = x; then
22460     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22461 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22462     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22463   fi
22464 
22465   # Call helper function which possibly converts this using DOS-style short mode.
22466   # If so, the updated path is stored in $new_path.
22467 
22468   input_path="$new_path"
22469   # Check if we need to convert this using DOS-style short mode. If the path
22470   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22471   # take no chances and rewrite it.
22472   # Note: m4 eats our [], so we need to use [ and ] instead.
22473   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22474   if test "x$has_forbidden_chars" != x; then
22475     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22476     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22477     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22478     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22479       # Going to short mode and back again did indeed matter. Since short mode is
22480       # case insensitive, let's make it lowercase to improve readability.
22481       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22482       # Now convert it back to Unix-style (cygpath)
22483       input_path=`$CYGPATH -u "$shortmode_path"`
22484       new_path="$input_path"
22485     fi
22486   fi
22487 
22488   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22489   if test "x$test_cygdrive_prefix" = x; then
22490     # As a simple fix, exclude /usr/bin since it's not a real path.
22491     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22492       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22493       # a path prefixed by /cygdrive for fixpath to work.
22494       new_path="$CYGWIN_ROOT_PATH$input_path"
22495     fi
22496   fi
22497 
22498 
22499   if test "x$path" != "x$new_path"; then
22500     BOOT_JDK="$new_path"
22501     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22502 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22503   fi
22504 
22505   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22506 
22507   path="$BOOT_JDK"
22508   has_colon=`$ECHO $path | $GREP ^.:`
22509   new_path="$path"
22510   if test "x$has_colon" = x; then
22511     # Not in mixed or Windows style, start by that.
22512     new_path=`cmd //c echo $path`
22513   fi
22514 
22515 
22516   input_path="$new_path"
22517   # Check if we need to convert this using DOS-style short mode. If the path
22518   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22519   # take no chances and rewrite it.
22520   # Note: m4 eats our [], so we need to use [ and ] instead.
22521   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22522   if test "x$has_forbidden_chars" != x; then
22523     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22524     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22525   fi
22526 
22527 
22528   windows_path="$new_path"
22529   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22530     unix_path=`$CYGPATH -u "$windows_path"`
22531     new_path="$unix_path"
22532   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22533     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22534     new_path="$unix_path"
22535   fi
22536 
22537   if test "x$path" != "x$new_path"; then
22538     BOOT_JDK="$new_path"
22539     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22540 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22541   fi
22542 
22543   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22544   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22545 
22546   else
22547     # We're on a posix platform. Hooray! :)
22548     path="$BOOT_JDK"
22549     has_space=`$ECHO "$path" | $GREP " "`
22550     if test "x$has_space" != x; then
22551       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22552 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22553       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22554     fi
22555 
22556     # Use eval to expand a potential ~
22557     eval path="$path"
22558     if test ! -f "$path" && test ! -d "$path"; then
22559       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22560     fi
22561 
22562     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22563   fi
22564 
22565               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22566 $as_echo_n "checking for Boot JDK... " >&6; }
22567               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22568 $as_echo "$BOOT_JDK" >&6; }
22569               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22570 $as_echo_n "checking Boot JDK version... " >&6; }
22571               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22572               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22573 $as_echo "$BOOT_JDK_VERSION" >&6; }
22574             fi # end check jdk version
22575           fi # end check rt.jar
22576         fi # end check javac
22577       fi # end check java
22578     fi # end check boot jdk found
22579   fi
22580 
22581 
22582   if test "x$BOOT_JDK_FOUND" = xno; then
22583     # Now execute the test
22584 
22585   if test "x$ProgramFiles" != x; then
22586     VIRTUAL_DIR="$ProgramFiles/Java"
22587 
22588   windows_path="$VIRTUAL_DIR"
22589   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22590     unix_path=`$CYGPATH -u "$windows_path"`
22591     VIRTUAL_DIR="$unix_path"
22592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22593     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22594     VIRTUAL_DIR="$unix_path"
22595   fi
22596 
22597 
22598   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22599   BOOT_JDK_SUFFIX=""
22600   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22601   if test "x$ALL_JDKS_FOUND" != x; then
22602     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22603 
22604   if test "x$BOOT_JDK_FOUND" = xno; then
22605     # Now execute the test
22606 
22607         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22608         if test -d "$BOOT_JDK"; then
22609           BOOT_JDK_FOUND=maybe
22610           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22611 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22612         fi
22613 
22614 
22615     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22616     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22617       # Do we have a bin/java?
22618       if test ! -x "$BOOT_JDK/bin/java"; then
22619         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22621         BOOT_JDK_FOUND=no
22622       else
22623         # Do we have a bin/javac?
22624         if test ! -x "$BOOT_JDK/bin/javac"; then
22625           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22627           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22628 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22629           BOOT_JDK_FOUND=no
22630         else
22631           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22632           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22633             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22635             BOOT_JDK_FOUND=no
22636           else
22637             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22638             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22639 
22640             # Extra M4 quote needed to protect [] in grep expression.
22641             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22642             if test "x$FOUND_VERSION_78" = x; then
22643               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22645               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22646 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22647               BOOT_JDK_FOUND=no
22648             else
22649               # We're done! :-)
22650               BOOT_JDK_FOUND=yes
22651 
22652   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22653 
22654   # Input might be given as Windows format, start by converting to
22655   # unix format.
22656   path="$BOOT_JDK"
22657   new_path=`$CYGPATH -u "$path"`
22658 
22659   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22660   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22661   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22662   # "foo.exe" is OK but "foo" is an error.
22663   #
22664   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22665   # It is also a way to make sure we got the proper file name for the real test later on.
22666   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22667   if test "x$test_shortpath" = x; then
22668     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22669 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22670     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22671   fi
22672 
22673   # Call helper function which possibly converts this using DOS-style short mode.
22674   # If so, the updated path is stored in $new_path.
22675 
22676   input_path="$new_path"
22677   # Check if we need to convert this using DOS-style short mode. If the path
22678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22679   # take no chances and rewrite it.
22680   # Note: m4 eats our [], so we need to use [ and ] instead.
22681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22682   if test "x$has_forbidden_chars" != x; then
22683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22684     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22685     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22686     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22687       # Going to short mode and back again did indeed matter. Since short mode is
22688       # case insensitive, let's make it lowercase to improve readability.
22689       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22690       # Now convert it back to Unix-style (cygpath)
22691       input_path=`$CYGPATH -u "$shortmode_path"`
22692       new_path="$input_path"
22693     fi
22694   fi
22695 
22696   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22697   if test "x$test_cygdrive_prefix" = x; then
22698     # As a simple fix, exclude /usr/bin since it's not a real path.
22699     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22700       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22701       # a path prefixed by /cygdrive for fixpath to work.
22702       new_path="$CYGWIN_ROOT_PATH$input_path"
22703     fi
22704   fi
22705 
22706 
22707   if test "x$path" != "x$new_path"; then
22708     BOOT_JDK="$new_path"
22709     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22710 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22711   fi
22712 
22713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22714 
22715   path="$BOOT_JDK"
22716   has_colon=`$ECHO $path | $GREP ^.:`
22717   new_path="$path"
22718   if test "x$has_colon" = x; then
22719     # Not in mixed or Windows style, start by that.
22720     new_path=`cmd //c echo $path`
22721   fi
22722 
22723 
22724   input_path="$new_path"
22725   # Check if we need to convert this using DOS-style short mode. If the path
22726   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22727   # take no chances and rewrite it.
22728   # Note: m4 eats our [], so we need to use [ and ] instead.
22729   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22730   if test "x$has_forbidden_chars" != x; then
22731     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22732     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22733   fi
22734 
22735 
22736   windows_path="$new_path"
22737   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22738     unix_path=`$CYGPATH -u "$windows_path"`
22739     new_path="$unix_path"
22740   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22741     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22742     new_path="$unix_path"
22743   fi
22744 
22745   if test "x$path" != "x$new_path"; then
22746     BOOT_JDK="$new_path"
22747     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22748 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22749   fi
22750 
22751   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22752   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22753 
22754   else
22755     # We're on a posix platform. Hooray! :)
22756     path="$BOOT_JDK"
22757     has_space=`$ECHO "$path" | $GREP " "`
22758     if test "x$has_space" != x; then
22759       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22761       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22762     fi
22763 
22764     # Use eval to expand a potential ~
22765     eval path="$path"
22766     if test ! -f "$path" && test ! -d "$path"; then
22767       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22768     fi
22769 
22770     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22771   fi
22772 
22773               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22774 $as_echo_n "checking for Boot JDK... " >&6; }
22775               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22776 $as_echo "$BOOT_JDK" >&6; }
22777               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22778 $as_echo_n "checking Boot JDK version... " >&6; }
22779               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22780               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22781 $as_echo "$BOOT_JDK_VERSION" >&6; }
22782             fi # end check jdk version
22783           fi # end check rt.jar
22784         fi # end check javac
22785       fi # end check java
22786     fi # end check boot jdk found
22787   fi
22788 
22789     done
22790   fi
22791 
22792   fi
22793 
22794 
22795     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22796     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22797       # Do we have a bin/java?
22798       if test ! -x "$BOOT_JDK/bin/java"; then
22799         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22801         BOOT_JDK_FOUND=no
22802       else
22803         # Do we have a bin/javac?
22804         if test ! -x "$BOOT_JDK/bin/javac"; then
22805           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22807           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22809           BOOT_JDK_FOUND=no
22810         else
22811           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22812           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22813             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22815             BOOT_JDK_FOUND=no
22816           else
22817             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22818             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22819 
22820             # Extra M4 quote needed to protect [] in grep expression.
22821             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22822             if test "x$FOUND_VERSION_78" = x; then
22823               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22825               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22826 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22827               BOOT_JDK_FOUND=no
22828             else
22829               # We're done! :-)
22830               BOOT_JDK_FOUND=yes
22831 
22832   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22833 
22834   # Input might be given as Windows format, start by converting to
22835   # unix format.
22836   path="$BOOT_JDK"
22837   new_path=`$CYGPATH -u "$path"`
22838 
22839   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22840   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22841   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22842   # "foo.exe" is OK but "foo" is an error.
22843   #
22844   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22845   # It is also a way to make sure we got the proper file name for the real test later on.
22846   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22847   if test "x$test_shortpath" = x; then
22848     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22849 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22850     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22851   fi
22852 
22853   # Call helper function which possibly converts this using DOS-style short mode.
22854   # If so, the updated path is stored in $new_path.
22855 
22856   input_path="$new_path"
22857   # Check if we need to convert this using DOS-style short mode. If the path
22858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22859   # take no chances and rewrite it.
22860   # Note: m4 eats our [], so we need to use [ and ] instead.
22861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22862   if test "x$has_forbidden_chars" != x; then
22863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22864     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22865     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22866     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22867       # Going to short mode and back again did indeed matter. Since short mode is
22868       # case insensitive, let's make it lowercase to improve readability.
22869       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22870       # Now convert it back to Unix-style (cygpath)
22871       input_path=`$CYGPATH -u "$shortmode_path"`
22872       new_path="$input_path"
22873     fi
22874   fi
22875 
22876   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22877   if test "x$test_cygdrive_prefix" = x; then
22878     # As a simple fix, exclude /usr/bin since it's not a real path.
22879     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22880       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22881       # a path prefixed by /cygdrive for fixpath to work.
22882       new_path="$CYGWIN_ROOT_PATH$input_path"
22883     fi
22884   fi
22885 
22886 
22887   if test "x$path" != "x$new_path"; then
22888     BOOT_JDK="$new_path"
22889     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22891   fi
22892 
22893   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22894 
22895   path="$BOOT_JDK"
22896   has_colon=`$ECHO $path | $GREP ^.:`
22897   new_path="$path"
22898   if test "x$has_colon" = x; then
22899     # Not in mixed or Windows style, start by that.
22900     new_path=`cmd //c echo $path`
22901   fi
22902 
22903 
22904   input_path="$new_path"
22905   # Check if we need to convert this using DOS-style short mode. If the path
22906   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22907   # take no chances and rewrite it.
22908   # Note: m4 eats our [], so we need to use [ and ] instead.
22909   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22910   if test "x$has_forbidden_chars" != x; then
22911     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22912     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22913   fi
22914 
22915 
22916   windows_path="$new_path"
22917   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22918     unix_path=`$CYGPATH -u "$windows_path"`
22919     new_path="$unix_path"
22920   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22921     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22922     new_path="$unix_path"
22923   fi
22924 
22925   if test "x$path" != "x$new_path"; then
22926     BOOT_JDK="$new_path"
22927     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22929   fi
22930 
22931   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22932   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22933 
22934   else
22935     # We're on a posix platform. Hooray! :)
22936     path="$BOOT_JDK"
22937     has_space=`$ECHO "$path" | $GREP " "`
22938     if test "x$has_space" != x; then
22939       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22941       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22942     fi
22943 
22944     # Use eval to expand a potential ~
22945     eval path="$path"
22946     if test ! -f "$path" && test ! -d "$path"; then
22947       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22948     fi
22949 
22950     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22951   fi
22952 
22953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22954 $as_echo_n "checking for Boot JDK... " >&6; }
22955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22956 $as_echo "$BOOT_JDK" >&6; }
22957               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22958 $as_echo_n "checking Boot JDK version... " >&6; }
22959               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22960               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22961 $as_echo "$BOOT_JDK_VERSION" >&6; }
22962             fi # end check jdk version
22963           fi # end check rt.jar
22964         fi # end check javac
22965       fi # end check java
22966     fi # end check boot jdk found
22967   fi
22968 
22969 
22970   if test "x$BOOT_JDK_FOUND" = xno; then
22971     # Now execute the test
22972 
22973   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22974   BOOT_JDK_SUFFIX=""
22975   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22976   if test "x$ALL_JDKS_FOUND" != x; then
22977     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22978 
22979   if test "x$BOOT_JDK_FOUND" = xno; then
22980     # Now execute the test
22981 
22982         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22983         if test -d "$BOOT_JDK"; then
22984           BOOT_JDK_FOUND=maybe
22985           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22986 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22987         fi
22988 
22989 
22990     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22991     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22992       # Do we have a bin/java?
22993       if test ! -x "$BOOT_JDK/bin/java"; then
22994         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22996         BOOT_JDK_FOUND=no
22997       else
22998         # Do we have a bin/javac?
22999         if test ! -x "$BOOT_JDK/bin/javac"; then
23000           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23002           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23003 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23004           BOOT_JDK_FOUND=no
23005         else
23006           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23007           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23008             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23009 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23010             BOOT_JDK_FOUND=no
23011           else
23012             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23013             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23014 
23015             # Extra M4 quote needed to protect [] in grep expression.
23016             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23017             if test "x$FOUND_VERSION_78" = x; then
23018               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23019 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23020               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23021 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23022               BOOT_JDK_FOUND=no
23023             else
23024               # We're done! :-)
23025               BOOT_JDK_FOUND=yes
23026 
23027   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23028 
23029   # Input might be given as Windows format, start by converting to
23030   # unix format.
23031   path="$BOOT_JDK"
23032   new_path=`$CYGPATH -u "$path"`
23033 
23034   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23035   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23036   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23037   # "foo.exe" is OK but "foo" is an error.
23038   #
23039   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23040   # It is also a way to make sure we got the proper file name for the real test later on.
23041   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23042   if test "x$test_shortpath" = x; then
23043     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23044 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23045     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23046   fi
23047 
23048   # Call helper function which possibly converts this using DOS-style short mode.
23049   # If so, the updated path is stored in $new_path.
23050 
23051   input_path="$new_path"
23052   # Check if we need to convert this using DOS-style short mode. If the path
23053   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23054   # take no chances and rewrite it.
23055   # Note: m4 eats our [], so we need to use [ and ] instead.
23056   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23057   if test "x$has_forbidden_chars" != x; then
23058     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23059     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23060     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23061     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23062       # Going to short mode and back again did indeed matter. Since short mode is
23063       # case insensitive, let's make it lowercase to improve readability.
23064       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23065       # Now convert it back to Unix-style (cygpath)
23066       input_path=`$CYGPATH -u "$shortmode_path"`
23067       new_path="$input_path"
23068     fi
23069   fi
23070 
23071   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23072   if test "x$test_cygdrive_prefix" = x; then
23073     # As a simple fix, exclude /usr/bin since it's not a real path.
23074     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23075       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23076       # a path prefixed by /cygdrive for fixpath to work.
23077       new_path="$CYGWIN_ROOT_PATH$input_path"
23078     fi
23079   fi
23080 
23081 
23082   if test "x$path" != "x$new_path"; then
23083     BOOT_JDK="$new_path"
23084     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23085 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23086   fi
23087 
23088   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23089 
23090   path="$BOOT_JDK"
23091   has_colon=`$ECHO $path | $GREP ^.:`
23092   new_path="$path"
23093   if test "x$has_colon" = x; then
23094     # Not in mixed or Windows style, start by that.
23095     new_path=`cmd //c echo $path`
23096   fi
23097 
23098 
23099   input_path="$new_path"
23100   # Check if we need to convert this using DOS-style short mode. If the path
23101   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23102   # take no chances and rewrite it.
23103   # Note: m4 eats our [], so we need to use [ and ] instead.
23104   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23105   if test "x$has_forbidden_chars" != x; then
23106     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23107     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23108   fi
23109 
23110 
23111   windows_path="$new_path"
23112   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23113     unix_path=`$CYGPATH -u "$windows_path"`
23114     new_path="$unix_path"
23115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23116     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23117     new_path="$unix_path"
23118   fi
23119 
23120   if test "x$path" != "x$new_path"; then
23121     BOOT_JDK="$new_path"
23122     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23124   fi
23125 
23126   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23127   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23128 
23129   else
23130     # We're on a posix platform. Hooray! :)
23131     path="$BOOT_JDK"
23132     has_space=`$ECHO "$path" | $GREP " "`
23133     if test "x$has_space" != x; then
23134       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23135 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23136       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23137     fi
23138 
23139     # Use eval to expand a potential ~
23140     eval path="$path"
23141     if test ! -f "$path" && test ! -d "$path"; then
23142       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23143     fi
23144 
23145     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23146   fi
23147 
23148               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23149 $as_echo_n "checking for Boot JDK... " >&6; }
23150               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23151 $as_echo "$BOOT_JDK" >&6; }
23152               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23153 $as_echo_n "checking Boot JDK version... " >&6; }
23154               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23155               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23156 $as_echo "$BOOT_JDK_VERSION" >&6; }
23157             fi # end check jdk version
23158           fi # end check rt.jar
23159         fi # end check javac
23160       fi # end check java
23161     fi # end check boot jdk found
23162   fi
23163 
23164     done
23165   fi
23166 
23167 
23168     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23169     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23170       # Do we have a bin/java?
23171       if test ! -x "$BOOT_JDK/bin/java"; then
23172         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23173 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23174         BOOT_JDK_FOUND=no
23175       else
23176         # Do we have a bin/javac?
23177         if test ! -x "$BOOT_JDK/bin/javac"; then
23178           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23179 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23180           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23181 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23182           BOOT_JDK_FOUND=no
23183         else
23184           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23185           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23186             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23188             BOOT_JDK_FOUND=no
23189           else
23190             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23191             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23192 
23193             # Extra M4 quote needed to protect [] in grep expression.
23194             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23195             if test "x$FOUND_VERSION_78" = x; then
23196               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23198               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23199 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23200               BOOT_JDK_FOUND=no
23201             else
23202               # We're done! :-)
23203               BOOT_JDK_FOUND=yes
23204 
23205   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23206 
23207   # Input might be given as Windows format, start by converting to
23208   # unix format.
23209   path="$BOOT_JDK"
23210   new_path=`$CYGPATH -u "$path"`
23211 
23212   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23213   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23214   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23215   # "foo.exe" is OK but "foo" is an error.
23216   #
23217   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23218   # It is also a way to make sure we got the proper file name for the real test later on.
23219   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23220   if test "x$test_shortpath" = x; then
23221     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23222 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23223     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23224   fi
23225 
23226   # Call helper function which possibly converts this using DOS-style short mode.
23227   # If so, the updated path is stored in $new_path.
23228 
23229   input_path="$new_path"
23230   # Check if we need to convert this using DOS-style short mode. If the path
23231   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23232   # take no chances and rewrite it.
23233   # Note: m4 eats our [], so we need to use [ and ] instead.
23234   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23235   if test "x$has_forbidden_chars" != x; then
23236     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23237     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23238     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23239     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23240       # Going to short mode and back again did indeed matter. Since short mode is
23241       # case insensitive, let's make it lowercase to improve readability.
23242       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23243       # Now convert it back to Unix-style (cygpath)
23244       input_path=`$CYGPATH -u "$shortmode_path"`
23245       new_path="$input_path"
23246     fi
23247   fi
23248 
23249   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23250   if test "x$test_cygdrive_prefix" = x; then
23251     # As a simple fix, exclude /usr/bin since it's not a real path.
23252     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23253       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23254       # a path prefixed by /cygdrive for fixpath to work.
23255       new_path="$CYGWIN_ROOT_PATH$input_path"
23256     fi
23257   fi
23258 
23259 
23260   if test "x$path" != "x$new_path"; then
23261     BOOT_JDK="$new_path"
23262     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23263 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23264   fi
23265 
23266   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23267 
23268   path="$BOOT_JDK"
23269   has_colon=`$ECHO $path | $GREP ^.:`
23270   new_path="$path"
23271   if test "x$has_colon" = x; then
23272     # Not in mixed or Windows style, start by that.
23273     new_path=`cmd //c echo $path`
23274   fi
23275 
23276 
23277   input_path="$new_path"
23278   # Check if we need to convert this using DOS-style short mode. If the path
23279   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23280   # take no chances and rewrite it.
23281   # Note: m4 eats our [], so we need to use [ and ] instead.
23282   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23283   if test "x$has_forbidden_chars" != x; then
23284     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23285     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23286   fi
23287 
23288 
23289   windows_path="$new_path"
23290   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23291     unix_path=`$CYGPATH -u "$windows_path"`
23292     new_path="$unix_path"
23293   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23294     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23295     new_path="$unix_path"
23296   fi
23297 
23298   if test "x$path" != "x$new_path"; then
23299     BOOT_JDK="$new_path"
23300     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23301 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23302   fi
23303 
23304   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23305   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23306 
23307   else
23308     # We're on a posix platform. Hooray! :)
23309     path="$BOOT_JDK"
23310     has_space=`$ECHO "$path" | $GREP " "`
23311     if test "x$has_space" != x; then
23312       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23313 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23314       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23315     fi
23316 
23317     # Use eval to expand a potential ~
23318     eval path="$path"
23319     if test ! -f "$path" && test ! -d "$path"; then
23320       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23321     fi
23322 
23323     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23324   fi
23325 
23326               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23327 $as_echo_n "checking for Boot JDK... " >&6; }
23328               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23329 $as_echo "$BOOT_JDK" >&6; }
23330               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23331 $as_echo_n "checking Boot JDK version... " >&6; }
23332               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23333               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23334 $as_echo "$BOOT_JDK_VERSION" >&6; }
23335             fi # end check jdk version
23336           fi # end check rt.jar
23337         fi # end check javac
23338       fi # end check java
23339     fi # end check boot jdk found
23340   fi
23341 
23342   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23343 
23344   if test "x$BOOT_JDK_FOUND" = xno; then
23345     # Now execute the test
23346 
23347   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23348   BOOT_JDK_SUFFIX="/Contents/Home"
23349   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23350   if test "x$ALL_JDKS_FOUND" != x; then
23351     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23352 
23353   if test "x$BOOT_JDK_FOUND" = xno; then
23354     # Now execute the test
23355 
23356         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23357         if test -d "$BOOT_JDK"; then
23358           BOOT_JDK_FOUND=maybe
23359           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23360 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23361         fi
23362 
23363 
23364     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23365     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23366       # Do we have a bin/java?
23367       if test ! -x "$BOOT_JDK/bin/java"; then
23368         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23370         BOOT_JDK_FOUND=no
23371       else
23372         # Do we have a bin/javac?
23373         if test ! -x "$BOOT_JDK/bin/javac"; then
23374           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23375 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23376           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23377 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23378           BOOT_JDK_FOUND=no
23379         else
23380           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23381           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23382             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23384             BOOT_JDK_FOUND=no
23385           else
23386             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23387             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23388 
23389             # Extra M4 quote needed to protect [] in grep expression.
23390             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23391             if test "x$FOUND_VERSION_78" = x; then
23392               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23393 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23394               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23395 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23396               BOOT_JDK_FOUND=no
23397             else
23398               # We're done! :-)
23399               BOOT_JDK_FOUND=yes
23400 
23401   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23402 
23403   # Input might be given as Windows format, start by converting to
23404   # unix format.
23405   path="$BOOT_JDK"
23406   new_path=`$CYGPATH -u "$path"`
23407 
23408   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23409   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23410   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23411   # "foo.exe" is OK but "foo" is an error.
23412   #
23413   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23414   # It is also a way to make sure we got the proper file name for the real test later on.
23415   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23416   if test "x$test_shortpath" = x; then
23417     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23418 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23419     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23420   fi
23421 
23422   # Call helper function which possibly converts this using DOS-style short mode.
23423   # If so, the updated path is stored in $new_path.
23424 
23425   input_path="$new_path"
23426   # Check if we need to convert this using DOS-style short mode. If the path
23427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23428   # take no chances and rewrite it.
23429   # Note: m4 eats our [], so we need to use [ and ] instead.
23430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23431   if test "x$has_forbidden_chars" != x; then
23432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23433     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23434     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23435     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23436       # Going to short mode and back again did indeed matter. Since short mode is
23437       # case insensitive, let's make it lowercase to improve readability.
23438       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23439       # Now convert it back to Unix-style (cygpath)
23440       input_path=`$CYGPATH -u "$shortmode_path"`
23441       new_path="$input_path"
23442     fi
23443   fi
23444 
23445   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23446   if test "x$test_cygdrive_prefix" = x; then
23447     # As a simple fix, exclude /usr/bin since it's not a real path.
23448     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23449       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23450       # a path prefixed by /cygdrive for fixpath to work.
23451       new_path="$CYGWIN_ROOT_PATH$input_path"
23452     fi
23453   fi
23454 
23455 
23456   if test "x$path" != "x$new_path"; then
23457     BOOT_JDK="$new_path"
23458     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23459 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23460   fi
23461 
23462   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23463 
23464   path="$BOOT_JDK"
23465   has_colon=`$ECHO $path | $GREP ^.:`
23466   new_path="$path"
23467   if test "x$has_colon" = x; then
23468     # Not in mixed or Windows style, start by that.
23469     new_path=`cmd //c echo $path`
23470   fi
23471 
23472 
23473   input_path="$new_path"
23474   # Check if we need to convert this using DOS-style short mode. If the path
23475   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23476   # take no chances and rewrite it.
23477   # Note: m4 eats our [], so we need to use [ and ] instead.
23478   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23479   if test "x$has_forbidden_chars" != x; then
23480     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23481     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23482   fi
23483 
23484 
23485   windows_path="$new_path"
23486   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23487     unix_path=`$CYGPATH -u "$windows_path"`
23488     new_path="$unix_path"
23489   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23490     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23491     new_path="$unix_path"
23492   fi
23493 
23494   if test "x$path" != "x$new_path"; then
23495     BOOT_JDK="$new_path"
23496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23498   fi
23499 
23500   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23501   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23502 
23503   else
23504     # We're on a posix platform. Hooray! :)
23505     path="$BOOT_JDK"
23506     has_space=`$ECHO "$path" | $GREP " "`
23507     if test "x$has_space" != x; then
23508       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23509 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23510       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23511     fi
23512 
23513     # Use eval to expand a potential ~
23514     eval path="$path"
23515     if test ! -f "$path" && test ! -d "$path"; then
23516       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23517     fi
23518 
23519     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23520   fi
23521 
23522               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23523 $as_echo_n "checking for Boot JDK... " >&6; }
23524               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23525 $as_echo "$BOOT_JDK" >&6; }
23526               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23527 $as_echo_n "checking Boot JDK version... " >&6; }
23528               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23529               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23530 $as_echo "$BOOT_JDK_VERSION" >&6; }
23531             fi # end check jdk version
23532           fi # end check rt.jar
23533         fi # end check javac
23534       fi # end check java
23535     fi # end check boot jdk found
23536   fi
23537 
23538     done
23539   fi
23540 
23541 
23542     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23543     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23544       # Do we have a bin/java?
23545       if test ! -x "$BOOT_JDK/bin/java"; then
23546         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23547 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23548         BOOT_JDK_FOUND=no
23549       else
23550         # Do we have a bin/javac?
23551         if test ! -x "$BOOT_JDK/bin/javac"; then
23552           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23553 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23554           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23555 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23556           BOOT_JDK_FOUND=no
23557         else
23558           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23559           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23560             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23562             BOOT_JDK_FOUND=no
23563           else
23564             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23565             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23566 
23567             # Extra M4 quote needed to protect [] in grep expression.
23568             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23569             if test "x$FOUND_VERSION_78" = x; then
23570               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23572               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23573 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23574               BOOT_JDK_FOUND=no
23575             else
23576               # We're done! :-)
23577               BOOT_JDK_FOUND=yes
23578 
23579   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23580 
23581   # Input might be given as Windows format, start by converting to
23582   # unix format.
23583   path="$BOOT_JDK"
23584   new_path=`$CYGPATH -u "$path"`
23585 
23586   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23587   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23588   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23589   # "foo.exe" is OK but "foo" is an error.
23590   #
23591   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23592   # It is also a way to make sure we got the proper file name for the real test later on.
23593   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23594   if test "x$test_shortpath" = x; then
23595     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23596 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23597     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23598   fi
23599 
23600   # Call helper function which possibly converts this using DOS-style short mode.
23601   # If so, the updated path is stored in $new_path.
23602 
23603   input_path="$new_path"
23604   # Check if we need to convert this using DOS-style short mode. If the path
23605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23606   # take no chances and rewrite it.
23607   # Note: m4 eats our [], so we need to use [ and ] instead.
23608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23609   if test "x$has_forbidden_chars" != x; then
23610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23611     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23612     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23613     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23614       # Going to short mode and back again did indeed matter. Since short mode is
23615       # case insensitive, let's make it lowercase to improve readability.
23616       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23617       # Now convert it back to Unix-style (cygpath)
23618       input_path=`$CYGPATH -u "$shortmode_path"`
23619       new_path="$input_path"
23620     fi
23621   fi
23622 
23623   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23624   if test "x$test_cygdrive_prefix" = x; then
23625     # As a simple fix, exclude /usr/bin since it's not a real path.
23626     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23627       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23628       # a path prefixed by /cygdrive for fixpath to work.
23629       new_path="$CYGWIN_ROOT_PATH$input_path"
23630     fi
23631   fi
23632 
23633 
23634   if test "x$path" != "x$new_path"; then
23635     BOOT_JDK="$new_path"
23636     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23637 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23638   fi
23639 
23640   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23641 
23642   path="$BOOT_JDK"
23643   has_colon=`$ECHO $path | $GREP ^.:`
23644   new_path="$path"
23645   if test "x$has_colon" = x; then
23646     # Not in mixed or Windows style, start by that.
23647     new_path=`cmd //c echo $path`
23648   fi
23649 
23650 
23651   input_path="$new_path"
23652   # Check if we need to convert this using DOS-style short mode. If the path
23653   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23654   # take no chances and rewrite it.
23655   # Note: m4 eats our [], so we need to use [ and ] instead.
23656   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23657   if test "x$has_forbidden_chars" != x; then
23658     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23659     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23660   fi
23661 
23662 
23663   windows_path="$new_path"
23664   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23665     unix_path=`$CYGPATH -u "$windows_path"`
23666     new_path="$unix_path"
23667   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23668     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23669     new_path="$unix_path"
23670   fi
23671 
23672   if test "x$path" != "x$new_path"; then
23673     BOOT_JDK="$new_path"
23674     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23675 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23676   fi
23677 
23678   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23679   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23680 
23681   else
23682     # We're on a posix platform. Hooray! :)
23683     path="$BOOT_JDK"
23684     has_space=`$ECHO "$path" | $GREP " "`
23685     if test "x$has_space" != x; then
23686       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23687 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23688       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23689     fi
23690 
23691     # Use eval to expand a potential ~
23692     eval path="$path"
23693     if test ! -f "$path" && test ! -d "$path"; then
23694       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23695     fi
23696 
23697     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23698   fi
23699 
23700               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23701 $as_echo_n "checking for Boot JDK... " >&6; }
23702               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23703 $as_echo "$BOOT_JDK" >&6; }
23704               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23705 $as_echo_n "checking Boot JDK version... " >&6; }
23706               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23707               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23708 $as_echo "$BOOT_JDK_VERSION" >&6; }
23709             fi # end check jdk version
23710           fi # end check rt.jar
23711         fi # end check javac
23712       fi # end check java
23713     fi # end check boot jdk found
23714   fi
23715 
23716 
23717   if test "x$BOOT_JDK_FOUND" = xno; then
23718     # Now execute the test
23719 
23720   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23721   BOOT_JDK_SUFFIX="/Contents/Home"
23722   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23723   if test "x$ALL_JDKS_FOUND" != x; then
23724     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23725 
23726   if test "x$BOOT_JDK_FOUND" = xno; then
23727     # Now execute the test
23728 
23729         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23730         if test -d "$BOOT_JDK"; then
23731           BOOT_JDK_FOUND=maybe
23732           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23733 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23734         fi
23735 
23736 
23737     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23738     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23739       # Do we have a bin/java?
23740       if test ! -x "$BOOT_JDK/bin/java"; then
23741         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23742 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23743         BOOT_JDK_FOUND=no
23744       else
23745         # Do we have a bin/javac?
23746         if test ! -x "$BOOT_JDK/bin/javac"; then
23747           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23748 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23749           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23750 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23751           BOOT_JDK_FOUND=no
23752         else
23753           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23754           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23755             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23756 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23757             BOOT_JDK_FOUND=no
23758           else
23759             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23760             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23761 
23762             # Extra M4 quote needed to protect [] in grep expression.
23763             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23764             if test "x$FOUND_VERSION_78" = x; then
23765               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23767               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23768 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23769               BOOT_JDK_FOUND=no
23770             else
23771               # We're done! :-)
23772               BOOT_JDK_FOUND=yes
23773 
23774   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23775 
23776   # Input might be given as Windows format, start by converting to
23777   # unix format.
23778   path="$BOOT_JDK"
23779   new_path=`$CYGPATH -u "$path"`
23780 
23781   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23782   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23783   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23784   # "foo.exe" is OK but "foo" is an error.
23785   #
23786   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23787   # It is also a way to make sure we got the proper file name for the real test later on.
23788   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23789   if test "x$test_shortpath" = x; then
23790     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23792     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23793   fi
23794 
23795   # Call helper function which possibly converts this using DOS-style short mode.
23796   # If so, the updated path is stored in $new_path.
23797 
23798   input_path="$new_path"
23799   # Check if we need to convert this using DOS-style short mode. If the path
23800   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23801   # take no chances and rewrite it.
23802   # Note: m4 eats our [], so we need to use [ and ] instead.
23803   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23804   if test "x$has_forbidden_chars" != x; then
23805     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23806     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23807     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23808     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23809       # Going to short mode and back again did indeed matter. Since short mode is
23810       # case insensitive, let's make it lowercase to improve readability.
23811       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23812       # Now convert it back to Unix-style (cygpath)
23813       input_path=`$CYGPATH -u "$shortmode_path"`
23814       new_path="$input_path"
23815     fi
23816   fi
23817 
23818   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23819   if test "x$test_cygdrive_prefix" = x; then
23820     # As a simple fix, exclude /usr/bin since it's not a real path.
23821     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23822       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23823       # a path prefixed by /cygdrive for fixpath to work.
23824       new_path="$CYGWIN_ROOT_PATH$input_path"
23825     fi
23826   fi
23827 
23828 
23829   if test "x$path" != "x$new_path"; then
23830     BOOT_JDK="$new_path"
23831     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23832 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23833   fi
23834 
23835   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23836 
23837   path="$BOOT_JDK"
23838   has_colon=`$ECHO $path | $GREP ^.:`
23839   new_path="$path"
23840   if test "x$has_colon" = x; then
23841     # Not in mixed or Windows style, start by that.
23842     new_path=`cmd //c echo $path`
23843   fi
23844 
23845 
23846   input_path="$new_path"
23847   # Check if we need to convert this using DOS-style short mode. If the path
23848   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23849   # take no chances and rewrite it.
23850   # Note: m4 eats our [], so we need to use [ and ] instead.
23851   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23852   if test "x$has_forbidden_chars" != x; then
23853     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23854     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23855   fi
23856 
23857 
23858   windows_path="$new_path"
23859   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23860     unix_path=`$CYGPATH -u "$windows_path"`
23861     new_path="$unix_path"
23862   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23863     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23864     new_path="$unix_path"
23865   fi
23866 
23867   if test "x$path" != "x$new_path"; then
23868     BOOT_JDK="$new_path"
23869     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23870 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23871   fi
23872 
23873   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23874   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23875 
23876   else
23877     # We're on a posix platform. Hooray! :)
23878     path="$BOOT_JDK"
23879     has_space=`$ECHO "$path" | $GREP " "`
23880     if test "x$has_space" != x; then
23881       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23882 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23883       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23884     fi
23885 
23886     # Use eval to expand a potential ~
23887     eval path="$path"
23888     if test ! -f "$path" && test ! -d "$path"; then
23889       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23890     fi
23891 
23892     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23893   fi
23894 
23895               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23896 $as_echo_n "checking for Boot JDK... " >&6; }
23897               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23898 $as_echo "$BOOT_JDK" >&6; }
23899               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23900 $as_echo_n "checking Boot JDK version... " >&6; }
23901               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23902               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23903 $as_echo "$BOOT_JDK_VERSION" >&6; }
23904             fi # end check jdk version
23905           fi # end check rt.jar
23906         fi # end check javac
23907       fi # end check java
23908     fi # end check boot jdk found
23909   fi
23910 
23911     done
23912   fi
23913 
23914 
23915     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23916     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23917       # Do we have a bin/java?
23918       if test ! -x "$BOOT_JDK/bin/java"; then
23919         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23920 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23921         BOOT_JDK_FOUND=no
23922       else
23923         # Do we have a bin/javac?
23924         if test ! -x "$BOOT_JDK/bin/javac"; then
23925           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23926 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23927           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23928 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23929           BOOT_JDK_FOUND=no
23930         else
23931           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23932           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23933             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23934 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23935             BOOT_JDK_FOUND=no
23936           else
23937             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23938             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23939 
23940             # Extra M4 quote needed to protect [] in grep expression.
23941             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23942             if test "x$FOUND_VERSION_78" = x; then
23943               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23944 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23945               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23946 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23947               BOOT_JDK_FOUND=no
23948             else
23949               # We're done! :-)
23950               BOOT_JDK_FOUND=yes
23951 
23952   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23953 
23954   # Input might be given as Windows format, start by converting to
23955   # unix format.
23956   path="$BOOT_JDK"
23957   new_path=`$CYGPATH -u "$path"`
23958 
23959   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23960   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23961   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23962   # "foo.exe" is OK but "foo" is an error.
23963   #
23964   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23965   # It is also a way to make sure we got the proper file name for the real test later on.
23966   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23967   if test "x$test_shortpath" = x; then
23968     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23969 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23970     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23971   fi
23972 
23973   # Call helper function which possibly converts this using DOS-style short mode.
23974   # If so, the updated path is stored in $new_path.
23975 
23976   input_path="$new_path"
23977   # Check if we need to convert this using DOS-style short mode. If the path
23978   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23979   # take no chances and rewrite it.
23980   # Note: m4 eats our [], so we need to use [ and ] instead.
23981   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23982   if test "x$has_forbidden_chars" != x; then
23983     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23984     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23985     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23986     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23987       # Going to short mode and back again did indeed matter. Since short mode is
23988       # case insensitive, let's make it lowercase to improve readability.
23989       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23990       # Now convert it back to Unix-style (cygpath)
23991       input_path=`$CYGPATH -u "$shortmode_path"`
23992       new_path="$input_path"
23993     fi
23994   fi
23995 
23996   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23997   if test "x$test_cygdrive_prefix" = x; then
23998     # As a simple fix, exclude /usr/bin since it's not a real path.
23999     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24000       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24001       # a path prefixed by /cygdrive for fixpath to work.
24002       new_path="$CYGWIN_ROOT_PATH$input_path"
24003     fi
24004   fi
24005 
24006 
24007   if test "x$path" != "x$new_path"; then
24008     BOOT_JDK="$new_path"
24009     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24010 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24011   fi
24012 
24013   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24014 
24015   path="$BOOT_JDK"
24016   has_colon=`$ECHO $path | $GREP ^.:`
24017   new_path="$path"
24018   if test "x$has_colon" = x; then
24019     # Not in mixed or Windows style, start by that.
24020     new_path=`cmd //c echo $path`
24021   fi
24022 
24023 
24024   input_path="$new_path"
24025   # Check if we need to convert this using DOS-style short mode. If the path
24026   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24027   # take no chances and rewrite it.
24028   # Note: m4 eats our [], so we need to use [ and ] instead.
24029   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24030   if test "x$has_forbidden_chars" != x; then
24031     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24032     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24033   fi
24034 
24035 
24036   windows_path="$new_path"
24037   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24038     unix_path=`$CYGPATH -u "$windows_path"`
24039     new_path="$unix_path"
24040   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24041     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24042     new_path="$unix_path"
24043   fi
24044 
24045   if test "x$path" != "x$new_path"; then
24046     BOOT_JDK="$new_path"
24047     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24048 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24049   fi
24050 
24051   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24052   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24053 
24054   else
24055     # We're on a posix platform. Hooray! :)
24056     path="$BOOT_JDK"
24057     has_space=`$ECHO "$path" | $GREP " "`
24058     if test "x$has_space" != x; then
24059       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24060 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24061       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24062     fi
24063 
24064     # Use eval to expand a potential ~
24065     eval path="$path"
24066     if test ! -f "$path" && test ! -d "$path"; then
24067       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24068     fi
24069 
24070     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24071   fi
24072 
24073               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24074 $as_echo_n "checking for Boot JDK... " >&6; }
24075               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24076 $as_echo "$BOOT_JDK" >&6; }
24077               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24078 $as_echo_n "checking Boot JDK version... " >&6; }
24079               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24080               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24081 $as_echo "$BOOT_JDK_VERSION" >&6; }
24082             fi # end check jdk version
24083           fi # end check rt.jar
24084         fi # end check javac
24085       fi # end check java
24086     fi # end check boot jdk found
24087   fi
24088 
24089   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24090 
24091   if test "x$BOOT_JDK_FOUND" = xno; then
24092     # Now execute the test
24093 
24094   BOOT_JDK_PREFIX="/usr/lib/jvm"
24095   BOOT_JDK_SUFFIX=""
24096   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24097   if test "x$ALL_JDKS_FOUND" != x; then
24098     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24099 
24100   if test "x$BOOT_JDK_FOUND" = xno; then
24101     # Now execute the test
24102 
24103         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24104         if test -d "$BOOT_JDK"; then
24105           BOOT_JDK_FOUND=maybe
24106           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24107 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24108         fi
24109 
24110 
24111     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24112     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24113       # Do we have a bin/java?
24114       if test ! -x "$BOOT_JDK/bin/java"; then
24115         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24116 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24117         BOOT_JDK_FOUND=no
24118       else
24119         # Do we have a bin/javac?
24120         if test ! -x "$BOOT_JDK/bin/javac"; then
24121           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24122 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24123           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24124 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24125           BOOT_JDK_FOUND=no
24126         else
24127           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24128           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24129             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24131             BOOT_JDK_FOUND=no
24132           else
24133             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24134             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24135 
24136             # Extra M4 quote needed to protect [] in grep expression.
24137             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24138             if test "x$FOUND_VERSION_78" = x; then
24139               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24141               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24142 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24143               BOOT_JDK_FOUND=no
24144             else
24145               # We're done! :-)
24146               BOOT_JDK_FOUND=yes
24147 
24148   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24149 
24150   # Input might be given as Windows format, start by converting to
24151   # unix format.
24152   path="$BOOT_JDK"
24153   new_path=`$CYGPATH -u "$path"`
24154 
24155   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24156   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24157   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24158   # "foo.exe" is OK but "foo" is an error.
24159   #
24160   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24161   # It is also a way to make sure we got the proper file name for the real test later on.
24162   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24163   if test "x$test_shortpath" = x; then
24164     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24165 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24166     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24167   fi
24168 
24169   # Call helper function which possibly converts this using DOS-style short mode.
24170   # If so, the updated path is stored in $new_path.
24171 
24172   input_path="$new_path"
24173   # Check if we need to convert this using DOS-style short mode. If the path
24174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24175   # take no chances and rewrite it.
24176   # Note: m4 eats our [], so we need to use [ and ] instead.
24177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24178   if test "x$has_forbidden_chars" != x; then
24179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24180     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24181     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24182     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24183       # Going to short mode and back again did indeed matter. Since short mode is
24184       # case insensitive, let's make it lowercase to improve readability.
24185       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24186       # Now convert it back to Unix-style (cygpath)
24187       input_path=`$CYGPATH -u "$shortmode_path"`
24188       new_path="$input_path"
24189     fi
24190   fi
24191 
24192   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24193   if test "x$test_cygdrive_prefix" = x; then
24194     # As a simple fix, exclude /usr/bin since it's not a real path.
24195     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24196       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24197       # a path prefixed by /cygdrive for fixpath to work.
24198       new_path="$CYGWIN_ROOT_PATH$input_path"
24199     fi
24200   fi
24201 
24202 
24203   if test "x$path" != "x$new_path"; then
24204     BOOT_JDK="$new_path"
24205     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24206 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24207   fi
24208 
24209   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24210 
24211   path="$BOOT_JDK"
24212   has_colon=`$ECHO $path | $GREP ^.:`
24213   new_path="$path"
24214   if test "x$has_colon" = x; then
24215     # Not in mixed or Windows style, start by that.
24216     new_path=`cmd //c echo $path`
24217   fi
24218 
24219 
24220   input_path="$new_path"
24221   # Check if we need to convert this using DOS-style short mode. If the path
24222   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24223   # take no chances and rewrite it.
24224   # Note: m4 eats our [], so we need to use [ and ] instead.
24225   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24226   if test "x$has_forbidden_chars" != x; then
24227     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24228     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24229   fi
24230 
24231 
24232   windows_path="$new_path"
24233   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24234     unix_path=`$CYGPATH -u "$windows_path"`
24235     new_path="$unix_path"
24236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24237     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24238     new_path="$unix_path"
24239   fi
24240 
24241   if test "x$path" != "x$new_path"; then
24242     BOOT_JDK="$new_path"
24243     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24244 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24245   fi
24246 
24247   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24248   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24249 
24250   else
24251     # We're on a posix platform. Hooray! :)
24252     path="$BOOT_JDK"
24253     has_space=`$ECHO "$path" | $GREP " "`
24254     if test "x$has_space" != x; then
24255       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24256 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24257       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24258     fi
24259 
24260     # Use eval to expand a potential ~
24261     eval path="$path"
24262     if test ! -f "$path" && test ! -d "$path"; then
24263       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24264     fi
24265 
24266     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24267   fi
24268 
24269               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24270 $as_echo_n "checking for Boot JDK... " >&6; }
24271               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24272 $as_echo "$BOOT_JDK" >&6; }
24273               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24274 $as_echo_n "checking Boot JDK version... " >&6; }
24275               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24276               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24277 $as_echo "$BOOT_JDK_VERSION" >&6; }
24278             fi # end check jdk version
24279           fi # end check rt.jar
24280         fi # end check javac
24281       fi # end check java
24282     fi # end check boot jdk found
24283   fi
24284 
24285     done
24286   fi
24287 
24288 
24289     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24290     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24291       # Do we have a bin/java?
24292       if test ! -x "$BOOT_JDK/bin/java"; then
24293         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24295         BOOT_JDK_FOUND=no
24296       else
24297         # Do we have a bin/javac?
24298         if test ! -x "$BOOT_JDK/bin/javac"; then
24299           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24301           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24302 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24303           BOOT_JDK_FOUND=no
24304         else
24305           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24306           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24307             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24308 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24309             BOOT_JDK_FOUND=no
24310           else
24311             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24312             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24313 
24314             # Extra M4 quote needed to protect [] in grep expression.
24315             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24316             if test "x$FOUND_VERSION_78" = x; then
24317               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24318 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24319               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24320 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24321               BOOT_JDK_FOUND=no
24322             else
24323               # We're done! :-)
24324               BOOT_JDK_FOUND=yes
24325 
24326   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24327 
24328   # Input might be given as Windows format, start by converting to
24329   # unix format.
24330   path="$BOOT_JDK"
24331   new_path=`$CYGPATH -u "$path"`
24332 
24333   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24334   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24335   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24336   # "foo.exe" is OK but "foo" is an error.
24337   #
24338   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24339   # It is also a way to make sure we got the proper file name for the real test later on.
24340   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24341   if test "x$test_shortpath" = x; then
24342     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24343 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24344     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24345   fi
24346 
24347   # Call helper function which possibly converts this using DOS-style short mode.
24348   # If so, the updated path is stored in $new_path.
24349 
24350   input_path="$new_path"
24351   # Check if we need to convert this using DOS-style short mode. If the path
24352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24353   # take no chances and rewrite it.
24354   # Note: m4 eats our [], so we need to use [ and ] instead.
24355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24356   if test "x$has_forbidden_chars" != x; then
24357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24358     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24359     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24360     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24361       # Going to short mode and back again did indeed matter. Since short mode is
24362       # case insensitive, let's make it lowercase to improve readability.
24363       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24364       # Now convert it back to Unix-style (cygpath)
24365       input_path=`$CYGPATH -u "$shortmode_path"`
24366       new_path="$input_path"
24367     fi
24368   fi
24369 
24370   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24371   if test "x$test_cygdrive_prefix" = x; then
24372     # As a simple fix, exclude /usr/bin since it's not a real path.
24373     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24374       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24375       # a path prefixed by /cygdrive for fixpath to work.
24376       new_path="$CYGWIN_ROOT_PATH$input_path"
24377     fi
24378   fi
24379 
24380 
24381   if test "x$path" != "x$new_path"; then
24382     BOOT_JDK="$new_path"
24383     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24385   fi
24386 
24387   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24388 
24389   path="$BOOT_JDK"
24390   has_colon=`$ECHO $path | $GREP ^.:`
24391   new_path="$path"
24392   if test "x$has_colon" = x; then
24393     # Not in mixed or Windows style, start by that.
24394     new_path=`cmd //c echo $path`
24395   fi
24396 
24397 
24398   input_path="$new_path"
24399   # Check if we need to convert this using DOS-style short mode. If the path
24400   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24401   # take no chances and rewrite it.
24402   # Note: m4 eats our [], so we need to use [ and ] instead.
24403   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24404   if test "x$has_forbidden_chars" != x; then
24405     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24406     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24407   fi
24408 
24409 
24410   windows_path="$new_path"
24411   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24412     unix_path=`$CYGPATH -u "$windows_path"`
24413     new_path="$unix_path"
24414   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24415     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24416     new_path="$unix_path"
24417   fi
24418 
24419   if test "x$path" != "x$new_path"; then
24420     BOOT_JDK="$new_path"
24421     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24422 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24423   fi
24424 
24425   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24426   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24427 
24428   else
24429     # We're on a posix platform. Hooray! :)
24430     path="$BOOT_JDK"
24431     has_space=`$ECHO "$path" | $GREP " "`
24432     if test "x$has_space" != x; then
24433       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24434 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24435       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24436     fi
24437 
24438     # Use eval to expand a potential ~
24439     eval path="$path"
24440     if test ! -f "$path" && test ! -d "$path"; then
24441       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24442     fi
24443 
24444     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24445   fi
24446 
24447               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24448 $as_echo_n "checking for Boot JDK... " >&6; }
24449               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24450 $as_echo "$BOOT_JDK" >&6; }
24451               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24452 $as_echo_n "checking Boot JDK version... " >&6; }
24453               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24455 $as_echo "$BOOT_JDK_VERSION" >&6; }
24456             fi # end check jdk version
24457           fi # end check rt.jar
24458         fi # end check javac
24459       fi # end check java
24460     fi # end check boot jdk found
24461   fi
24462 
24463   fi
24464 
24465 
24466     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24467     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24468       # Do we have a bin/java?
24469       if test ! -x "$BOOT_JDK/bin/java"; then
24470         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24472         BOOT_JDK_FOUND=no
24473       else
24474         # Do we have a bin/javac?
24475         if test ! -x "$BOOT_JDK/bin/javac"; then
24476           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24478           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24479 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24480           BOOT_JDK_FOUND=no
24481         else
24482           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24483           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24484             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24486             BOOT_JDK_FOUND=no
24487           else
24488             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24489             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24490 
24491             # Extra M4 quote needed to protect [] in grep expression.
24492             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24493             if test "x$FOUND_VERSION_78" = x; then
24494               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24495 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24496               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24497 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24498               BOOT_JDK_FOUND=no
24499             else
24500               # We're done! :-)
24501               BOOT_JDK_FOUND=yes
24502 
24503   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24504 
24505   # Input might be given as Windows format, start by converting to
24506   # unix format.
24507   path="$BOOT_JDK"
24508   new_path=`$CYGPATH -u "$path"`
24509 
24510   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24511   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24512   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24513   # "foo.exe" is OK but "foo" is an error.
24514   #
24515   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24516   # It is also a way to make sure we got the proper file name for the real test later on.
24517   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24518   if test "x$test_shortpath" = x; then
24519     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24521     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24522   fi
24523 
24524   # Call helper function which possibly converts this using DOS-style short mode.
24525   # If so, the updated path is stored in $new_path.
24526 
24527   input_path="$new_path"
24528   # Check if we need to convert this using DOS-style short mode. If the path
24529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24530   # take no chances and rewrite it.
24531   # Note: m4 eats our [], so we need to use [ and ] instead.
24532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24533   if test "x$has_forbidden_chars" != x; then
24534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24535     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24536     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24537     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24538       # Going to short mode and back again did indeed matter. Since short mode is
24539       # case insensitive, let's make it lowercase to improve readability.
24540       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24541       # Now convert it back to Unix-style (cygpath)
24542       input_path=`$CYGPATH -u "$shortmode_path"`
24543       new_path="$input_path"
24544     fi
24545   fi
24546 
24547   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24548   if test "x$test_cygdrive_prefix" = x; then
24549     # As a simple fix, exclude /usr/bin since it's not a real path.
24550     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24551       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24552       # a path prefixed by /cygdrive for fixpath to work.
24553       new_path="$CYGWIN_ROOT_PATH$input_path"
24554     fi
24555   fi
24556 
24557 
24558   if test "x$path" != "x$new_path"; then
24559     BOOT_JDK="$new_path"
24560     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24562   fi
24563 
24564   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24565 
24566   path="$BOOT_JDK"
24567   has_colon=`$ECHO $path | $GREP ^.:`
24568   new_path="$path"
24569   if test "x$has_colon" = x; then
24570     # Not in mixed or Windows style, start by that.
24571     new_path=`cmd //c echo $path`
24572   fi
24573 
24574 
24575   input_path="$new_path"
24576   # Check if we need to convert this using DOS-style short mode. If the path
24577   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24578   # take no chances and rewrite it.
24579   # Note: m4 eats our [], so we need to use [ and ] instead.
24580   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24581   if test "x$has_forbidden_chars" != x; then
24582     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24583     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24584   fi
24585 
24586 
24587   windows_path="$new_path"
24588   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24589     unix_path=`$CYGPATH -u "$windows_path"`
24590     new_path="$unix_path"
24591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24592     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24593     new_path="$unix_path"
24594   fi
24595 
24596   if test "x$path" != "x$new_path"; then
24597     BOOT_JDK="$new_path"
24598     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24599 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24600   fi
24601 
24602   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24603   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24604 
24605   else
24606     # We're on a posix platform. Hooray! :)
24607     path="$BOOT_JDK"
24608     has_space=`$ECHO "$path" | $GREP " "`
24609     if test "x$has_space" != x; then
24610       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24611 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24612       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24613     fi
24614 
24615     # Use eval to expand a potential ~
24616     eval path="$path"
24617     if test ! -f "$path" && test ! -d "$path"; then
24618       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24619     fi
24620 
24621     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24622   fi
24623 
24624               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24625 $as_echo_n "checking for Boot JDK... " >&6; }
24626               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24627 $as_echo "$BOOT_JDK" >&6; }
24628               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24629 $as_echo_n "checking Boot JDK version... " >&6; }
24630               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24631               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24632 $as_echo "$BOOT_JDK_VERSION" >&6; }
24633             fi # end check jdk version
24634           fi # end check rt.jar
24635         fi # end check javac
24636       fi # end check java
24637     fi # end check boot jdk found
24638   fi
24639 
24640 
24641   # If we haven't found anything yet, we've truly lost. Give up.
24642   if test "x$BOOT_JDK_FOUND" = xno; then
24643 
24644   # Print a helpful message on how to acquire the necessary build dependency.
24645   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24646   MISSING_DEPENDENCY=openjdk
24647 
24648   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24649     cygwin_help $MISSING_DEPENDENCY
24650   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24651     msys_help $MISSING_DEPENDENCY
24652   else
24653     PKGHANDLER_COMMAND=
24654 
24655     case $PKGHANDLER in
24656       apt-get)
24657         apt_help     $MISSING_DEPENDENCY ;;
24658       yum)
24659         yum_help     $MISSING_DEPENDENCY ;;
24660       port)
24661         port_help    $MISSING_DEPENDENCY ;;
24662       pkgutil)
24663         pkgutil_help $MISSING_DEPENDENCY ;;
24664       pkgadd)
24665         pkgadd_help  $MISSING_DEPENDENCY ;;
24666     esac
24667 
24668     if test "x$PKGHANDLER_COMMAND" != x; then
24669       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24670     fi
24671   fi
24672 
24673     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24674 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24675     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24676 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24677     as_fn_error $? "Cannot continue" "$LINENO" 5
24678   fi
24679 
24680   # Setup proper paths for what we found
24681   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24682   if test ! -f "$BOOT_RTJAR"; then
24683     # On MacOSX it is called classes.jar
24684     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24685     if test -f "$BOOT_RTJAR"; then
24686       # Remove the ..
24687       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24688     fi
24689   fi
24690   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24691   BOOT_JDK="$BOOT_JDK"
24692 
24693 
24694 
24695 
24696   # Setup tools from the Boot JDK.
24697 
24698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24699 $as_echo_n "checking for java in Boot JDK... " >&6; }
24700   JAVA=$BOOT_JDK/bin/java
24701   if test ! -x $JAVA; then
24702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24703 $as_echo "not found" >&6; }
24704     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24705 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24706     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24707   fi
24708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24709 $as_echo "ok" >&6; }
24710 
24711 
24712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24713 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24714   JAVAC=$BOOT_JDK/bin/javac
24715   if test ! -x $JAVAC; then
24716     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24717 $as_echo "not found" >&6; }
24718     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24719 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24720     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24721   fi
24722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24723 $as_echo "ok" >&6; }
24724 
24725 
24726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24727 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24728   JAVAH=$BOOT_JDK/bin/javah
24729   if test ! -x $JAVAH; then
24730     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24731 $as_echo "not found" >&6; }
24732     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24733 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24734     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24735   fi
24736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24737 $as_echo "ok" >&6; }
24738 
24739 
24740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24741 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24742   JAVAP=$BOOT_JDK/bin/javap
24743   if test ! -x $JAVAP; then
24744     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24745 $as_echo "not found" >&6; }
24746     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24747 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24748     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24749   fi
24750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24751 $as_echo "ok" >&6; }
24752 
24753 
24754   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24755 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24756   JAR=$BOOT_JDK/bin/jar
24757   if test ! -x $JAR; then
24758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24759 $as_echo "not found" >&6; }
24760     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24761 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24762     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24763   fi
24764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24765 $as_echo "ok" >&6; }
24766 
24767 
24768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24769 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24770   RMIC=$BOOT_JDK/bin/rmic
24771   if test ! -x $RMIC; then
24772     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24773 $as_echo "not found" >&6; }
24774     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24775 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24776     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24777   fi
24778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24779 $as_echo "ok" >&6; }
24780 
24781 
24782   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24783 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24784   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24785   if test ! -x $NATIVE2ASCII; then
24786     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24787 $as_echo "not found" >&6; }
24788     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24789 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24790     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24791   fi
24792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24793 $as_echo "ok" >&6; }
24794 
24795 
24796   # Finally, set some other options...
24797 
24798   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24799   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24800 
24801 
24802 
24803   # Check if the boot jdk is 32 or 64 bit
24804   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24805     BOOT_JDK_BITS="64"
24806   else
24807     BOOT_JDK_BITS="32"
24808   fi
24809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24810 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24812 $as_echo "$BOOT_JDK_BITS" >&6; }
24813 
24814 
24815 
24816   ##############################################################################
24817   #
24818   # Specify options for anything that is run with the Boot JDK.
24819   #
24820 
24821 # Check whether --with-boot-jdk-jvmargs was given.
24822 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24823   withval=$with_boot_jdk_jvmargs;
24824 fi
24825 
24826 
24827   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24828 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24829 
24830   # Disable special log output when a debug build is used as Boot JDK...
24831 
24832   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24833   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24834   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24835   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24836   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24837   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24838     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24839     JVM_ARG_OK=true
24840