1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 UCRT_DLL_DIR
 644 MSVCP_DLL
 645 MSVCR_DLL
 646 LIBCXX
 647 LLVM_LIBS
 648 LLVM_LDFLAGS
 649 LLVM_CFLAGS
 650 LLVM_CONFIG
 651 LIBFFI_LIBS
 652 LIBFFI_CFLAGS
 653 STATIC_CXX_SETTING
 654 LIBDL
 655 LIBM
 656 LIBZIP_CAN_USE_MMAP
 657 USE_EXTERNAL_LIBZ
 658 USE_EXTERNAL_LIBGIF
 659 USE_EXTERNAL_LIBJPEG
 660 FONTCONFIG_CFLAGS
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 DEBUG_BINARIES
 675 STRIP_POLICY
 676 ENABLE_DEBUG_SYMBOLS
 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 678 ZERO_ARCHFLAG
 679 LDFLAGS_CXX_JDK
 680 LDFLAGS_JDKEXE_SUFFIX
 681 LDFLAGS_JDKLIB_SUFFIX
 682 LDFLAGS_JDKEXE
 683 LDFLAGS_JDKLIB
 684 CXXFLAGS_JDKEXE
 685 CXXFLAGS_JDKLIB
 686 CFLAGS_JDKEXE
 687 CFLAGS_JDKLIB
 688 MACOSX_VERSION_MIN
 689 FDLIBM_CFLAGS
 690 NO_LIFETIME_DSE_CFLAG
 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 692 LEGACY_EXTRA_ASFLAGS
 693 LEGACY_EXTRA_LDFLAGS
 694 LEGACY_EXTRA_CXXFLAGS
 695 LEGACY_EXTRA_CFLAGS
 696 CXXSTD_CXXFLAG
 697 CXX_O_FLAG_NONE
 698 CXX_O_FLAG_NORM
 699 CXX_O_FLAG_HI
 700 CXX_O_FLAG_HIGHEST
 701 C_O_FLAG_NONE
 702 C_O_FLAG_NORM
 703 C_O_FLAG_HI
 704 C_O_FLAG_HIGHEST
 705 CXXFLAGS_DEBUG_SYMBOLS
 706 CFLAGS_DEBUG_SYMBOLS
 707 ASFLAGS_DEBUG_SYMBOLS
 708 CXX_FLAG_DEPS
 709 C_FLAG_DEPS
 710 SET_SHARED_LIBRARY_MAPFILE
 711 SET_SHARED_LIBRARY_NAME
 712 SET_SHARED_LIBRARY_ORIGIN
 713 SET_EXECUTABLE_ORIGIN
 714 SHARED_LIBRARY_FLAGS
 715 CXX_FLAG_REORDER
 716 C_FLAG_REORDER
 717 SYSROOT_LDFLAGS
 718 SYSROOT_CFLAGS
 719 RC_FLAGS
 720 AR_OUT_OPTION
 721 LD_OUT_OPTION
 722 EXE_OUT_OPTION
 723 CC_OUT_OPTION
 724 POST_MCS_CMD
 725 POST_STRIP_CMD
 726 ARFLAGS
 727 COMPILER_TARGET_BITS_FLAG
 728 JT_HOME
 729 JTREGEXE
 730 USING_BROKEN_SUSE_LD
 731 PACKAGE_PATH
 732 LDEXECXX
 733 LDEXE
 734 USE_CLANG
 735 HOTSPOT_LD
 736 HOTSPOT_CXX
 737 HOTSPOT_RC
 738 HOTSPOT_MT
 739 BUILD_LD
 740 BUILD_CXX
 741 BUILD_CC
 742 ac_ct_OBJDUMP
 743 OBJDUMP
 744 ac_ct_OBJCOPY
 745 OBJCOPY
 746 ac_ct_NM
 747 OTOOL
 748 ac_ct_STRIP
 749 MCS
 750 GNM
 751 NM
 752 STRIP
 753 MSBUILD
 754 DUMPBIN
 755 RC
 756 MT
 757 LIPO
 758 ac_ct_OBJC
 759 OBJCFLAGS
 760 OBJC
 761 ac_ct_AR
 762 AR
 763 AS
 764 LDCXX
 765 LD
 766 CXXCPP
 767 CPP
 768 CXX_VERSION_NUMBER
 769 CC_VERSION_NUMBER
 770 ac_ct_CXX
 771 CXXFLAGS
 772 CXX
 773 ac_ct_PROPER_COMPILER_CXX
 774 PROPER_COMPILER_CXX
 775 TOOLCHAIN_PATH_CXX
 776 POTENTIAL_CXX
 777 OBJEXT
 778 EXEEXT
 779 ac_ct_CC
 780 CPPFLAGS
 781 LDFLAGS
 782 CFLAGS
 783 CC
 784 ac_ct_PROPER_COMPILER_CC
 785 PROPER_COMPILER_CC
 786 TOOLCHAIN_PATH_CC
 787 POTENTIAL_CC
 788 SDKPATH
 789 XCODEBUILD
 790 SET_DEVELOPER_DIR
 791 VS_LIB
 792 VS_INCLUDE
 793 VS_PATH
 794 CYGWIN_LINK
 795 EXE_SUFFIX
 796 OBJ_SUFFIX
 797 STATIC_LIBRARY
 798 SHARED_LIBRARY
 799 STATIC_LIBRARY_SUFFIX
 800 SHARED_LIBRARY_SUFFIX
 801 LIBRARY_PREFIX
 802 TOOLCHAIN_TYPE
 803 BUILD_HOTSPOT
 804 HOTSPOT_DIST
 805 BUILD_OUTPUT
 806 OVERRIDE_SRC_ROOT
 807 ADD_SRC_ROOT
 808 JDK_TOPDIR
 809 NASHORN_TOPDIR
 810 HOTSPOT_TOPDIR
 811 JAXWS_TOPDIR
 812 JAXP_TOPDIR
 813 CORBA_TOPDIR
 814 LANGTOOLS_TOPDIR
 815 JAVA_FLAGS_SMALL
 816 JAVA_FLAGS_BIG
 817 JAVA_FLAGS
 818 BOOT_JDK_BITS
 819 JAVAC_FLAGS
 820 BOOT_JDK_SOURCETARGET
 821 BOOT_JDK
 822 BOOT_TOOLSJAR
 823 BOOT_RTJAR
 824 JAVA_CHECK
 825 JAVAC_CHECK
 826 COOKED_BUILD_NUMBER
 827 COOKED_JDK_UPDATE_VERSION
 828 JDK_VERSION
 829 COPYRIGHT_YEAR
 830 VENDOR_URL_VM_BUG
 831 VENDOR_URL_BUG
 832 VENDOR_URL
 833 COMPANY_NAME
 834 MACOSX_BUNDLE_ID_BASE
 835 MACOSX_BUNDLE_NAME_BASE
 836 JDK_RC_PLATFORM_NAME
 837 PRODUCT_SUFFIX
 838 PRODUCT_NAME
 839 LAUNCHER_NAME
 840 MILESTONE
 841 JDK_BUILD_NUMBER
 842 JDK_UPDATE_VERSION
 843 JDK_MICRO_VERSION
 844 JDK_MINOR_VERSION
 845 JDK_MAJOR_VERSION
 846 USER_RELEASE_SUFFIX
 847 ENABLE_JFR
 848 COMPRESS_JARS
 849 UNLIMITED_CRYPTO
 850 CACERTS_FILE
 851 TEST_IN_BUILD
 852 BUILD_HEADLESS
 853 SUPPORT_HEADFUL
 854 SUPPORT_HEADLESS
 855 BDEPS_FTP
 856 BDEPS_UNZIP
 857 OS_VERSION_MICRO
 858 OS_VERSION_MINOR
 859 OS_VERSION_MAJOR
 860 PKG_CONFIG
 861 CODESIGN
 862 XATTR
 863 DSYMUTIL
 864 IS_GNU_TIME
 865 TIME
 866 STAT
 867 HG
 868 READELF
 869 LDD
 870 ZIP
 871 UNZIP
 872 FIND_DELETE
 873 MAKE
 874 CHECK_TOOLSDIR_MAKE
 875 CHECK_TOOLSDIR_GMAKE
 876 CHECK_MAKE
 877 CHECK_GMAKE
 878 PKGHANDLER
 879 OUTPUT_ROOT
 880 CONF_NAME
 881 SPEC
 882 DEVKIT_LIB_DIR
 883 BUILD_VARIANT_RELEASE
 884 DEBUG_CLASSFILES
 885 FASTDEBUG
 886 VARIANT
 887 DEBUG_LEVEL
 888 MACOSX_UNIVERSAL
 889 INCLUDE_SA
 890 JVM_VARIANT_CORE
 891 JVM_VARIANT_ZEROSHARK
 892 JVM_VARIANT_ZERO
 893 JVM_VARIANT_KERNEL
 894 JVM_VARIANT_MINIMAL1
 895 JVM_VARIANT_CLIENT
 896 JVM_VARIANT_SERVER
 897 JVM_VARIANTS
 898 JVM_INTERPRETER
 899 JDK_VARIANT
 900 SET_OPENJDK
 901 BUILD_LOG_WRAPPER
 902 BUILD_LOG_PREVIOUS
 903 BUILD_LOG
 904 TOPDIR
 905 PATH_SEP
 906 ZERO_ARCHDEF
 907 DEFINE_CROSS_COMPILE_ARCH
 908 LP64
 909 OPENJDK_TARGET_OS_EXPORT_DIR
 910 OPENJDK_TARGET_OS_API_DIR
 911 OPENJDK_TARGET_CPU_JLI_CFLAGS
 912 OPENJDK_TARGET_CPU_OSARCH
 913 OPENJDK_TARGET_CPU_ISADIR
 914 OPENJDK_TARGET_CPU_LIBDIR
 915 OPENJDK_TARGET_CPU_LEGACY_LIB
 916 OPENJDK_TARGET_CPU_LEGACY
 917 REQUIRED_OS_VERSION
 918 REQUIRED_OS_NAME
 919 COMPILE_TYPE
 920 OPENJDK_TARGET_CPU_ENDIAN
 921 OPENJDK_TARGET_CPU_BITS
 922 OPENJDK_TARGET_CPU_ARCH
 923 OPENJDK_TARGET_CPU
 924 OPENJDK_TARGET_OS_ENV
 925 OPENJDK_TARGET_OS_API
 926 OPENJDK_TARGET_OS
 927 OPENJDK_BUILD_CPU_ENDIAN
 928 OPENJDK_BUILD_CPU_BITS
 929 OPENJDK_BUILD_CPU_ARCH
 930 OPENJDK_BUILD_CPU
 931 OPENJDK_BUILD_OS_ENV
 932 OPENJDK_BUILD_OS_API
 933 OPENJDK_BUILD_OS
 934 OPENJDK_BUILD_AUTOCONF_NAME
 935 OPENJDK_TARGET_AUTOCONF_NAME
 936 target_os
 937 target_vendor
 938 target_cpu
 939 target
 940 host_os
 941 host_vendor
 942 host_cpu
 943 host
 944 build_os
 945 build_vendor
 946 build_cpu
 947 build
 948 CPIO
 949 SETFILE
 950 DF
 951 READLINK
 952 CYGPATH
 953 SED
 954 FGREP
 955 EGREP
 956 GREP
 957 AWK
 958 XARGS
 959 WHICH
 960 WC
 961 UNIQ
 962 UNAME
 963 TR
 964 TOUCH
 965 TEE
 966 TAR
 967 TAIL
 968 SORT
 969 SH
 970 RM
 971 PRINTF
 972 NAWK
 973 MV
 974 MKTEMP
 975 MKDIR
 976 LS
 977 LN
 978 HEAD
 979 FIND
 980 FILE
 981 EXPR
 982 ECHO
 983 DIRNAME
 984 DIFF
 985 DATE
 986 CUT
 987 CP
 988 COMM
 989 CMP
 990 CHMOD
 991 CAT
 992 BASH
 993 BASENAME
 994 DATE_WHEN_CONFIGURED
 995 CONFIGURE_COMMAND_LINE
 996 CUSTOM_MAKE_DIR
 997 target_alias
 998 host_alias
 999 build_alias
1000 LIBS
1001 ECHO_T
1002 ECHO_N
1003 ECHO_C
1004 DEFS
1005 mandir
1006 localedir
1007 libdir
1008 psdir
1009 pdfdir
1010 dvidir
1011 htmldir
1012 infodir
1013 docdir
1014 oldincludedir
1015 includedir
1016 runstatedir
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 runstatedir='${localstatedir}/run'
1260 includedir='${prefix}/include'
1261 oldincludedir='/usr/include'
1262 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1263 infodir='${datarootdir}/info'
1264 htmldir='${docdir}'
1265 dvidir='${docdir}'
1266 pdfdir='${docdir}'
1267 psdir='${docdir}'
1268 libdir='${exec_prefix}/lib'
1269 localedir='${datarootdir}/locale'
1270 mandir='${datarootdir}/man'
1271 
1272 ac_prev=
1273 ac_dashdash=
1274 for ac_option
1275 do
1276   # If the previous option needs an argument, assign it.
1277   if test -n "$ac_prev"; then
1278     eval $ac_prev=\$ac_option
1279     ac_prev=
1280     continue
1281   fi
1282 
1283   case $ac_option in
1284   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1285   *=)   ac_optarg= ;;
1286   *)    ac_optarg=yes ;;
1287   esac
1288 
1289   # Accept the important Cygnus configure options, so we can diagnose typos.
1290 
1291   case $ac_dashdash$ac_option in
1292   --)
1293     ac_dashdash=yes ;;
1294 
1295   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1296     ac_prev=bindir ;;
1297   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1298     bindir=$ac_optarg ;;
1299 
1300   -build | --build | --buil | --bui | --bu)
1301     ac_prev=build_alias ;;
1302   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1303     build_alias=$ac_optarg ;;
1304 
1305   -cache-file | --cache-file | --cache-fil | --cache-fi \
1306   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1307     ac_prev=cache_file ;;
1308   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1309   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1310     cache_file=$ac_optarg ;;
1311 
1312   --config-cache | -C)
1313     cache_file=config.cache ;;
1314 
1315   -datadir | --datadir | --datadi | --datad)
1316     ac_prev=datadir ;;
1317   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1318     datadir=$ac_optarg ;;
1319 
1320   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1321   | --dataroo | --dataro | --datar)
1322     ac_prev=datarootdir ;;
1323   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1324   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1325     datarootdir=$ac_optarg ;;
1326 
1327   -disable-* | --disable-*)
1328     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1329     # Reject names that are not valid shell variable names.
1330     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331       as_fn_error $? "invalid feature name: $ac_useropt"
1332     ac_useropt_orig=$ac_useropt
1333     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334     case $ac_user_opts in
1335       *"
1336 "enable_$ac_useropt"
1337 "*) ;;
1338       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1339          ac_unrecognized_sep=', ';;
1340     esac
1341     eval enable_$ac_useropt=no ;;
1342 
1343   -docdir | --docdir | --docdi | --doc | --do)
1344     ac_prev=docdir ;;
1345   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1346     docdir=$ac_optarg ;;
1347 
1348   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1349     ac_prev=dvidir ;;
1350   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1351     dvidir=$ac_optarg ;;
1352 
1353   -enable-* | --enable-*)
1354     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1355     # Reject names that are not valid shell variable names.
1356     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357       as_fn_error $? "invalid feature name: $ac_useropt"
1358     ac_useropt_orig=$ac_useropt
1359     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360     case $ac_user_opts in
1361       *"
1362 "enable_$ac_useropt"
1363 "*) ;;
1364       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1365          ac_unrecognized_sep=', ';;
1366     esac
1367     eval enable_$ac_useropt=\$ac_optarg ;;
1368 
1369   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1370   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1371   | --exec | --exe | --ex)
1372     ac_prev=exec_prefix ;;
1373   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1374   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1375   | --exec=* | --exe=* | --ex=*)
1376     exec_prefix=$ac_optarg ;;
1377 
1378   -gas | --gas | --ga | --g)
1379     # Obsolete; use --with-gas.
1380     with_gas=yes ;;
1381 
1382   -help | --help | --hel | --he | -h)
1383     ac_init_help=long ;;
1384   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1385     ac_init_help=recursive ;;
1386   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1387     ac_init_help=short ;;
1388 
1389   -host | --host | --hos | --ho)
1390     ac_prev=host_alias ;;
1391   -host=* | --host=* | --hos=* | --ho=*)
1392     host_alias=$ac_optarg ;;
1393 
1394   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1395     ac_prev=htmldir ;;
1396   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1397   | --ht=*)
1398     htmldir=$ac_optarg ;;
1399 
1400   -includedir | --includedir | --includedi | --included | --include \
1401   | --includ | --inclu | --incl | --inc)
1402     ac_prev=includedir ;;
1403   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1404   | --includ=* | --inclu=* | --incl=* | --inc=*)
1405     includedir=$ac_optarg ;;
1406 
1407   -infodir | --infodir | --infodi | --infod | --info | --inf)
1408     ac_prev=infodir ;;
1409   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1410     infodir=$ac_optarg ;;
1411 
1412   -libdir | --libdir | --libdi | --libd)
1413     ac_prev=libdir ;;
1414   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1415     libdir=$ac_optarg ;;
1416 
1417   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1418   | --libexe | --libex | --libe)
1419     ac_prev=libexecdir ;;
1420   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1421   | --libexe=* | --libex=* | --libe=*)
1422     libexecdir=$ac_optarg ;;
1423 
1424   -localedir | --localedir | --localedi | --localed | --locale)
1425     ac_prev=localedir ;;
1426   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1427     localedir=$ac_optarg ;;
1428 
1429   -localstatedir | --localstatedir | --localstatedi | --localstated \
1430   | --localstate | --localstat | --localsta | --localst | --locals)
1431     ac_prev=localstatedir ;;
1432   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1433   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1434     localstatedir=$ac_optarg ;;
1435 
1436   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1437     ac_prev=mandir ;;
1438   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1439     mandir=$ac_optarg ;;
1440 
1441   -nfp | --nfp | --nf)
1442     # Obsolete; use --without-fp.
1443     with_fp=no ;;
1444 
1445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1446   | --no-cr | --no-c | -n)
1447     no_create=yes ;;
1448 
1449   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1450   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1451     no_recursion=yes ;;
1452 
1453   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1454   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1455   | --oldin | --oldi | --old | --ol | --o)
1456     ac_prev=oldincludedir ;;
1457   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1458   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1459   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1460     oldincludedir=$ac_optarg ;;
1461 
1462   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1463     ac_prev=prefix ;;
1464   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1465     prefix=$ac_optarg ;;
1466 
1467   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1468   | --program-pre | --program-pr | --program-p)
1469     ac_prev=program_prefix ;;
1470   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1471   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1472     program_prefix=$ac_optarg ;;
1473 
1474   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1475   | --program-suf | --program-su | --program-s)
1476     ac_prev=program_suffix ;;
1477   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1478   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1479     program_suffix=$ac_optarg ;;
1480 
1481   -program-transform-name | --program-transform-name \
1482   | --program-transform-nam | --program-transform-na \
1483   | --program-transform-n | --program-transform- \
1484   | --program-transform | --program-transfor \
1485   | --program-transfo | --program-transf \
1486   | --program-trans | --program-tran \
1487   | --progr-tra | --program-tr | --program-t)
1488     ac_prev=program_transform_name ;;
1489   -program-transform-name=* | --program-transform-name=* \
1490   | --program-transform-nam=* | --program-transform-na=* \
1491   | --program-transform-n=* | --program-transform-=* \
1492   | --program-transform=* | --program-transfor=* \
1493   | --program-transfo=* | --program-transf=* \
1494   | --program-trans=* | --program-tran=* \
1495   | --progr-tra=* | --program-tr=* | --program-t=*)
1496     program_transform_name=$ac_optarg ;;
1497 
1498   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1499     ac_prev=pdfdir ;;
1500   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1501     pdfdir=$ac_optarg ;;
1502 
1503   -psdir | --psdir | --psdi | --psd | --ps)
1504     ac_prev=psdir ;;
1505   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1506     psdir=$ac_optarg ;;
1507 
1508   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509   | -silent | --silent | --silen | --sile | --sil)
1510     silent=yes ;;
1511 
1512   -runstatedir | --runstatedir | --runstatedi | --runstated \
1513   | --runstate | --runstat | --runsta | --runst | --runs \
1514   | --run | --ru | --r)
1515     ac_prev=runstatedir ;;
1516   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1517   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1518   | --run=* | --ru=* | --r=*)
1519     runstatedir=$ac_optarg ;;
1520 
1521   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1522     ac_prev=sbindir ;;
1523   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1524   | --sbi=* | --sb=*)
1525     sbindir=$ac_optarg ;;
1526 
1527   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1528   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1529   | --sharedst | --shareds | --shared | --share | --shar \
1530   | --sha | --sh)
1531     ac_prev=sharedstatedir ;;
1532   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1533   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1534   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1535   | --sha=* | --sh=*)
1536     sharedstatedir=$ac_optarg ;;
1537 
1538   -site | --site | --sit)
1539     ac_prev=site ;;
1540   -site=* | --site=* | --sit=*)
1541     site=$ac_optarg ;;
1542 
1543   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1544     ac_prev=srcdir ;;
1545   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1546     srcdir=$ac_optarg ;;
1547 
1548   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1549   | --syscon | --sysco | --sysc | --sys | --sy)
1550     ac_prev=sysconfdir ;;
1551   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1552   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1553     sysconfdir=$ac_optarg ;;
1554 
1555   -target | --target | --targe | --targ | --tar | --ta | --t)
1556     ac_prev=target_alias ;;
1557   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1558     target_alias=$ac_optarg ;;
1559 
1560   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1561     verbose=yes ;;
1562 
1563   -version | --version | --versio | --versi | --vers | -V)
1564     ac_init_version=: ;;
1565 
1566   -with-* | --with-*)
1567     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1568     # Reject names that are not valid shell variable names.
1569     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1570       as_fn_error $? "invalid package name: $ac_useropt"
1571     ac_useropt_orig=$ac_useropt
1572     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1573     case $ac_user_opts in
1574       *"
1575 "with_$ac_useropt"
1576 "*) ;;
1577       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1578          ac_unrecognized_sep=', ';;
1579     esac
1580     eval with_$ac_useropt=\$ac_optarg ;;
1581 
1582   -without-* | --without-*)
1583     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1584     # Reject names that are not valid shell variable names.
1585     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586       as_fn_error $? "invalid package name: $ac_useropt"
1587     ac_useropt_orig=$ac_useropt
1588     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1589     case $ac_user_opts in
1590       *"
1591 "with_$ac_useropt"
1592 "*) ;;
1593       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1594          ac_unrecognized_sep=', ';;
1595     esac
1596     eval with_$ac_useropt=no ;;
1597 
1598   --x)
1599     # Obsolete; use --with-x.
1600     with_x=yes ;;
1601 
1602   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1603   | --x-incl | --x-inc | --x-in | --x-i)
1604     ac_prev=x_includes ;;
1605   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1606   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1607     x_includes=$ac_optarg ;;
1608 
1609   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1610   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1611     ac_prev=x_libraries ;;
1612   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1613   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1614     x_libraries=$ac_optarg ;;
1615 
1616   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1617 Try \`$0 --help' for more information"
1618     ;;
1619 
1620   *=*)
1621     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1622     # Reject names that are not valid shell variable names.
1623     case $ac_envvar in #(
1624       '' | [0-9]* | *[!_$as_cr_alnum]* )
1625       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1626     esac
1627     eval $ac_envvar=\$ac_optarg
1628     export $ac_envvar ;;
1629 
1630   *)
1631     # FIXME: should be removed in autoconf 3.0.
1632     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1633     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1634       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1635     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1636     ;;
1637 
1638   esac
1639 done
1640 
1641 if test -n "$ac_prev"; then
1642   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1643   as_fn_error $? "missing argument to $ac_option"
1644 fi
1645 
1646 if test -n "$ac_unrecognized_opts"; then
1647   case $enable_option_checking in
1648     no) ;;
1649     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1650     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1651   esac
1652 fi
1653 
1654 # Check all directory arguments for consistency.
1655 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1656                 datadir sysconfdir sharedstatedir localstatedir includedir \
1657                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1658                 libdir localedir mandir runstatedir
1659 do
1660   eval ac_val=\$$ac_var
1661   # Remove trailing slashes.
1662   case $ac_val in
1663     */ )
1664       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1665       eval $ac_var=\$ac_val;;
1666   esac
1667   # Be sure to have absolute directory names.
1668   case $ac_val in
1669     [\\/$]* | ?:[\\/]* )  continue;;
1670     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1671   esac
1672   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1673 done
1674 
1675 # There might be people who depend on the old broken behavior: `$host'
1676 # used to hold the argument of --host etc.
1677 # FIXME: To remove some day.
1678 build=$build_alias
1679 host=$host_alias
1680 target=$target_alias
1681 
1682 # FIXME: To remove some day.
1683 if test "x$host_alias" != x; then
1684   if test "x$build_alias" = x; then
1685     cross_compiling=maybe
1686   elif test "x$build_alias" != "x$host_alias"; then
1687     cross_compiling=yes
1688   fi
1689 fi
1690 
1691 ac_tool_prefix=
1692 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1693 
1694 test "$silent" = yes && exec 6>/dev/null
1695 
1696 
1697 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1698 ac_ls_di=`ls -di .` &&
1699 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1700   as_fn_error $? "working directory cannot be determined"
1701 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1702   as_fn_error $? "pwd does not report name of working directory"
1703 
1704 
1705 # Find the source files, if location was not specified.
1706 if test -z "$srcdir"; then
1707   ac_srcdir_defaulted=yes
1708   # Try the directory containing this script, then the parent directory.
1709   ac_confdir=`$as_dirname -- "$as_myself" ||
1710 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1711          X"$as_myself" : 'X\(//\)[^/]' \| \
1712          X"$as_myself" : 'X\(//\)$' \| \
1713          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1714 $as_echo X"$as_myself" |
1715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1716             s//\1/
1717             q
1718           }
1719           /^X\(\/\/\)[^/].*/{
1720             s//\1/
1721             q
1722           }
1723           /^X\(\/\/\)$/{
1724             s//\1/
1725             q
1726           }
1727           /^X\(\/\).*/{
1728             s//\1/
1729             q
1730           }
1731           s/.*/./; q'`
1732   srcdir=$ac_confdir
1733   if test ! -r "$srcdir/$ac_unique_file"; then
1734     srcdir=..
1735   fi
1736 else
1737   ac_srcdir_defaulted=no
1738 fi
1739 if test ! -r "$srcdir/$ac_unique_file"; then
1740   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1741   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1742 fi
1743 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1744 ac_abs_confdir=`(
1745         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1746         pwd)`
1747 # When building in place, set srcdir=.
1748 if test "$ac_abs_confdir" = "$ac_pwd"; then
1749   srcdir=.
1750 fi
1751 # Remove unnecessary trailing slashes from srcdir.
1752 # Double slashes in file names in object file debugging info
1753 # mess up M-x gdb in Emacs.
1754 case $srcdir in
1755 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1756 esac
1757 for ac_var in $ac_precious_vars; do
1758   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1759   eval ac_env_${ac_var}_value=\$${ac_var}
1760   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1761   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1762 done
1763 
1764 #
1765 # Report the --help message.
1766 #
1767 if test "$ac_init_help" = "long"; then
1768   # Omit some internal or obsolete options to make the list less imposing.
1769   # This message is too long to be a string in the A/UX 3.1 sh.
1770   cat <<_ACEOF
1771 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1772 
1773 Usage: $0 [OPTION]... [VAR=VALUE]...
1774 
1775 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1776 VAR=VALUE.  See below for descriptions of some of the useful variables.
1777 
1778 Defaults for the options are specified in brackets.
1779 
1780 Configuration:
1781   -h, --help              display this help and exit
1782       --help=short        display options specific to this package
1783       --help=recursive    display the short help of all the included packages
1784   -V, --version           display version information and exit
1785   -q, --quiet, --silent   do not print \`checking ...' messages
1786       --cache-file=FILE   cache test results in FILE [disabled]
1787   -C, --config-cache      alias for \`--cache-file=config.cache'
1788   -n, --no-create         do not create output files
1789       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1790 
1791 Installation directories:
1792   --prefix=PREFIX         install architecture-independent files in PREFIX
1793                           [$ac_default_prefix]
1794   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1795                           [PREFIX]
1796 
1797 By default, \`make install' will install all the files in
1798 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1799 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1800 for instance \`--prefix=\$HOME'.
1801 
1802 For better control, use the options below.
1803 
1804 Fine tuning of the installation directories:
1805   --bindir=DIR            user executables [EPREFIX/bin]
1806   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1807   --libexecdir=DIR        program executables [EPREFIX/libexec]
1808   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1809   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1810   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1811   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1812   --libdir=DIR            object code libraries [EPREFIX/lib]
1813   --includedir=DIR        C header files [PREFIX/include]
1814   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1815   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1816   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1817   --infodir=DIR           info documentation [DATAROOTDIR/info]
1818   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1819   --mandir=DIR            man documentation [DATAROOTDIR/man]
1820   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1821   --htmldir=DIR           html documentation [DOCDIR]
1822   --dvidir=DIR            dvi documentation [DOCDIR]
1823   --pdfdir=DIR            pdf documentation [DOCDIR]
1824   --psdir=DIR             ps documentation [DOCDIR]
1825 _ACEOF
1826 
1827   cat <<\_ACEOF
1828 
1829 X features:
1830   --x-includes=DIR    X include files are in DIR
1831   --x-libraries=DIR   X library files are in DIR
1832 
1833 System types:
1834   --build=BUILD     configure for building on BUILD [guessed]
1835   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1836   --target=TARGET   configure for building compilers for TARGET [HOST]
1837 _ACEOF
1838 fi
1839 
1840 if test -n "$ac_init_help"; then
1841   case $ac_init_help in
1842      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1843    esac
1844   cat <<\_ACEOF
1845 
1846 Optional Features:
1847   --disable-option-checking  ignore unrecognized --enable/--with options
1848   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1849   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1850   --enable-openjdk-only   suppress building custom source even if present
1851                           [disabled]
1852   --enable-debug          set the debug level to fastdebug (shorthand for
1853                           --with-debug-level=fastdebug) [disabled]
1854   --disable-headful       disable building headful support (graphical UI
1855                           support) [enabled]
1856   --enable-hotspot-test-in-build
1857                           run the Queens test after Hotspot build [disabled]
1858   --enable-unlimited-crypto
1859                           Enable unlimited crypto policy [disabled]
1860   --enable-jfr            Enable Java Flight Recorder support [disabled]
1861   --disable-debug-symbols disable generation of debug symbols [enabled]
1862   --disable-zip-debug-info
1863                           disable zipping of debug-info files [enabled]
1864   --enable-macosx-runtime-support
1865                           Deprecated. Option is kept for backwards
1866                           compatibility and is ignored
1867   --disable-freetype-bundling
1868                           disable bundling of the freetype library with the
1869                           build result [enabled on Windows or when using
1870                           --with-freetype, disabled otherwise]
1871   --enable-sjavac         use sjavac to do fast incremental compiles
1872                           [disabled]
1873   --disable-precompiled-headers
1874                           disable using precompiled headers when compiling C++
1875                           [enabled]
1876   --enable-ccache         enable using ccache to speed up recompilations
1877                           [disabled]
1878 
1879 Optional Packages:
1880   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1881   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1882   --with-custom-make-dir  use this directory for custom build/make files
1883   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1884                           support it), e.g. --with-target-bits=32 [guessed]
1885   --with-jdk-variant      JDK variant to build (normal) [normal]
1886   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1887   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1888                           client, minimal1, kernel, zero, zeroshark, core)
1889                           [server]
1890   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1891                           [release]
1892   --with-devkit           use this devkit for compilers, tools and resources
1893   --with-sys-root         alias for --with-sysroot for backwards compatability
1894   --with-sysroot          use this directory as sysroot)
1895   --with-tools-dir        alias for --with-toolchain-path for backwards
1896                           compatibility
1897   --with-toolchain-path   prepend these directories when searching for
1898                           toolchain binaries (compilers etc)
1899   --with-extra-path       prepend these directories to the default path
1900   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1901                           10.9 and later)
1902   --with-conf-name        use this as the name of the configuration [generated
1903                           from important configuration options]
1904   --with-builddeps-conf   use this configuration file for the builddeps
1905   --with-builddeps-server download and use build dependencies from this server
1906                           url
1907   --with-builddeps-dir    store downloaded build dependencies here
1908                           [/localhome/builddeps]
1909   --with-builddeps-group  chgrp the downloaded build dependencies to this
1910                           group
1911   --with-cacerts-file     specify alternative cacerts file
1912   --with-milestone        Set milestone value for build [internal]
1913   --with-update-version   Set update version value for build [b00]
1914   --with-user-release-suffix
1915                           Add a custom string to the version string if build
1916                           number isn't set.[username_builddateb00]
1917   --with-build-number     Set build number value for build [b00]
1918   --with-vendor-name      Set vendor name. Among others, used to set the
1919                           'java.vendor' and 'java.vm.vendor' system
1920                           properties. [not specified]
1921   --with-vendor-url       Set the 'java.vendor.url' system property [not
1922                           specified]
1923   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1924                           specified]
1925   --with-vendor-vm-bug-url
1926                           Sets the bug URL which will be displayed when the VM
1927                           crashes [not specified]
1928   --with-copyright-year   Set copyright year value for build [current year]
1929   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1930   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1931                           invocations of the Boot JDK, overriding the default
1932                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1933                           -enableassertions"
1934   --with-add-source-root  for each and every source directory, look in this
1935                           additional source root for the same directory; if it
1936                           exists and have files in it, include it in the build
1937   --with-override-source-root
1938                           for each and every source directory, look in this
1939                           override source root for the same directory; if it
1940                           exists, use that directory instead and ignore the
1941                           directory in the original source root
1942   --with-adds-and-overrides
1943                           use the subdirs 'adds' and 'overrides' in the
1944                           specified directory as add-source-root and
1945                           override-source-root
1946   --with-override-langtools
1947                           use this langtools dir for the build
1948   --with-override-corba   use this corba dir for the build
1949   --with-override-jaxp    use this jaxp dir for the build
1950   --with-override-jaxws   use this jaxws dir for the build
1951   --with-override-hotspot use this hotspot dir for the build
1952   --with-override-nashorn use this nashorn dir for the build
1953   --with-override-jdk     use this jdk dir for the build
1954   --with-import-hotspot   import hotspot binaries from this jdk image or
1955                           hotspot build dist dir instead of building from
1956                           source
1957   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1958                           to show possible values [platform dependent]
1959   --with-toolchain-version
1960                           the version of the toolchain to look for, use
1961                           '--help' to show possible values [platform
1962                           dependent]
1963   --with-jtreg            Regression Test Harness [probed]
1964   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1965   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1966   --with-extra-ldflags    extra flags to be used when linking jdk
1967   --with-extra-asflags    extra flags to be passed to the assembler
1968   --with-native-debug-symbols
1969                           set the native debug symbol configuration (none,
1970                           internal, external, zipped) [varying]
1971   --with-x                use the X Window System
1972   --with-cups             specify prefix directory for the cups package
1973                           (expecting the headers under PATH/include)
1974   --with-cups-include     specify directory for the cups include files
1975   --with-freetype         specify prefix directory for the freetype package
1976                           (expecting the libraries under PATH/lib and the
1977                           headers under PATH/include)
1978   --with-freetype-include specify directory for the freetype include files
1979   --with-freetype-lib     specify directory for the freetype library
1980   --with-freetype-src     specify directory with freetype sources to
1981                           automatically build the library (experimental,
1982                           Windows-only)
1983   --with-alsa             specify prefix directory for the alsa package
1984                           (expecting the libraries under PATH/lib and the
1985                           headers under PATH/include)
1986   --with-alsa-include     specify directory for the alsa include files
1987   --with-alsa-lib         specify directory for the alsa library
1988   --with-fontconfig       specify prefix directory for the fontconfig package
1989                           (expecting the headers under PATH/include)
1990   --with-fontconfig-include
1991                           specify directory for the fontconfig include files
1992   --with-giflib           use giflib from build system or OpenJDK source
1993                           (system, bundled) [bundled]
1994   --with-zlib             use zlib from build system or OpenJDK source
1995                           (system, bundled) [bundled]
1996   --with-stdc++lib=<static>,<dynamic>,<default>
1997                           force linking of the C++ runtime on Linux to either
1998                           static or dynamic, default is static with dynamic as
1999                           fallback
2000   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
2001                           (Windows only) [probed]
2002   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
2003                           (Windows only) [probed]
2004   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
2005                           only) [probed]
2006   --with-dxsdk            Deprecated. Option is kept for backwards
2007                           compatibility and is ignored
2008   --with-dxsdk-lib        Deprecated. Option is kept for backwards
2009                           compatibility and is ignored
2010   --with-dxsdk-include    Deprecated. Option is kept for backwards
2011                           compatibility and is ignored
2012   --with-num-cores        number of cores in the build system, e.g.
2013                           --with-num-cores=8 [probed]
2014   --with-memory-size      memory (in MB) available in the build system, e.g.
2015                           --with-memory-size=1024 [probed]
2016   --with-jobs             number of parallel jobs to let make run [calculated
2017                           based on cores and memory]
2018   --with-sjavac-server-java
2019                           use this java binary for running the sjavac
2020                           background server [Boot JDK java]
2021   --with-ccache-dir       where to store ccache files [~/.ccache]
2022 
2023 Some influential environment variables:
2024   BASENAME    Override default value for BASENAME
2025   BASH        Override default value for BASH
2026   CAT         Override default value for CAT
2027   CHMOD       Override default value for CHMOD
2028   CMP         Override default value for CMP
2029   COMM        Override default value for COMM
2030   CP          Override default value for CP
2031   CUT         Override default value for CUT
2032   DATE        Override default value for DATE
2033   DIFF        Override default value for DIFF
2034   DIRNAME     Override default value for DIRNAME
2035   ECHO        Override default value for ECHO
2036   EXPR        Override default value for EXPR
2037   FILE        Override default value for FILE
2038   FIND        Override default value for FIND
2039   HEAD        Override default value for HEAD
2040   LN          Override default value for LN
2041   LS          Override default value for LS
2042   MKDIR       Override default value for MKDIR
2043   MKTEMP      Override default value for MKTEMP
2044   MV          Override default value for MV
2045   NAWK        Override default value for NAWK
2046   PRINTF      Override default value for PRINTF
2047   RM          Override default value for RM
2048   SH          Override default value for SH
2049   SORT        Override default value for SORT
2050   TAIL        Override default value for TAIL
2051   TAR         Override default value for TAR
2052   TEE         Override default value for TEE
2053   TOUCH       Override default value for TOUCH
2054   TR          Override default value for TR
2055   UNAME       Override default value for UNAME
2056   UNIQ        Override default value for UNIQ
2057   WC          Override default value for WC
2058   WHICH       Override default value for WHICH
2059   XARGS       Override default value for XARGS
2060   AWK         Override default value for AWK
2061   GREP        Override default value for GREP
2062   EGREP       Override default value for EGREP
2063   FGREP       Override default value for FGREP
2064   SED         Override default value for SED
2065   CYGPATH     Override default value for CYGPATH
2066   READLINK    Override default value for READLINK
2067   DF          Override default value for DF
2068   SETFILE     Override default value for SETFILE
2069   CPIO        Override default value for CPIO
2070   UNZIP       Override default value for UNZIP
2071   ZIP         Override default value for ZIP
2072   LDD         Override default value for LDD
2073   READELF     Override default value for READELF
2074   HG          Override default value for HG
2075   STAT        Override default value for STAT
2076   TIME        Override default value for TIME
2077   DSYMUTIL    Override default value for DSYMUTIL
2078   XATTR       Override default value for XATTR
2079   CODESIGN    Override default value for CODESIGN
2080   PKG_CONFIG  path to pkg-config utility
2081   CC          C compiler command
2082   CFLAGS      C compiler flags
2083   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2084               nonstandard directory <lib dir>
2085   LIBS        libraries to pass to the linker, e.g. -l<library>
2086   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2087               you have headers in a nonstandard directory <include dir>
2088   CXX         C++ compiler command
2089   CXXFLAGS    C++ compiler flags
2090   CPP         C preprocessor
2091   CXXCPP      C++ preprocessor
2092   AS          Override default value for AS
2093   AR          Override default value for AR
2094   OBJC        Objective C compiler command
2095   OBJCFLAGS   Objective C compiler flags
2096   LIPO        Override default value for LIPO
2097   STRIP       Override default value for STRIP
2098   NM          Override default value for NM
2099   GNM         Override default value for GNM
2100   MCS         Override default value for MCS
2101   OBJCOPY     Override default value for OBJCOPY
2102   OBJDUMP     Override default value for OBJDUMP
2103   BUILD_CC    Override default value for BUILD_CC
2104   BUILD_CXX   Override default value for BUILD_CXX
2105   BUILD_LD    Override default value for BUILD_LD
2106   JTREGEXE    Override default value for JTREGEXE
2107   XMKMF       Path to xmkmf, Makefile generator for X Window System
2108   FREETYPE_CFLAGS
2109               C compiler flags for FREETYPE, overriding pkg-config
2110   FREETYPE_LIBS
2111               linker flags for FREETYPE, overriding pkg-config
2112   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2113   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2114   LIBFFI_CFLAGS
2115               C compiler flags for LIBFFI, overriding pkg-config
2116   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2117   CCACHE      Override default value for CCACHE
2118 
2119 Use these variables to override the choices made by `configure' or to help
2120 it to find libraries and programs with nonstandard names/locations.
2121 
2122 Report bugs to <build-dev@openjdk.java.net>.
2123 OpenJDK home page: <http://openjdk.java.net>.
2124 _ACEOF
2125 ac_status=$?
2126 fi
2127 
2128 if test "$ac_init_help" = "recursive"; then
2129   # If there are subdirs, report their specific --help.
2130   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2131     test -d "$ac_dir" ||
2132       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2133       continue
2134     ac_builddir=.
2135 
2136 case "$ac_dir" in
2137 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2138 *)
2139   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2140   # A ".." for each directory in $ac_dir_suffix.
2141   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2142   case $ac_top_builddir_sub in
2143   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2144   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2145   esac ;;
2146 esac
2147 ac_abs_top_builddir=$ac_pwd
2148 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2149 # for backward compatibility:
2150 ac_top_builddir=$ac_top_build_prefix
2151 
2152 case $srcdir in
2153   .)  # We are building in place.
2154     ac_srcdir=.
2155     ac_top_srcdir=$ac_top_builddir_sub
2156     ac_abs_top_srcdir=$ac_pwd ;;
2157   [\\/]* | ?:[\\/]* )  # Absolute name.
2158     ac_srcdir=$srcdir$ac_dir_suffix;
2159     ac_top_srcdir=$srcdir
2160     ac_abs_top_srcdir=$srcdir ;;
2161   *) # Relative name.
2162     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2163     ac_top_srcdir=$ac_top_build_prefix$srcdir
2164     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2165 esac
2166 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2167 
2168     cd "$ac_dir" || { ac_status=$?; continue; }
2169     # Check for guested configure.
2170     if test -f "$ac_srcdir/configure.gnu"; then
2171       echo &&
2172       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2173     elif test -f "$ac_srcdir/configure"; then
2174       echo &&
2175       $SHELL "$ac_srcdir/configure" --help=recursive
2176     else
2177       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2178     fi || ac_status=$?
2179     cd "$ac_pwd" || { ac_status=$?; break; }
2180   done
2181 fi
2182 
2183 test -n "$ac_init_help" && exit $ac_status
2184 if $ac_init_version; then
2185   cat <<\_ACEOF
2186 OpenJDK configure jdk8
2187 generated by GNU Autoconf 2.69
2188 
2189 Copyright (C) 2012 Free Software Foundation, Inc.
2190 This configure script is free software; the Free Software Foundation
2191 gives unlimited permission to copy, distribute and modify it.
2192 _ACEOF
2193   exit
2194 fi
2195 
2196 ## ------------------------ ##
2197 ## Autoconf initialization. ##
2198 ## ------------------------ ##
2199 
2200 # ac_fn_c_try_compile LINENO
2201 # --------------------------
2202 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2203 ac_fn_c_try_compile ()
2204 {
2205   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206   rm -f conftest.$ac_objext
2207   if { { ac_try="$ac_compile"
2208 case "(($ac_try" in
2209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2210   *) ac_try_echo=$ac_try;;
2211 esac
2212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2213 $as_echo "$ac_try_echo"; } >&5
2214   (eval "$ac_compile") 2>conftest.err
2215   ac_status=$?
2216   if test -s conftest.err; then
2217     grep -v '^ *+' conftest.err >conftest.er1
2218     cat conftest.er1 >&5
2219     mv -f conftest.er1 conftest.err
2220   fi
2221   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2222   test $ac_status = 0; } && {
2223          test -z "$ac_c_werror_flag" ||
2224          test ! -s conftest.err
2225        } && test -s conftest.$ac_objext; then :
2226   ac_retval=0
2227 else
2228   $as_echo "$as_me: failed program was:" >&5
2229 sed 's/^/| /' conftest.$ac_ext >&5
2230 
2231         ac_retval=1
2232 fi
2233   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234   as_fn_set_status $ac_retval
2235 
2236 } # ac_fn_c_try_compile
2237 
2238 # ac_fn_cxx_try_compile LINENO
2239 # ----------------------------
2240 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2241 ac_fn_cxx_try_compile ()
2242 {
2243   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244   rm -f conftest.$ac_objext
2245   if { { ac_try="$ac_compile"
2246 case "(($ac_try" in
2247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2248   *) ac_try_echo=$ac_try;;
2249 esac
2250 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2251 $as_echo "$ac_try_echo"; } >&5
2252   (eval "$ac_compile") 2>conftest.err
2253   ac_status=$?
2254   if test -s conftest.err; then
2255     grep -v '^ *+' conftest.err >conftest.er1
2256     cat conftest.er1 >&5
2257     mv -f conftest.er1 conftest.err
2258   fi
2259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2260   test $ac_status = 0; } && {
2261          test -z "$ac_cxx_werror_flag" ||
2262          test ! -s conftest.err
2263        } && test -s conftest.$ac_objext; then :
2264   ac_retval=0
2265 else
2266   $as_echo "$as_me: failed program was:" >&5
2267 sed 's/^/| /' conftest.$ac_ext >&5
2268 
2269         ac_retval=1
2270 fi
2271   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272   as_fn_set_status $ac_retval
2273 
2274 } # ac_fn_cxx_try_compile
2275 
2276 # ac_fn_c_try_cpp LINENO
2277 # ----------------------
2278 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_c_try_cpp ()
2280 {
2281   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282   if { { ac_try="$ac_cpp conftest.$ac_ext"
2283 case "(($ac_try" in
2284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2285   *) ac_try_echo=$ac_try;;
2286 esac
2287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2288 $as_echo "$ac_try_echo"; } >&5
2289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2290   ac_status=$?
2291   if test -s conftest.err; then
2292     grep -v '^ *+' conftest.err >conftest.er1
2293     cat conftest.er1 >&5
2294     mv -f conftest.er1 conftest.err
2295   fi
2296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2297   test $ac_status = 0; } > conftest.i && {
2298          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2299          test ! -s conftest.err
2300        }; then :
2301   ac_retval=0
2302 else
2303   $as_echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2305 
2306     ac_retval=1
2307 fi
2308   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309   as_fn_set_status $ac_retval
2310 
2311 } # ac_fn_c_try_cpp
2312 
2313 # ac_fn_cxx_try_cpp LINENO
2314 # ------------------------
2315 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2316 ac_fn_cxx_try_cpp ()
2317 {
2318   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319   if { { ac_try="$ac_cpp conftest.$ac_ext"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2327   ac_status=$?
2328   if test -s conftest.err; then
2329     grep -v '^ *+' conftest.err >conftest.er1
2330     cat conftest.er1 >&5
2331     mv -f conftest.er1 conftest.err
2332   fi
2333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334   test $ac_status = 0; } > conftest.i && {
2335          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2336          test ! -s conftest.err
2337        }; then :
2338   ac_retval=0
2339 else
2340   $as_echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342 
2343     ac_retval=1
2344 fi
2345   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346   as_fn_set_status $ac_retval
2347 
2348 } # ac_fn_cxx_try_cpp
2349 
2350 # ac_fn_objc_try_compile LINENO
2351 # -----------------------------
2352 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2353 ac_fn_objc_try_compile ()
2354 {
2355   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356   rm -f conftest.$ac_objext
2357   if { { ac_try="$ac_compile"
2358 case "(($ac_try" in
2359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360   *) ac_try_echo=$ac_try;;
2361 esac
2362 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363 $as_echo "$ac_try_echo"; } >&5
2364   (eval "$ac_compile") 2>conftest.err
2365   ac_status=$?
2366   if test -s conftest.err; then
2367     grep -v '^ *+' conftest.err >conftest.er1
2368     cat conftest.er1 >&5
2369     mv -f conftest.er1 conftest.err
2370   fi
2371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2372   test $ac_status = 0; } && {
2373          test -z "$ac_objc_werror_flag" ||
2374          test ! -s conftest.err
2375        } && test -s conftest.$ac_objext; then :
2376   ac_retval=0
2377 else
2378   $as_echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2380 
2381         ac_retval=1
2382 fi
2383   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384   as_fn_set_status $ac_retval
2385 
2386 } # ac_fn_objc_try_compile
2387 
2388 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2389 # ---------------------------------------------------------
2390 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2391 # the include files in INCLUDES and setting the cache variable VAR
2392 # accordingly.
2393 ac_fn_cxx_check_header_mongrel ()
2394 {
2395   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396   if eval \${$3+:} false; then :
2397   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2398 $as_echo_n "checking for $2... " >&6; }
2399 if eval \${$3+:} false; then :
2400   $as_echo_n "(cached) " >&6
2401 fi
2402 eval ac_res=\$$3
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 else
2406   # Is the header compilable?
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2408 $as_echo_n "checking $2 usability... " >&6; }
2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2410 /* end confdefs.h.  */
2411 $4
2412 #include <$2>
2413 _ACEOF
2414 if ac_fn_cxx_try_compile "$LINENO"; then :
2415   ac_header_compiler=yes
2416 else
2417   ac_header_compiler=no
2418 fi
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2421 $as_echo "$ac_header_compiler" >&6; }
2422 
2423 # Is the header present?
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2425 $as_echo_n "checking $2 presence... " >&6; }
2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2427 /* end confdefs.h.  */
2428 #include <$2>
2429 _ACEOF
2430 if ac_fn_cxx_try_cpp "$LINENO"; then :
2431   ac_header_preproc=yes
2432 else
2433   ac_header_preproc=no
2434 fi
2435 rm -f conftest.err conftest.i conftest.$ac_ext
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2437 $as_echo "$ac_header_preproc" >&6; }
2438 
2439 # So?  What about this header?
2440 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2441   yes:no: )
2442     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2443 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2444     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2445 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2446     ;;
2447   no:yes:* )
2448     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2449 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2450     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2451 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2452     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2453 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2454     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2455 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2456     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2457 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2458 ( $as_echo "## ----------------------------------------- ##
2459 ## Report this to build-dev@openjdk.java.net ##
2460 ## ----------------------------------------- ##"
2461      ) | sed "s/^/$as_me: WARNING:     /" >&2
2462     ;;
2463 esac
2464   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2465 $as_echo_n "checking for $2... " >&6; }
2466 if eval \${$3+:} false; then :
2467   $as_echo_n "(cached) " >&6
2468 else
2469   eval "$3=\$ac_header_compiler"
2470 fi
2471 eval ac_res=\$$3
2472                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2473 $as_echo "$ac_res" >&6; }
2474 fi
2475   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2476 
2477 } # ac_fn_cxx_check_header_mongrel
2478 
2479 # ac_fn_cxx_try_run LINENO
2480 # ------------------------
2481 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2482 # that executables *can* be run.
2483 ac_fn_cxx_try_run ()
2484 {
2485   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486   if { { ac_try="$ac_link"
2487 case "(($ac_try" in
2488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489   *) ac_try_echo=$ac_try;;
2490 esac
2491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2492 $as_echo "$ac_try_echo"; } >&5
2493   (eval "$ac_link") 2>&5
2494   ac_status=$?
2495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2496   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2497   { { case "(($ac_try" in
2498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499   *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 $as_echo "$ac_try_echo"; } >&5
2503   (eval "$ac_try") 2>&5
2504   ac_status=$?
2505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506   test $ac_status = 0; }; }; then :
2507   ac_retval=0
2508 else
2509   $as_echo "$as_me: program exited with status $ac_status" >&5
2510        $as_echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2512 
2513        ac_retval=$ac_status
2514 fi
2515   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2516   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2517   as_fn_set_status $ac_retval
2518 
2519 } # ac_fn_cxx_try_run
2520 
2521 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2522 # ---------------------------------------------------------
2523 # Tests whether HEADER exists and can be compiled using the include files in
2524 # INCLUDES, setting the cache variable VAR accordingly.
2525 ac_fn_cxx_check_header_compile ()
2526 {
2527   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2529 $as_echo_n "checking for $2... " >&6; }
2530 if eval \${$3+:} false; then :
2531   $as_echo_n "(cached) " >&6
2532 else
2533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h.  */
2535 $4
2536 #include <$2>
2537 _ACEOF
2538 if ac_fn_cxx_try_compile "$LINENO"; then :
2539   eval "$3=yes"
2540 else
2541   eval "$3=no"
2542 fi
2543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2544 fi
2545 eval ac_res=\$$3
2546                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2547 $as_echo "$ac_res" >&6; }
2548   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2549 
2550 } # ac_fn_cxx_check_header_compile
2551 
2552 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2553 # ----------------------------------------------
2554 # Tries to find the compile-time value of EXPR in a program that includes
2555 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2556 # computed
2557 ac_fn_cxx_compute_int ()
2558 {
2559   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2560   if test "$cross_compiling" = yes; then
2561     # Depending upon the size, compute the lo and hi bounds.
2562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2563 /* end confdefs.h.  */
2564 $4
2565 int
2566 main ()
2567 {
2568 static int test_array [1 - 2 * !(($2) >= 0)];
2569 test_array [0] = 0;
2570 return test_array [0];
2571 
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 if ac_fn_cxx_try_compile "$LINENO"; then :
2577   ac_lo=0 ac_mid=0
2578   while :; do
2579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int
2583 main ()
2584 {
2585 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2586 test_array [0] = 0;
2587 return test_array [0];
2588 
2589   ;
2590   return 0;
2591 }
2592 _ACEOF
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2594   ac_hi=$ac_mid; break
2595 else
2596   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2597                         if test $ac_lo -le $ac_mid; then
2598                           ac_lo= ac_hi=
2599                           break
2600                         fi
2601                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2602 fi
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604   done
2605 else
2606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2607 /* end confdefs.h.  */
2608 $4
2609 int
2610 main ()
2611 {
2612 static int test_array [1 - 2 * !(($2) < 0)];
2613 test_array [0] = 0;
2614 return test_array [0];
2615 
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_cxx_try_compile "$LINENO"; then :
2621   ac_hi=-1 ac_mid=-1
2622   while :; do
2623     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h.  */
2625 $4
2626 int
2627 main ()
2628 {
2629 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2630 test_array [0] = 0;
2631 return test_array [0];
2632 
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_cxx_try_compile "$LINENO"; then :
2638   ac_lo=$ac_mid; break
2639 else
2640   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2641                         if test $ac_mid -le $ac_hi; then
2642                           ac_lo= ac_hi=
2643                           break
2644                         fi
2645                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648   done
2649 else
2650   ac_lo= ac_hi=
2651 fi
2652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 # Binary search between lo and hi bounds.
2656 while test "x$ac_lo" != "x$ac_hi"; do
2657   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2659 /* end confdefs.h.  */
2660 $4
2661 int
2662 main ()
2663 {
2664 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2665 test_array [0] = 0;
2666 return test_array [0];
2667 
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 if ac_fn_cxx_try_compile "$LINENO"; then :
2673   ac_hi=$ac_mid
2674 else
2675   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2676 fi
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2678 done
2679 case $ac_lo in #((
2680 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2681 '') ac_retval=1 ;;
2682 esac
2683   else
2684     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2685 /* end confdefs.h.  */
2686 $4
2687 static long int longval () { return $2; }
2688 static unsigned long int ulongval () { return $2; }
2689 #include <stdio.h>
2690 #include <stdlib.h>
2691 int
2692 main ()
2693 {
2694 
2695   FILE *f = fopen ("conftest.val", "w");
2696   if (! f)
2697     return 1;
2698   if (($2) < 0)
2699     {
2700       long int i = longval ();
2701       if (i != ($2))
2702         return 1;
2703       fprintf (f, "%ld", i);
2704     }
2705   else
2706     {
2707       unsigned long int i = ulongval ();
2708       if (i != ($2))
2709         return 1;
2710       fprintf (f, "%lu", i);
2711     }
2712   /* Do not output a trailing newline, as this causes \r\n confusion
2713      on some platforms.  */
2714   return ferror (f) || fclose (f) != 0;
2715 
2716   ;
2717   return 0;
2718 }
2719 _ACEOF
2720 if ac_fn_cxx_try_run "$LINENO"; then :
2721   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2722 else
2723   ac_retval=1
2724 fi
2725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2726   conftest.$ac_objext conftest.beam conftest.$ac_ext
2727 rm -f conftest.val
2728 
2729   fi
2730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2731   as_fn_set_status $ac_retval
2732 
2733 } # ac_fn_cxx_compute_int
2734 
2735 # ac_fn_cxx_try_link LINENO
2736 # -------------------------
2737 # Try to link conftest.$ac_ext, and return whether this succeeded.
2738 ac_fn_cxx_try_link ()
2739 {
2740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2741   rm -f conftest.$ac_objext conftest$ac_exeext
2742   if { { ac_try="$ac_link"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2748 $as_echo "$ac_try_echo"; } >&5
2749   (eval "$ac_link") 2>conftest.err
2750   ac_status=$?
2751   if test -s conftest.err; then
2752     grep -v '^ *+' conftest.err >conftest.er1
2753     cat conftest.er1 >&5
2754     mv -f conftest.er1 conftest.err
2755   fi
2756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2757   test $ac_status = 0; } && {
2758          test -z "$ac_cxx_werror_flag" ||
2759          test ! -s conftest.err
2760        } && test -s conftest$ac_exeext && {
2761          test "$cross_compiling" = yes ||
2762          test -x conftest$ac_exeext
2763        }; then :
2764   ac_retval=0
2765 else
2766   $as_echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768 
2769         ac_retval=1
2770 fi
2771   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2772   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2773   # interfere with the next link command; also delete a directory that is
2774   # left behind by Apple's compiler.  We do this before executing the actions.
2775   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2776   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2777   as_fn_set_status $ac_retval
2778 
2779 } # ac_fn_cxx_try_link
2780 
2781 # ac_fn_cxx_check_func LINENO FUNC VAR
2782 # ------------------------------------
2783 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2784 ac_fn_cxx_check_func ()
2785 {
2786   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2788 $as_echo_n "checking for $2... " >&6; }
2789 if eval \${$3+:} false; then :
2790   $as_echo_n "(cached) " >&6
2791 else
2792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h.  */
2794 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2796 #define $2 innocuous_$2
2797 
2798 /* System header to define __stub macros and hopefully few prototypes,
2799     which can conflict with char $2 (); below.
2800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2801     <limits.h> exists even on freestanding compilers.  */
2802 
2803 #ifdef __STDC__
2804 # include <limits.h>
2805 #else
2806 # include <assert.h>
2807 #endif
2808 
2809 #undef $2
2810 
2811 /* Override any GCC internal prototype to avoid an error.
2812    Use char because int might match the return type of a GCC
2813    builtin and then its argument prototype would still apply.  */
2814 #ifdef __cplusplus
2815 extern "C"
2816 #endif
2817 char $2 ();
2818 /* The GNU C library defines this for functions which it implements
2819     to always fail with ENOSYS.  Some functions are actually named
2820     something starting with __ and the normal name is an alias.  */
2821 #if defined __stub_$2 || defined __stub___$2
2822 choke me
2823 #endif
2824 
2825 int
2826 main ()
2827 {
2828 return $2 ();
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 if ac_fn_cxx_try_link "$LINENO"; then :
2834   eval "$3=yes"
2835 else
2836   eval "$3=no"
2837 fi
2838 rm -f core conftest.err conftest.$ac_objext \
2839     conftest$ac_exeext conftest.$ac_ext
2840 fi
2841 eval ac_res=\$$3
2842                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2843 $as_echo "$ac_res" >&6; }
2844   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2845 
2846 } # ac_fn_cxx_check_func
2847 
2848 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2849 # -------------------------------------------------------
2850 # Tests whether HEADER exists and can be compiled using the include files in
2851 # INCLUDES, setting the cache variable VAR accordingly.
2852 ac_fn_c_check_header_compile ()
2853 {
2854   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2856 $as_echo_n "checking for $2... " >&6; }
2857 if eval \${$3+:} false; then :
2858   $as_echo_n "(cached) " >&6
2859 else
2860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h.  */
2862 $4
2863 #include <$2>
2864 _ACEOF
2865 if ac_fn_c_try_compile "$LINENO"; then :
2866   eval "$3=yes"
2867 else
2868   eval "$3=no"
2869 fi
2870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 fi
2872 eval ac_res=\$$3
2873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874 $as_echo "$ac_res" >&6; }
2875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2876 
2877 } # ac_fn_c_check_header_compile
2878 cat >config.log <<_ACEOF
2879 This file contains any messages produced by compilers while
2880 running configure, to aid debugging if configure makes a mistake.
2881 
2882 It was created by OpenJDK $as_me jdk8, which was
2883 generated by GNU Autoconf 2.69.  Invocation command line was
2884 
2885   $ $0 $@
2886 
2887 _ACEOF
2888 exec 5>>config.log
2889 {
2890 cat <<_ASUNAME
2891 ## --------- ##
2892 ## Platform. ##
2893 ## --------- ##
2894 
2895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2900 
2901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2902 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2903 
2904 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2905 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2907 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2908 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2909 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2910 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2911 
2912 _ASUNAME
2913 
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917   IFS=$as_save_IFS
2918   test -z "$as_dir" && as_dir=.
2919     $as_echo "PATH: $as_dir"
2920   done
2921 IFS=$as_save_IFS
2922 
2923 } >&5
2924 
2925 cat >&5 <<_ACEOF
2926 
2927 
2928 ## ----------- ##
2929 ## Core tests. ##
2930 ## ----------- ##
2931 
2932 _ACEOF
2933 
2934 
2935 # Keep a trace of the command line.
2936 # Strip out --no-create and --no-recursion so they do not pile up.
2937 # Strip out --silent because we don't want to record it for future runs.
2938 # Also quote any args containing shell meta-characters.
2939 # Make two passes to allow for proper duplicate-argument suppression.
2940 ac_configure_args=
2941 ac_configure_args0=
2942 ac_configure_args1=
2943 ac_must_keep_next=false
2944 for ac_pass in 1 2
2945 do
2946   for ac_arg
2947   do
2948     case $ac_arg in
2949     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2950     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2951     | -silent | --silent | --silen | --sile | --sil)
2952       continue ;;
2953     *\'*)
2954       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2955     esac
2956     case $ac_pass in
2957     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2958     2)
2959       as_fn_append ac_configure_args1 " '$ac_arg'"
2960       if test $ac_must_keep_next = true; then
2961         ac_must_keep_next=false # Got value, back to normal.
2962       else
2963         case $ac_arg in
2964           *=* | --config-cache | -C | -disable-* | --disable-* \
2965           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2966           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2967           | -with-* | --with-* | -without-* | --without-* | --x)
2968             case "$ac_configure_args0 " in
2969               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2970             esac
2971             ;;
2972           -* ) ac_must_keep_next=true ;;
2973         esac
2974       fi
2975       as_fn_append ac_configure_args " '$ac_arg'"
2976       ;;
2977     esac
2978   done
2979 done
2980 { ac_configure_args0=; unset ac_configure_args0;}
2981 { ac_configure_args1=; unset ac_configure_args1;}
2982 
2983 # When interrupted or exit'd, cleanup temporary files, and complete
2984 # config.log.  We remove comments because anyway the quotes in there
2985 # would cause problems or look ugly.
2986 # WARNING: Use '\'' to represent an apostrophe within the trap.
2987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2988 trap 'exit_status=$?
2989   # Save into config.log some information that might help in debugging.
2990   {
2991     echo
2992 
2993     $as_echo "## ---------------- ##
2994 ## Cache variables. ##
2995 ## ---------------- ##"
2996     echo
2997     # The following way of writing the cache mishandles newlines in values,
2998 (
2999   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3000     eval ac_val=\$$ac_var
3001     case $ac_val in #(
3002     *${as_nl}*)
3003       case $ac_var in #(
3004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3006       esac
3007       case $ac_var in #(
3008       _ | IFS | as_nl) ;; #(
3009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3010       *) { eval $ac_var=; unset $ac_var;} ;;
3011       esac ;;
3012     esac
3013   done
3014   (set) 2>&1 |
3015     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3016     *${as_nl}ac_space=\ *)
3017       sed -n \
3018         "s/'\''/'\''\\\\'\'''\''/g;
3019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3020       ;; #(
3021     *)
3022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3023       ;;
3024     esac |
3025     sort
3026 )
3027     echo
3028 
3029     $as_echo "## ----------------- ##
3030 ## Output variables. ##
3031 ## ----------------- ##"
3032     echo
3033     for ac_var in $ac_subst_vars
3034     do
3035       eval ac_val=\$$ac_var
3036       case $ac_val in
3037       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3038       esac
3039       $as_echo "$ac_var='\''$ac_val'\''"
3040     done | sort
3041     echo
3042 
3043     if test -n "$ac_subst_files"; then
3044       $as_echo "## ------------------- ##
3045 ## File substitutions. ##
3046 ## ------------------- ##"
3047       echo
3048       for ac_var in $ac_subst_files
3049       do
3050         eval ac_val=\$$ac_var
3051         case $ac_val in
3052         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3053         esac
3054         $as_echo "$ac_var='\''$ac_val'\''"
3055       done | sort
3056       echo
3057     fi
3058 
3059     if test -s confdefs.h; then
3060       $as_echo "## ----------- ##
3061 ## confdefs.h. ##
3062 ## ----------- ##"
3063       echo
3064       cat confdefs.h
3065       echo
3066     fi
3067     test "$ac_signal" != 0 &&
3068       $as_echo "$as_me: caught signal $ac_signal"
3069     $as_echo "$as_me: exit $exit_status"
3070   } >&5
3071   rm -f core *.core core.conftest.* &&
3072     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3073     exit $exit_status
3074 ' 0
3075 for ac_signal in 1 2 13 15; do
3076   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3077 done
3078 ac_signal=0
3079 
3080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3081 rm -f -r conftest* confdefs.h
3082 
3083 $as_echo "/* confdefs.h */" > confdefs.h
3084 
3085 # Predefined preprocessor variables.
3086 
3087 cat >>confdefs.h <<_ACEOF
3088 #define PACKAGE_NAME "$PACKAGE_NAME"
3089 _ACEOF
3090 
3091 cat >>confdefs.h <<_ACEOF
3092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3093 _ACEOF
3094 
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3097 _ACEOF
3098 
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_STRING "$PACKAGE_STRING"
3101 _ACEOF
3102 
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3105 _ACEOF
3106 
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_URL "$PACKAGE_URL"
3109 _ACEOF
3110 
3111 
3112 # Let the site file select an alternate cache file if it wants to.
3113 # Prefer an explicitly selected file to automatically selected ones.
3114 ac_site_file1=NONE
3115 ac_site_file2=NONE
3116 if test -n "$CONFIG_SITE"; then
3117   # We do not want a PATH search for config.site.
3118   case $CONFIG_SITE in #((
3119     -*)  ac_site_file1=./$CONFIG_SITE;;
3120     */*) ac_site_file1=$CONFIG_SITE;;
3121     *)   ac_site_file1=./$CONFIG_SITE;;
3122   esac
3123 elif test "x$prefix" != xNONE; then
3124   ac_site_file1=$prefix/share/config.site
3125   ac_site_file2=$prefix/etc/config.site
3126 else
3127   ac_site_file1=$ac_default_prefix/share/config.site
3128   ac_site_file2=$ac_default_prefix/etc/config.site
3129 fi
3130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3131 do
3132   test "x$ac_site_file" = xNONE && continue
3133   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3134     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3136     sed 's/^/| /' "$ac_site_file" >&5
3137     . "$ac_site_file" \
3138       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3140 as_fn_error $? "failed to load site script $ac_site_file
3141 See \`config.log' for more details" "$LINENO" 5; }
3142   fi
3143 done
3144 
3145 if test -r "$cache_file"; then
3146   # Some versions of bash will fail to source /dev/null (special files
3147   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3148   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3149     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3150 $as_echo "$as_me: loading cache $cache_file" >&6;}
3151     case $cache_file in
3152       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3153       *)                      . "./$cache_file";;
3154     esac
3155   fi
3156 else
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3158 $as_echo "$as_me: creating cache $cache_file" >&6;}
3159   >$cache_file
3160 fi
3161 
3162 # Check that the precious variables saved in the cache have kept the same
3163 # value.
3164 ac_cache_corrupted=false
3165 for ac_var in $ac_precious_vars; do
3166   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3167   eval ac_new_set=\$ac_env_${ac_var}_set
3168   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3169   eval ac_new_val=\$ac_env_${ac_var}_value
3170   case $ac_old_set,$ac_new_set in
3171     set,)
3172       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3174       ac_cache_corrupted=: ;;
3175     ,set)
3176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3178       ac_cache_corrupted=: ;;
3179     ,);;
3180     *)
3181       if test "x$ac_old_val" != "x$ac_new_val"; then
3182         # differences in whitespace do not lead to failure.
3183         ac_old_val_w=`echo x $ac_old_val`
3184         ac_new_val_w=`echo x $ac_new_val`
3185         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3186           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3188           ac_cache_corrupted=:
3189         else
3190           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3192           eval $ac_var=\$ac_old_val
3193         fi
3194         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3195 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3196         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3197 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3198       fi;;
3199   esac
3200   # Pass precious variables to config.status.
3201   if test "$ac_new_set" = set; then
3202     case $ac_new_val in
3203     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3204     *) ac_arg=$ac_var=$ac_new_val ;;
3205     esac
3206     case " $ac_configure_args " in
3207       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3208       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3209     esac
3210   fi
3211 done
3212 if $ac_cache_corrupted; then
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3217   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3218 fi
3219 ## -------------------- ##
3220 ## Main body of script. ##
3221 ## -------------------- ##
3222 
3223 ac_ext=c
3224 ac_cpp='$CPP $CPPFLAGS'
3225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 
3229 
3230 
3231 ac_aux_dir=
3232 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3233   if test -f "$ac_dir/install-sh"; then
3234     ac_aux_dir=$ac_dir
3235     ac_install_sh="$ac_aux_dir/install-sh -c"
3236     break
3237   elif test -f "$ac_dir/install.sh"; then
3238     ac_aux_dir=$ac_dir
3239     ac_install_sh="$ac_aux_dir/install.sh -c"
3240     break
3241   elif test -f "$ac_dir/shtool"; then
3242     ac_aux_dir=$ac_dir
3243     ac_install_sh="$ac_aux_dir/shtool install -c"
3244     break
3245   fi
3246 done
3247 if test -z "$ac_aux_dir"; then
3248   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
3249 fi
3250 
3251 # These three variables are undocumented and unsupported,
3252 # and are intended to be withdrawn in a future Autoconf release.
3253 # They can cause serious problems if a builder's source tree is in a directory
3254 # whose full name contains unusual characters.
3255 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3256 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3257 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3258 
3259 
3260 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3261 
3262 #
3263 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3264 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3265 #
3266 # This code is free software; you can redistribute it and/or modify it
3267 # under the terms of the GNU General Public License version 2 only, as
3268 # published by the Free Software Foundation.  Oracle designates this
3269 # particular file as subject to the "Classpath" exception as provided
3270 # by Oracle in the LICENSE file that accompanied this code.
3271 #
3272 # This code is distributed in the hope that it will be useful, but WITHOUT
3273 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3274 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3275 # version 2 for more details (a copy is included in the LICENSE file that
3276 # accompanied this code).
3277 #
3278 # You should have received a copy of the GNU General Public License version
3279 # 2 along with this work; if not, write to the Free Software Foundation,
3280 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3281 #
3282 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3283 # or visit www.oracle.com if you need additional information or have any
3284 # questions.
3285 #
3286 
3287 #
3288 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3289 #
3290 # This program is free software; you can redistribute it and/or modify
3291 # it under the terms of the GNU General Public License as published by
3292 # the Free Software Foundation; either version 2 of the License, or
3293 # (at your option) any later version.
3294 #
3295 # This program is distributed in the hope that it will be useful, but
3296 # WITHOUT ANY WARRANTY; without even the implied warranty of
3297 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3298 # General Public License for more details.
3299 #
3300 # You should have received a copy of the GNU General Public License
3301 # along with this program; if not, write to the Free Software
3302 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3303 #
3304 # As a special exception to the GNU General Public License, if you
3305 # distribute this file as part of a program that contains a
3306 # configuration script generated by Autoconf, you may include it under
3307 # the same distribution terms that you use for the rest of that program.
3308 
3309 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3310 # ----------------------------------
3311 # PKG_PROG_PKG_CONFIG
3312 
3313 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3314 #
3315 # Check to see whether a particular set of modules exists.  Similar
3316 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3317 #
3318 #
3319 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3320 # this or PKG_CHECK_MODULES is called, or make sure to call
3321 # PKG_CHECK_EXISTS manually
3322 # --------------------------------------------------------------
3323 
3324 
3325 
3326 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3327 # ---------------------------------------------
3328 # _PKG_CONFIG
3329 
3330 # _PKG_SHORT_ERRORS_SUPPORTED
3331 # -----------------------------
3332 # _PKG_SHORT_ERRORS_SUPPORTED
3333 
3334 
3335 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3336 # [ACTION-IF-NOT-FOUND])
3337 #
3338 #
3339 # Note that if there is a possibility the first call to
3340 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3341 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3342 #
3343 #
3344 # --------------------------------------------------------------
3345 # PKG_CHECK_MODULES
3346 
3347 
3348 # Include these first...
3349 #
3350 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3351 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3352 #
3353 # This code is free software; you can redistribute it and/or modify it
3354 # under the terms of the GNU General Public License version 2 only, as
3355 # published by the Free Software Foundation.  Oracle designates this
3356 # particular file as subject to the "Classpath" exception as provided
3357 # by Oracle in the LICENSE file that accompanied this code.
3358 #
3359 # This code is distributed in the hope that it will be useful, but WITHOUT
3360 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3361 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3362 # version 2 for more details (a copy is included in the LICENSE file that
3363 # accompanied this code).
3364 #
3365 # You should have received a copy of the GNU General Public License version
3366 # 2 along with this work; if not, write to the Free Software Foundation,
3367 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3368 #
3369 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3370 # or visit www.oracle.com if you need additional information or have any
3371 # questions.
3372 #
3373 
3374 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3375 # If so, then append $1 to $2 \
3376 # Also set JVM_ARG_OK to true/false depending on outcome.
3377 
3378 
3379 # Appends a string to a path variable, only adding the : when needed.
3380 
3381 
3382 # Prepends a string to a path variable, only adding the : when needed.
3383 
3384 
3385 # This will make sure the given variable points to a full and proper
3386 # path. This means:
3387 # 1) There will be no spaces in the path. On posix platforms,
3388 #    spaces in the path will result in an error. On Windows,
3389 #    the path will be rewritten using short-style to be space-free.
3390 # 2) The path will be absolute, and it will be in unix-style (on
3391 #     cygwin).
3392 # $1: The name of the variable to fix
3393 
3394 
3395 # This will make sure the given variable points to a executable
3396 # with a full and proper path. This means:
3397 # 1) There will be no spaces in the path. On posix platforms,
3398 #    spaces in the path will result in an error. On Windows,
3399 #    the path will be rewritten using short-style to be space-free.
3400 # 2) The path will be absolute, and it will be in unix-style (on
3401 #     cygwin).
3402 # Any arguments given to the executable is preserved.
3403 # If the input variable does not have a directory specification, then
3404 # it need to be in the PATH.
3405 # $1: The name of the variable to fix
3406 
3407 
3408 
3409 
3410 # Register a --with argument but mark it as deprecated
3411 # $1: The name of the with argument to deprecate, not including --with-
3412 
3413 
3414 # Register a --enable argument but mark it as deprecated
3415 # $1: The name of the with argument to deprecate, not including --enable-
3416 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3417 
3418 
3419 
3420 
3421 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3422 # $1: variable to check
3423 
3424 
3425 # Check that there are no unprocessed overridden variables left.
3426 # If so, they are an incorrect argument and we will exit with an error.
3427 
3428 
3429 # Setup a tool for the given variable. If correctly specified by the user,
3430 # use that value, otherwise search for the tool using the supplied code snippet.
3431 # $1: variable to set
3432 # $2: code snippet to call to look for the tool
3433 
3434 
3435 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3436 # $1: variable to set
3437 # $2: executable name (or list of names) to look for
3438 
3439 
3440 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3441 # $1: variable to set
3442 # $2: executable name (or list of names) to look for
3443 
3444 
3445 # Like BASIC_PATH_PROGS but fails if no tool was found.
3446 # $1: variable to set
3447 # $2: executable name (or list of names) to look for
3448 
3449 
3450 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3451 # $1: variable to set
3452 # $2: autoconf macro to call to look for the special tool
3453 
3454 
3455 # Setup the most fundamental tools that relies on not much else to set up,
3456 # but is used by much of the early bootstrap code.
3457 
3458 
3459 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3460 
3461 
3462 # Evaluates platform specific overrides for devkit variables.
3463 # $1: Name of variable
3464 
3465 
3466 
3467 
3468 
3469 
3470 
3471 
3472 
3473 #%%% Simple tools %%%
3474 
3475 # Check if we have found a usable version of make
3476 # $1: the path to a potential make binary (or empty)
3477 # $2: the description on how we found this
3478 
3479 
3480 # Goes looking for a usable version of GNU make.
3481 
3482 
3483 
3484 
3485 
3486 
3487 # Check if build directory is on local disk. If not possible to determine,
3488 # we prefer to claim it's local.
3489 # Argument 1: directory to test
3490 # Argument 2: what to do if it is on local disk
3491 # Argument 3: what to do otherwise (remote disk or failure)
3492 
3493 
3494 # Check that source files have basic read permissions set. This might
3495 # not be the case in cygwin in certain conditions.
3496 
3497 
3498 
3499 
3500 #
3501 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3502 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3503 #
3504 # This code is free software; you can redistribute it and/or modify it
3505 # under the terms of the GNU General Public License version 2 only, as
3506 # published by the Free Software Foundation.  Oracle designates this
3507 # particular file as subject to the "Classpath" exception as provided
3508 # by Oracle in the LICENSE file that accompanied this code.
3509 #
3510 # This code is distributed in the hope that it will be useful, but WITHOUT
3511 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3512 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3513 # version 2 for more details (a copy is included in the LICENSE file that
3514 # accompanied this code).
3515 #
3516 # You should have received a copy of the GNU General Public License version
3517 # 2 along with this work; if not, write to the Free Software Foundation,
3518 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3519 #
3520 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3521 # or visit www.oracle.com if you need additional information or have any
3522 # questions.
3523 #
3524 
3525 
3526 
3527 
3528 
3529 # Helper function which possibly converts a path using DOS-style short mode.
3530 # If so, the updated path is stored in $new_path.
3531 # $1: The path to check
3532 
3533 
3534 # Helper function which possibly converts a path using DOS-style short mode.
3535 # If so, the updated path is stored in $new_path.
3536 # $1: The path to check
3537 
3538 
3539 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3540 # and could probably be heavily simplified. However, all changes in this
3541 # area tend to need lot of testing in different scenarios, and in lack of
3542 # proper unit testing, cleaning this up has not been deemed worth the effort
3543 # at the moment.
3544 
3545 
3546 
3547 
3548 
3549 
3550 
3551 
3552 
3553 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3554 
3555 
3556 
3557 
3558 #
3559 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3560 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3561 #
3562 # This code is free software; you can redistribute it and/or modify it
3563 # under the terms of the GNU General Public License version 2 only, as
3564 # published by the Free Software Foundation.  Oracle designates this
3565 # particular file as subject to the "Classpath" exception as provided
3566 # by Oracle in the LICENSE file that accompanied this code.
3567 #
3568 # This code is distributed in the hope that it will be useful, but WITHOUT
3569 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3570 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3571 # version 2 for more details (a copy is included in the LICENSE file that
3572 # accompanied this code).
3573 #
3574 # You should have received a copy of the GNU General Public License version
3575 # 2 along with this work; if not, write to the Free Software Foundation,
3576 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3577 #
3578 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3579 # or visit www.oracle.com if you need additional information or have any
3580 # questions.
3581 #
3582 
3583 
3584 
3585 
3586 
3587 
3588 
3589 
3590 
3591 
3592 
3593 # ... then the rest
3594 #
3595 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3596 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3597 #
3598 # This code is free software; you can redistribute it and/or modify it
3599 # under the terms of the GNU General Public License version 2 only, as
3600 # published by the Free Software Foundation.  Oracle designates this
3601 # particular file as subject to the "Classpath" exception as provided
3602 # by Oracle in the LICENSE file that accompanied this code.
3603 #
3604 # This code is distributed in the hope that it will be useful, but WITHOUT
3605 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3606 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3607 # version 2 for more details (a copy is included in the LICENSE file that
3608 # accompanied this code).
3609 #
3610 # You should have received a copy of the GNU General Public License version
3611 # 2 along with this work; if not, write to the Free Software Foundation,
3612 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3613 #
3614 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3615 # or visit www.oracle.com if you need additional information or have any
3616 # questions.
3617 #
3618 
3619 # Execute the check given as argument, and verify the result
3620 # If the Boot JDK was previously found, do nothing
3621 # $1 A command line (typically autoconf macro) to execute
3622 
3623 
3624 # Test: Is bootjdk explicitely set by command line arguments?
3625 
3626 
3627 # Test: Is bootjdk available from builddeps?
3628 
3629 
3630 # Test: Is $JAVA_HOME set?
3631 
3632 
3633 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3634 
3635 
3636 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3637 
3638 
3639 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3640 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3641 # $1 = Path to directory containing jdk installations.
3642 # $2 = String to append to the found JDK directory to get the proper JDK home
3643 
3644 
3645 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3646 # environmental variable as base for where to look.
3647 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3648 
3649 
3650 # Test: Is there a JDK installed in default, well-known locations?
3651 
3652 
3653 # Check that a command-line tool in the Boot JDK is correct
3654 # $1 = name of variable to assign
3655 # $2 = name of binary
3656 
3657 
3658 ###############################################################################
3659 #
3660 # We need a Boot JDK to bootstrap the build.
3661 #
3662 
3663 
3664 
3665 
3666 
3667 #
3668 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3670 #
3671 # This code is free software; you can redistribute it and/or modify it
3672 # under the terms of the GNU General Public License version 2 only, as
3673 # published by the Free Software Foundation.  Oracle designates this
3674 # particular file as subject to the "Classpath" exception as provided
3675 # by Oracle in the LICENSE file that accompanied this code.
3676 #
3677 # This code is distributed in the hope that it will be useful, but WITHOUT
3678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3679 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3680 # version 2 for more details (a copy is included in the LICENSE file that
3681 # accompanied this code).
3682 #
3683 # You should have received a copy of the GNU General Public License version
3684 # 2 along with this work; if not, write to the Free Software Foundation,
3685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3686 #
3687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3688 # or visit www.oracle.com if you need additional information or have any
3689 # questions.
3690 #
3691 
3692 
3693 
3694 
3695 
3696 
3697 
3698 
3699 
3700 
3701 
3702 
3703 
3704 
3705 
3706 
3707 
3708 
3709 
3710 
3711 #
3712 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3713 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3714 #
3715 # This code is free software; you can redistribute it and/or modify it
3716 # under the terms of the GNU General Public License version 2 only, as
3717 # published by the Free Software Foundation.  Oracle designates this
3718 # particular file as subject to the "Classpath" exception as provided
3719 # by Oracle in the LICENSE file that accompanied this code.
3720 #
3721 # This code is distributed in the hope that it will be useful, but WITHOUT
3722 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3723 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3724 # version 2 for more details (a copy is included in the LICENSE file that
3725 # accompanied this code).
3726 #
3727 # You should have received a copy of the GNU General Public License version
3728 # 2 along with this work; if not, write to the Free Software Foundation,
3729 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3730 #
3731 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3732 # or visit www.oracle.com if you need additional information or have any
3733 # questions.
3734 #
3735 
3736 
3737 
3738 
3739 
3740 # Documentation on common flags used for solstudio in HIGHEST.
3741 #
3742 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3743 #          done with care, there are some assumptions below that need to
3744 #          be understood about the use of pointers, and IEEE behavior.
3745 #
3746 # -fns: Use non-standard floating point mode (not IEEE 754)
3747 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3748 # -fsingle: Use single precision floating point with 'float'
3749 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3750 #   (Source with excessing pointer casting and data access with mixed
3751 #    pointer types are not recommended)
3752 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3753 #   (If you expect perfect errno behavior, do not use this)
3754 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3755 # -xrestrict: Pointer parameters to functions do not overlap
3756 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3757 #    If you pass in multiple pointers to the same data, do not use this)
3758 # -xlibmil: Inline some library routines
3759 #   (If you expect perfect errno behavior, do not use this)
3760 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3761 #   (If you expect perfect errno behavior, do not use this)
3762 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3763 
3764     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3765     # Bug?
3766     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3767     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3768     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3769     #fi
3770 
3771 
3772 
3773 
3774 
3775 
3776 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3777 #                                  [RUN-IF-FALSE])
3778 # ------------------------------------------------------------
3779 # Check that the C compiler supports an argument
3780 
3781 
3782 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3783 #                                    [RUN-IF-FALSE])
3784 # ------------------------------------------------------------
3785 # Check that the C++ compiler supports an argument
3786 
3787 
3788 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3789 #                                [RUN-IF-FALSE])
3790 # ------------------------------------------------------------
3791 # Check that the C and C++ compilers support an argument
3792 
3793 
3794 
3795 
3796 
3797 
3798 
3799 #
3800 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3801 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3802 #
3803 # This code is free software; you can redistribute it and/or modify it
3804 # under the terms of the GNU General Public License version 2 only, as
3805 # published by the Free Software Foundation.  Oracle designates this
3806 # particular file as subject to the "Classpath" exception as provided
3807 # by Oracle in the LICENSE file that accompanied this code.
3808 #
3809 # This code is distributed in the hope that it will be useful, but WITHOUT
3810 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3811 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3812 # version 2 for more details (a copy is included in the LICENSE file that
3813 # accompanied this code).
3814 #
3815 # You should have received a copy of the GNU General Public License version
3816 # 2 along with this work; if not, write to the Free Software Foundation,
3817 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3818 #
3819 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3820 # or visit www.oracle.com if you need additional information or have any
3821 # questions.
3822 #
3823 
3824 
3825 
3826 
3827 
3828 cygwin_help() {
3829   case $1 in
3830     unzip)
3831       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3832       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3833       ;;
3834     zip)
3835       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3836       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3837       ;;
3838     make)
3839       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3840       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3841       ;;
3842     freetype)
3843       HELP_MSG="
3844 The freetype library can now be build during the configure process.
3845 Download the freetype sources and unpack them into an arbitrary directory:
3846 
3847 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3848 tar -xzf freetype-2.5.3.tar.gz
3849 
3850 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3851 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3852 builds or into '<freetype_src>/lib32' for 32-bit builds.
3853 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3854 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3855       ;;
3856   esac
3857 }
3858 
3859 msys_help() {
3860   PKGHANDLER_COMMAND=""
3861 }
3862 
3863 apt_help() {
3864   case $1 in
3865     devkit)
3866       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3867     openjdk)
3868       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3869     alsa)
3870       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3871     cups)
3872       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3873     fontconfig)
3874       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3875     freetype)
3876       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3877     pulse)
3878       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3879     x11)
3880       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3881     ccache)
3882       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3883   esac
3884 }
3885 
3886 yum_help() {
3887   case $1 in
3888     devkit)
3889       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3890     openjdk)
3891       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3892     alsa)
3893       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3894     cups)
3895       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3896     fontconfig)
3897       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3898     freetype)
3899       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3900     pulse)
3901       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3902     x11)
3903       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3904     ccache)
3905       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3906   esac
3907 }
3908 
3909 port_help() {
3910   PKGHANDLER_COMMAND=""
3911 }
3912 
3913 pkgutil_help() {
3914   PKGHANDLER_COMMAND=""
3915 }
3916 
3917 pkgadd_help() {
3918   PKGHANDLER_COMMAND=""
3919 }
3920 
3921 # This function will check if we're called from the "configure" wrapper while
3922 # printing --help. If so, we will print out additional information that can
3923 # only be extracted within the autoconf script, and then exit. This must be
3924 # called at the very beginning in configure.ac.
3925 
3926 
3927 
3928 
3929 #
3930 # Copyright (c) 2011, 2020, Oracle and/or its affiliates. All rights reserved.
3931 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3932 #
3933 # This code is free software; you can redistribute it and/or modify it
3934 # under the terms of the GNU General Public License version 2 only, as
3935 # published by the Free Software Foundation.  Oracle designates this
3936 # particular file as subject to the "Classpath" exception as provided
3937 # by Oracle in the LICENSE file that accompanied this code.
3938 #
3939 # This code is distributed in the hope that it will be useful, but WITHOUT
3940 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3941 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3942 # version 2 for more details (a copy is included in the LICENSE file that
3943 # accompanied this code).
3944 #
3945 # You should have received a copy of the GNU General Public License version
3946 # 2 along with this work; if not, write to the Free Software Foundation,
3947 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3948 #
3949 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3950 # or visit www.oracle.com if you need additional information or have any
3951 # questions.
3952 #
3953 
3954 
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 ###############################################################################
3964 #
3965 # Should we build only OpenJDK even if closed sources are present?
3966 #
3967 
3968 
3969 
3970 
3971 ###############################################################################
3972 #
3973 # Setup version numbers
3974 #
3975 
3976 
3977 
3978 
3979 
3980 
3981 # Support for customization of the build process. Some build files
3982 # will include counterparts from this location, if they exist. This allows
3983 # for a degree of customization of the build targets and the rules/recipes
3984 # to create them
3985 
3986 # Check whether --with-custom-make-dir was given.
3987 if test "${with_custom_make_dir+set}" = set; then :
3988   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3989 fi
3990 
3991 
3992 
3993 #
3994 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3995 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3996 #
3997 # This code is free software; you can redistribute it and/or modify it
3998 # under the terms of the GNU General Public License version 2 only, as
3999 # published by the Free Software Foundation.  Oracle designates this
4000 # particular file as subject to the "Classpath" exception as provided
4001 # by Oracle in the LICENSE file that accompanied this code.
4002 #
4003 # This code is distributed in the hope that it will be useful, but WITHOUT
4004 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4005 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4006 # version 2 for more details (a copy is included in the LICENSE file that
4007 # accompanied this code).
4008 #
4009 # You should have received a copy of the GNU General Public License version
4010 # 2 along with this work; if not, write to the Free Software Foundation,
4011 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4012 #
4013 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4014 # or visit www.oracle.com if you need additional information or have any
4015 # questions.
4016 #
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 
4025 
4026 
4027 
4028 
4029 
4030 
4031 
4032 ################################################################################
4033 # Setup fontconfig
4034 ################################################################################
4035 
4036 
4037 
4038 
4039 
4040 
4041 
4042 
4043 #
4044 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4045 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4046 #
4047 # This code is free software; you can redistribute it and/or modify it
4048 # under the terms of the GNU General Public License version 2 only, as
4049 # published by the Free Software Foundation.  Oracle designates this
4050 # particular file as subject to the "Classpath" exception as provided
4051 # by Oracle in the LICENSE file that accompanied this code.
4052 #
4053 # This code is distributed in the hope that it will be useful, but WITHOUT
4054 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4055 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4056 # version 2 for more details (a copy is included in the LICENSE file that
4057 # accompanied this code).
4058 #
4059 # You should have received a copy of the GNU General Public License version
4060 # 2 along with this work; if not, write to the Free Software Foundation,
4061 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4062 #
4063 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4064 # or visit www.oracle.com if you need additional information or have any
4065 # questions.
4066 #
4067 
4068 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4069 # Converts autoconf style CPU name to OpenJDK style, into
4070 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4071 
4072 
4073 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4074 # Converts autoconf style OS name to OpenJDK style, into
4075 # VAR_OS and VAR_OS_API.
4076 
4077 
4078 # Expects $host_os $host_cpu $build_os and $build_cpu
4079 # and $with_target_bits to have been setup!
4080 #
4081 # Translate the standard triplet(quadruplet) definition
4082 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4083 # OPENJDK_BUILD_OS, etc.
4084 
4085 
4086 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4087 # accordingly. Must be done after setting up build and target system, but before
4088 # doing anything else with these values.
4089 
4090 
4091 # Setup the legacy variables, for controlling the old makefiles.
4092 #
4093 
4094 
4095 
4096 
4097 #%%% Build and target systems %%%
4098 
4099 
4100 
4101 
4102 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4103 # Add -mX to various FLAGS variables.
4104 
4105 
4106 
4107 
4108 
4109 
4110 #
4111 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4112 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4113 #
4114 # This code is free software; you can redistribute it and/or modify it
4115 # under the terms of the GNU General Public License version 2 only, as
4116 # published by the Free Software Foundation.  Oracle designates this
4117 # particular file as subject to the "Classpath" exception as provided
4118 # by Oracle in the LICENSE file that accompanied this code.
4119 #
4120 # This code is distributed in the hope that it will be useful, but WITHOUT
4121 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4122 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4123 # version 2 for more details (a copy is included in the LICENSE file that
4124 # accompanied this code).
4125 #
4126 # You should have received a copy of the GNU General Public License version
4127 # 2 along with this work; if not, write to the Free Software Foundation,
4128 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4129 #
4130 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4131 # or visit www.oracle.com if you need additional information or have any
4132 # questions.
4133 #
4134 
4135 
4136 
4137 
4138 
4139 
4140 
4141 
4142 #
4143 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4144 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4145 #
4146 # This code is free software; you can redistribute it and/or modify it
4147 # under the terms of the GNU General Public License version 2 only, as
4148 # published by the Free Software Foundation.  Oracle designates this
4149 # particular file as subject to the "Classpath" exception as provided
4150 # by Oracle in the LICENSE file that accompanied this code.
4151 #
4152 # This code is distributed in the hope that it will be useful, but WITHOUT
4153 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4154 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4155 # version 2 for more details (a copy is included in the LICENSE file that
4156 # accompanied this code).
4157 #
4158 # You should have received a copy of the GNU General Public License version
4159 # 2 along with this work; if not, write to the Free Software Foundation,
4160 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4161 #
4162 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4163 # or visit www.oracle.com if you need additional information or have any
4164 # questions.
4165 #
4166 
4167 ########################################################################
4168 # This file is responsible for detecting, verifying and setting up the
4169 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4170 # proper paths to the binaries, but it will not setup any flags.
4171 #
4172 # The binaries used is determined by the toolchain type, which is the family of
4173 # compilers and related tools that are used.
4174 ########################################################################
4175 
4176 
4177 # All valid toolchains, regardless of platform (used by help.m4)
4178 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4179 
4180 # These toolchains are valid on different platforms
4181 VALID_TOOLCHAINS_linux="gcc clang"
4182 VALID_TOOLCHAINS_solaris="solstudio"
4183 VALID_TOOLCHAINS_macosx="gcc clang"
4184 VALID_TOOLCHAINS_aix="xlc"
4185 VALID_TOOLCHAINS_windows="microsoft"
4186 
4187 # Toolchain descriptions
4188 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4189 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4190 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4191 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4192 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4193 
4194 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4195 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4196 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4197 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4198 
4199 
4200 # Check if the configured compiler (C and C++) is of a specific version or
4201 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4202 #
4203 # Arguments:
4204 #   $1:   The version string to check against the found version
4205 #   $2:   block to run if the compiler is at least this version (>=)
4206 #   $3:   block to run if the compiler is older than this version (<)
4207 
4208 
4209 
4210 # Setup a number of variables describing how native output files are
4211 # named on this platform/toolchain.
4212 
4213 
4214 # Determine which toolchain type to use, and make sure it is valid for this
4215 # platform. Setup various information about the selected toolchain.
4216 
4217 
4218 # Before we start detecting the toolchain executables, we might need some
4219 # special setup, e.g. additional paths etc.
4220 
4221 
4222 # Restore path, etc
4223 
4224 
4225 # Check if a compiler is of the toolchain type we expect, and save the version
4226 # information from it. If the compiler does not match the expected type,
4227 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4228 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4229 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4230 #
4231 # $1 = compiler to test (CC or CXX)
4232 # $2 = human readable name of compiler (C or C++)
4233 
4234 
4235 
4236 # Try to locate the given C or C++ compiler in the path, or otherwise.
4237 #
4238 # $1 = compiler to test (CC or CXX)
4239 # $2 = human readable name of compiler (C or C++)
4240 # $3 = list of compiler names to search for
4241 
4242 
4243 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4244 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4245 # archiver (AR). Verify that the compilers are correct according to the
4246 # toolchain type.
4247 
4248 
4249 # Setup additional tools that is considered a part of the toolchain, but not the
4250 # core part. Many of these are highly platform-specific and do not exist,
4251 # and/or are not needed on all platforms.
4252 
4253 
4254 # Setup the build tools (i.e, the compiler and linker used to build programs
4255 # that should be run on the build platform, not the target platform, as a build
4256 # helper). Since the non-cross-compile case uses the normal, target compilers
4257 # for this, we can only do this after these have been setup.
4258 
4259 
4260 # Setup legacy variables that are still needed as alternative ways to refer to
4261 # parts of the toolchain.
4262 
4263 
4264 # Do some additional checks on the detected tools.
4265 
4266 
4267 # Setup the JTReg Regression Test Harness.
4268 
4269 
4270 
4271 #
4272 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4273 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4274 #
4275 # This code is free software; you can redistribute it and/or modify it
4276 # under the terms of the GNU General Public License version 2 only, as
4277 # published by the Free Software Foundation.  Oracle designates this
4278 # particular file as subject to the "Classpath" exception as provided
4279 # by Oracle in the LICENSE file that accompanied this code.
4280 #
4281 # This code is distributed in the hope that it will be useful, but WITHOUT
4282 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4283 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4284 # version 2 for more details (a copy is included in the LICENSE file that
4285 # accompanied this code).
4286 #
4287 # You should have received a copy of the GNU General Public License version
4288 # 2 along with this work; if not, write to the Free Software Foundation,
4289 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4290 #
4291 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4292 # or visit www.oracle.com if you need additional information or have any
4293 # questions.
4294 #
4295 
4296 ################################################################################
4297 # The order of these defines the priority by which we try to find them.
4298 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4299 
4300 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4301 VS_VERSION_INTERNAL_2010=100
4302 VS_MSVCR_2010=msvcr100.dll
4303 # We don't use msvcp on Visual Studio 2010
4304 #VS_MSVCP_2010=msvcp100.dll
4305 VS_ENVVAR_2010="VS100COMNTOOLS"
4306 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4307 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4308 VS_VS_PLATFORM_NAME_2010="v100"
4309 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4310 
4311 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4312 VS_VERSION_INTERNAL_2012=110
4313 VS_MSVCR_2012=msvcr110.dll
4314 VS_MSVCP_2012=msvcp110.dll
4315 VS_ENVVAR_2012="VS110COMNTOOLS"
4316 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4317 VS_SDK_INSTALLDIR_2012=
4318 VS_VS_PLATFORM_NAME_2012="v110"
4319 VS_SDK_PLATFORM_NAME_2012=
4320 
4321 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4322 VS_VERSION_INTERNAL_2013=120
4323 VS_MSVCR_2013=msvcr120.dll
4324 VS_MSVCP_2013=msvcp120.dll
4325 VS_ENVVAR_2013="VS120COMNTOOLS"
4326 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4327 VS_SDK_INSTALLDIR_2013=
4328 VS_VS_PLATFORM_NAME_2013="v120"
4329 VS_SDK_PLATFORM_NAME_2013=
4330 
4331 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4332 VS_VERSION_INTERNAL_2015=140
4333 VS_MSVCR_2015=vcruntime140.dll
4334 VS_MSVCP_2015=msvcp140.dll
4335 VS_ENVVAR_2015="VS140COMNTOOLS"
4336 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4337 VS_SDK_INSTALLDIR_2015=
4338 VS_VS_PLATFORM_NAME_2015="v140"
4339 VS_SDK_PLATFORM_NAME_2015=
4340 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4341 # explicitly specifying Windows Kit 8.1 to be used.
4342 VS_ENV_ARGS_2015="8.1"
4343 
4344 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4345 VS_VERSION_INTERNAL_2017=141
4346 VS_MSVCR_2017=vcruntime140.dll
4347 VS_MSVCP_2017=msvcp140.dll
4348 VS_ENVVAR_2017="VS150COMNTOOLS"
4349 VS_USE_UCRT_2017="true"
4350 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4351 VS_EDITIONS_2017="Community Professional Enterprise"
4352 VS_SDK_INSTALLDIR_2017=
4353 VS_VS_PLATFORM_NAME_2017="v141"
4354 VS_SDK_PLATFORM_NAME_2017=
4355 
4356 ################################################################################
4357 
4358 
4359 
4360 ################################################################################
4361 
4362 
4363 
4364 ################################################################################
4365 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4366 # build environment and assigns it to VS_ENV_CMD
4367 
4368 
4369 ################################################################################
4370 
4371 
4372 
4373 ################################################################################
4374 # Check if the VS env variables were setup prior to running configure.
4375 # If not, then find vcvarsall.bat and run it automatically, and integrate
4376 # the set env variables into the spec file.
4377 
4378 
4379 
4380 
4381 
4382 
4383 
4384 
4385 
4386 
4387 
4388 
4389 
4390 
4391 # This line needs to be here, verbatim, after all includes and the dummy hook
4392 # definitions. It is replaced with custom functionality when building
4393 # custom sources.
4394 #CUSTOM_AUTOCONF_INCLUDE
4395 
4396 # Do not change or remove the following line, it is needed for consistency checks:
4397 DATE_WHEN_GENERATED=1587694859
4398 
4399 ###############################################################################
4400 #
4401 # Initialization / Boot-strapping
4402 #
4403 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4404 # thus it jumps back and forth, each time gaining something needed later on.
4405 #
4406 ###############################################################################
4407 
4408 # If we are requested to print additional help, do that and then exit.
4409 # This must be the very first call.
4410 
4411   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4412     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4413     $PRINTF "Which are valid to use depends on the build platform.\n"
4414     for toolchain in $VALID_TOOLCHAINS_all; do
4415       # Use indirect variable referencing
4416       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4417       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4418       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4419     done
4420 
4421     # And now exit directly
4422     exit 0
4423   fi
4424 
4425 
4426 # Basic initialization that must happen first of all in the normal process.
4427 
4428   # Save the original command line. This is passed to us by the wrapper configure script.
4429 
4430   DATE_WHEN_CONFIGURED=`LANG=C date`
4431 
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4433 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4434   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4435 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4436 
4437 
4438   # Start with tools that do not need have cross compilation support
4439   # and can be expected to be found in the default PATH. These tools are
4440   # used by configure. Nor are these tools expected to be found in the
4441   # devkit from the builddeps server either, since they are
4442   # needed to download the devkit.
4443 
4444   # First are all the simple required tools.
4445 
4446 
4447 
4448   # Publish this variable in the help.
4449 
4450 
4451   if test "x$BASENAME" = x; then
4452     # The variable is not set by user, try to locate tool using the code snippet
4453     for ac_prog in basename
4454 do
4455   # Extract the first word of "$ac_prog", so it can be a program name with args.
4456 set dummy $ac_prog; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if ${ac_cv_path_BASENAME+:} false; then :
4460   $as_echo_n "(cached) " >&6
4461 else
4462   case $BASENAME in
4463   [\\/]* | ?:[\\/]*)
4464   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4465   ;;
4466   *)
4467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4469 do
4470   IFS=$as_save_IFS
4471   test -z "$as_dir" && as_dir=.
4472     for ac_exec_ext in '' $ac_executable_extensions; do
4473   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4475     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476     break 2
4477   fi
4478 done
4479   done
4480 IFS=$as_save_IFS
4481 
4482   ;;
4483 esac
4484 fi
4485 BASENAME=$ac_cv_path_BASENAME
4486 if test -n "$BASENAME"; then
4487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4488 $as_echo "$BASENAME" >&6; }
4489 else
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4491 $as_echo "no" >&6; }
4492 fi
4493 
4494 
4495   test -n "$BASENAME" && break
4496 done
4497 
4498   else
4499     # The variable is set, but is it from the command line or the environment?
4500 
4501     # Try to remove the string !BASENAME! from our list.
4502     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4503     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4504       # If it failed, the variable was not from the command line. Ignore it,
4505       # but warn the user (except for BASH, which is always set by the calling BASH).
4506       if test "xBASENAME" != xBASH; then
4507         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4508 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4509       fi
4510       # Try to locate tool using the code snippet
4511       for ac_prog in basename
4512 do
4513   # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_path_BASENAME+:} false; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   case $BASENAME in
4521   [\\/]* | ?:[\\/]*)
4522   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4523   ;;
4524   *)
4525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526 for as_dir in $PATH
4527 do
4528   IFS=$as_save_IFS
4529   test -z "$as_dir" && as_dir=.
4530     for ac_exec_ext in '' $ac_executable_extensions; do
4531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4532     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4534     break 2
4535   fi
4536 done
4537   done
4538 IFS=$as_save_IFS
4539 
4540   ;;
4541 esac
4542 fi
4543 BASENAME=$ac_cv_path_BASENAME
4544 if test -n "$BASENAME"; then
4545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4546 $as_echo "$BASENAME" >&6; }
4547 else
4548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4549 $as_echo "no" >&6; }
4550 fi
4551 
4552 
4553   test -n "$BASENAME" && break
4554 done
4555 
4556     else
4557       # If it succeeded, then it was overridden by the user. We will use it
4558       # for the tool.
4559 
4560       # First remove it from the list of overridden variables, so we can test
4561       # for unknown variables in the end.
4562       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4563 
4564       # Check if the provided tool contains a complete path.
4565       tool_specified="$BASENAME"
4566       tool_basename="${tool_specified##*/}"
4567       if test "x$tool_basename" = "x$tool_specified"; then
4568         # A command without a complete path is provided, search $PATH.
4569         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4570 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4571         # Extract the first word of "$tool_basename", so it can be a program name with args.
4572 set dummy $tool_basename; ac_word=$2
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4574 $as_echo_n "checking for $ac_word... " >&6; }
4575 if ${ac_cv_path_BASENAME+:} false; then :
4576   $as_echo_n "(cached) " >&6
4577 else
4578   case $BASENAME in
4579   [\\/]* | ?:[\\/]*)
4580   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4581   ;;
4582   *)
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588     for ac_exec_ext in '' $ac_executable_extensions; do
4589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592     break 2
4593   fi
4594 done
4595   done
4596 IFS=$as_save_IFS
4597 
4598   ;;
4599 esac
4600 fi
4601 BASENAME=$ac_cv_path_BASENAME
4602 if test -n "$BASENAME"; then
4603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4604 $as_echo "$BASENAME" >&6; }
4605 else
4606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4608 fi
4609 
4610 
4611         if test "x$BASENAME" = x; then
4612           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4613         fi
4614       else
4615         # Otherwise we believe it is a complete path. Use it as it is.
4616         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4617 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4618         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4619 $as_echo_n "checking for BASENAME... " >&6; }
4620         if test ! -x "$tool_specified"; then
4621           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4622 $as_echo "not found" >&6; }
4623           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4624         fi
4625         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4626 $as_echo "$tool_specified" >&6; }
4627       fi
4628     fi
4629   fi
4630 
4631 
4632 
4633   if test "x$BASENAME" = x; then
4634     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4635   fi
4636 
4637 
4638 
4639 
4640 
4641   # Publish this variable in the help.
4642 
4643 
4644   if test "x$BASH" = x; then
4645     # The variable is not set by user, try to locate tool using the code snippet
4646     for ac_prog in bash
4647 do
4648   # Extract the first word of "$ac_prog", so it can be a program name with args.
4649 set dummy $ac_prog; ac_word=$2
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651 $as_echo_n "checking for $ac_word... " >&6; }
4652 if ${ac_cv_path_BASH+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   case $BASH in
4656   [\\/]* | ?:[\\/]*)
4657   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4658   ;;
4659   *)
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_exec_ext in '' $ac_executable_extensions; do
4666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4667     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672   done
4673 IFS=$as_save_IFS
4674 
4675   ;;
4676 esac
4677 fi
4678 BASH=$ac_cv_path_BASH
4679 if test -n "$BASH"; then
4680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4681 $as_echo "$BASH" >&6; }
4682 else
4683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4684 $as_echo "no" >&6; }
4685 fi
4686 
4687 
4688   test -n "$BASH" && break
4689 done
4690 
4691   else
4692     # The variable is set, but is it from the command line or the environment?
4693 
4694     # Try to remove the string !BASH! from our list.
4695     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4696     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4697       # If it failed, the variable was not from the command line. Ignore it,
4698       # but warn the user (except for BASH, which is always set by the calling BASH).
4699       if test "xBASH" != xBASH; then
4700         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4701 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4702       fi
4703       # Try to locate tool using the code snippet
4704       for ac_prog in bash
4705 do
4706   # Extract the first word of "$ac_prog", so it can be a program name with args.
4707 set dummy $ac_prog; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_path_BASH+:} false; then :
4711   $as_echo_n "(cached) " >&6
4712 else
4713   case $BASH in
4714   [\\/]* | ?:[\\/]*)
4715   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4716   ;;
4717   *)
4718   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4720 do
4721   IFS=$as_save_IFS
4722   test -z "$as_dir" && as_dir=.
4723     for ac_exec_ext in '' $ac_executable_extensions; do
4724   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4726     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727     break 2
4728   fi
4729 done
4730   done
4731 IFS=$as_save_IFS
4732 
4733   ;;
4734 esac
4735 fi
4736 BASH=$ac_cv_path_BASH
4737 if test -n "$BASH"; then
4738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4739 $as_echo "$BASH" >&6; }
4740 else
4741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4742 $as_echo "no" >&6; }
4743 fi
4744 
4745 
4746   test -n "$BASH" && break
4747 done
4748 
4749     else
4750       # If it succeeded, then it was overridden by the user. We will use it
4751       # for the tool.
4752 
4753       # First remove it from the list of overridden variables, so we can test
4754       # for unknown variables in the end.
4755       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4756 
4757       # Check if the provided tool contains a complete path.
4758       tool_specified="$BASH"
4759       tool_basename="${tool_specified##*/}"
4760       if test "x$tool_basename" = "x$tool_specified"; then
4761         # A command without a complete path is provided, search $PATH.
4762         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4763 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4764         # Extract the first word of "$tool_basename", so it can be a program name with args.
4765 set dummy $tool_basename; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_BASH+:} false; then :
4769   $as_echo_n "(cached) " >&6
4770 else
4771   case $BASH in
4772   [\\/]* | ?:[\\/]*)
4773   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4774   ;;
4775   *)
4776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779   IFS=$as_save_IFS
4780   test -z "$as_dir" && as_dir=.
4781     for ac_exec_ext in '' $ac_executable_extensions; do
4782   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785     break 2
4786   fi
4787 done
4788   done
4789 IFS=$as_save_IFS
4790 
4791   ;;
4792 esac
4793 fi
4794 BASH=$ac_cv_path_BASH
4795 if test -n "$BASH"; then
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4797 $as_echo "$BASH" >&6; }
4798 else
4799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4800 $as_echo "no" >&6; }
4801 fi
4802 
4803 
4804         if test "x$BASH" = x; then
4805           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4806         fi
4807       else
4808         # Otherwise we believe it is a complete path. Use it as it is.
4809         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4810 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4812 $as_echo_n "checking for BASH... " >&6; }
4813         if test ! -x "$tool_specified"; then
4814           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4815 $as_echo "not found" >&6; }
4816           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4817         fi
4818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4819 $as_echo "$tool_specified" >&6; }
4820       fi
4821     fi
4822   fi
4823 
4824 
4825 
4826   if test "x$BASH" = x; then
4827     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4828   fi
4829 
4830 
4831 
4832 
4833 
4834   # Publish this variable in the help.
4835 
4836 
4837   if test "x$CAT" = x; then
4838     # The variable is not set by user, try to locate tool using the code snippet
4839     for ac_prog in cat
4840 do
4841   # Extract the first word of "$ac_prog", so it can be a program name with args.
4842 set dummy $ac_prog; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if ${ac_cv_path_CAT+:} false; then :
4846   $as_echo_n "(cached) " >&6
4847 else
4848   case $CAT in
4849   [\\/]* | ?:[\\/]*)
4850   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4851   ;;
4852   *)
4853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854 for as_dir in $PATH
4855 do
4856   IFS=$as_save_IFS
4857   test -z "$as_dir" && as_dir=.
4858     for ac_exec_ext in '' $ac_executable_extensions; do
4859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4862     break 2
4863   fi
4864 done
4865   done
4866 IFS=$as_save_IFS
4867 
4868   ;;
4869 esac
4870 fi
4871 CAT=$ac_cv_path_CAT
4872 if test -n "$CAT"; then
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4874 $as_echo "$CAT" >&6; }
4875 else
4876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4878 fi
4879 
4880 
4881   test -n "$CAT" && break
4882 done
4883 
4884   else
4885     # The variable is set, but is it from the command line or the environment?
4886 
4887     # Try to remove the string !CAT! from our list.
4888     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4889     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4890       # If it failed, the variable was not from the command line. Ignore it,
4891       # but warn the user (except for BASH, which is always set by the calling BASH).
4892       if test "xCAT" != xBASH; then
4893         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4894 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4895       fi
4896       # Try to locate tool using the code snippet
4897       for ac_prog in cat
4898 do
4899   # Extract the first word of "$ac_prog", so it can be a program name with args.
4900 set dummy $ac_prog; ac_word=$2
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4902 $as_echo_n "checking for $ac_word... " >&6; }
4903 if ${ac_cv_path_CAT+:} false; then :
4904   $as_echo_n "(cached) " >&6
4905 else
4906   case $CAT in
4907   [\\/]* | ?:[\\/]*)
4908   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4909   ;;
4910   *)
4911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914   IFS=$as_save_IFS
4915   test -z "$as_dir" && as_dir=.
4916     for ac_exec_ext in '' $ac_executable_extensions; do
4917   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920     break 2
4921   fi
4922 done
4923   done
4924 IFS=$as_save_IFS
4925 
4926   ;;
4927 esac
4928 fi
4929 CAT=$ac_cv_path_CAT
4930 if test -n "$CAT"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4932 $as_echo "$CAT" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937 
4938 
4939   test -n "$CAT" && break
4940 done
4941 
4942     else
4943       # If it succeeded, then it was overridden by the user. We will use it
4944       # for the tool.
4945 
4946       # First remove it from the list of overridden variables, so we can test
4947       # for unknown variables in the end.
4948       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4949 
4950       # Check if the provided tool contains a complete path.
4951       tool_specified="$CAT"
4952       tool_basename="${tool_specified##*/}"
4953       if test "x$tool_basename" = "x$tool_specified"; then
4954         # A command without a complete path is provided, search $PATH.
4955         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4956 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4957         # Extract the first word of "$tool_basename", so it can be a program name with args.
4958 set dummy $tool_basename; ac_word=$2
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960 $as_echo_n "checking for $ac_word... " >&6; }
4961 if ${ac_cv_path_CAT+:} false; then :
4962   $as_echo_n "(cached) " >&6
4963 else
4964   case $CAT in
4965   [\\/]* | ?:[\\/]*)
4966   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4967   ;;
4968   *)
4969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974     for ac_exec_ext in '' $ac_executable_extensions; do
4975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4976     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981   done
4982 IFS=$as_save_IFS
4983 
4984   ;;
4985 esac
4986 fi
4987 CAT=$ac_cv_path_CAT
4988 if test -n "$CAT"; then
4989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4990 $as_echo "$CAT" >&6; }
4991 else
4992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4993 $as_echo "no" >&6; }
4994 fi
4995 
4996 
4997         if test "x$CAT" = x; then
4998           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4999         fi
5000       else
5001         # Otherwise we believe it is a complete path. Use it as it is.
5002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
5003 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
5004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
5005 $as_echo_n "checking for CAT... " >&6; }
5006         if test ! -x "$tool_specified"; then
5007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5008 $as_echo "not found" >&6; }
5009           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
5010         fi
5011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5012 $as_echo "$tool_specified" >&6; }
5013       fi
5014     fi
5015   fi
5016 
5017 
5018 
5019   if test "x$CAT" = x; then
5020     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5021   fi
5022 
5023 
5024 
5025 
5026 
5027   # Publish this variable in the help.
5028 
5029 
5030   if test "x$CHMOD" = x; then
5031     # The variable is not set by user, try to locate tool using the code snippet
5032     for ac_prog in chmod
5033 do
5034   # Extract the first word of "$ac_prog", so it can be a program name with args.
5035 set dummy $ac_prog; ac_word=$2
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5037 $as_echo_n "checking for $ac_word... " >&6; }
5038 if ${ac_cv_path_CHMOD+:} false; then :
5039   $as_echo_n "(cached) " >&6
5040 else
5041   case $CHMOD in
5042   [\\/]* | ?:[\\/]*)
5043   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5044   ;;
5045   *)
5046   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049   IFS=$as_save_IFS
5050   test -z "$as_dir" && as_dir=.
5051     for ac_exec_ext in '' $ac_executable_extensions; do
5052   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5053     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5055     break 2
5056   fi
5057 done
5058   done
5059 IFS=$as_save_IFS
5060 
5061   ;;
5062 esac
5063 fi
5064 CHMOD=$ac_cv_path_CHMOD
5065 if test -n "$CHMOD"; then
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5067 $as_echo "$CHMOD" >&6; }
5068 else
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5070 $as_echo "no" >&6; }
5071 fi
5072 
5073 
5074   test -n "$CHMOD" && break
5075 done
5076 
5077   else
5078     # The variable is set, but is it from the command line or the environment?
5079 
5080     # Try to remove the string !CHMOD! from our list.
5081     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5082     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5083       # If it failed, the variable was not from the command line. Ignore it,
5084       # but warn the user (except for BASH, which is always set by the calling BASH).
5085       if test "xCHMOD" != xBASH; then
5086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5087 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5088       fi
5089       # Try to locate tool using the code snippet
5090       for ac_prog in chmod
5091 do
5092   # Extract the first word of "$ac_prog", so it can be a program name with args.
5093 set dummy $ac_prog; ac_word=$2
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5095 $as_echo_n "checking for $ac_word... " >&6; }
5096 if ${ac_cv_path_CHMOD+:} false; then :
5097   $as_echo_n "(cached) " >&6
5098 else
5099   case $CHMOD in
5100   [\\/]* | ?:[\\/]*)
5101   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5102   ;;
5103   *)
5104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5105 for as_dir in $PATH
5106 do
5107   IFS=$as_save_IFS
5108   test -z "$as_dir" && as_dir=.
5109     for ac_exec_ext in '' $ac_executable_extensions; do
5110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5111     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5113     break 2
5114   fi
5115 done
5116   done
5117 IFS=$as_save_IFS
5118 
5119   ;;
5120 esac
5121 fi
5122 CHMOD=$ac_cv_path_CHMOD
5123 if test -n "$CHMOD"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5125 $as_echo "$CHMOD" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130 
5131 
5132   test -n "$CHMOD" && break
5133 done
5134 
5135     else
5136       # If it succeeded, then it was overridden by the user. We will use it
5137       # for the tool.
5138 
5139       # First remove it from the list of overridden variables, so we can test
5140       # for unknown variables in the end.
5141       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5142 
5143       # Check if the provided tool contains a complete path.
5144       tool_specified="$CHMOD"
5145       tool_basename="${tool_specified##*/}"
5146       if test "x$tool_basename" = "x$tool_specified"; then
5147         # A command without a complete path is provided, search $PATH.
5148         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5149 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5150         # Extract the first word of "$tool_basename", so it can be a program name with args.
5151 set dummy $tool_basename; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_path_CHMOD+:} false; then :
5155   $as_echo_n "(cached) " >&6
5156 else
5157   case $CHMOD in
5158   [\\/]* | ?:[\\/]*)
5159   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5160   ;;
5161   *)
5162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165   IFS=$as_save_IFS
5166   test -z "$as_dir" && as_dir=.
5167     for ac_exec_ext in '' $ac_executable_extensions; do
5168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171     break 2
5172   fi
5173 done
5174   done
5175 IFS=$as_save_IFS
5176 
5177   ;;
5178 esac
5179 fi
5180 CHMOD=$ac_cv_path_CHMOD
5181 if test -n "$CHMOD"; then
5182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5183 $as_echo "$CHMOD" >&6; }
5184 else
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 $as_echo "no" >&6; }
5187 fi
5188 
5189 
5190         if test "x$CHMOD" = x; then
5191           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5192         fi
5193       else
5194         # Otherwise we believe it is a complete path. Use it as it is.
5195         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5196 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5197         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5198 $as_echo_n "checking for CHMOD... " >&6; }
5199         if test ! -x "$tool_specified"; then
5200           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5201 $as_echo "not found" >&6; }
5202           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5203         fi
5204         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5205 $as_echo "$tool_specified" >&6; }
5206       fi
5207     fi
5208   fi
5209 
5210 
5211 
5212   if test "x$CHMOD" = x; then
5213     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5214   fi
5215 
5216 
5217 
5218 
5219 
5220   # Publish this variable in the help.
5221 
5222 
5223   if test "x$CMP" = x; then
5224     # The variable is not set by user, try to locate tool using the code snippet
5225     for ac_prog in cmp
5226 do
5227   # Extract the first word of "$ac_prog", so it can be a program name with args.
5228 set dummy $ac_prog; ac_word=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_path_CMP+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   case $CMP in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244     for ac_exec_ext in '' $ac_executable_extensions; do
5245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5246     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251   done
5252 IFS=$as_save_IFS
5253 
5254   ;;
5255 esac
5256 fi
5257 CMP=$ac_cv_path_CMP
5258 if test -n "$CMP"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5260 $as_echo "$CMP" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265 
5266 
5267   test -n "$CMP" && break
5268 done
5269 
5270   else
5271     # The variable is set, but is it from the command line or the environment?
5272 
5273     # Try to remove the string !CMP! from our list.
5274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5276       # If it failed, the variable was not from the command line. Ignore it,
5277       # but warn the user (except for BASH, which is always set by the calling BASH).
5278       if test "xCMP" != xBASH; then
5279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5280 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5281       fi
5282       # Try to locate tool using the code snippet
5283       for ac_prog in cmp
5284 do
5285   # Extract the first word of "$ac_prog", so it can be a program name with args.
5286 set dummy $ac_prog; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if ${ac_cv_path_CMP+:} false; then :
5290   $as_echo_n "(cached) " >&6
5291 else
5292   case $CMP in
5293   [\\/]* | ?:[\\/]*)
5294   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5295   ;;
5296   *)
5297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5299 do
5300   IFS=$as_save_IFS
5301   test -z "$as_dir" && as_dir=.
5302     for ac_exec_ext in '' $ac_executable_extensions; do
5303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5304     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306     break 2
5307   fi
5308 done
5309   done
5310 IFS=$as_save_IFS
5311 
5312   ;;
5313 esac
5314 fi
5315 CMP=$ac_cv_path_CMP
5316 if test -n "$CMP"; then
5317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5318 $as_echo "$CMP" >&6; }
5319 else
5320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 $as_echo "no" >&6; }
5322 fi
5323 
5324 
5325   test -n "$CMP" && break
5326 done
5327 
5328     else
5329       # If it succeeded, then it was overridden by the user. We will use it
5330       # for the tool.
5331 
5332       # First remove it from the list of overridden variables, so we can test
5333       # for unknown variables in the end.
5334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5335 
5336       # Check if the provided tool contains a complete path.
5337       tool_specified="$CMP"
5338       tool_basename="${tool_specified##*/}"
5339       if test "x$tool_basename" = "x$tool_specified"; then
5340         # A command without a complete path is provided, search $PATH.
5341         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5342 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5343         # Extract the first word of "$tool_basename", so it can be a program name with args.
5344 set dummy $tool_basename; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_path_CMP+:} false; then :
5348   $as_echo_n "(cached) " >&6
5349 else
5350   case $CMP in
5351   [\\/]* | ?:[\\/]*)
5352   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5353   ;;
5354   *)
5355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 for as_dir in $PATH
5357 do
5358   IFS=$as_save_IFS
5359   test -z "$as_dir" && as_dir=.
5360     for ac_exec_ext in '' $ac_executable_extensions; do
5361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5364     break 2
5365   fi
5366 done
5367   done
5368 IFS=$as_save_IFS
5369 
5370   ;;
5371 esac
5372 fi
5373 CMP=$ac_cv_path_CMP
5374 if test -n "$CMP"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5376 $as_echo "$CMP" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381 
5382 
5383         if test "x$CMP" = x; then
5384           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5385         fi
5386       else
5387         # Otherwise we believe it is a complete path. Use it as it is.
5388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5389 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5391 $as_echo_n "checking for CMP... " >&6; }
5392         if test ! -x "$tool_specified"; then
5393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5394 $as_echo "not found" >&6; }
5395           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5396         fi
5397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5398 $as_echo "$tool_specified" >&6; }
5399       fi
5400     fi
5401   fi
5402 
5403 
5404 
5405   if test "x$CMP" = x; then
5406     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5407   fi
5408 
5409 
5410 
5411 
5412 
5413   # Publish this variable in the help.
5414 
5415 
5416   if test "x$COMM" = x; then
5417     # The variable is not set by user, try to locate tool using the code snippet
5418     for ac_prog in comm
5419 do
5420   # Extract the first word of "$ac_prog", so it can be a program name with args.
5421 set dummy $ac_prog; ac_word=$2
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5423 $as_echo_n "checking for $ac_word... " >&6; }
5424 if ${ac_cv_path_COMM+:} false; then :
5425   $as_echo_n "(cached) " >&6
5426 else
5427   case $COMM in
5428   [\\/]* | ?:[\\/]*)
5429   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5430   ;;
5431   *)
5432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446 
5447   ;;
5448 esac
5449 fi
5450 COMM=$ac_cv_path_COMM
5451 if test -n "$COMM"; then
5452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5453 $as_echo "$COMM" >&6; }
5454 else
5455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5457 fi
5458 
5459 
5460   test -n "$COMM" && break
5461 done
5462 
5463   else
5464     # The variable is set, but is it from the command line or the environment?
5465 
5466     # Try to remove the string !COMM! from our list.
5467     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5468     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5469       # If it failed, the variable was not from the command line. Ignore it,
5470       # but warn the user (except for BASH, which is always set by the calling BASH).
5471       if test "xCOMM" != xBASH; then
5472         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5473 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5474       fi
5475       # Try to locate tool using the code snippet
5476       for ac_prog in comm
5477 do
5478   # Extract the first word of "$ac_prog", so it can be a program name with args.
5479 set dummy $ac_prog; ac_word=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_path_COMM+:} false; then :
5483   $as_echo_n "(cached) " >&6
5484 else
5485   case $COMM in
5486   [\\/]* | ?:[\\/]*)
5487   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5488   ;;
5489   *)
5490   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 for as_dir in $PATH
5492 do
5493   IFS=$as_save_IFS
5494   test -z "$as_dir" && as_dir=.
5495     for ac_exec_ext in '' $ac_executable_extensions; do
5496   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5497     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499     break 2
5500   fi
5501 done
5502   done
5503 IFS=$as_save_IFS
5504 
5505   ;;
5506 esac
5507 fi
5508 COMM=$ac_cv_path_COMM
5509 if test -n "$COMM"; then
5510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5511 $as_echo "$COMM" >&6; }
5512 else
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5515 fi
5516 
5517 
5518   test -n "$COMM" && break
5519 done
5520 
5521     else
5522       # If it succeeded, then it was overridden by the user. We will use it
5523       # for the tool.
5524 
5525       # First remove it from the list of overridden variables, so we can test
5526       # for unknown variables in the end.
5527       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5528 
5529       # Check if the provided tool contains a complete path.
5530       tool_specified="$COMM"
5531       tool_basename="${tool_specified##*/}"
5532       if test "x$tool_basename" = "x$tool_specified"; then
5533         # A command without a complete path is provided, search $PATH.
5534         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5535 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5536         # Extract the first word of "$tool_basename", so it can be a program name with args.
5537 set dummy $tool_basename; ac_word=$2
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5539 $as_echo_n "checking for $ac_word... " >&6; }
5540 if ${ac_cv_path_COMM+:} false; then :
5541   $as_echo_n "(cached) " >&6
5542 else
5543   case $COMM in
5544   [\\/]* | ?:[\\/]*)
5545   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5546   ;;
5547   *)
5548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5555     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562 
5563   ;;
5564 esac
5565 fi
5566 COMM=$ac_cv_path_COMM
5567 if test -n "$COMM"; then
5568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5569 $as_echo "$COMM" >&6; }
5570 else
5571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5573 fi
5574 
5575 
5576         if test "x$COMM" = x; then
5577           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5578         fi
5579       else
5580         # Otherwise we believe it is a complete path. Use it as it is.
5581         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5582 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5583         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5584 $as_echo_n "checking for COMM... " >&6; }
5585         if test ! -x "$tool_specified"; then
5586           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5587 $as_echo "not found" >&6; }
5588           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5589         fi
5590         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5591 $as_echo "$tool_specified" >&6; }
5592       fi
5593     fi
5594   fi
5595 
5596 
5597 
5598   if test "x$COMM" = x; then
5599     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5600   fi
5601 
5602 
5603 
5604 
5605 
5606   # Publish this variable in the help.
5607 
5608 
5609   if test "x$CP" = x; then
5610     # The variable is not set by user, try to locate tool using the code snippet
5611     for ac_prog in cp
5612 do
5613   # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_path_CP+:} false; then :
5618   $as_echo_n "(cached) " >&6
5619 else
5620   case $CP in
5621   [\\/]* | ?:[\\/]*)
5622   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5623   ;;
5624   *)
5625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH
5627 do
5628   IFS=$as_save_IFS
5629   test -z "$as_dir" && as_dir=.
5630     for ac_exec_ext in '' $ac_executable_extensions; do
5631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5632     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634     break 2
5635   fi
5636 done
5637   done
5638 IFS=$as_save_IFS
5639 
5640   ;;
5641 esac
5642 fi
5643 CP=$ac_cv_path_CP
5644 if test -n "$CP"; then
5645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5646 $as_echo "$CP" >&6; }
5647 else
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5650 fi
5651 
5652 
5653   test -n "$CP" && break
5654 done
5655 
5656   else
5657     # The variable is set, but is it from the command line or the environment?
5658 
5659     # Try to remove the string !CP! from our list.
5660     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5661     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5662       # If it failed, the variable was not from the command line. Ignore it,
5663       # but warn the user (except for BASH, which is always set by the calling BASH).
5664       if test "xCP" != xBASH; then
5665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5666 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5667       fi
5668       # Try to locate tool using the code snippet
5669       for ac_prog in cp
5670 do
5671   # Extract the first word of "$ac_prog", so it can be a program name with args.
5672 set dummy $ac_prog; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_path_CP+:} false; then :
5676   $as_echo_n "(cached) " >&6
5677 else
5678   case $CP in
5679   [\\/]* | ?:[\\/]*)
5680   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5681   ;;
5682   *)
5683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 for as_dir in $PATH
5685 do
5686   IFS=$as_save_IFS
5687   test -z "$as_dir" && as_dir=.
5688     for ac_exec_ext in '' $ac_executable_extensions; do
5689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5690     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5692     break 2
5693   fi
5694 done
5695   done
5696 IFS=$as_save_IFS
5697 
5698   ;;
5699 esac
5700 fi
5701 CP=$ac_cv_path_CP
5702 if test -n "$CP"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5704 $as_echo "$CP" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709 
5710 
5711   test -n "$CP" && break
5712 done
5713 
5714     else
5715       # If it succeeded, then it was overridden by the user. We will use it
5716       # for the tool.
5717 
5718       # First remove it from the list of overridden variables, so we can test
5719       # for unknown variables in the end.
5720       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5721 
5722       # Check if the provided tool contains a complete path.
5723       tool_specified="$CP"
5724       tool_basename="${tool_specified##*/}"
5725       if test "x$tool_basename" = "x$tool_specified"; then
5726         # A command without a complete path is provided, search $PATH.
5727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5728 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5729         # Extract the first word of "$tool_basename", so it can be a program name with args.
5730 set dummy $tool_basename; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_path_CP+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   case $CP in
5737   [\\/]* | ?:[\\/]*)
5738   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5739   ;;
5740   *)
5741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5742 for as_dir in $PATH
5743 do
5744   IFS=$as_save_IFS
5745   test -z "$as_dir" && as_dir=.
5746     for ac_exec_ext in '' $ac_executable_extensions; do
5747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5748     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750     break 2
5751   fi
5752 done
5753   done
5754 IFS=$as_save_IFS
5755 
5756   ;;
5757 esac
5758 fi
5759 CP=$ac_cv_path_CP
5760 if test -n "$CP"; then
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5762 $as_echo "$CP" >&6; }
5763 else
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5766 fi
5767 
5768 
5769         if test "x$CP" = x; then
5770           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5771         fi
5772       else
5773         # Otherwise we believe it is a complete path. Use it as it is.
5774         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5775 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5777 $as_echo_n "checking for CP... " >&6; }
5778         if test ! -x "$tool_specified"; then
5779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5780 $as_echo "not found" >&6; }
5781           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5782         fi
5783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5784 $as_echo "$tool_specified" >&6; }
5785       fi
5786     fi
5787   fi
5788 
5789 
5790 
5791   if test "x$CP" = x; then
5792     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5793   fi
5794 
5795 
5796 
5797 
5798 
5799   # Publish this variable in the help.
5800 
5801 
5802   if test "x$CUT" = x; then
5803     # The variable is not set by user, try to locate tool using the code snippet
5804     for ac_prog in cut
5805 do
5806   # Extract the first word of "$ac_prog", so it can be a program name with args.
5807 set dummy $ac_prog; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_path_CUT+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $CUT in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832 
5833   ;;
5834 esac
5835 fi
5836 CUT=$ac_cv_path_CUT
5837 if test -n "$CUT"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5839 $as_echo "$CUT" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844 
5845 
5846   test -n "$CUT" && break
5847 done
5848 
5849   else
5850     # The variable is set, but is it from the command line or the environment?
5851 
5852     # Try to remove the string !CUT! from our list.
5853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5855       # If it failed, the variable was not from the command line. Ignore it,
5856       # but warn the user (except for BASH, which is always set by the calling BASH).
5857       if test "xCUT" != xBASH; then
5858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5859 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5860       fi
5861       # Try to locate tool using the code snippet
5862       for ac_prog in cut
5863 do
5864   # Extract the first word of "$ac_prog", so it can be a program name with args.
5865 set dummy $ac_prog; ac_word=$2
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5867 $as_echo_n "checking for $ac_word... " >&6; }
5868 if ${ac_cv_path_CUT+:} false; then :
5869   $as_echo_n "(cached) " >&6
5870 else
5871   case $CUT in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881     for ac_exec_ext in '' $ac_executable_extensions; do
5882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888   done
5889 IFS=$as_save_IFS
5890 
5891   ;;
5892 esac
5893 fi
5894 CUT=$ac_cv_path_CUT
5895 if test -n "$CUT"; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5897 $as_echo "$CUT" >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900 $as_echo "no" >&6; }
5901 fi
5902 
5903 
5904   test -n "$CUT" && break
5905 done
5906 
5907     else
5908       # If it succeeded, then it was overridden by the user. We will use it
5909       # for the tool.
5910 
5911       # First remove it from the list of overridden variables, so we can test
5912       # for unknown variables in the end.
5913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5914 
5915       # Check if the provided tool contains a complete path.
5916       tool_specified="$CUT"
5917       tool_basename="${tool_specified##*/}"
5918       if test "x$tool_basename" = "x$tool_specified"; then
5919         # A command without a complete path is provided, search $PATH.
5920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5921 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5922         # Extract the first word of "$tool_basename", so it can be a program name with args.
5923 set dummy $tool_basename; ac_word=$2
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 $as_echo_n "checking for $ac_word... " >&6; }
5926 if ${ac_cv_path_CUT+:} false; then :
5927   $as_echo_n "(cached) " >&6
5928 else
5929   case $CUT in
5930   [\\/]* | ?:[\\/]*)
5931   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5932   ;;
5933   *)
5934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5935 for as_dir in $PATH
5936 do
5937   IFS=$as_save_IFS
5938   test -z "$as_dir" && as_dir=.
5939     for ac_exec_ext in '' $ac_executable_extensions; do
5940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5941     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5943     break 2
5944   fi
5945 done
5946   done
5947 IFS=$as_save_IFS
5948 
5949   ;;
5950 esac
5951 fi
5952 CUT=$ac_cv_path_CUT
5953 if test -n "$CUT"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5955 $as_echo "$CUT" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960 
5961 
5962         if test "x$CUT" = x; then
5963           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5964         fi
5965       else
5966         # Otherwise we believe it is a complete path. Use it as it is.
5967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5968 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5970 $as_echo_n "checking for CUT... " >&6; }
5971         if test ! -x "$tool_specified"; then
5972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5973 $as_echo "not found" >&6; }
5974           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5975         fi
5976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5977 $as_echo "$tool_specified" >&6; }
5978       fi
5979     fi
5980   fi
5981 
5982 
5983 
5984   if test "x$CUT" = x; then
5985     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5986   fi
5987 
5988 
5989 
5990 
5991 
5992   # Publish this variable in the help.
5993 
5994 
5995   if test "x$DATE" = x; then
5996     # The variable is not set by user, try to locate tool using the code snippet
5997     for ac_prog in date
5998 do
5999   # Extract the first word of "$ac_prog", so it can be a program name with args.
6000 set dummy $ac_prog; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if ${ac_cv_path_DATE+:} false; then :
6004   $as_echo_n "(cached) " >&6
6005 else
6006   case $DATE in
6007   [\\/]* | ?:[\\/]*)
6008   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6009   ;;
6010   *)
6011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016     for ac_exec_ext in '' $ac_executable_extensions; do
6017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6018     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023   done
6024 IFS=$as_save_IFS
6025 
6026   ;;
6027 esac
6028 fi
6029 DATE=$ac_cv_path_DATE
6030 if test -n "$DATE"; then
6031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6032 $as_echo "$DATE" >&6; }
6033 else
6034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6035 $as_echo "no" >&6; }
6036 fi
6037 
6038 
6039   test -n "$DATE" && break
6040 done
6041 
6042   else
6043     # The variable is set, but is it from the command line or the environment?
6044 
6045     # Try to remove the string !DATE! from our list.
6046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6048       # If it failed, the variable was not from the command line. Ignore it,
6049       # but warn the user (except for BASH, which is always set by the calling BASH).
6050       if test "xDATE" != xBASH; then
6051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6052 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6053       fi
6054       # Try to locate tool using the code snippet
6055       for ac_prog in date
6056 do
6057   # Extract the first word of "$ac_prog", so it can be a program name with args.
6058 set dummy $ac_prog; ac_word=$2
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6060 $as_echo_n "checking for $ac_word... " >&6; }
6061 if ${ac_cv_path_DATE+:} false; then :
6062   $as_echo_n "(cached) " >&6
6063 else
6064   case $DATE in
6065   [\\/]* | ?:[\\/]*)
6066   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6067   ;;
6068   *)
6069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_exec_ext in '' $ac_executable_extensions; do
6075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6076     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6078     break 2
6079   fi
6080 done
6081   done
6082 IFS=$as_save_IFS
6083 
6084   ;;
6085 esac
6086 fi
6087 DATE=$ac_cv_path_DATE
6088 if test -n "$DATE"; then
6089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6090 $as_echo "$DATE" >&6; }
6091 else
6092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093 $as_echo "no" >&6; }
6094 fi
6095 
6096 
6097   test -n "$DATE" && break
6098 done
6099 
6100     else
6101       # If it succeeded, then it was overridden by the user. We will use it
6102       # for the tool.
6103 
6104       # First remove it from the list of overridden variables, so we can test
6105       # for unknown variables in the end.
6106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6107 
6108       # Check if the provided tool contains a complete path.
6109       tool_specified="$DATE"
6110       tool_basename="${tool_specified##*/}"
6111       if test "x$tool_basename" = "x$tool_specified"; then
6112         # A command without a complete path is provided, search $PATH.
6113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6114 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6115         # Extract the first word of "$tool_basename", so it can be a program name with args.
6116 set dummy $tool_basename; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_path_DATE+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   case $DATE in
6123   [\\/]* | ?:[\\/]*)
6124   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6125   ;;
6126   *)
6127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6129 do
6130   IFS=$as_save_IFS
6131   test -z "$as_dir" && as_dir=.
6132     for ac_exec_ext in '' $ac_executable_extensions; do
6133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6134     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136     break 2
6137   fi
6138 done
6139   done
6140 IFS=$as_save_IFS
6141 
6142   ;;
6143 esac
6144 fi
6145 DATE=$ac_cv_path_DATE
6146 if test -n "$DATE"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6148 $as_echo "$DATE" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153 
6154 
6155         if test "x$DATE" = x; then
6156           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6157         fi
6158       else
6159         # Otherwise we believe it is a complete path. Use it as it is.
6160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6161 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6163 $as_echo_n "checking for DATE... " >&6; }
6164         if test ! -x "$tool_specified"; then
6165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6166 $as_echo "not found" >&6; }
6167           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6168         fi
6169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6170 $as_echo "$tool_specified" >&6; }
6171       fi
6172     fi
6173   fi
6174 
6175 
6176 
6177   if test "x$DATE" = x; then
6178     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6179   fi
6180 
6181 
6182 
6183 
6184 
6185   # Publish this variable in the help.
6186 
6187 
6188   if test "x$DIFF" = x; then
6189     # The variable is not set by user, try to locate tool using the code snippet
6190     for ac_prog in gdiff diff
6191 do
6192   # Extract the first word of "$ac_prog", so it can be a program name with args.
6193 set dummy $ac_prog; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_path_DIFF+:} false; then :
6197   $as_echo_n "(cached) " >&6
6198 else
6199   case $DIFF in
6200   [\\/]* | ?:[\\/]*)
6201   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6202   ;;
6203   *)
6204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6205 for as_dir in $PATH
6206 do
6207   IFS=$as_save_IFS
6208   test -z "$as_dir" && as_dir=.
6209     for ac_exec_ext in '' $ac_executable_extensions; do
6210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6211     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6213     break 2
6214   fi
6215 done
6216   done
6217 IFS=$as_save_IFS
6218 
6219   ;;
6220 esac
6221 fi
6222 DIFF=$ac_cv_path_DIFF
6223 if test -n "$DIFF"; then
6224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6225 $as_echo "$DIFF" >&6; }
6226 else
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230 
6231 
6232   test -n "$DIFF" && break
6233 done
6234 
6235   else
6236     # The variable is set, but is it from the command line or the environment?
6237 
6238     # Try to remove the string !DIFF! from our list.
6239     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6240     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6241       # If it failed, the variable was not from the command line. Ignore it,
6242       # but warn the user (except for BASH, which is always set by the calling BASH).
6243       if test "xDIFF" != xBASH; then
6244         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6245 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6246       fi
6247       # Try to locate tool using the code snippet
6248       for ac_prog in gdiff diff
6249 do
6250   # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if ${ac_cv_path_DIFF+:} false; then :
6255   $as_echo_n "(cached) " >&6
6256 else
6257   case $DIFF in
6258   [\\/]* | ?:[\\/]*)
6259   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6260   ;;
6261   *)
6262   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6263 for as_dir in $PATH
6264 do
6265   IFS=$as_save_IFS
6266   test -z "$as_dir" && as_dir=.
6267     for ac_exec_ext in '' $ac_executable_extensions; do
6268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6269     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6271     break 2
6272   fi
6273 done
6274   done
6275 IFS=$as_save_IFS
6276 
6277   ;;
6278 esac
6279 fi
6280 DIFF=$ac_cv_path_DIFF
6281 if test -n "$DIFF"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6283 $as_echo "$DIFF" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 
6289 
6290   test -n "$DIFF" && break
6291 done
6292 
6293     else
6294       # If it succeeded, then it was overridden by the user. We will use it
6295       # for the tool.
6296 
6297       # First remove it from the list of overridden variables, so we can test
6298       # for unknown variables in the end.
6299       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6300 
6301       # Check if the provided tool contains a complete path.
6302       tool_specified="$DIFF"
6303       tool_basename="${tool_specified##*/}"
6304       if test "x$tool_basename" = "x$tool_specified"; then
6305         # A command without a complete path is provided, search $PATH.
6306         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6307 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6308         # Extract the first word of "$tool_basename", so it can be a program name with args.
6309 set dummy $tool_basename; ac_word=$2
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6311 $as_echo_n "checking for $ac_word... " >&6; }
6312 if ${ac_cv_path_DIFF+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   case $DIFF in
6316   [\\/]* | ?:[\\/]*)
6317   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6318   ;;
6319   *)
6320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6321 for as_dir in $PATH
6322 do
6323   IFS=$as_save_IFS
6324   test -z "$as_dir" && as_dir=.
6325     for ac_exec_ext in '' $ac_executable_extensions; do
6326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6327     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6329     break 2
6330   fi
6331 done
6332   done
6333 IFS=$as_save_IFS
6334 
6335   ;;
6336 esac
6337 fi
6338 DIFF=$ac_cv_path_DIFF
6339 if test -n "$DIFF"; then
6340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6341 $as_echo "$DIFF" >&6; }
6342 else
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6345 fi
6346 
6347 
6348         if test "x$DIFF" = x; then
6349           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6350         fi
6351       else
6352         # Otherwise we believe it is a complete path. Use it as it is.
6353         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6354 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6355         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6356 $as_echo_n "checking for DIFF... " >&6; }
6357         if test ! -x "$tool_specified"; then
6358           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6359 $as_echo "not found" >&6; }
6360           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6361         fi
6362         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6363 $as_echo "$tool_specified" >&6; }
6364       fi
6365     fi
6366   fi
6367 
6368 
6369 
6370   if test "x$DIFF" = x; then
6371     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6372   fi
6373 
6374 
6375 
6376 
6377 
6378   # Publish this variable in the help.
6379 
6380 
6381   if test "x$DIRNAME" = x; then
6382     # The variable is not set by user, try to locate tool using the code snippet
6383     for ac_prog in dirname
6384 do
6385   # Extract the first word of "$ac_prog", so it can be a program name with args.
6386 set dummy $ac_prog; ac_word=$2
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6388 $as_echo_n "checking for $ac_word... " >&6; }
6389 if ${ac_cv_path_DIRNAME+:} false; then :
6390   $as_echo_n "(cached) " >&6
6391 else
6392   case $DIRNAME in
6393   [\\/]* | ?:[\\/]*)
6394   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6395   ;;
6396   *)
6397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400   IFS=$as_save_IFS
6401   test -z "$as_dir" && as_dir=.
6402     for ac_exec_ext in '' $ac_executable_extensions; do
6403   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406     break 2
6407   fi
6408 done
6409   done
6410 IFS=$as_save_IFS
6411 
6412   ;;
6413 esac
6414 fi
6415 DIRNAME=$ac_cv_path_DIRNAME
6416 if test -n "$DIRNAME"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6418 $as_echo "$DIRNAME" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423 
6424 
6425   test -n "$DIRNAME" && break
6426 done
6427 
6428   else
6429     # The variable is set, but is it from the command line or the environment?
6430 
6431     # Try to remove the string !DIRNAME! from our list.
6432     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6433     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6434       # If it failed, the variable was not from the command line. Ignore it,
6435       # but warn the user (except for BASH, which is always set by the calling BASH).
6436       if test "xDIRNAME" != xBASH; then
6437         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6438 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6439       fi
6440       # Try to locate tool using the code snippet
6441       for ac_prog in dirname
6442 do
6443   # Extract the first word of "$ac_prog", so it can be a program name with args.
6444 set dummy $ac_prog; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_path_DIRNAME+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   case $DIRNAME in
6451   [\\/]* | ?:[\\/]*)
6452   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6453   ;;
6454   *)
6455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6457 do
6458   IFS=$as_save_IFS
6459   test -z "$as_dir" && as_dir=.
6460     for ac_exec_ext in '' $ac_executable_extensions; do
6461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6462     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464     break 2
6465   fi
6466 done
6467   done
6468 IFS=$as_save_IFS
6469 
6470   ;;
6471 esac
6472 fi
6473 DIRNAME=$ac_cv_path_DIRNAME
6474 if test -n "$DIRNAME"; then
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6476 $as_echo "$DIRNAME" >&6; }
6477 else
6478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481 
6482 
6483   test -n "$DIRNAME" && break
6484 done
6485 
6486     else
6487       # If it succeeded, then it was overridden by the user. We will use it
6488       # for the tool.
6489 
6490       # First remove it from the list of overridden variables, so we can test
6491       # for unknown variables in the end.
6492       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6493 
6494       # Check if the provided tool contains a complete path.
6495       tool_specified="$DIRNAME"
6496       tool_basename="${tool_specified##*/}"
6497       if test "x$tool_basename" = "x$tool_specified"; then
6498         # A command without a complete path is provided, search $PATH.
6499         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6500 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6501         # Extract the first word of "$tool_basename", so it can be a program name with args.
6502 set dummy $tool_basename; ac_word=$2
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504 $as_echo_n "checking for $ac_word... " >&6; }
6505 if ${ac_cv_path_DIRNAME+:} false; then :
6506   $as_echo_n "(cached) " >&6
6507 else
6508   case $DIRNAME in
6509   [\\/]* | ?:[\\/]*)
6510   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6511   ;;
6512   *)
6513   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6515 do
6516   IFS=$as_save_IFS
6517   test -z "$as_dir" && as_dir=.
6518     for ac_exec_ext in '' $ac_executable_extensions; do
6519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6520     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522     break 2
6523   fi
6524 done
6525   done
6526 IFS=$as_save_IFS
6527 
6528   ;;
6529 esac
6530 fi
6531 DIRNAME=$ac_cv_path_DIRNAME
6532 if test -n "$DIRNAME"; then
6533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6534 $as_echo "$DIRNAME" >&6; }
6535 else
6536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6537 $as_echo "no" >&6; }
6538 fi
6539 
6540 
6541         if test "x$DIRNAME" = x; then
6542           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6543         fi
6544       else
6545         # Otherwise we believe it is a complete path. Use it as it is.
6546         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6547 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6548         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6549 $as_echo_n "checking for DIRNAME... " >&6; }
6550         if test ! -x "$tool_specified"; then
6551           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6552 $as_echo "not found" >&6; }
6553           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6554         fi
6555         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6556 $as_echo "$tool_specified" >&6; }
6557       fi
6558     fi
6559   fi
6560 
6561 
6562 
6563   if test "x$DIRNAME" = x; then
6564     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6565   fi
6566 
6567 
6568 
6569 
6570 
6571   # Publish this variable in the help.
6572 
6573 
6574   if test "x$ECHO" = x; then
6575     # The variable is not set by user, try to locate tool using the code snippet
6576     for ac_prog in echo
6577 do
6578   # Extract the first word of "$ac_prog", so it can be a program name with args.
6579 set dummy $ac_prog; ac_word=$2
6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6581 $as_echo_n "checking for $ac_word... " >&6; }
6582 if ${ac_cv_path_ECHO+:} false; then :
6583   $as_echo_n "(cached) " >&6
6584 else
6585   case $ECHO in
6586   [\\/]* | ?:[\\/]*)
6587   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6588   ;;
6589   *)
6590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593   IFS=$as_save_IFS
6594   test -z "$as_dir" && as_dir=.
6595     for ac_exec_ext in '' $ac_executable_extensions; do
6596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6597     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6599     break 2
6600   fi
6601 done
6602   done
6603 IFS=$as_save_IFS
6604 
6605   ;;
6606 esac
6607 fi
6608 ECHO=$ac_cv_path_ECHO
6609 if test -n "$ECHO"; then
6610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6611 $as_echo "$ECHO" >&6; }
6612 else
6613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6614 $as_echo "no" >&6; }
6615 fi
6616 
6617 
6618   test -n "$ECHO" && break
6619 done
6620 
6621   else
6622     # The variable is set, but is it from the command line or the environment?
6623 
6624     # Try to remove the string !ECHO! from our list.
6625     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6626     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6627       # If it failed, the variable was not from the command line. Ignore it,
6628       # but warn the user (except for BASH, which is always set by the calling BASH).
6629       if test "xECHO" != xBASH; then
6630         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6631 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6632       fi
6633       # Try to locate tool using the code snippet
6634       for ac_prog in echo
6635 do
6636   # Extract the first word of "$ac_prog", so it can be a program name with args.
6637 set dummy $ac_prog; ac_word=$2
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6639 $as_echo_n "checking for $ac_word... " >&6; }
6640 if ${ac_cv_path_ECHO+:} false; then :
6641   $as_echo_n "(cached) " >&6
6642 else
6643   case $ECHO in
6644   [\\/]* | ?:[\\/]*)
6645   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6646   ;;
6647   *)
6648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6650 do
6651   IFS=$as_save_IFS
6652   test -z "$as_dir" && as_dir=.
6653     for ac_exec_ext in '' $ac_executable_extensions; do
6654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6657     break 2
6658   fi
6659 done
6660   done
6661 IFS=$as_save_IFS
6662 
6663   ;;
6664 esac
6665 fi
6666 ECHO=$ac_cv_path_ECHO
6667 if test -n "$ECHO"; then
6668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6669 $as_echo "$ECHO" >&6; }
6670 else
6671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6672 $as_echo "no" >&6; }
6673 fi
6674 
6675 
6676   test -n "$ECHO" && break
6677 done
6678 
6679     else
6680       # If it succeeded, then it was overridden by the user. We will use it
6681       # for the tool.
6682 
6683       # First remove it from the list of overridden variables, so we can test
6684       # for unknown variables in the end.
6685       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6686 
6687       # Check if the provided tool contains a complete path.
6688       tool_specified="$ECHO"
6689       tool_basename="${tool_specified##*/}"
6690       if test "x$tool_basename" = "x$tool_specified"; then
6691         # A command without a complete path is provided, search $PATH.
6692         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6693 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6694         # Extract the first word of "$tool_basename", so it can be a program name with args.
6695 set dummy $tool_basename; ac_word=$2
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6697 $as_echo_n "checking for $ac_word... " >&6; }
6698 if ${ac_cv_path_ECHO+:} false; then :
6699   $as_echo_n "(cached) " >&6
6700 else
6701   case $ECHO in
6702   [\\/]* | ?:[\\/]*)
6703   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6704   ;;
6705   *)
6706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707 for as_dir in $PATH
6708 do
6709   IFS=$as_save_IFS
6710   test -z "$as_dir" && as_dir=.
6711     for ac_exec_ext in '' $ac_executable_extensions; do
6712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6713     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6715     break 2
6716   fi
6717 done
6718   done
6719 IFS=$as_save_IFS
6720 
6721   ;;
6722 esac
6723 fi
6724 ECHO=$ac_cv_path_ECHO
6725 if test -n "$ECHO"; then
6726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6727 $as_echo "$ECHO" >&6; }
6728 else
6729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6730 $as_echo "no" >&6; }
6731 fi
6732 
6733 
6734         if test "x$ECHO" = x; then
6735           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6736         fi
6737       else
6738         # Otherwise we believe it is a complete path. Use it as it is.
6739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6740 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6741         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6742 $as_echo_n "checking for ECHO... " >&6; }
6743         if test ! -x "$tool_specified"; then
6744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6745 $as_echo "not found" >&6; }
6746           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6747         fi
6748         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6749 $as_echo "$tool_specified" >&6; }
6750       fi
6751     fi
6752   fi
6753 
6754 
6755 
6756   if test "x$ECHO" = x; then
6757     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6758   fi
6759 
6760 
6761 
6762 
6763 
6764   # Publish this variable in the help.
6765 
6766 
6767   if test "x$EXPR" = x; then
6768     # The variable is not set by user, try to locate tool using the code snippet
6769     for ac_prog in expr
6770 do
6771   # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6774 $as_echo_n "checking for $ac_word... " >&6; }
6775 if ${ac_cv_path_EXPR+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   case $EXPR in
6779   [\\/]* | ?:[\\/]*)
6780   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6781   ;;
6782   *)
6783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6784 for as_dir in $PATH
6785 do
6786   IFS=$as_save_IFS
6787   test -z "$as_dir" && as_dir=.
6788     for ac_exec_ext in '' $ac_executable_extensions; do
6789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6790     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6792     break 2
6793   fi
6794 done
6795   done
6796 IFS=$as_save_IFS
6797 
6798   ;;
6799 esac
6800 fi
6801 EXPR=$ac_cv_path_EXPR
6802 if test -n "$EXPR"; then
6803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6804 $as_echo "$EXPR" >&6; }
6805 else
6806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 $as_echo "no" >&6; }
6808 fi
6809 
6810 
6811   test -n "$EXPR" && break
6812 done
6813 
6814   else
6815     # The variable is set, but is it from the command line or the environment?
6816 
6817     # Try to remove the string !EXPR! from our list.
6818     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6819     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6820       # If it failed, the variable was not from the command line. Ignore it,
6821       # but warn the user (except for BASH, which is always set by the calling BASH).
6822       if test "xEXPR" != xBASH; then
6823         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6824 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6825       fi
6826       # Try to locate tool using the code snippet
6827       for ac_prog in expr
6828 do
6829   # Extract the first word of "$ac_prog", so it can be a program name with args.
6830 set dummy $ac_prog; ac_word=$2
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6832 $as_echo_n "checking for $ac_word... " >&6; }
6833 if ${ac_cv_path_EXPR+:} false; then :
6834   $as_echo_n "(cached) " >&6
6835 else
6836   case $EXPR in
6837   [\\/]* | ?:[\\/]*)
6838   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6839   ;;
6840   *)
6841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846     for ac_exec_ext in '' $ac_executable_extensions; do
6847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853   done
6854 IFS=$as_save_IFS
6855 
6856   ;;
6857 esac
6858 fi
6859 EXPR=$ac_cv_path_EXPR
6860 if test -n "$EXPR"; then
6861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6862 $as_echo "$EXPR" >&6; }
6863 else
6864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6865 $as_echo "no" >&6; }
6866 fi
6867 
6868 
6869   test -n "$EXPR" && break
6870 done
6871 
6872     else
6873       # If it succeeded, then it was overridden by the user. We will use it
6874       # for the tool.
6875 
6876       # First remove it from the list of overridden variables, so we can test
6877       # for unknown variables in the end.
6878       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6879 
6880       # Check if the provided tool contains a complete path.
6881       tool_specified="$EXPR"
6882       tool_basename="${tool_specified##*/}"
6883       if test "x$tool_basename" = "x$tool_specified"; then
6884         # A command without a complete path is provided, search $PATH.
6885         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6886 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6887         # Extract the first word of "$tool_basename", so it can be a program name with args.
6888 set dummy $tool_basename; ac_word=$2
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890 $as_echo_n "checking for $ac_word... " >&6; }
6891 if ${ac_cv_path_EXPR+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894   case $EXPR in
6895   [\\/]* | ?:[\\/]*)
6896   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6897   ;;
6898   *)
6899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900 for as_dir in $PATH
6901 do
6902   IFS=$as_save_IFS
6903   test -z "$as_dir" && as_dir=.
6904     for ac_exec_ext in '' $ac_executable_extensions; do
6905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6906     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908     break 2
6909   fi
6910 done
6911   done
6912 IFS=$as_save_IFS
6913 
6914   ;;
6915 esac
6916 fi
6917 EXPR=$ac_cv_path_EXPR
6918 if test -n "$EXPR"; then
6919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6920 $as_echo "$EXPR" >&6; }
6921 else
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6923 $as_echo "no" >&6; }
6924 fi
6925 
6926 
6927         if test "x$EXPR" = x; then
6928           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6929         fi
6930       else
6931         # Otherwise we believe it is a complete path. Use it as it is.
6932         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6933 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6934         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6935 $as_echo_n "checking for EXPR... " >&6; }
6936         if test ! -x "$tool_specified"; then
6937           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6938 $as_echo "not found" >&6; }
6939           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6940         fi
6941         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6942 $as_echo "$tool_specified" >&6; }
6943       fi
6944     fi
6945   fi
6946 
6947 
6948 
6949   if test "x$EXPR" = x; then
6950     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6951   fi
6952 
6953 
6954 
6955 
6956 
6957   # Publish this variable in the help.
6958 
6959 
6960   if test "x$FILE" = x; then
6961     # The variable is not set by user, try to locate tool using the code snippet
6962     for ac_prog in file
6963 do
6964   # Extract the first word of "$ac_prog", so it can be a program name with args.
6965 set dummy $ac_prog; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if ${ac_cv_path_FILE+:} false; then :
6969   $as_echo_n "(cached) " >&6
6970 else
6971   case $FILE in
6972   [\\/]* | ?:[\\/]*)
6973   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6974   ;;
6975   *)
6976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6977 for as_dir in $PATH
6978 do
6979   IFS=$as_save_IFS
6980   test -z "$as_dir" && as_dir=.
6981     for ac_exec_ext in '' $ac_executable_extensions; do
6982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6983     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985     break 2
6986   fi
6987 done
6988   done
6989 IFS=$as_save_IFS
6990 
6991   ;;
6992 esac
6993 fi
6994 FILE=$ac_cv_path_FILE
6995 if test -n "$FILE"; then
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6997 $as_echo "$FILE" >&6; }
6998 else
6999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7001 fi
7002 
7003 
7004   test -n "$FILE" && break
7005 done
7006 
7007   else
7008     # The variable is set, but is it from the command line or the environment?
7009 
7010     # Try to remove the string !FILE! from our list.
7011     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7012     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7013       # If it failed, the variable was not from the command line. Ignore it,
7014       # but warn the user (except for BASH, which is always set by the calling BASH).
7015       if test "xFILE" != xBASH; then
7016         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7017 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7018       fi
7019       # Try to locate tool using the code snippet
7020       for ac_prog in file
7021 do
7022   # Extract the first word of "$ac_prog", so it can be a program name with args.
7023 set dummy $ac_prog; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7025 $as_echo_n "checking for $ac_word... " >&6; }
7026 if ${ac_cv_path_FILE+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029   case $FILE in
7030   [\\/]* | ?:[\\/]*)
7031   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7032   ;;
7033   *)
7034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048 
7049   ;;
7050 esac
7051 fi
7052 FILE=$ac_cv_path_FILE
7053 if test -n "$FILE"; then
7054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7055 $as_echo "$FILE" >&6; }
7056 else
7057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7058 $as_echo "no" >&6; }
7059 fi
7060 
7061 
7062   test -n "$FILE" && break
7063 done
7064 
7065     else
7066       # If it succeeded, then it was overridden by the user. We will use it
7067       # for the tool.
7068 
7069       # First remove it from the list of overridden variables, so we can test
7070       # for unknown variables in the end.
7071       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7072 
7073       # Check if the provided tool contains a complete path.
7074       tool_specified="$FILE"
7075       tool_basename="${tool_specified##*/}"
7076       if test "x$tool_basename" = "x$tool_specified"; then
7077         # A command without a complete path is provided, search $PATH.
7078         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7079 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7080         # Extract the first word of "$tool_basename", so it can be a program name with args.
7081 set dummy $tool_basename; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_path_FILE+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   case $FILE in
7088   [\\/]* | ?:[\\/]*)
7089   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7090   ;;
7091   *)
7092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106 
7107   ;;
7108 esac
7109 fi
7110 FILE=$ac_cv_path_FILE
7111 if test -n "$FILE"; then
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7113 $as_echo "$FILE" >&6; }
7114 else
7115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116 $as_echo "no" >&6; }
7117 fi
7118 
7119 
7120         if test "x$FILE" = x; then
7121           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7122         fi
7123       else
7124         # Otherwise we believe it is a complete path. Use it as it is.
7125         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7126 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7127         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7128 $as_echo_n "checking for FILE... " >&6; }
7129         if test ! -x "$tool_specified"; then
7130           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7131 $as_echo "not found" >&6; }
7132           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7133         fi
7134         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7135 $as_echo "$tool_specified" >&6; }
7136       fi
7137     fi
7138   fi
7139 
7140 
7141 
7142   if test "x$FILE" = x; then
7143     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7144   fi
7145 
7146 
7147 
7148 
7149 
7150   # Publish this variable in the help.
7151 
7152 
7153   if test "x$FIND" = x; then
7154     # The variable is not set by user, try to locate tool using the code snippet
7155     for ac_prog in find
7156 do
7157   # Extract the first word of "$ac_prog", so it can be a program name with args.
7158 set dummy $ac_prog; ac_word=$2
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7160 $as_echo_n "checking for $ac_word... " >&6; }
7161 if ${ac_cv_path_FIND+:} false; then :
7162   $as_echo_n "(cached) " >&6
7163 else
7164   case $FIND in
7165   [\\/]* | ?:[\\/]*)
7166   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7167   ;;
7168   *)
7169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH
7171 do
7172   IFS=$as_save_IFS
7173   test -z "$as_dir" && as_dir=.
7174     for ac_exec_ext in '' $ac_executable_extensions; do
7175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7176     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7178     break 2
7179   fi
7180 done
7181   done
7182 IFS=$as_save_IFS
7183 
7184   ;;
7185 esac
7186 fi
7187 FIND=$ac_cv_path_FIND
7188 if test -n "$FIND"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7190 $as_echo "$FIND" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195 
7196 
7197   test -n "$FIND" && break
7198 done
7199 
7200   else
7201     # The variable is set, but is it from the command line or the environment?
7202 
7203     # Try to remove the string !FIND! from our list.
7204     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7205     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7206       # If it failed, the variable was not from the command line. Ignore it,
7207       # but warn the user (except for BASH, which is always set by the calling BASH).
7208       if test "xFIND" != xBASH; then
7209         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7210 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7211       fi
7212       # Try to locate tool using the code snippet
7213       for ac_prog in find
7214 do
7215   # Extract the first word of "$ac_prog", so it can be a program name with args.
7216 set dummy $ac_prog; ac_word=$2
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218 $as_echo_n "checking for $ac_word... " >&6; }
7219 if ${ac_cv_path_FIND+:} false; then :
7220   $as_echo_n "(cached) " >&6
7221 else
7222   case $FIND in
7223   [\\/]* | ?:[\\/]*)
7224   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7225   ;;
7226   *)
7227   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7228 for as_dir in $PATH
7229 do
7230   IFS=$as_save_IFS
7231   test -z "$as_dir" && as_dir=.
7232     for ac_exec_ext in '' $ac_executable_extensions; do
7233   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7234     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7236     break 2
7237   fi
7238 done
7239   done
7240 IFS=$as_save_IFS
7241 
7242   ;;
7243 esac
7244 fi
7245 FIND=$ac_cv_path_FIND
7246 if test -n "$FIND"; then
7247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7248 $as_echo "$FIND" >&6; }
7249 else
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7251 $as_echo "no" >&6; }
7252 fi
7253 
7254 
7255   test -n "$FIND" && break
7256 done
7257 
7258     else
7259       # If it succeeded, then it was overridden by the user. We will use it
7260       # for the tool.
7261 
7262       # First remove it from the list of overridden variables, so we can test
7263       # for unknown variables in the end.
7264       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7265 
7266       # Check if the provided tool contains a complete path.
7267       tool_specified="$FIND"
7268       tool_basename="${tool_specified##*/}"
7269       if test "x$tool_basename" = "x$tool_specified"; then
7270         # A command without a complete path is provided, search $PATH.
7271         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7272 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7273         # Extract the first word of "$tool_basename", so it can be a program name with args.
7274 set dummy $tool_basename; ac_word=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_path_FIND+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   case $FIND in
7281   [\\/]* | ?:[\\/]*)
7282   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7283   ;;
7284   *)
7285   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286 for as_dir in $PATH
7287 do
7288   IFS=$as_save_IFS
7289   test -z "$as_dir" && as_dir=.
7290     for ac_exec_ext in '' $ac_executable_extensions; do
7291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7292     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294     break 2
7295   fi
7296 done
7297   done
7298 IFS=$as_save_IFS
7299 
7300   ;;
7301 esac
7302 fi
7303 FIND=$ac_cv_path_FIND
7304 if test -n "$FIND"; then
7305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7306 $as_echo "$FIND" >&6; }
7307 else
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7310 fi
7311 
7312 
7313         if test "x$FIND" = x; then
7314           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7315         fi
7316       else
7317         # Otherwise we believe it is a complete path. Use it as it is.
7318         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7319 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7320         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7321 $as_echo_n "checking for FIND... " >&6; }
7322         if test ! -x "$tool_specified"; then
7323           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7324 $as_echo "not found" >&6; }
7325           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7326         fi
7327         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7328 $as_echo "$tool_specified" >&6; }
7329       fi
7330     fi
7331   fi
7332 
7333 
7334 
7335   if test "x$FIND" = x; then
7336     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7337   fi
7338 
7339 
7340 
7341 
7342 
7343   # Publish this variable in the help.
7344 
7345 
7346   if test "x$HEAD" = x; then
7347     # The variable is not set by user, try to locate tool using the code snippet
7348     for ac_prog in head
7349 do
7350   # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_path_HEAD+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   case $HEAD in
7358   [\\/]* | ?:[\\/]*)
7359   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7360   ;;
7361   *)
7362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7364 do
7365   IFS=$as_save_IFS
7366   test -z "$as_dir" && as_dir=.
7367     for ac_exec_ext in '' $ac_executable_extensions; do
7368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371     break 2
7372   fi
7373 done
7374   done
7375 IFS=$as_save_IFS
7376 
7377   ;;
7378 esac
7379 fi
7380 HEAD=$ac_cv_path_HEAD
7381 if test -n "$HEAD"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7383 $as_echo "$HEAD" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388 
7389 
7390   test -n "$HEAD" && break
7391 done
7392 
7393   else
7394     # The variable is set, but is it from the command line or the environment?
7395 
7396     # Try to remove the string !HEAD! from our list.
7397     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7398     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7399       # If it failed, the variable was not from the command line. Ignore it,
7400       # but warn the user (except for BASH, which is always set by the calling BASH).
7401       if test "xHEAD" != xBASH; then
7402         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7403 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7404       fi
7405       # Try to locate tool using the code snippet
7406       for ac_prog in head
7407 do
7408   # Extract the first word of "$ac_prog", so it can be a program name with args.
7409 set dummy $ac_prog; ac_word=$2
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7411 $as_echo_n "checking for $ac_word... " >&6; }
7412 if ${ac_cv_path_HEAD+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   case $HEAD in
7416   [\\/]* | ?:[\\/]*)
7417   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7418   ;;
7419   *)
7420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7422 do
7423   IFS=$as_save_IFS
7424   test -z "$as_dir" && as_dir=.
7425     for ac_exec_ext in '' $ac_executable_extensions; do
7426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7427     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429     break 2
7430   fi
7431 done
7432   done
7433 IFS=$as_save_IFS
7434 
7435   ;;
7436 esac
7437 fi
7438 HEAD=$ac_cv_path_HEAD
7439 if test -n "$HEAD"; then
7440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7441 $as_echo "$HEAD" >&6; }
7442 else
7443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444 $as_echo "no" >&6; }
7445 fi
7446 
7447 
7448   test -n "$HEAD" && break
7449 done
7450 
7451     else
7452       # If it succeeded, then it was overridden by the user. We will use it
7453       # for the tool.
7454 
7455       # First remove it from the list of overridden variables, so we can test
7456       # for unknown variables in the end.
7457       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7458 
7459       # Check if the provided tool contains a complete path.
7460       tool_specified="$HEAD"
7461       tool_basename="${tool_specified##*/}"
7462       if test "x$tool_basename" = "x$tool_specified"; then
7463         # A command without a complete path is provided, search $PATH.
7464         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7465 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7466         # Extract the first word of "$tool_basename", so it can be a program name with args.
7467 set dummy $tool_basename; ac_word=$2
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7469 $as_echo_n "checking for $ac_word... " >&6; }
7470 if ${ac_cv_path_HEAD+:} false; then :
7471   $as_echo_n "(cached) " >&6
7472 else
7473   case $HEAD in
7474   [\\/]* | ?:[\\/]*)
7475   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7476   ;;
7477   *)
7478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7479 for as_dir in $PATH
7480 do
7481   IFS=$as_save_IFS
7482   test -z "$as_dir" && as_dir=.
7483     for ac_exec_ext in '' $ac_executable_extensions; do
7484   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7485     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7486     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7487     break 2
7488   fi
7489 done
7490   done
7491 IFS=$as_save_IFS
7492 
7493   ;;
7494 esac
7495 fi
7496 HEAD=$ac_cv_path_HEAD
7497 if test -n "$HEAD"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7499 $as_echo "$HEAD" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504 
7505 
7506         if test "x$HEAD" = x; then
7507           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7508         fi
7509       else
7510         # Otherwise we believe it is a complete path. Use it as it is.
7511         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7512 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7513         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7514 $as_echo_n "checking for HEAD... " >&6; }
7515         if test ! -x "$tool_specified"; then
7516           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7517 $as_echo "not found" >&6; }
7518           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7519         fi
7520         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7521 $as_echo "$tool_specified" >&6; }
7522       fi
7523     fi
7524   fi
7525 
7526 
7527 
7528   if test "x$HEAD" = x; then
7529     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7530   fi
7531 
7532 
7533 
7534 
7535 
7536   # Publish this variable in the help.
7537 
7538 
7539   if test "x$LN" = x; then
7540     # The variable is not set by user, try to locate tool using the code snippet
7541     for ac_prog in ln
7542 do
7543   # Extract the first word of "$ac_prog", so it can be a program name with args.
7544 set dummy $ac_prog; ac_word=$2
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546 $as_echo_n "checking for $ac_word... " >&6; }
7547 if ${ac_cv_path_LN+:} false; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   case $LN in
7551   [\\/]* | ?:[\\/]*)
7552   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7553   ;;
7554   *)
7555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 for as_dir in $PATH
7557 do
7558   IFS=$as_save_IFS
7559   test -z "$as_dir" && as_dir=.
7560     for ac_exec_ext in '' $ac_executable_extensions; do
7561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7564     break 2
7565   fi
7566 done
7567   done
7568 IFS=$as_save_IFS
7569 
7570   ;;
7571 esac
7572 fi
7573 LN=$ac_cv_path_LN
7574 if test -n "$LN"; then
7575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7576 $as_echo "$LN" >&6; }
7577 else
7578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 $as_echo "no" >&6; }
7580 fi
7581 
7582 
7583   test -n "$LN" && break
7584 done
7585 
7586   else
7587     # The variable is set, but is it from the command line or the environment?
7588 
7589     # Try to remove the string !LN! from our list.
7590     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7591     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7592       # If it failed, the variable was not from the command line. Ignore it,
7593       # but warn the user (except for BASH, which is always set by the calling BASH).
7594       if test "xLN" != xBASH; then
7595         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7596 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7597       fi
7598       # Try to locate tool using the code snippet
7599       for ac_prog in ln
7600 do
7601   # Extract the first word of "$ac_prog", so it can be a program name with args.
7602 set dummy $ac_prog; ac_word=$2
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7604 $as_echo_n "checking for $ac_word... " >&6; }
7605 if ${ac_cv_path_LN+:} false; then :
7606   $as_echo_n "(cached) " >&6
7607 else
7608   case $LN in
7609   [\\/]* | ?:[\\/]*)
7610   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7611   ;;
7612   *)
7613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7614 for as_dir in $PATH
7615 do
7616   IFS=$as_save_IFS
7617   test -z "$as_dir" && as_dir=.
7618     for ac_exec_ext in '' $ac_executable_extensions; do
7619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7620     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7622     break 2
7623   fi
7624 done
7625   done
7626 IFS=$as_save_IFS
7627 
7628   ;;
7629 esac
7630 fi
7631 LN=$ac_cv_path_LN
7632 if test -n "$LN"; then
7633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7634 $as_echo "$LN" >&6; }
7635 else
7636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7637 $as_echo "no" >&6; }
7638 fi
7639 
7640 
7641   test -n "$LN" && break
7642 done
7643 
7644     else
7645       # If it succeeded, then it was overridden by the user. We will use it
7646       # for the tool.
7647 
7648       # First remove it from the list of overridden variables, so we can test
7649       # for unknown variables in the end.
7650       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7651 
7652       # Check if the provided tool contains a complete path.
7653       tool_specified="$LN"
7654       tool_basename="${tool_specified##*/}"
7655       if test "x$tool_basename" = "x$tool_specified"; then
7656         # A command without a complete path is provided, search $PATH.
7657         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7658 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7659         # Extract the first word of "$tool_basename", so it can be a program name with args.
7660 set dummy $tool_basename; ac_word=$2
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662 $as_echo_n "checking for $ac_word... " >&6; }
7663 if ${ac_cv_path_LN+:} false; then :
7664   $as_echo_n "(cached) " >&6
7665 else
7666   case $LN in
7667   [\\/]* | ?:[\\/]*)
7668   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7669   ;;
7670   *)
7671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674   IFS=$as_save_IFS
7675   test -z "$as_dir" && as_dir=.
7676     for ac_exec_ext in '' $ac_executable_extensions; do
7677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680     break 2
7681   fi
7682 done
7683   done
7684 IFS=$as_save_IFS
7685 
7686   ;;
7687 esac
7688 fi
7689 LN=$ac_cv_path_LN
7690 if test -n "$LN"; then
7691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7692 $as_echo "$LN" >&6; }
7693 else
7694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7696 fi
7697 
7698 
7699         if test "x$LN" = x; then
7700           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7701         fi
7702       else
7703         # Otherwise we believe it is a complete path. Use it as it is.
7704         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7705 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7706         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7707 $as_echo_n "checking for LN... " >&6; }
7708         if test ! -x "$tool_specified"; then
7709           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7710 $as_echo "not found" >&6; }
7711           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7712         fi
7713         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7714 $as_echo "$tool_specified" >&6; }
7715       fi
7716     fi
7717   fi
7718 
7719 
7720 
7721   if test "x$LN" = x; then
7722     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7723   fi
7724 
7725 
7726 
7727 
7728 
7729   # Publish this variable in the help.
7730 
7731 
7732   if test "x$LS" = x; then
7733     # The variable is not set by user, try to locate tool using the code snippet
7734     for ac_prog in ls
7735 do
7736   # Extract the first word of "$ac_prog", so it can be a program name with args.
7737 set dummy $ac_prog; ac_word=$2
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7739 $as_echo_n "checking for $ac_word... " >&6; }
7740 if ${ac_cv_path_LS+:} false; then :
7741   $as_echo_n "(cached) " >&6
7742 else
7743   case $LS in
7744   [\\/]* | ?:[\\/]*)
7745   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7746   ;;
7747   *)
7748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 for as_dir in $PATH
7750 do
7751   IFS=$as_save_IFS
7752   test -z "$as_dir" && as_dir=.
7753     for ac_exec_ext in '' $ac_executable_extensions; do
7754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7755     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7757     break 2
7758   fi
7759 done
7760   done
7761 IFS=$as_save_IFS
7762 
7763   ;;
7764 esac
7765 fi
7766 LS=$ac_cv_path_LS
7767 if test -n "$LS"; then
7768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7769 $as_echo "$LS" >&6; }
7770 else
7771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772 $as_echo "no" >&6; }
7773 fi
7774 
7775 
7776   test -n "$LS" && break
7777 done
7778 
7779   else
7780     # The variable is set, but is it from the command line or the environment?
7781 
7782     # Try to remove the string !LS! from our list.
7783     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7784     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7785       # If it failed, the variable was not from the command line. Ignore it,
7786       # but warn the user (except for BASH, which is always set by the calling BASH).
7787       if test "xLS" != xBASH; then
7788         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7789 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7790       fi
7791       # Try to locate tool using the code snippet
7792       for ac_prog in ls
7793 do
7794   # Extract the first word of "$ac_prog", so it can be a program name with args.
7795 set dummy $ac_prog; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if ${ac_cv_path_LS+:} false; then :
7799   $as_echo_n "(cached) " >&6
7800 else
7801   case $LS in
7802   [\\/]* | ?:[\\/]*)
7803   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7804   ;;
7805   *)
7806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7807 for as_dir in $PATH
7808 do
7809   IFS=$as_save_IFS
7810   test -z "$as_dir" && as_dir=.
7811     for ac_exec_ext in '' $ac_executable_extensions; do
7812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7815     break 2
7816   fi
7817 done
7818   done
7819 IFS=$as_save_IFS
7820 
7821   ;;
7822 esac
7823 fi
7824 LS=$ac_cv_path_LS
7825 if test -n "$LS"; then
7826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7827 $as_echo "$LS" >&6; }
7828 else
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7830 $as_echo "no" >&6; }
7831 fi
7832 
7833 
7834   test -n "$LS" && break
7835 done
7836 
7837     else
7838       # If it succeeded, then it was overridden by the user. We will use it
7839       # for the tool.
7840 
7841       # First remove it from the list of overridden variables, so we can test
7842       # for unknown variables in the end.
7843       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7844 
7845       # Check if the provided tool contains a complete path.
7846       tool_specified="$LS"
7847       tool_basename="${tool_specified##*/}"
7848       if test "x$tool_basename" = "x$tool_specified"; then
7849         # A command without a complete path is provided, search $PATH.
7850         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7851 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7852         # Extract the first word of "$tool_basename", so it can be a program name with args.
7853 set dummy $tool_basename; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_path_LS+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   case $LS in
7860   [\\/]* | ?:[\\/]*)
7861   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7862   ;;
7863   *)
7864   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 for as_dir in $PATH
7866 do
7867   IFS=$as_save_IFS
7868   test -z "$as_dir" && as_dir=.
7869     for ac_exec_ext in '' $ac_executable_extensions; do
7870   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7871     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7872     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7873     break 2
7874   fi
7875 done
7876   done
7877 IFS=$as_save_IFS
7878 
7879   ;;
7880 esac
7881 fi
7882 LS=$ac_cv_path_LS
7883 if test -n "$LS"; then
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7885 $as_echo "$LS" >&6; }
7886 else
7887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890 
7891 
7892         if test "x$LS" = x; then
7893           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7894         fi
7895       else
7896         # Otherwise we believe it is a complete path. Use it as it is.
7897         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7898 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7900 $as_echo_n "checking for LS... " >&6; }
7901         if test ! -x "$tool_specified"; then
7902           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7903 $as_echo "not found" >&6; }
7904           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7905         fi
7906         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7907 $as_echo "$tool_specified" >&6; }
7908       fi
7909     fi
7910   fi
7911 
7912 
7913 
7914   if test "x$LS" = x; then
7915     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7916   fi
7917 
7918 
7919 
7920 
7921 
7922   # Publish this variable in the help.
7923 
7924 
7925   if test "x$MKDIR" = x; then
7926     # The variable is not set by user, try to locate tool using the code snippet
7927     for ac_prog in mkdir
7928 do
7929   # Extract the first word of "$ac_prog", so it can be a program name with args.
7930 set dummy $ac_prog; ac_word=$2
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932 $as_echo_n "checking for $ac_word... " >&6; }
7933 if ${ac_cv_path_MKDIR+:} false; then :
7934   $as_echo_n "(cached) " >&6
7935 else
7936   case $MKDIR in
7937   [\\/]* | ?:[\\/]*)
7938   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7939   ;;
7940   *)
7941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7942 for as_dir in $PATH
7943 do
7944   IFS=$as_save_IFS
7945   test -z "$as_dir" && as_dir=.
7946     for ac_exec_ext in '' $ac_executable_extensions; do
7947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7948     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7950     break 2
7951   fi
7952 done
7953   done
7954 IFS=$as_save_IFS
7955 
7956   ;;
7957 esac
7958 fi
7959 MKDIR=$ac_cv_path_MKDIR
7960 if test -n "$MKDIR"; then
7961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7962 $as_echo "$MKDIR" >&6; }
7963 else
7964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7966 fi
7967 
7968 
7969   test -n "$MKDIR" && break
7970 done
7971 
7972   else
7973     # The variable is set, but is it from the command line or the environment?
7974 
7975     # Try to remove the string !MKDIR! from our list.
7976     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7977     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7978       # If it failed, the variable was not from the command line. Ignore it,
7979       # but warn the user (except for BASH, which is always set by the calling BASH).
7980       if test "xMKDIR" != xBASH; then
7981         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7982 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7983       fi
7984       # Try to locate tool using the code snippet
7985       for ac_prog in mkdir
7986 do
7987   # Extract the first word of "$ac_prog", so it can be a program name with args.
7988 set dummy $ac_prog; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if ${ac_cv_path_MKDIR+:} false; then :
7992   $as_echo_n "(cached) " >&6
7993 else
7994   case $MKDIR in
7995   [\\/]* | ?:[\\/]*)
7996   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7997   ;;
7998   *)
7999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004     for ac_exec_ext in '' $ac_executable_extensions; do
8005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8006     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011   done
8012 IFS=$as_save_IFS
8013 
8014   ;;
8015 esac
8016 fi
8017 MKDIR=$ac_cv_path_MKDIR
8018 if test -n "$MKDIR"; then
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8020 $as_echo "$MKDIR" >&6; }
8021 else
8022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8024 fi
8025 
8026 
8027   test -n "$MKDIR" && break
8028 done
8029 
8030     else
8031       # If it succeeded, then it was overridden by the user. We will use it
8032       # for the tool.
8033 
8034       # First remove it from the list of overridden variables, so we can test
8035       # for unknown variables in the end.
8036       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8037 
8038       # Check if the provided tool contains a complete path.
8039       tool_specified="$MKDIR"
8040       tool_basename="${tool_specified##*/}"
8041       if test "x$tool_basename" = "x$tool_specified"; then
8042         # A command without a complete path is provided, search $PATH.
8043         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8044 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8045         # Extract the first word of "$tool_basename", so it can be a program name with args.
8046 set dummy $tool_basename; ac_word=$2
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048 $as_echo_n "checking for $ac_word... " >&6; }
8049 if ${ac_cv_path_MKDIR+:} false; then :
8050   $as_echo_n "(cached) " >&6
8051 else
8052   case $MKDIR in
8053   [\\/]* | ?:[\\/]*)
8054   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8055   ;;
8056   *)
8057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060   IFS=$as_save_IFS
8061   test -z "$as_dir" && as_dir=.
8062     for ac_exec_ext in '' $ac_executable_extensions; do
8063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066     break 2
8067   fi
8068 done
8069   done
8070 IFS=$as_save_IFS
8071 
8072   ;;
8073 esac
8074 fi
8075 MKDIR=$ac_cv_path_MKDIR
8076 if test -n "$MKDIR"; then
8077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8078 $as_echo "$MKDIR" >&6; }
8079 else
8080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 fi
8083 
8084 
8085         if test "x$MKDIR" = x; then
8086           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8087         fi
8088       else
8089         # Otherwise we believe it is a complete path. Use it as it is.
8090         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8091 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8092         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8093 $as_echo_n "checking for MKDIR... " >&6; }
8094         if test ! -x "$tool_specified"; then
8095           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8096 $as_echo "not found" >&6; }
8097           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8098         fi
8099         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8100 $as_echo "$tool_specified" >&6; }
8101       fi
8102     fi
8103   fi
8104 
8105 
8106 
8107   if test "x$MKDIR" = x; then
8108     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8109   fi
8110 
8111 
8112 
8113 
8114 
8115   # Publish this variable in the help.
8116 
8117 
8118   if test "x$MKTEMP" = x; then
8119     # The variable is not set by user, try to locate tool using the code snippet
8120     for ac_prog in mktemp
8121 do
8122   # Extract the first word of "$ac_prog", so it can be a program name with args.
8123 set dummy $ac_prog; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if ${ac_cv_path_MKTEMP+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   case $MKTEMP in
8130   [\\/]* | ?:[\\/]*)
8131   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8132   ;;
8133   *)
8134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 for as_dir in $PATH
8136 do
8137   IFS=$as_save_IFS
8138   test -z "$as_dir" && as_dir=.
8139     for ac_exec_ext in '' $ac_executable_extensions; do
8140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8141     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8143     break 2
8144   fi
8145 done
8146   done
8147 IFS=$as_save_IFS
8148 
8149   ;;
8150 esac
8151 fi
8152 MKTEMP=$ac_cv_path_MKTEMP
8153 if test -n "$MKTEMP"; then
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8155 $as_echo "$MKTEMP" >&6; }
8156 else
8157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8158 $as_echo "no" >&6; }
8159 fi
8160 
8161 
8162   test -n "$MKTEMP" && break
8163 done
8164 
8165   else
8166     # The variable is set, but is it from the command line or the environment?
8167 
8168     # Try to remove the string !MKTEMP! from our list.
8169     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8170     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8171       # If it failed, the variable was not from the command line. Ignore it,
8172       # but warn the user (except for BASH, which is always set by the calling BASH).
8173       if test "xMKTEMP" != xBASH; then
8174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8175 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8176       fi
8177       # Try to locate tool using the code snippet
8178       for ac_prog in mktemp
8179 do
8180   # Extract the first word of "$ac_prog", so it can be a program name with args.
8181 set dummy $ac_prog; ac_word=$2
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183 $as_echo_n "checking for $ac_word... " >&6; }
8184 if ${ac_cv_path_MKTEMP+:} false; then :
8185   $as_echo_n "(cached) " >&6
8186 else
8187   case $MKTEMP in
8188   [\\/]* | ?:[\\/]*)
8189   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8190   ;;
8191   *)
8192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 for as_dir in $PATH
8194 do
8195   IFS=$as_save_IFS
8196   test -z "$as_dir" && as_dir=.
8197     for ac_exec_ext in '' $ac_executable_extensions; do
8198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8199     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201     break 2
8202   fi
8203 done
8204   done
8205 IFS=$as_save_IFS
8206 
8207   ;;
8208 esac
8209 fi
8210 MKTEMP=$ac_cv_path_MKTEMP
8211 if test -n "$MKTEMP"; then
8212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8213 $as_echo "$MKTEMP" >&6; }
8214 else
8215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8217 fi
8218 
8219 
8220   test -n "$MKTEMP" && break
8221 done
8222 
8223     else
8224       # If it succeeded, then it was overridden by the user. We will use it
8225       # for the tool.
8226 
8227       # First remove it from the list of overridden variables, so we can test
8228       # for unknown variables in the end.
8229       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8230 
8231       # Check if the provided tool contains a complete path.
8232       tool_specified="$MKTEMP"
8233       tool_basename="${tool_specified##*/}"
8234       if test "x$tool_basename" = "x$tool_specified"; then
8235         # A command without a complete path is provided, search $PATH.
8236         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8237 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8238         # Extract the first word of "$tool_basename", so it can be a program name with args.
8239 set dummy $tool_basename; ac_word=$2
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 $as_echo_n "checking for $ac_word... " >&6; }
8242 if ${ac_cv_path_MKTEMP+:} false; then :
8243   $as_echo_n "(cached) " >&6
8244 else
8245   case $MKTEMP in
8246   [\\/]* | ?:[\\/]*)
8247   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8248   ;;
8249   *)
8250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8251 for as_dir in $PATH
8252 do
8253   IFS=$as_save_IFS
8254   test -z "$as_dir" && as_dir=.
8255     for ac_exec_ext in '' $ac_executable_extensions; do
8256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8257     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8259     break 2
8260   fi
8261 done
8262   done
8263 IFS=$as_save_IFS
8264 
8265   ;;
8266 esac
8267 fi
8268 MKTEMP=$ac_cv_path_MKTEMP
8269 if test -n "$MKTEMP"; then
8270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8271 $as_echo "$MKTEMP" >&6; }
8272 else
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8274 $as_echo "no" >&6; }
8275 fi
8276 
8277 
8278         if test "x$MKTEMP" = x; then
8279           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8280         fi
8281       else
8282         # Otherwise we believe it is a complete path. Use it as it is.
8283         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8284 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8286 $as_echo_n "checking for MKTEMP... " >&6; }
8287         if test ! -x "$tool_specified"; then
8288           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8289 $as_echo "not found" >&6; }
8290           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8291         fi
8292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8293 $as_echo "$tool_specified" >&6; }
8294       fi
8295     fi
8296   fi
8297 
8298 
8299 
8300   if test "x$MKTEMP" = x; then
8301     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8302   fi
8303 
8304 
8305 
8306 
8307 
8308   # Publish this variable in the help.
8309 
8310 
8311   if test "x$MV" = x; then
8312     # The variable is not set by user, try to locate tool using the code snippet
8313     for ac_prog in mv
8314 do
8315   # Extract the first word of "$ac_prog", so it can be a program name with args.
8316 set dummy $ac_prog; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_path_MV+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   case $MV in
8323   [\\/]* | ?:[\\/]*)
8324   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8325   ;;
8326   *)
8327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8328 for as_dir in $PATH
8329 do
8330   IFS=$as_save_IFS
8331   test -z "$as_dir" && as_dir=.
8332     for ac_exec_ext in '' $ac_executable_extensions; do
8333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8334     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336     break 2
8337   fi
8338 done
8339   done
8340 IFS=$as_save_IFS
8341 
8342   ;;
8343 esac
8344 fi
8345 MV=$ac_cv_path_MV
8346 if test -n "$MV"; then
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8348 $as_echo "$MV" >&6; }
8349 else
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8352 fi
8353 
8354 
8355   test -n "$MV" && break
8356 done
8357 
8358   else
8359     # The variable is set, but is it from the command line or the environment?
8360 
8361     # Try to remove the string !MV! from our list.
8362     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8363     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8364       # If it failed, the variable was not from the command line. Ignore it,
8365       # but warn the user (except for BASH, which is always set by the calling BASH).
8366       if test "xMV" != xBASH; then
8367         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8368 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8369       fi
8370       # Try to locate tool using the code snippet
8371       for ac_prog in mv
8372 do
8373   # Extract the first word of "$ac_prog", so it can be a program name with args.
8374 set dummy $ac_prog; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_path_MV+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   case $MV in
8381   [\\/]* | ?:[\\/]*)
8382   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8383   ;;
8384   *)
8385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8386 for as_dir in $PATH
8387 do
8388   IFS=$as_save_IFS
8389   test -z "$as_dir" && as_dir=.
8390     for ac_exec_ext in '' $ac_executable_extensions; do
8391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8392     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8394     break 2
8395   fi
8396 done
8397   done
8398 IFS=$as_save_IFS
8399 
8400   ;;
8401 esac
8402 fi
8403 MV=$ac_cv_path_MV
8404 if test -n "$MV"; then
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8406 $as_echo "$MV" >&6; }
8407 else
8408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8409 $as_echo "no" >&6; }
8410 fi
8411 
8412 
8413   test -n "$MV" && break
8414 done
8415 
8416     else
8417       # If it succeeded, then it was overridden by the user. We will use it
8418       # for the tool.
8419 
8420       # First remove it from the list of overridden variables, so we can test
8421       # for unknown variables in the end.
8422       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8423 
8424       # Check if the provided tool contains a complete path.
8425       tool_specified="$MV"
8426       tool_basename="${tool_specified##*/}"
8427       if test "x$tool_basename" = "x$tool_specified"; then
8428         # A command without a complete path is provided, search $PATH.
8429         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8430 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8431         # Extract the first word of "$tool_basename", so it can be a program name with args.
8432 set dummy $tool_basename; ac_word=$2
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434 $as_echo_n "checking for $ac_word... " >&6; }
8435 if ${ac_cv_path_MV+:} false; then :
8436   $as_echo_n "(cached) " >&6
8437 else
8438   case $MV in
8439   [\\/]* | ?:[\\/]*)
8440   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8441   ;;
8442   *)
8443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8444 for as_dir in $PATH
8445 do
8446   IFS=$as_save_IFS
8447   test -z "$as_dir" && as_dir=.
8448     for ac_exec_ext in '' $ac_executable_extensions; do
8449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8450     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8452     break 2
8453   fi
8454 done
8455   done
8456 IFS=$as_save_IFS
8457 
8458   ;;
8459 esac
8460 fi
8461 MV=$ac_cv_path_MV
8462 if test -n "$MV"; then
8463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8464 $as_echo "$MV" >&6; }
8465 else
8466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8467 $as_echo "no" >&6; }
8468 fi
8469 
8470 
8471         if test "x$MV" = x; then
8472           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8473         fi
8474       else
8475         # Otherwise we believe it is a complete path. Use it as it is.
8476         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8477 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8479 $as_echo_n "checking for MV... " >&6; }
8480         if test ! -x "$tool_specified"; then
8481           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8482 $as_echo "not found" >&6; }
8483           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8484         fi
8485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8486 $as_echo "$tool_specified" >&6; }
8487       fi
8488     fi
8489   fi
8490 
8491 
8492 
8493   if test "x$MV" = x; then
8494     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8495   fi
8496 
8497 
8498 
8499 
8500 
8501   # Publish this variable in the help.
8502 
8503 
8504   if test "x$NAWK" = x; then
8505     # The variable is not set by user, try to locate tool using the code snippet
8506     for ac_prog in nawk gawk awk
8507 do
8508   # Extract the first word of "$ac_prog", so it can be a program name with args.
8509 set dummy $ac_prog; ac_word=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_NAWK+:} false; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   case $NAWK in
8516   [\\/]* | ?:[\\/]*)
8517   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8518   ;;
8519   *)
8520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521 for as_dir in $PATH
8522 do
8523   IFS=$as_save_IFS
8524   test -z "$as_dir" && as_dir=.
8525     for ac_exec_ext in '' $ac_executable_extensions; do
8526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8527     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8529     break 2
8530   fi
8531 done
8532   done
8533 IFS=$as_save_IFS
8534 
8535   ;;
8536 esac
8537 fi
8538 NAWK=$ac_cv_path_NAWK
8539 if test -n "$NAWK"; then
8540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8541 $as_echo "$NAWK" >&6; }
8542 else
8543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546 
8547 
8548   test -n "$NAWK" && break
8549 done
8550 
8551   else
8552     # The variable is set, but is it from the command line or the environment?
8553 
8554     # Try to remove the string !NAWK! from our list.
8555     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8556     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8557       # If it failed, the variable was not from the command line. Ignore it,
8558       # but warn the user (except for BASH, which is always set by the calling BASH).
8559       if test "xNAWK" != xBASH; then
8560         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8561 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8562       fi
8563       # Try to locate tool using the code snippet
8564       for ac_prog in nawk gawk awk
8565 do
8566   # Extract the first word of "$ac_prog", so it can be a program name with args.
8567 set dummy $ac_prog; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_path_NAWK+:} false; then :
8571   $as_echo_n "(cached) " >&6
8572 else
8573   case $NAWK in
8574   [\\/]* | ?:[\\/]*)
8575   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8576   ;;
8577   *)
8578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8580 do
8581   IFS=$as_save_IFS
8582   test -z "$as_dir" && as_dir=.
8583     for ac_exec_ext in '' $ac_executable_extensions; do
8584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587     break 2
8588   fi
8589 done
8590   done
8591 IFS=$as_save_IFS
8592 
8593   ;;
8594 esac
8595 fi
8596 NAWK=$ac_cv_path_NAWK
8597 if test -n "$NAWK"; then
8598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8599 $as_echo "$NAWK" >&6; }
8600 else
8601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8603 fi
8604 
8605 
8606   test -n "$NAWK" && break
8607 done
8608 
8609     else
8610       # If it succeeded, then it was overridden by the user. We will use it
8611       # for the tool.
8612 
8613       # First remove it from the list of overridden variables, so we can test
8614       # for unknown variables in the end.
8615       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8616 
8617       # Check if the provided tool contains a complete path.
8618       tool_specified="$NAWK"
8619       tool_basename="${tool_specified##*/}"
8620       if test "x$tool_basename" = "x$tool_specified"; then
8621         # A command without a complete path is provided, search $PATH.
8622         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8623 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8624         # Extract the first word of "$tool_basename", so it can be a program name with args.
8625 set dummy $tool_basename; ac_word=$2
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627 $as_echo_n "checking for $ac_word... " >&6; }
8628 if ${ac_cv_path_NAWK+:} false; then :
8629   $as_echo_n "(cached) " >&6
8630 else
8631   case $NAWK in
8632   [\\/]* | ?:[\\/]*)
8633   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8634   ;;
8635   *)
8636   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8637 for as_dir in $PATH
8638 do
8639   IFS=$as_save_IFS
8640   test -z "$as_dir" && as_dir=.
8641     for ac_exec_ext in '' $ac_executable_extensions; do
8642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8643     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8645     break 2
8646   fi
8647 done
8648   done
8649 IFS=$as_save_IFS
8650 
8651   ;;
8652 esac
8653 fi
8654 NAWK=$ac_cv_path_NAWK
8655 if test -n "$NAWK"; then
8656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8657 $as_echo "$NAWK" >&6; }
8658 else
8659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8660 $as_echo "no" >&6; }
8661 fi
8662 
8663 
8664         if test "x$NAWK" = x; then
8665           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8666         fi
8667       else
8668         # Otherwise we believe it is a complete path. Use it as it is.
8669         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8670 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8671         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8672 $as_echo_n "checking for NAWK... " >&6; }
8673         if test ! -x "$tool_specified"; then
8674           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8675 $as_echo "not found" >&6; }
8676           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8677         fi
8678         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8679 $as_echo "$tool_specified" >&6; }
8680       fi
8681     fi
8682   fi
8683 
8684 
8685 
8686   if test "x$NAWK" = x; then
8687     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8688   fi
8689 
8690 
8691 
8692 
8693 
8694   # Publish this variable in the help.
8695 
8696 
8697   if test "x$PRINTF" = x; then
8698     # The variable is not set by user, try to locate tool using the code snippet
8699     for ac_prog in printf
8700 do
8701   # Extract the first word of "$ac_prog", so it can be a program name with args.
8702 set dummy $ac_prog; ac_word=$2
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8704 $as_echo_n "checking for $ac_word... " >&6; }
8705 if ${ac_cv_path_PRINTF+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   case $PRINTF in
8709   [\\/]* | ?:[\\/]*)
8710   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8711   ;;
8712   *)
8713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8714 for as_dir in $PATH
8715 do
8716   IFS=$as_save_IFS
8717   test -z "$as_dir" && as_dir=.
8718     for ac_exec_ext in '' $ac_executable_extensions; do
8719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8720     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8722     break 2
8723   fi
8724 done
8725   done
8726 IFS=$as_save_IFS
8727 
8728   ;;
8729 esac
8730 fi
8731 PRINTF=$ac_cv_path_PRINTF
8732 if test -n "$PRINTF"; then
8733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8734 $as_echo "$PRINTF" >&6; }
8735 else
8736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8738 fi
8739 
8740 
8741   test -n "$PRINTF" && break
8742 done
8743 
8744   else
8745     # The variable is set, but is it from the command line or the environment?
8746 
8747     # Try to remove the string !PRINTF! from our list.
8748     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8749     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8750       # If it failed, the variable was not from the command line. Ignore it,
8751       # but warn the user (except for BASH, which is always set by the calling BASH).
8752       if test "xPRINTF" != xBASH; then
8753         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8754 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8755       fi
8756       # Try to locate tool using the code snippet
8757       for ac_prog in printf
8758 do
8759   # Extract the first word of "$ac_prog", so it can be a program name with args.
8760 set dummy $ac_prog; ac_word=$2
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8762 $as_echo_n "checking for $ac_word... " >&6; }
8763 if ${ac_cv_path_PRINTF+:} false; then :
8764   $as_echo_n "(cached) " >&6
8765 else
8766   case $PRINTF in
8767   [\\/]* | ?:[\\/]*)
8768   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8769   ;;
8770   *)
8771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8778     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785 
8786   ;;
8787 esac
8788 fi
8789 PRINTF=$ac_cv_path_PRINTF
8790 if test -n "$PRINTF"; then
8791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8792 $as_echo "$PRINTF" >&6; }
8793 else
8794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8795 $as_echo "no" >&6; }
8796 fi
8797 
8798 
8799   test -n "$PRINTF" && break
8800 done
8801 
8802     else
8803       # If it succeeded, then it was overridden by the user. We will use it
8804       # for the tool.
8805 
8806       # First remove it from the list of overridden variables, so we can test
8807       # for unknown variables in the end.
8808       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8809 
8810       # Check if the provided tool contains a complete path.
8811       tool_specified="$PRINTF"
8812       tool_basename="${tool_specified##*/}"
8813       if test "x$tool_basename" = "x$tool_specified"; then
8814         # A command without a complete path is provided, search $PATH.
8815         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8816 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8817         # Extract the first word of "$tool_basename", so it can be a program name with args.
8818 set dummy $tool_basename; ac_word=$2
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8820 $as_echo_n "checking for $ac_word... " >&6; }
8821 if ${ac_cv_path_PRINTF+:} false; then :
8822   $as_echo_n "(cached) " >&6
8823 else
8824   case $PRINTF in
8825   [\\/]* | ?:[\\/]*)
8826   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8827   ;;
8828   *)
8829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843 
8844   ;;
8845 esac
8846 fi
8847 PRINTF=$ac_cv_path_PRINTF
8848 if test -n "$PRINTF"; then
8849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8850 $as_echo "$PRINTF" >&6; }
8851 else
8852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 $as_echo "no" >&6; }
8854 fi
8855 
8856 
8857         if test "x$PRINTF" = x; then
8858           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8859         fi
8860       else
8861         # Otherwise we believe it is a complete path. Use it as it is.
8862         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8863 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8865 $as_echo_n "checking for PRINTF... " >&6; }
8866         if test ! -x "$tool_specified"; then
8867           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8868 $as_echo "not found" >&6; }
8869           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8870         fi
8871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8872 $as_echo "$tool_specified" >&6; }
8873       fi
8874     fi
8875   fi
8876 
8877 
8878 
8879   if test "x$PRINTF" = x; then
8880     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8881   fi
8882 
8883 
8884 
8885 
8886 
8887   # Publish this variable in the help.
8888 
8889 
8890   if test "x$RM" = x; then
8891     # The variable is not set by user, try to locate tool using the code snippet
8892     for ac_prog in rm
8893 do
8894   # Extract the first word of "$ac_prog", so it can be a program name with args.
8895 set dummy $ac_prog; ac_word=$2
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897 $as_echo_n "checking for $ac_word... " >&6; }
8898 if ${ac_cv_path_RM+:} false; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   case $RM in
8902   [\\/]* | ?:[\\/]*)
8903   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8904   ;;
8905   *)
8906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909   IFS=$as_save_IFS
8910   test -z "$as_dir" && as_dir=.
8911     for ac_exec_ext in '' $ac_executable_extensions; do
8912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8913     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8915     break 2
8916   fi
8917 done
8918   done
8919 IFS=$as_save_IFS
8920 
8921   ;;
8922 esac
8923 fi
8924 RM=$ac_cv_path_RM
8925 if test -n "$RM"; then
8926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8927 $as_echo "$RM" >&6; }
8928 else
8929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8930 $as_echo "no" >&6; }
8931 fi
8932 
8933 
8934   test -n "$RM" && break
8935 done
8936 
8937   else
8938     # The variable is set, but is it from the command line or the environment?
8939 
8940     # Try to remove the string !RM! from our list.
8941     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8942     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8943       # If it failed, the variable was not from the command line. Ignore it,
8944       # but warn the user (except for BASH, which is always set by the calling BASH).
8945       if test "xRM" != xBASH; then
8946         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8947 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8948       fi
8949       # Try to locate tool using the code snippet
8950       for ac_prog in rm
8951 do
8952   # Extract the first word of "$ac_prog", so it can be a program name with args.
8953 set dummy $ac_prog; ac_word=$2
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8955 $as_echo_n "checking for $ac_word... " >&6; }
8956 if ${ac_cv_path_RM+:} false; then :
8957   $as_echo_n "(cached) " >&6
8958 else
8959   case $RM in
8960   [\\/]* | ?:[\\/]*)
8961   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8962   ;;
8963   *)
8964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965 for as_dir in $PATH
8966 do
8967   IFS=$as_save_IFS
8968   test -z "$as_dir" && as_dir=.
8969     for ac_exec_ext in '' $ac_executable_extensions; do
8970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8971     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8973     break 2
8974   fi
8975 done
8976   done
8977 IFS=$as_save_IFS
8978 
8979   ;;
8980 esac
8981 fi
8982 RM=$ac_cv_path_RM
8983 if test -n "$RM"; then
8984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8985 $as_echo "$RM" >&6; }
8986 else
8987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8988 $as_echo "no" >&6; }
8989 fi
8990 
8991 
8992   test -n "$RM" && break
8993 done
8994 
8995     else
8996       # If it succeeded, then it was overridden by the user. We will use it
8997       # for the tool.
8998 
8999       # First remove it from the list of overridden variables, so we can test
9000       # for unknown variables in the end.
9001       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9002 
9003       # Check if the provided tool contains a complete path.
9004       tool_specified="$RM"
9005       tool_basename="${tool_specified##*/}"
9006       if test "x$tool_basename" = "x$tool_specified"; then
9007         # A command without a complete path is provided, search $PATH.
9008         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9009 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9010         # Extract the first word of "$tool_basename", so it can be a program name with args.
9011 set dummy $tool_basename; ac_word=$2
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9013 $as_echo_n "checking for $ac_word... " >&6; }
9014 if ${ac_cv_path_RM+:} false; then :
9015   $as_echo_n "(cached) " >&6
9016 else
9017   case $RM in
9018   [\\/]* | ?:[\\/]*)
9019   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9020   ;;
9021   *)
9022   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 for as_dir in $PATH
9024 do
9025   IFS=$as_save_IFS
9026   test -z "$as_dir" && as_dir=.
9027     for ac_exec_ext in '' $ac_executable_extensions; do
9028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9029     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9031     break 2
9032   fi
9033 done
9034   done
9035 IFS=$as_save_IFS
9036 
9037   ;;
9038 esac
9039 fi
9040 RM=$ac_cv_path_RM
9041 if test -n "$RM"; then
9042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9043 $as_echo "$RM" >&6; }
9044 else
9045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046 $as_echo "no" >&6; }
9047 fi
9048 
9049 
9050         if test "x$RM" = x; then
9051           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9052         fi
9053       else
9054         # Otherwise we believe it is a complete path. Use it as it is.
9055         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9056 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9058 $as_echo_n "checking for RM... " >&6; }
9059         if test ! -x "$tool_specified"; then
9060           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9061 $as_echo "not found" >&6; }
9062           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9063         fi
9064         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9065 $as_echo "$tool_specified" >&6; }
9066       fi
9067     fi
9068   fi
9069 
9070 
9071 
9072   if test "x$RM" = x; then
9073     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9074   fi
9075 
9076 
9077 
9078 
9079 
9080   # Publish this variable in the help.
9081 
9082 
9083   if test "x$SH" = x; then
9084     # The variable is not set by user, try to locate tool using the code snippet
9085     for ac_prog in sh
9086 do
9087   # Extract the first word of "$ac_prog", so it can be a program name with args.
9088 set dummy $ac_prog; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_path_SH+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   case $SH in
9095   [\\/]* | ?:[\\/]*)
9096   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9097   ;;
9098   *)
9099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102   IFS=$as_save_IFS
9103   test -z "$as_dir" && as_dir=.
9104     for ac_exec_ext in '' $ac_executable_extensions; do
9105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108     break 2
9109   fi
9110 done
9111   done
9112 IFS=$as_save_IFS
9113 
9114   ;;
9115 esac
9116 fi
9117 SH=$ac_cv_path_SH
9118 if test -n "$SH"; then
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9120 $as_echo "$SH" >&6; }
9121 else
9122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9123 $as_echo "no" >&6; }
9124 fi
9125 
9126 
9127   test -n "$SH" && break
9128 done
9129 
9130   else
9131     # The variable is set, but is it from the command line or the environment?
9132 
9133     # Try to remove the string !SH! from our list.
9134     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9135     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9136       # If it failed, the variable was not from the command line. Ignore it,
9137       # but warn the user (except for BASH, which is always set by the calling BASH).
9138       if test "xSH" != xBASH; then
9139         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9140 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9141       fi
9142       # Try to locate tool using the code snippet
9143       for ac_prog in sh
9144 do
9145   # Extract the first word of "$ac_prog", so it can be a program name with args.
9146 set dummy $ac_prog; ac_word=$2
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148 $as_echo_n "checking for $ac_word... " >&6; }
9149 if ${ac_cv_path_SH+:} false; then :
9150   $as_echo_n "(cached) " >&6
9151 else
9152   case $SH in
9153   [\\/]* | ?:[\\/]*)
9154   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9155   ;;
9156   *)
9157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9158 for as_dir in $PATH
9159 do
9160   IFS=$as_save_IFS
9161   test -z "$as_dir" && as_dir=.
9162     for ac_exec_ext in '' $ac_executable_extensions; do
9163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9164     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9166     break 2
9167   fi
9168 done
9169   done
9170 IFS=$as_save_IFS
9171 
9172   ;;
9173 esac
9174 fi
9175 SH=$ac_cv_path_SH
9176 if test -n "$SH"; then
9177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9178 $as_echo "$SH" >&6; }
9179 else
9180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9182 fi
9183 
9184 
9185   test -n "$SH" && break
9186 done
9187 
9188     else
9189       # If it succeeded, then it was overridden by the user. We will use it
9190       # for the tool.
9191 
9192       # First remove it from the list of overridden variables, so we can test
9193       # for unknown variables in the end.
9194       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9195 
9196       # Check if the provided tool contains a complete path.
9197       tool_specified="$SH"
9198       tool_basename="${tool_specified##*/}"
9199       if test "x$tool_basename" = "x$tool_specified"; then
9200         # A command without a complete path is provided, search $PATH.
9201         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9202 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9203         # Extract the first word of "$tool_basename", so it can be a program name with args.
9204 set dummy $tool_basename; ac_word=$2
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206 $as_echo_n "checking for $ac_word... " >&6; }
9207 if ${ac_cv_path_SH+:} false; then :
9208   $as_echo_n "(cached) " >&6
9209 else
9210   case $SH in
9211   [\\/]* | ?:[\\/]*)
9212   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9213   ;;
9214   *)
9215   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216 for as_dir in $PATH
9217 do
9218   IFS=$as_save_IFS
9219   test -z "$as_dir" && as_dir=.
9220     for ac_exec_ext in '' $ac_executable_extensions; do
9221   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9222     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9224     break 2
9225   fi
9226 done
9227   done
9228 IFS=$as_save_IFS
9229 
9230   ;;
9231 esac
9232 fi
9233 SH=$ac_cv_path_SH
9234 if test -n "$SH"; then
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9236 $as_echo "$SH" >&6; }
9237 else
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9239 $as_echo "no" >&6; }
9240 fi
9241 
9242 
9243         if test "x$SH" = x; then
9244           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9245         fi
9246       else
9247         # Otherwise we believe it is a complete path. Use it as it is.
9248         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9249 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9251 $as_echo_n "checking for SH... " >&6; }
9252         if test ! -x "$tool_specified"; then
9253           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9254 $as_echo "not found" >&6; }
9255           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9256         fi
9257         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9258 $as_echo "$tool_specified" >&6; }
9259       fi
9260     fi
9261   fi
9262 
9263 
9264 
9265   if test "x$SH" = x; then
9266     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9267   fi
9268 
9269 
9270 
9271 
9272 
9273   # Publish this variable in the help.
9274 
9275 
9276   if test "x$SORT" = x; then
9277     # The variable is not set by user, try to locate tool using the code snippet
9278     for ac_prog in sort
9279 do
9280   # Extract the first word of "$ac_prog", so it can be a program name with args.
9281 set dummy $ac_prog; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if ${ac_cv_path_SORT+:} false; then :
9285   $as_echo_n "(cached) " >&6
9286 else
9287   case $SORT in
9288   [\\/]* | ?:[\\/]*)
9289   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9290   ;;
9291   *)
9292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9294 do
9295   IFS=$as_save_IFS
9296   test -z "$as_dir" && as_dir=.
9297     for ac_exec_ext in '' $ac_executable_extensions; do
9298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301     break 2
9302   fi
9303 done
9304   done
9305 IFS=$as_save_IFS
9306 
9307   ;;
9308 esac
9309 fi
9310 SORT=$ac_cv_path_SORT
9311 if test -n "$SORT"; then
9312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9313 $as_echo "$SORT" >&6; }
9314 else
9315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9317 fi
9318 
9319 
9320   test -n "$SORT" && break
9321 done
9322 
9323   else
9324     # The variable is set, but is it from the command line or the environment?
9325 
9326     # Try to remove the string !SORT! from our list.
9327     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9328     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9329       # If it failed, the variable was not from the command line. Ignore it,
9330       # but warn the user (except for BASH, which is always set by the calling BASH).
9331       if test "xSORT" != xBASH; then
9332         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9333 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9334       fi
9335       # Try to locate tool using the code snippet
9336       for ac_prog in sort
9337 do
9338   # Extract the first word of "$ac_prog", so it can be a program name with args.
9339 set dummy $ac_prog; ac_word=$2
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9341 $as_echo_n "checking for $ac_word... " >&6; }
9342 if ${ac_cv_path_SORT+:} false; then :
9343   $as_echo_n "(cached) " >&6
9344 else
9345   case $SORT in
9346   [\\/]* | ?:[\\/]*)
9347   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9348   ;;
9349   *)
9350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355     for ac_exec_ext in '' $ac_executable_extensions; do
9356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9357     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362   done
9363 IFS=$as_save_IFS
9364 
9365   ;;
9366 esac
9367 fi
9368 SORT=$ac_cv_path_SORT
9369 if test -n "$SORT"; then
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9371 $as_echo "$SORT" >&6; }
9372 else
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 $as_echo "no" >&6; }
9375 fi
9376 
9377 
9378   test -n "$SORT" && break
9379 done
9380 
9381     else
9382       # If it succeeded, then it was overridden by the user. We will use it
9383       # for the tool.
9384 
9385       # First remove it from the list of overridden variables, so we can test
9386       # for unknown variables in the end.
9387       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9388 
9389       # Check if the provided tool contains a complete path.
9390       tool_specified="$SORT"
9391       tool_basename="${tool_specified##*/}"
9392       if test "x$tool_basename" = "x$tool_specified"; then
9393         # A command without a complete path is provided, search $PATH.
9394         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9395 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9396         # Extract the first word of "$tool_basename", so it can be a program name with args.
9397 set dummy $tool_basename; ac_word=$2
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 $as_echo_n "checking for $ac_word... " >&6; }
9400 if ${ac_cv_path_SORT+:} false; then :
9401   $as_echo_n "(cached) " >&6
9402 else
9403   case $SORT in
9404   [\\/]* | ?:[\\/]*)
9405   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9406   ;;
9407   *)
9408   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9410 do
9411   IFS=$as_save_IFS
9412   test -z "$as_dir" && as_dir=.
9413     for ac_exec_ext in '' $ac_executable_extensions; do
9414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9417     break 2
9418   fi
9419 done
9420   done
9421 IFS=$as_save_IFS
9422 
9423   ;;
9424 esac
9425 fi
9426 SORT=$ac_cv_path_SORT
9427 if test -n "$SORT"; then
9428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9429 $as_echo "$SORT" >&6; }
9430 else
9431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9432 $as_echo "no" >&6; }
9433 fi
9434 
9435 
9436         if test "x$SORT" = x; then
9437           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9438         fi
9439       else
9440         # Otherwise we believe it is a complete path. Use it as it is.
9441         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9442 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9443         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9444 $as_echo_n "checking for SORT... " >&6; }
9445         if test ! -x "$tool_specified"; then
9446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9447 $as_echo "not found" >&6; }
9448           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9449         fi
9450         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9451 $as_echo "$tool_specified" >&6; }
9452       fi
9453     fi
9454   fi
9455 
9456 
9457 
9458   if test "x$SORT" = x; then
9459     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9460   fi
9461 
9462 
9463 
9464 
9465 
9466   # Publish this variable in the help.
9467 
9468 
9469   if test "x$TAIL" = x; then
9470     # The variable is not set by user, try to locate tool using the code snippet
9471     for ac_prog in tail
9472 do
9473   # Extract the first word of "$ac_prog", so it can be a program name with args.
9474 set dummy $ac_prog; ac_word=$2
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9476 $as_echo_n "checking for $ac_word... " >&6; }
9477 if ${ac_cv_path_TAIL+:} false; then :
9478   $as_echo_n "(cached) " >&6
9479 else
9480   case $TAIL in
9481   [\\/]* | ?:[\\/]*)
9482   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9483   ;;
9484   *)
9485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9486 for as_dir in $PATH
9487 do
9488   IFS=$as_save_IFS
9489   test -z "$as_dir" && as_dir=.
9490     for ac_exec_ext in '' $ac_executable_extensions; do
9491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9492     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9494     break 2
9495   fi
9496 done
9497   done
9498 IFS=$as_save_IFS
9499 
9500   ;;
9501 esac
9502 fi
9503 TAIL=$ac_cv_path_TAIL
9504 if test -n "$TAIL"; then
9505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9506 $as_echo "$TAIL" >&6; }
9507 else
9508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9510 fi
9511 
9512 
9513   test -n "$TAIL" && break
9514 done
9515 
9516   else
9517     # The variable is set, but is it from the command line or the environment?
9518 
9519     # Try to remove the string !TAIL! from our list.
9520     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9521     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9522       # If it failed, the variable was not from the command line. Ignore it,
9523       # but warn the user (except for BASH, which is always set by the calling BASH).
9524       if test "xTAIL" != xBASH; then
9525         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9526 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9527       fi
9528       # Try to locate tool using the code snippet
9529       for ac_prog in tail
9530 do
9531   # Extract the first word of "$ac_prog", so it can be a program name with args.
9532 set dummy $ac_prog; ac_word=$2
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534 $as_echo_n "checking for $ac_word... " >&6; }
9535 if ${ac_cv_path_TAIL+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   case $TAIL in
9539   [\\/]* | ?:[\\/]*)
9540   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9541   ;;
9542   *)
9543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544 for as_dir in $PATH
9545 do
9546   IFS=$as_save_IFS
9547   test -z "$as_dir" && as_dir=.
9548     for ac_exec_ext in '' $ac_executable_extensions; do
9549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9550     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9552     break 2
9553   fi
9554 done
9555   done
9556 IFS=$as_save_IFS
9557 
9558   ;;
9559 esac
9560 fi
9561 TAIL=$ac_cv_path_TAIL
9562 if test -n "$TAIL"; then
9563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9564 $as_echo "$TAIL" >&6; }
9565 else
9566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9568 fi
9569 
9570 
9571   test -n "$TAIL" && break
9572 done
9573 
9574     else
9575       # If it succeeded, then it was overridden by the user. We will use it
9576       # for the tool.
9577 
9578       # First remove it from the list of overridden variables, so we can test
9579       # for unknown variables in the end.
9580       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9581 
9582       # Check if the provided tool contains a complete path.
9583       tool_specified="$TAIL"
9584       tool_basename="${tool_specified##*/}"
9585       if test "x$tool_basename" = "x$tool_specified"; then
9586         # A command without a complete path is provided, search $PATH.
9587         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9588 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9589         # Extract the first word of "$tool_basename", so it can be a program name with args.
9590 set dummy $tool_basename; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if ${ac_cv_path_TAIL+:} false; then :
9594   $as_echo_n "(cached) " >&6
9595 else
9596   case $TAIL in
9597   [\\/]* | ?:[\\/]*)
9598   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9599   ;;
9600   *)
9601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602 for as_dir in $PATH
9603 do
9604   IFS=$as_save_IFS
9605   test -z "$as_dir" && as_dir=.
9606     for ac_exec_ext in '' $ac_executable_extensions; do
9607   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9608     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9610     break 2
9611   fi
9612 done
9613   done
9614 IFS=$as_save_IFS
9615 
9616   ;;
9617 esac
9618 fi
9619 TAIL=$ac_cv_path_TAIL
9620 if test -n "$TAIL"; then
9621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9622 $as_echo "$TAIL" >&6; }
9623 else
9624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9625 $as_echo "no" >&6; }
9626 fi
9627 
9628 
9629         if test "x$TAIL" = x; then
9630           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9631         fi
9632       else
9633         # Otherwise we believe it is a complete path. Use it as it is.
9634         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9635 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9637 $as_echo_n "checking for TAIL... " >&6; }
9638         if test ! -x "$tool_specified"; then
9639           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9640 $as_echo "not found" >&6; }
9641           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9642         fi
9643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9644 $as_echo "$tool_specified" >&6; }
9645       fi
9646     fi
9647   fi
9648 
9649 
9650 
9651   if test "x$TAIL" = x; then
9652     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9653   fi
9654 
9655 
9656 
9657 
9658 
9659   # Publish this variable in the help.
9660 
9661 
9662   if test "x$TAR" = x; then
9663     # The variable is not set by user, try to locate tool using the code snippet
9664     for ac_prog in tar
9665 do
9666   # Extract the first word of "$ac_prog", so it can be a program name with args.
9667 set dummy $ac_prog; ac_word=$2
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9669 $as_echo_n "checking for $ac_word... " >&6; }
9670 if ${ac_cv_path_TAR+:} false; then :
9671   $as_echo_n "(cached) " >&6
9672 else
9673   case $TAR in
9674   [\\/]* | ?:[\\/]*)
9675   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9676   ;;
9677   *)
9678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679 for as_dir in $PATH
9680 do
9681   IFS=$as_save_IFS
9682   test -z "$as_dir" && as_dir=.
9683     for ac_exec_ext in '' $ac_executable_extensions; do
9684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9685     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9687     break 2
9688   fi
9689 done
9690   done
9691 IFS=$as_save_IFS
9692 
9693   ;;
9694 esac
9695 fi
9696 TAR=$ac_cv_path_TAR
9697 if test -n "$TAR"; then
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9699 $as_echo "$TAR" >&6; }
9700 else
9701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9703 fi
9704 
9705 
9706   test -n "$TAR" && break
9707 done
9708 
9709   else
9710     # The variable is set, but is it from the command line or the environment?
9711 
9712     # Try to remove the string !TAR! from our list.
9713     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9714     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9715       # If it failed, the variable was not from the command line. Ignore it,
9716       # but warn the user (except for BASH, which is always set by the calling BASH).
9717       if test "xTAR" != xBASH; then
9718         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9719 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9720       fi
9721       # Try to locate tool using the code snippet
9722       for ac_prog in tar
9723 do
9724   # Extract the first word of "$ac_prog", so it can be a program name with args.
9725 set dummy $ac_prog; ac_word=$2
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727 $as_echo_n "checking for $ac_word... " >&6; }
9728 if ${ac_cv_path_TAR+:} false; then :
9729   $as_echo_n "(cached) " >&6
9730 else
9731   case $TAR in
9732   [\\/]* | ?:[\\/]*)
9733   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9734   ;;
9735   *)
9736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9737 for as_dir in $PATH
9738 do
9739   IFS=$as_save_IFS
9740   test -z "$as_dir" && as_dir=.
9741     for ac_exec_ext in '' $ac_executable_extensions; do
9742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9743     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745     break 2
9746   fi
9747 done
9748   done
9749 IFS=$as_save_IFS
9750 
9751   ;;
9752 esac
9753 fi
9754 TAR=$ac_cv_path_TAR
9755 if test -n "$TAR"; then
9756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9757 $as_echo "$TAR" >&6; }
9758 else
9759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9760 $as_echo "no" >&6; }
9761 fi
9762 
9763 
9764   test -n "$TAR" && break
9765 done
9766 
9767     else
9768       # If it succeeded, then it was overridden by the user. We will use it
9769       # for the tool.
9770 
9771       # First remove it from the list of overridden variables, so we can test
9772       # for unknown variables in the end.
9773       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9774 
9775       # Check if the provided tool contains a complete path.
9776       tool_specified="$TAR"
9777       tool_basename="${tool_specified##*/}"
9778       if test "x$tool_basename" = "x$tool_specified"; then
9779         # A command without a complete path is provided, search $PATH.
9780         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9781 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9782         # Extract the first word of "$tool_basename", so it can be a program name with args.
9783 set dummy $tool_basename; ac_word=$2
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9785 $as_echo_n "checking for $ac_word... " >&6; }
9786 if ${ac_cv_path_TAR+:} false; then :
9787   $as_echo_n "(cached) " >&6
9788 else
9789   case $TAR in
9790   [\\/]* | ?:[\\/]*)
9791   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9792   ;;
9793   *)
9794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9795 for as_dir in $PATH
9796 do
9797   IFS=$as_save_IFS
9798   test -z "$as_dir" && as_dir=.
9799     for ac_exec_ext in '' $ac_executable_extensions; do
9800   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9801     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9803     break 2
9804   fi
9805 done
9806   done
9807 IFS=$as_save_IFS
9808 
9809   ;;
9810 esac
9811 fi
9812 TAR=$ac_cv_path_TAR
9813 if test -n "$TAR"; then
9814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9815 $as_echo "$TAR" >&6; }
9816 else
9817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9818 $as_echo "no" >&6; }
9819 fi
9820 
9821 
9822         if test "x$TAR" = x; then
9823           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9824         fi
9825       else
9826         # Otherwise we believe it is a complete path. Use it as it is.
9827         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9828 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9830 $as_echo_n "checking for TAR... " >&6; }
9831         if test ! -x "$tool_specified"; then
9832           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9833 $as_echo "not found" >&6; }
9834           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9835         fi
9836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9837 $as_echo "$tool_specified" >&6; }
9838       fi
9839     fi
9840   fi
9841 
9842 
9843 
9844   if test "x$TAR" = x; then
9845     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9846   fi
9847 
9848 
9849 
9850 
9851 
9852   # Publish this variable in the help.
9853 
9854 
9855   if test "x$TEE" = x; then
9856     # The variable is not set by user, try to locate tool using the code snippet
9857     for ac_prog in tee
9858 do
9859   # Extract the first word of "$ac_prog", so it can be a program name with args.
9860 set dummy $ac_prog; ac_word=$2
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9862 $as_echo_n "checking for $ac_word... " >&6; }
9863 if ${ac_cv_path_TEE+:} false; then :
9864   $as_echo_n "(cached) " >&6
9865 else
9866   case $TEE in
9867   [\\/]* | ?:[\\/]*)
9868   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9869   ;;
9870   *)
9871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874   IFS=$as_save_IFS
9875   test -z "$as_dir" && as_dir=.
9876     for ac_exec_ext in '' $ac_executable_extensions; do
9877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9878     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9880     break 2
9881   fi
9882 done
9883   done
9884 IFS=$as_save_IFS
9885 
9886   ;;
9887 esac
9888 fi
9889 TEE=$ac_cv_path_TEE
9890 if test -n "$TEE"; then
9891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9892 $as_echo "$TEE" >&6; }
9893 else
9894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9895 $as_echo "no" >&6; }
9896 fi
9897 
9898 
9899   test -n "$TEE" && break
9900 done
9901 
9902   else
9903     # The variable is set, but is it from the command line or the environment?
9904 
9905     # Try to remove the string !TEE! from our list.
9906     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9907     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9908       # If it failed, the variable was not from the command line. Ignore it,
9909       # but warn the user (except for BASH, which is always set by the calling BASH).
9910       if test "xTEE" != xBASH; then
9911         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9912 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9913       fi
9914       # Try to locate tool using the code snippet
9915       for ac_prog in tee
9916 do
9917   # Extract the first word of "$ac_prog", so it can be a program name with args.
9918 set dummy $ac_prog; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_path_TEE+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   case $TEE in
9925   [\\/]* | ?:[\\/]*)
9926   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9927   ;;
9928   *)
9929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 for as_dir in $PATH
9931 do
9932   IFS=$as_save_IFS
9933   test -z "$as_dir" && as_dir=.
9934     for ac_exec_ext in '' $ac_executable_extensions; do
9935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9936     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9938     break 2
9939   fi
9940 done
9941   done
9942 IFS=$as_save_IFS
9943 
9944   ;;
9945 esac
9946 fi
9947 TEE=$ac_cv_path_TEE
9948 if test -n "$TEE"; then
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9950 $as_echo "$TEE" >&6; }
9951 else
9952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9953 $as_echo "no" >&6; }
9954 fi
9955 
9956 
9957   test -n "$TEE" && break
9958 done
9959 
9960     else
9961       # If it succeeded, then it was overridden by the user. We will use it
9962       # for the tool.
9963 
9964       # First remove it from the list of overridden variables, so we can test
9965       # for unknown variables in the end.
9966       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9967 
9968       # Check if the provided tool contains a complete path.
9969       tool_specified="$TEE"
9970       tool_basename="${tool_specified##*/}"
9971       if test "x$tool_basename" = "x$tool_specified"; then
9972         # A command without a complete path is provided, search $PATH.
9973         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9974 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9975         # Extract the first word of "$tool_basename", so it can be a program name with args.
9976 set dummy $tool_basename; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_path_TEE+:} false; then :
9980   $as_echo_n "(cached) " >&6
9981 else
9982   case $TEE in
9983   [\\/]* | ?:[\\/]*)
9984   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9985   ;;
9986   *)
9987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990   IFS=$as_save_IFS
9991   test -z "$as_dir" && as_dir=.
9992     for ac_exec_ext in '' $ac_executable_extensions; do
9993   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9994     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9996     break 2
9997   fi
9998 done
9999   done
10000 IFS=$as_save_IFS
10001 
10002   ;;
10003 esac
10004 fi
10005 TEE=$ac_cv_path_TEE
10006 if test -n "$TEE"; then
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10008 $as_echo "$TEE" >&6; }
10009 else
10010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10011 $as_echo "no" >&6; }
10012 fi
10013 
10014 
10015         if test "x$TEE" = x; then
10016           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10017         fi
10018       else
10019         # Otherwise we believe it is a complete path. Use it as it is.
10020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10021 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10022         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10023 $as_echo_n "checking for TEE... " >&6; }
10024         if test ! -x "$tool_specified"; then
10025           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10026 $as_echo "not found" >&6; }
10027           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10028         fi
10029         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10030 $as_echo "$tool_specified" >&6; }
10031       fi
10032     fi
10033   fi
10034 
10035 
10036 
10037   if test "x$TEE" = x; then
10038     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10039   fi
10040 
10041 
10042 
10043 
10044 
10045   # Publish this variable in the help.
10046 
10047 
10048   if test "x$TOUCH" = x; then
10049     # The variable is not set by user, try to locate tool using the code snippet
10050     for ac_prog in touch
10051 do
10052   # Extract the first word of "$ac_prog", so it can be a program name with args.
10053 set dummy $ac_prog; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_TOUCH+:} false; then :
10057   $as_echo_n "(cached) " >&6
10058 else
10059   case $TOUCH in
10060   [\\/]* | ?:[\\/]*)
10061   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10062   ;;
10063   *)
10064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10066 do
10067   IFS=$as_save_IFS
10068   test -z "$as_dir" && as_dir=.
10069     for ac_exec_ext in '' $ac_executable_extensions; do
10070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10073     break 2
10074   fi
10075 done
10076   done
10077 IFS=$as_save_IFS
10078 
10079   ;;
10080 esac
10081 fi
10082 TOUCH=$ac_cv_path_TOUCH
10083 if test -n "$TOUCH"; then
10084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10085 $as_echo "$TOUCH" >&6; }
10086 else
10087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10089 fi
10090 
10091 
10092   test -n "$TOUCH" && break
10093 done
10094 
10095   else
10096     # The variable is set, but is it from the command line or the environment?
10097 
10098     # Try to remove the string !TOUCH! from our list.
10099     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10100     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10101       # If it failed, the variable was not from the command line. Ignore it,
10102       # but warn the user (except for BASH, which is always set by the calling BASH).
10103       if test "xTOUCH" != xBASH; then
10104         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10105 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10106       fi
10107       # Try to locate tool using the code snippet
10108       for ac_prog in touch
10109 do
10110   # Extract the first word of "$ac_prog", so it can be a program name with args.
10111 set dummy $ac_prog; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_path_TOUCH+:} false; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   case $TOUCH in
10118   [\\/]* | ?:[\\/]*)
10119   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10120   ;;
10121   *)
10122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123 for as_dir in $PATH
10124 do
10125   IFS=$as_save_IFS
10126   test -z "$as_dir" && as_dir=.
10127     for ac_exec_ext in '' $ac_executable_extensions; do
10128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10129     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10131     break 2
10132   fi
10133 done
10134   done
10135 IFS=$as_save_IFS
10136 
10137   ;;
10138 esac
10139 fi
10140 TOUCH=$ac_cv_path_TOUCH
10141 if test -n "$TOUCH"; then
10142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10143 $as_echo "$TOUCH" >&6; }
10144 else
10145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10147 fi
10148 
10149 
10150   test -n "$TOUCH" && break
10151 done
10152 
10153     else
10154       # If it succeeded, then it was overridden by the user. We will use it
10155       # for the tool.
10156 
10157       # First remove it from the list of overridden variables, so we can test
10158       # for unknown variables in the end.
10159       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10160 
10161       # Check if the provided tool contains a complete path.
10162       tool_specified="$TOUCH"
10163       tool_basename="${tool_specified##*/}"
10164       if test "x$tool_basename" = "x$tool_specified"; then
10165         # A command without a complete path is provided, search $PATH.
10166         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10167 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10168         # Extract the first word of "$tool_basename", so it can be a program name with args.
10169 set dummy $tool_basename; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_path_TOUCH+:} false; then :
10173   $as_echo_n "(cached) " >&6
10174 else
10175   case $TOUCH in
10176   [\\/]* | ?:[\\/]*)
10177   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10178   ;;
10179   *)
10180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10182 do
10183   IFS=$as_save_IFS
10184   test -z "$as_dir" && as_dir=.
10185     for ac_exec_ext in '' $ac_executable_extensions; do
10186   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10187     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10189     break 2
10190   fi
10191 done
10192   done
10193 IFS=$as_save_IFS
10194 
10195   ;;
10196 esac
10197 fi
10198 TOUCH=$ac_cv_path_TOUCH
10199 if test -n "$TOUCH"; then
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10201 $as_echo "$TOUCH" >&6; }
10202 else
10203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10205 fi
10206 
10207 
10208         if test "x$TOUCH" = x; then
10209           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10210         fi
10211       else
10212         # Otherwise we believe it is a complete path. Use it as it is.
10213         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10214 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10215         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10216 $as_echo_n "checking for TOUCH... " >&6; }
10217         if test ! -x "$tool_specified"; then
10218           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10219 $as_echo "not found" >&6; }
10220           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10221         fi
10222         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10223 $as_echo "$tool_specified" >&6; }
10224       fi
10225     fi
10226   fi
10227 
10228 
10229 
10230   if test "x$TOUCH" = x; then
10231     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10232   fi
10233 
10234 
10235 
10236 
10237 
10238   # Publish this variable in the help.
10239 
10240 
10241   if test "x$TR" = x; then
10242     # The variable is not set by user, try to locate tool using the code snippet
10243     for ac_prog in tr
10244 do
10245   # Extract the first word of "$ac_prog", so it can be a program name with args.
10246 set dummy $ac_prog; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_path_TR+:} false; then :
10250   $as_echo_n "(cached) " >&6
10251 else
10252   case $TR in
10253   [\\/]* | ?:[\\/]*)
10254   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10255   ;;
10256   *)
10257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262     for ac_exec_ext in '' $ac_executable_extensions; do
10263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10264     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269   done
10270 IFS=$as_save_IFS
10271 
10272   ;;
10273 esac
10274 fi
10275 TR=$ac_cv_path_TR
10276 if test -n "$TR"; then
10277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10278 $as_echo "$TR" >&6; }
10279 else
10280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10282 fi
10283 
10284 
10285   test -n "$TR" && break
10286 done
10287 
10288   else
10289     # The variable is set, but is it from the command line or the environment?
10290 
10291     # Try to remove the string !TR! from our list.
10292     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10293     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10294       # If it failed, the variable was not from the command line. Ignore it,
10295       # but warn the user (except for BASH, which is always set by the calling BASH).
10296       if test "xTR" != xBASH; then
10297         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10298 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10299       fi
10300       # Try to locate tool using the code snippet
10301       for ac_prog in tr
10302 do
10303   # Extract the first word of "$ac_prog", so it can be a program name with args.
10304 set dummy $ac_prog; ac_word=$2
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10306 $as_echo_n "checking for $ac_word... " >&6; }
10307 if ${ac_cv_path_TR+:} false; then :
10308   $as_echo_n "(cached) " >&6
10309 else
10310   case $TR in
10311   [\\/]* | ?:[\\/]*)
10312   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10313   ;;
10314   *)
10315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10316 for as_dir in $PATH
10317 do
10318   IFS=$as_save_IFS
10319   test -z "$as_dir" && as_dir=.
10320     for ac_exec_ext in '' $ac_executable_extensions; do
10321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10322     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10324     break 2
10325   fi
10326 done
10327   done
10328 IFS=$as_save_IFS
10329 
10330   ;;
10331 esac
10332 fi
10333 TR=$ac_cv_path_TR
10334 if test -n "$TR"; then
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10336 $as_echo "$TR" >&6; }
10337 else
10338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10340 fi
10341 
10342 
10343   test -n "$TR" && break
10344 done
10345 
10346     else
10347       # If it succeeded, then it was overridden by the user. We will use it
10348       # for the tool.
10349 
10350       # First remove it from the list of overridden variables, so we can test
10351       # for unknown variables in the end.
10352       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10353 
10354       # Check if the provided tool contains a complete path.
10355       tool_specified="$TR"
10356       tool_basename="${tool_specified##*/}"
10357       if test "x$tool_basename" = "x$tool_specified"; then
10358         # A command without a complete path is provided, search $PATH.
10359         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10360 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10361         # Extract the first word of "$tool_basename", so it can be a program name with args.
10362 set dummy $tool_basename; ac_word=$2
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10364 $as_echo_n "checking for $ac_word... " >&6; }
10365 if ${ac_cv_path_TR+:} false; then :
10366   $as_echo_n "(cached) " >&6
10367 else
10368   case $TR in
10369   [\\/]* | ?:[\\/]*)
10370   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10371   ;;
10372   *)
10373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10374 for as_dir in $PATH
10375 do
10376   IFS=$as_save_IFS
10377   test -z "$as_dir" && as_dir=.
10378     for ac_exec_ext in '' $ac_executable_extensions; do
10379   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10380     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10381     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10382     break 2
10383   fi
10384 done
10385   done
10386 IFS=$as_save_IFS
10387 
10388   ;;
10389 esac
10390 fi
10391 TR=$ac_cv_path_TR
10392 if test -n "$TR"; then
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10394 $as_echo "$TR" >&6; }
10395 else
10396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10397 $as_echo "no" >&6; }
10398 fi
10399 
10400 
10401         if test "x$TR" = x; then
10402           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10403         fi
10404       else
10405         # Otherwise we believe it is a complete path. Use it as it is.
10406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10407 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10408         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10409 $as_echo_n "checking for TR... " >&6; }
10410         if test ! -x "$tool_specified"; then
10411           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10412 $as_echo "not found" >&6; }
10413           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10414         fi
10415         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10416 $as_echo "$tool_specified" >&6; }
10417       fi
10418     fi
10419   fi
10420 
10421 
10422 
10423   if test "x$TR" = x; then
10424     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10425   fi
10426 
10427 
10428 
10429 
10430 
10431   # Publish this variable in the help.
10432 
10433 
10434   if test "x$UNAME" = x; then
10435     # The variable is not set by user, try to locate tool using the code snippet
10436     for ac_prog in uname
10437 do
10438   # Extract the first word of "$ac_prog", so it can be a program name with args.
10439 set dummy $ac_prog; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_path_UNAME+:} false; then :
10443   $as_echo_n "(cached) " >&6
10444 else
10445   case $UNAME in
10446   [\\/]* | ?:[\\/]*)
10447   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10448   ;;
10449   *)
10450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10452 do
10453   IFS=$as_save_IFS
10454   test -z "$as_dir" && as_dir=.
10455     for ac_exec_ext in '' $ac_executable_extensions; do
10456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10459     break 2
10460   fi
10461 done
10462   done
10463 IFS=$as_save_IFS
10464 
10465   ;;
10466 esac
10467 fi
10468 UNAME=$ac_cv_path_UNAME
10469 if test -n "$UNAME"; then
10470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10471 $as_echo "$UNAME" >&6; }
10472 else
10473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474 $as_echo "no" >&6; }
10475 fi
10476 
10477 
10478   test -n "$UNAME" && break
10479 done
10480 
10481   else
10482     # The variable is set, but is it from the command line or the environment?
10483 
10484     # Try to remove the string !UNAME! from our list.
10485     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10486     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10487       # If it failed, the variable was not from the command line. Ignore it,
10488       # but warn the user (except for BASH, which is always set by the calling BASH).
10489       if test "xUNAME" != xBASH; then
10490         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10491 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10492       fi
10493       # Try to locate tool using the code snippet
10494       for ac_prog in uname
10495 do
10496   # Extract the first word of "$ac_prog", so it can be a program name with args.
10497 set dummy $ac_prog; ac_word=$2
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10499 $as_echo_n "checking for $ac_word... " >&6; }
10500 if ${ac_cv_path_UNAME+:} false; then :
10501   $as_echo_n "(cached) " >&6
10502 else
10503   case $UNAME in
10504   [\\/]* | ?:[\\/]*)
10505   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10506   ;;
10507   *)
10508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509 for as_dir in $PATH
10510 do
10511   IFS=$as_save_IFS
10512   test -z "$as_dir" && as_dir=.
10513     for ac_exec_ext in '' $ac_executable_extensions; do
10514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517     break 2
10518   fi
10519 done
10520   done
10521 IFS=$as_save_IFS
10522 
10523   ;;
10524 esac
10525 fi
10526 UNAME=$ac_cv_path_UNAME
10527 if test -n "$UNAME"; then
10528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10529 $as_echo "$UNAME" >&6; }
10530 else
10531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10532 $as_echo "no" >&6; }
10533 fi
10534 
10535 
10536   test -n "$UNAME" && break
10537 done
10538 
10539     else
10540       # If it succeeded, then it was overridden by the user. We will use it
10541       # for the tool.
10542 
10543       # First remove it from the list of overridden variables, so we can test
10544       # for unknown variables in the end.
10545       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10546 
10547       # Check if the provided tool contains a complete path.
10548       tool_specified="$UNAME"
10549       tool_basename="${tool_specified##*/}"
10550       if test "x$tool_basename" = "x$tool_specified"; then
10551         # A command without a complete path is provided, search $PATH.
10552         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10553 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10554         # Extract the first word of "$tool_basename", so it can be a program name with args.
10555 set dummy $tool_basename; ac_word=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_path_UNAME+:} false; then :
10559   $as_echo_n "(cached) " >&6
10560 else
10561   case $UNAME in
10562   [\\/]* | ?:[\\/]*)
10563   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10564   ;;
10565   *)
10566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567 for as_dir in $PATH
10568 do
10569   IFS=$as_save_IFS
10570   test -z "$as_dir" && as_dir=.
10571     for ac_exec_ext in '' $ac_executable_extensions; do
10572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575     break 2
10576   fi
10577 done
10578   done
10579 IFS=$as_save_IFS
10580 
10581   ;;
10582 esac
10583 fi
10584 UNAME=$ac_cv_path_UNAME
10585 if test -n "$UNAME"; then
10586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10587 $as_echo "$UNAME" >&6; }
10588 else
10589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10590 $as_echo "no" >&6; }
10591 fi
10592 
10593 
10594         if test "x$UNAME" = x; then
10595           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10596         fi
10597       else
10598         # Otherwise we believe it is a complete path. Use it as it is.
10599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10600 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10601         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10602 $as_echo_n "checking for UNAME... " >&6; }
10603         if test ! -x "$tool_specified"; then
10604           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10605 $as_echo "not found" >&6; }
10606           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10607         fi
10608         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10609 $as_echo "$tool_specified" >&6; }
10610       fi
10611     fi
10612   fi
10613 
10614 
10615 
10616   if test "x$UNAME" = x; then
10617     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10618   fi
10619 
10620 
10621 
10622 
10623 
10624   # Publish this variable in the help.
10625 
10626 
10627   if test "x$UNIQ" = x; then
10628     # The variable is not set by user, try to locate tool using the code snippet
10629     for ac_prog in uniq
10630 do
10631   # Extract the first word of "$ac_prog", so it can be a program name with args.
10632 set dummy $ac_prog; ac_word=$2
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634 $as_echo_n "checking for $ac_word... " >&6; }
10635 if ${ac_cv_path_UNIQ+:} false; then :
10636   $as_echo_n "(cached) " >&6
10637 else
10638   case $UNIQ in
10639   [\\/]* | ?:[\\/]*)
10640   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10641   ;;
10642   *)
10643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10645 do
10646   IFS=$as_save_IFS
10647   test -z "$as_dir" && as_dir=.
10648     for ac_exec_ext in '' $ac_executable_extensions; do
10649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10650     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10652     break 2
10653   fi
10654 done
10655   done
10656 IFS=$as_save_IFS
10657 
10658   ;;
10659 esac
10660 fi
10661 UNIQ=$ac_cv_path_UNIQ
10662 if test -n "$UNIQ"; then
10663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10664 $as_echo "$UNIQ" >&6; }
10665 else
10666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10667 $as_echo "no" >&6; }
10668 fi
10669 
10670 
10671   test -n "$UNIQ" && break
10672 done
10673 
10674   else
10675     # The variable is set, but is it from the command line or the environment?
10676 
10677     # Try to remove the string !UNIQ! from our list.
10678     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10679     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10680       # If it failed, the variable was not from the command line. Ignore it,
10681       # but warn the user (except for BASH, which is always set by the calling BASH).
10682       if test "xUNIQ" != xBASH; then
10683         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10684 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10685       fi
10686       # Try to locate tool using the code snippet
10687       for ac_prog in uniq
10688 do
10689   # Extract the first word of "$ac_prog", so it can be a program name with args.
10690 set dummy $ac_prog; ac_word=$2
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10692 $as_echo_n "checking for $ac_word... " >&6; }
10693 if ${ac_cv_path_UNIQ+:} false; then :
10694   $as_echo_n "(cached) " >&6
10695 else
10696   case $UNIQ in
10697   [\\/]* | ?:[\\/]*)
10698   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10699   ;;
10700   *)
10701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10703 do
10704   IFS=$as_save_IFS
10705   test -z "$as_dir" && as_dir=.
10706     for ac_exec_ext in '' $ac_executable_extensions; do
10707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10710     break 2
10711   fi
10712 done
10713   done
10714 IFS=$as_save_IFS
10715 
10716   ;;
10717 esac
10718 fi
10719 UNIQ=$ac_cv_path_UNIQ
10720 if test -n "$UNIQ"; then
10721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10722 $as_echo "$UNIQ" >&6; }
10723 else
10724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10725 $as_echo "no" >&6; }
10726 fi
10727 
10728 
10729   test -n "$UNIQ" && break
10730 done
10731 
10732     else
10733       # If it succeeded, then it was overridden by the user. We will use it
10734       # for the tool.
10735 
10736       # First remove it from the list of overridden variables, so we can test
10737       # for unknown variables in the end.
10738       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10739 
10740       # Check if the provided tool contains a complete path.
10741       tool_specified="$UNIQ"
10742       tool_basename="${tool_specified##*/}"
10743       if test "x$tool_basename" = "x$tool_specified"; then
10744         # A command without a complete path is provided, search $PATH.
10745         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10746 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10747         # Extract the first word of "$tool_basename", so it can be a program name with args.
10748 set dummy $tool_basename; ac_word=$2
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10750 $as_echo_n "checking for $ac_word... " >&6; }
10751 if ${ac_cv_path_UNIQ+:} false; then :
10752   $as_echo_n "(cached) " >&6
10753 else
10754   case $UNIQ in
10755   [\\/]* | ?:[\\/]*)
10756   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10757   ;;
10758   *)
10759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10761 do
10762   IFS=$as_save_IFS
10763   test -z "$as_dir" && as_dir=.
10764     for ac_exec_ext in '' $ac_executable_extensions; do
10765   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10766     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10767     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10768     break 2
10769   fi
10770 done
10771   done
10772 IFS=$as_save_IFS
10773 
10774   ;;
10775 esac
10776 fi
10777 UNIQ=$ac_cv_path_UNIQ
10778 if test -n "$UNIQ"; then
10779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10780 $as_echo "$UNIQ" >&6; }
10781 else
10782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783 $as_echo "no" >&6; }
10784 fi
10785 
10786 
10787         if test "x$UNIQ" = x; then
10788           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10789         fi
10790       else
10791         # Otherwise we believe it is a complete path. Use it as it is.
10792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10793 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10795 $as_echo_n "checking for UNIQ... " >&6; }
10796         if test ! -x "$tool_specified"; then
10797           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10798 $as_echo "not found" >&6; }
10799           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10800         fi
10801         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10802 $as_echo "$tool_specified" >&6; }
10803       fi
10804     fi
10805   fi
10806 
10807 
10808 
10809   if test "x$UNIQ" = x; then
10810     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10811   fi
10812 
10813 
10814 
10815 
10816 
10817   # Publish this variable in the help.
10818 
10819 
10820   if test "x$WC" = x; then
10821     # The variable is not set by user, try to locate tool using the code snippet
10822     for ac_prog in wc
10823 do
10824   # Extract the first word of "$ac_prog", so it can be a program name with args.
10825 set dummy $ac_prog; ac_word=$2
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827 $as_echo_n "checking for $ac_word... " >&6; }
10828 if ${ac_cv_path_WC+:} false; then :
10829   $as_echo_n "(cached) " >&6
10830 else
10831   case $WC in
10832   [\\/]* | ?:[\\/]*)
10833   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10834   ;;
10835   *)
10836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839   IFS=$as_save_IFS
10840   test -z "$as_dir" && as_dir=.
10841     for ac_exec_ext in '' $ac_executable_extensions; do
10842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10843     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10845     break 2
10846   fi
10847 done
10848   done
10849 IFS=$as_save_IFS
10850 
10851   ;;
10852 esac
10853 fi
10854 WC=$ac_cv_path_WC
10855 if test -n "$WC"; then
10856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10857 $as_echo "$WC" >&6; }
10858 else
10859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860 $as_echo "no" >&6; }
10861 fi
10862 
10863 
10864   test -n "$WC" && break
10865 done
10866 
10867   else
10868     # The variable is set, but is it from the command line or the environment?
10869 
10870     # Try to remove the string !WC! from our list.
10871     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10872     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10873       # If it failed, the variable was not from the command line. Ignore it,
10874       # but warn the user (except for BASH, which is always set by the calling BASH).
10875       if test "xWC" != xBASH; then
10876         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10877 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10878       fi
10879       # Try to locate tool using the code snippet
10880       for ac_prog in wc
10881 do
10882   # Extract the first word of "$ac_prog", so it can be a program name with args.
10883 set dummy $ac_prog; ac_word=$2
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10885 $as_echo_n "checking for $ac_word... " >&6; }
10886 if ${ac_cv_path_WC+:} false; then :
10887   $as_echo_n "(cached) " >&6
10888 else
10889   case $WC in
10890   [\\/]* | ?:[\\/]*)
10891   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10892   ;;
10893   *)
10894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895 for as_dir in $PATH
10896 do
10897   IFS=$as_save_IFS
10898   test -z "$as_dir" && as_dir=.
10899     for ac_exec_ext in '' $ac_executable_extensions; do
10900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903     break 2
10904   fi
10905 done
10906   done
10907 IFS=$as_save_IFS
10908 
10909   ;;
10910 esac
10911 fi
10912 WC=$ac_cv_path_WC
10913 if test -n "$WC"; then
10914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10915 $as_echo "$WC" >&6; }
10916 else
10917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 fi
10920 
10921 
10922   test -n "$WC" && break
10923 done
10924 
10925     else
10926       # If it succeeded, then it was overridden by the user. We will use it
10927       # for the tool.
10928 
10929       # First remove it from the list of overridden variables, so we can test
10930       # for unknown variables in the end.
10931       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10932 
10933       # Check if the provided tool contains a complete path.
10934       tool_specified="$WC"
10935       tool_basename="${tool_specified##*/}"
10936       if test "x$tool_basename" = "x$tool_specified"; then
10937         # A command without a complete path is provided, search $PATH.
10938         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10939 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10940         # Extract the first word of "$tool_basename", so it can be a program name with args.
10941 set dummy $tool_basename; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10943 $as_echo_n "checking for $ac_word... " >&6; }
10944 if ${ac_cv_path_WC+:} false; then :
10945   $as_echo_n "(cached) " >&6
10946 else
10947   case $WC in
10948   [\\/]* | ?:[\\/]*)
10949   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10950   ;;
10951   *)
10952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10954 do
10955   IFS=$as_save_IFS
10956   test -z "$as_dir" && as_dir=.
10957     for ac_exec_ext in '' $ac_executable_extensions; do
10958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10959     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10961     break 2
10962   fi
10963 done
10964   done
10965 IFS=$as_save_IFS
10966 
10967   ;;
10968 esac
10969 fi
10970 WC=$ac_cv_path_WC
10971 if test -n "$WC"; then
10972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10973 $as_echo "$WC" >&6; }
10974 else
10975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976 $as_echo "no" >&6; }
10977 fi
10978 
10979 
10980         if test "x$WC" = x; then
10981           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10982         fi
10983       else
10984         # Otherwise we believe it is a complete path. Use it as it is.
10985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10986 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10987         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10988 $as_echo_n "checking for WC... " >&6; }
10989         if test ! -x "$tool_specified"; then
10990           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10991 $as_echo "not found" >&6; }
10992           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10993         fi
10994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10995 $as_echo "$tool_specified" >&6; }
10996       fi
10997     fi
10998   fi
10999 
11000 
11001 
11002   if test "x$WC" = x; then
11003     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11004   fi
11005 
11006 
11007 
11008 
11009 
11010   # Publish this variable in the help.
11011 
11012 
11013   if test "x$WHICH" = x; then
11014     # The variable is not set by user, try to locate tool using the code snippet
11015     for ac_prog in which
11016 do
11017   # Extract the first word of "$ac_prog", so it can be a program name with args.
11018 set dummy $ac_prog; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020 $as_echo_n "checking for $ac_word... " >&6; }
11021 if ${ac_cv_path_WHICH+:} false; then :
11022   $as_echo_n "(cached) " >&6
11023 else
11024   case $WHICH in
11025   [\\/]* | ?:[\\/]*)
11026   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11027   ;;
11028   *)
11029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030 for as_dir in $PATH
11031 do
11032   IFS=$as_save_IFS
11033   test -z "$as_dir" && as_dir=.
11034     for ac_exec_ext in '' $ac_executable_extensions; do
11035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11036     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038     break 2
11039   fi
11040 done
11041   done
11042 IFS=$as_save_IFS
11043 
11044   ;;
11045 esac
11046 fi
11047 WHICH=$ac_cv_path_WHICH
11048 if test -n "$WHICH"; then
11049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11050 $as_echo "$WHICH" >&6; }
11051 else
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053 $as_echo "no" >&6; }
11054 fi
11055 
11056 
11057   test -n "$WHICH" && break
11058 done
11059 
11060   else
11061     # The variable is set, but is it from the command line or the environment?
11062 
11063     # Try to remove the string !WHICH! from our list.
11064     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11065     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11066       # If it failed, the variable was not from the command line. Ignore it,
11067       # but warn the user (except for BASH, which is always set by the calling BASH).
11068       if test "xWHICH" != xBASH; then
11069         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11070 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11071       fi
11072       # Try to locate tool using the code snippet
11073       for ac_prog in which
11074 do
11075   # Extract the first word of "$ac_prog", so it can be a program name with args.
11076 set dummy $ac_prog; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if ${ac_cv_path_WHICH+:} false; then :
11080   $as_echo_n "(cached) " >&6
11081 else
11082   case $WHICH in
11083   [\\/]* | ?:[\\/]*)
11084   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11085   ;;
11086   *)
11087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11088 for as_dir in $PATH
11089 do
11090   IFS=$as_save_IFS
11091   test -z "$as_dir" && as_dir=.
11092     for ac_exec_ext in '' $ac_executable_extensions; do
11093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11094     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11096     break 2
11097   fi
11098 done
11099   done
11100 IFS=$as_save_IFS
11101 
11102   ;;
11103 esac
11104 fi
11105 WHICH=$ac_cv_path_WHICH
11106 if test -n "$WHICH"; then
11107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11108 $as_echo "$WHICH" >&6; }
11109 else
11110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11111 $as_echo "no" >&6; }
11112 fi
11113 
11114 
11115   test -n "$WHICH" && break
11116 done
11117 
11118     else
11119       # If it succeeded, then it was overridden by the user. We will use it
11120       # for the tool.
11121 
11122       # First remove it from the list of overridden variables, so we can test
11123       # for unknown variables in the end.
11124       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11125 
11126       # Check if the provided tool contains a complete path.
11127       tool_specified="$WHICH"
11128       tool_basename="${tool_specified##*/}"
11129       if test "x$tool_basename" = "x$tool_specified"; then
11130         # A command without a complete path is provided, search $PATH.
11131         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11132 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11133         # Extract the first word of "$tool_basename", so it can be a program name with args.
11134 set dummy $tool_basename; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11136 $as_echo_n "checking for $ac_word... " >&6; }
11137 if ${ac_cv_path_WHICH+:} false; then :
11138   $as_echo_n "(cached) " >&6
11139 else
11140   case $WHICH in
11141   [\\/]* | ?:[\\/]*)
11142   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11143   ;;
11144   *)
11145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11147 do
11148   IFS=$as_save_IFS
11149   test -z "$as_dir" && as_dir=.
11150     for ac_exec_ext in '' $ac_executable_extensions; do
11151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154     break 2
11155   fi
11156 done
11157   done
11158 IFS=$as_save_IFS
11159 
11160   ;;
11161 esac
11162 fi
11163 WHICH=$ac_cv_path_WHICH
11164 if test -n "$WHICH"; then
11165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11166 $as_echo "$WHICH" >&6; }
11167 else
11168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 $as_echo "no" >&6; }
11170 fi
11171 
11172 
11173         if test "x$WHICH" = x; then
11174           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11175         fi
11176       else
11177         # Otherwise we believe it is a complete path. Use it as it is.
11178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11179 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11181 $as_echo_n "checking for WHICH... " >&6; }
11182         if test ! -x "$tool_specified"; then
11183           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11184 $as_echo "not found" >&6; }
11185           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11186         fi
11187         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11188 $as_echo "$tool_specified" >&6; }
11189       fi
11190     fi
11191   fi
11192 
11193 
11194 
11195   if test "x$WHICH" = x; then
11196     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11197   fi
11198 
11199 
11200 
11201 
11202 
11203   # Publish this variable in the help.
11204 
11205 
11206   if test "x$XARGS" = x; then
11207     # The variable is not set by user, try to locate tool using the code snippet
11208     for ac_prog in xargs
11209 do
11210   # Extract the first word of "$ac_prog", so it can be a program name with args.
11211 set dummy $ac_prog; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213 $as_echo_n "checking for $ac_word... " >&6; }
11214 if ${ac_cv_path_XARGS+:} false; then :
11215   $as_echo_n "(cached) " >&6
11216 else
11217   case $XARGS in
11218   [\\/]* | ?:[\\/]*)
11219   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11220   ;;
11221   *)
11222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11224 do
11225   IFS=$as_save_IFS
11226   test -z "$as_dir" && as_dir=.
11227     for ac_exec_ext in '' $ac_executable_extensions; do
11228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11231     break 2
11232   fi
11233 done
11234   done
11235 IFS=$as_save_IFS
11236 
11237   ;;
11238 esac
11239 fi
11240 XARGS=$ac_cv_path_XARGS
11241 if test -n "$XARGS"; then
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11243 $as_echo "$XARGS" >&6; }
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11247 fi
11248 
11249 
11250   test -n "$XARGS" && break
11251 done
11252 
11253   else
11254     # The variable is set, but is it from the command line or the environment?
11255 
11256     # Try to remove the string !XARGS! from our list.
11257     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11258     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11259       # If it failed, the variable was not from the command line. Ignore it,
11260       # but warn the user (except for BASH, which is always set by the calling BASH).
11261       if test "xXARGS" != xBASH; then
11262         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11263 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11264       fi
11265       # Try to locate tool using the code snippet
11266       for ac_prog in xargs
11267 do
11268   # Extract the first word of "$ac_prog", so it can be a program name with args.
11269 set dummy $ac_prog; ac_word=$2
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11271 $as_echo_n "checking for $ac_word... " >&6; }
11272 if ${ac_cv_path_XARGS+:} false; then :
11273   $as_echo_n "(cached) " >&6
11274 else
11275   case $XARGS in
11276   [\\/]* | ?:[\\/]*)
11277   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11278   ;;
11279   *)
11280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281 for as_dir in $PATH
11282 do
11283   IFS=$as_save_IFS
11284   test -z "$as_dir" && as_dir=.
11285     for ac_exec_ext in '' $ac_executable_extensions; do
11286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11287     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11289     break 2
11290   fi
11291 done
11292   done
11293 IFS=$as_save_IFS
11294 
11295   ;;
11296 esac
11297 fi
11298 XARGS=$ac_cv_path_XARGS
11299 if test -n "$XARGS"; then
11300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11301 $as_echo "$XARGS" >&6; }
11302 else
11303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304 $as_echo "no" >&6; }
11305 fi
11306 
11307 
11308   test -n "$XARGS" && break
11309 done
11310 
11311     else
11312       # If it succeeded, then it was overridden by the user. We will use it
11313       # for the tool.
11314 
11315       # First remove it from the list of overridden variables, so we can test
11316       # for unknown variables in the end.
11317       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11318 
11319       # Check if the provided tool contains a complete path.
11320       tool_specified="$XARGS"
11321       tool_basename="${tool_specified##*/}"
11322       if test "x$tool_basename" = "x$tool_specified"; then
11323         # A command without a complete path is provided, search $PATH.
11324         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11325 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11326         # Extract the first word of "$tool_basename", so it can be a program name with args.
11327 set dummy $tool_basename; ac_word=$2
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329 $as_echo_n "checking for $ac_word... " >&6; }
11330 if ${ac_cv_path_XARGS+:} false; then :
11331   $as_echo_n "(cached) " >&6
11332 else
11333   case $XARGS in
11334   [\\/]* | ?:[\\/]*)
11335   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11336   ;;
11337   *)
11338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11339 for as_dir in $PATH
11340 do
11341   IFS=$as_save_IFS
11342   test -z "$as_dir" && as_dir=.
11343     for ac_exec_ext in '' $ac_executable_extensions; do
11344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11345     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11347     break 2
11348   fi
11349 done
11350   done
11351 IFS=$as_save_IFS
11352 
11353   ;;
11354 esac
11355 fi
11356 XARGS=$ac_cv_path_XARGS
11357 if test -n "$XARGS"; then
11358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11359 $as_echo "$XARGS" >&6; }
11360 else
11361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11362 $as_echo "no" >&6; }
11363 fi
11364 
11365 
11366         if test "x$XARGS" = x; then
11367           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11368         fi
11369       else
11370         # Otherwise we believe it is a complete path. Use it as it is.
11371         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11372 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11373         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11374 $as_echo_n "checking for XARGS... " >&6; }
11375         if test ! -x "$tool_specified"; then
11376           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11377 $as_echo "not found" >&6; }
11378           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11379         fi
11380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11381 $as_echo "$tool_specified" >&6; }
11382       fi
11383     fi
11384   fi
11385 
11386 
11387 
11388   if test "x$XARGS" = x; then
11389     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11390   fi
11391 
11392 
11393 
11394   # Then required tools that require some special treatment.
11395 
11396 
11397   # Publish this variable in the help.
11398 
11399 
11400   if test "x$AWK" = x; then
11401     # The variable is not set by user, try to locate tool using the code snippet
11402     for ac_prog in gawk mawk nawk awk
11403 do
11404   # Extract the first word of "$ac_prog", so it can be a program name with args.
11405 set dummy $ac_prog; ac_word=$2
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11407 $as_echo_n "checking for $ac_word... " >&6; }
11408 if ${ac_cv_prog_AWK+:} false; then :
11409   $as_echo_n "(cached) " >&6
11410 else
11411   if test -n "$AWK"; then
11412   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11413 else
11414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415 for as_dir in $PATH
11416 do
11417   IFS=$as_save_IFS
11418   test -z "$as_dir" && as_dir=.
11419     for ac_exec_ext in '' $ac_executable_extensions; do
11420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11421     ac_cv_prog_AWK="$ac_prog"
11422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11423     break 2
11424   fi
11425 done
11426   done
11427 IFS=$as_save_IFS
11428 
11429 fi
11430 fi
11431 AWK=$ac_cv_prog_AWK
11432 if test -n "$AWK"; then
11433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11434 $as_echo "$AWK" >&6; }
11435 else
11436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11437 $as_echo "no" >&6; }
11438 fi
11439 
11440 
11441   test -n "$AWK" && break
11442 done
11443 
11444   else
11445     # The variable is set, but is it from the command line or the environment?
11446 
11447     # Try to remove the string !AWK! from our list.
11448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11450       # If it failed, the variable was not from the command line. Ignore it,
11451       # but warn the user (except for BASH, which is always set by the calling BASH).
11452       if test "xAWK" != xBASH; then
11453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11454 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11455       fi
11456       # Try to locate tool using the code snippet
11457       for ac_prog in gawk mawk nawk awk
11458 do
11459   # Extract the first word of "$ac_prog", so it can be a program name with args.
11460 set dummy $ac_prog; ac_word=$2
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11462 $as_echo_n "checking for $ac_word... " >&6; }
11463 if ${ac_cv_prog_AWK+:} false; then :
11464   $as_echo_n "(cached) " >&6
11465 else
11466   if test -n "$AWK"; then
11467   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11468 else
11469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11470 for as_dir in $PATH
11471 do
11472   IFS=$as_save_IFS
11473   test -z "$as_dir" && as_dir=.
11474     for ac_exec_ext in '' $ac_executable_extensions; do
11475   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11476     ac_cv_prog_AWK="$ac_prog"
11477     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11478     break 2
11479   fi
11480 done
11481   done
11482 IFS=$as_save_IFS
11483 
11484 fi
11485 fi
11486 AWK=$ac_cv_prog_AWK
11487 if test -n "$AWK"; then
11488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11489 $as_echo "$AWK" >&6; }
11490 else
11491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11492 $as_echo "no" >&6; }
11493 fi
11494 
11495 
11496   test -n "$AWK" && break
11497 done
11498 
11499     else
11500       # If it succeeded, then it was overridden by the user. We will use it
11501       # for the tool.
11502 
11503       # First remove it from the list of overridden variables, so we can test
11504       # for unknown variables in the end.
11505       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11506 
11507       # Check if the provided tool contains a complete path.
11508       tool_specified="$AWK"
11509       tool_basename="${tool_specified##*/}"
11510       if test "x$tool_basename" = "x$tool_specified"; then
11511         # A command without a complete path is provided, search $PATH.
11512         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11513 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11514         # Extract the first word of "$tool_basename", so it can be a program name with args.
11515 set dummy $tool_basename; ac_word=$2
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517 $as_echo_n "checking for $ac_word... " >&6; }
11518 if ${ac_cv_path_AWK+:} false; then :
11519   $as_echo_n "(cached) " >&6
11520 else
11521   case $AWK in
11522   [\\/]* | ?:[\\/]*)
11523   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11524   ;;
11525   *)
11526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11528 do
11529   IFS=$as_save_IFS
11530   test -z "$as_dir" && as_dir=.
11531     for ac_exec_ext in '' $ac_executable_extensions; do
11532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11535     break 2
11536   fi
11537 done
11538   done
11539 IFS=$as_save_IFS
11540 
11541   ;;
11542 esac
11543 fi
11544 AWK=$ac_cv_path_AWK
11545 if test -n "$AWK"; then
11546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11547 $as_echo "$AWK" >&6; }
11548 else
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550 $as_echo "no" >&6; }
11551 fi
11552 
11553 
11554         if test "x$AWK" = x; then
11555           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11556         fi
11557       else
11558         # Otherwise we believe it is a complete path. Use it as it is.
11559         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11560 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11561         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11562 $as_echo_n "checking for AWK... " >&6; }
11563         if test ! -x "$tool_specified"; then
11564           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11565 $as_echo "not found" >&6; }
11566           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11567         fi
11568         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11569 $as_echo "$tool_specified" >&6; }
11570       fi
11571     fi
11572   fi
11573 
11574 
11575   if test "x$AWK" = x; then
11576     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11577   fi
11578 
11579 
11580 
11581 
11582   # Publish this variable in the help.
11583 
11584 
11585   if test "x$GREP" = x; then
11586     # The variable is not set by user, try to locate tool using the code snippet
11587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11588 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11589 if ${ac_cv_path_GREP+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   if test -z "$GREP"; then
11593   ac_path_GREP_found=false
11594   # Loop through the user's path and test for each of PROGNAME-LIST
11595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11597 do
11598   IFS=$as_save_IFS
11599   test -z "$as_dir" && as_dir=.
11600     for ac_prog in grep ggrep; do
11601     for ac_exec_ext in '' $ac_executable_extensions; do
11602       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11603       as_fn_executable_p "$ac_path_GREP" || continue
11604 # Check for GNU ac_path_GREP and select it if it is found.
11605   # Check for GNU $ac_path_GREP
11606 case `"$ac_path_GREP" --version 2>&1` in
11607 *GNU*)
11608   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11609 *)
11610   ac_count=0
11611   $as_echo_n 0123456789 >"conftest.in"
11612   while :
11613   do
11614     cat "conftest.in" "conftest.in" >"conftest.tmp"
11615     mv "conftest.tmp" "conftest.in"
11616     cp "conftest.in" "conftest.nl"
11617     $as_echo 'GREP' >> "conftest.nl"
11618     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11620     as_fn_arith $ac_count + 1 && ac_count=$as_val
11621     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11622       # Best one so far, save it but keep looking for a better one
11623       ac_cv_path_GREP="$ac_path_GREP"
11624       ac_path_GREP_max=$ac_count
11625     fi
11626     # 10*(2^10) chars as input seems more than enough
11627     test $ac_count -gt 10 && break
11628   done
11629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11630 esac
11631 
11632       $ac_path_GREP_found && break 3
11633     done
11634   done
11635   done
11636 IFS=$as_save_IFS
11637   if test -z "$ac_cv_path_GREP"; then
11638     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11639   fi
11640 else
11641   ac_cv_path_GREP=$GREP
11642 fi
11643 
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11646 $as_echo "$ac_cv_path_GREP" >&6; }
11647  GREP="$ac_cv_path_GREP"
11648 
11649 
11650   else
11651     # The variable is set, but is it from the command line or the environment?
11652 
11653     # Try to remove the string !GREP! from our list.
11654     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11655     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11656       # If it failed, the variable was not from the command line. Ignore it,
11657       # but warn the user (except for BASH, which is always set by the calling BASH).
11658       if test "xGREP" != xBASH; then
11659         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11660 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11661       fi
11662       # Try to locate tool using the code snippet
11663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11664 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11665 if ${ac_cv_path_GREP+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   if test -z "$GREP"; then
11669   ac_path_GREP_found=false
11670   # Loop through the user's path and test for each of PROGNAME-LIST
11671   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_prog in grep ggrep; do
11677     for ac_exec_ext in '' $ac_executable_extensions; do
11678       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11679       as_fn_executable_p "$ac_path_GREP" || continue
11680 # Check for GNU ac_path_GREP and select it if it is found.
11681   # Check for GNU $ac_path_GREP
11682 case `"$ac_path_GREP" --version 2>&1` in
11683 *GNU*)
11684   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11685 *)
11686   ac_count=0
11687   $as_echo_n 0123456789 >"conftest.in"
11688   while :
11689   do
11690     cat "conftest.in" "conftest.in" >"conftest.tmp"
11691     mv "conftest.tmp" "conftest.in"
11692     cp "conftest.in" "conftest.nl"
11693     $as_echo 'GREP' >> "conftest.nl"
11694     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11695     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11696     as_fn_arith $ac_count + 1 && ac_count=$as_val
11697     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11698       # Best one so far, save it but keep looking for a better one
11699       ac_cv_path_GREP="$ac_path_GREP"
11700       ac_path_GREP_max=$ac_count
11701     fi
11702     # 10*(2^10) chars as input seems more than enough
11703     test $ac_count -gt 10 && break
11704   done
11705   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11706 esac
11707 
11708       $ac_path_GREP_found && break 3
11709     done
11710   done
11711   done
11712 IFS=$as_save_IFS
11713   if test -z "$ac_cv_path_GREP"; then
11714     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11715   fi
11716 else
11717   ac_cv_path_GREP=$GREP
11718 fi
11719 
11720 fi
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11722 $as_echo "$ac_cv_path_GREP" >&6; }
11723  GREP="$ac_cv_path_GREP"
11724 
11725 
11726     else
11727       # If it succeeded, then it was overridden by the user. We will use it
11728       # for the tool.
11729 
11730       # First remove it from the list of overridden variables, so we can test
11731       # for unknown variables in the end.
11732       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11733 
11734       # Check if the provided tool contains a complete path.
11735       tool_specified="$GREP"
11736       tool_basename="${tool_specified##*/}"
11737       if test "x$tool_basename" = "x$tool_specified"; then
11738         # A command without a complete path is provided, search $PATH.
11739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11740 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11741         # Extract the first word of "$tool_basename", so it can be a program name with args.
11742 set dummy $tool_basename; ac_word=$2
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11744 $as_echo_n "checking for $ac_word... " >&6; }
11745 if ${ac_cv_path_GREP+:} false; then :
11746   $as_echo_n "(cached) " >&6
11747 else
11748   case $GREP in
11749   [\\/]* | ?:[\\/]*)
11750   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11751   ;;
11752   *)
11753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11754 for as_dir in $PATH
11755 do
11756   IFS=$as_save_IFS
11757   test -z "$as_dir" && as_dir=.
11758     for ac_exec_ext in '' $ac_executable_extensions; do
11759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11760     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11762     break 2
11763   fi
11764 done
11765   done
11766 IFS=$as_save_IFS
11767 
11768   ;;
11769 esac
11770 fi
11771 GREP=$ac_cv_path_GREP
11772 if test -n "$GREP"; then
11773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11774 $as_echo "$GREP" >&6; }
11775 else
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 fi
11779 
11780 
11781         if test "x$GREP" = x; then
11782           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11783         fi
11784       else
11785         # Otherwise we believe it is a complete path. Use it as it is.
11786         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11787 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11789 $as_echo_n "checking for GREP... " >&6; }
11790         if test ! -x "$tool_specified"; then
11791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11792 $as_echo "not found" >&6; }
11793           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11794         fi
11795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11796 $as_echo "$tool_specified" >&6; }
11797       fi
11798     fi
11799   fi
11800 
11801 
11802   if test "x$GREP" = x; then
11803     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11804   fi
11805 
11806 
11807 
11808 
11809   # Publish this variable in the help.
11810 
11811 
11812   if test "x$EGREP" = x; then
11813     # The variable is not set by user, try to locate tool using the code snippet
11814     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11815 $as_echo_n "checking for egrep... " >&6; }
11816 if ${ac_cv_path_EGREP+:} false; then :
11817   $as_echo_n "(cached) " >&6
11818 else
11819   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11820    then ac_cv_path_EGREP="$GREP -E"
11821    else
11822      if test -z "$EGREP"; then
11823   ac_path_EGREP_found=false
11824   # Loop through the user's path and test for each of PROGNAME-LIST
11825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11827 do
11828   IFS=$as_save_IFS
11829   test -z "$as_dir" && as_dir=.
11830     for ac_prog in egrep; do
11831     for ac_exec_ext in '' $ac_executable_extensions; do
11832       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11833       as_fn_executable_p "$ac_path_EGREP" || continue
11834 # Check for GNU ac_path_EGREP and select it if it is found.
11835   # Check for GNU $ac_path_EGREP
11836 case `"$ac_path_EGREP" --version 2>&1` in
11837 *GNU*)
11838   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11839 *)
11840   ac_count=0
11841   $as_echo_n 0123456789 >"conftest.in"
11842   while :
11843   do
11844     cat "conftest.in" "conftest.in" >"conftest.tmp"
11845     mv "conftest.tmp" "conftest.in"
11846     cp "conftest.in" "conftest.nl"
11847     $as_echo 'EGREP' >> "conftest.nl"
11848     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11849     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11850     as_fn_arith $ac_count + 1 && ac_count=$as_val
11851     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11852       # Best one so far, save it but keep looking for a better one
11853       ac_cv_path_EGREP="$ac_path_EGREP"
11854       ac_path_EGREP_max=$ac_count
11855     fi
11856     # 10*(2^10) chars as input seems more than enough
11857     test $ac_count -gt 10 && break
11858   done
11859   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11860 esac
11861 
11862       $ac_path_EGREP_found && break 3
11863     done
11864   done
11865   done
11866 IFS=$as_save_IFS
11867   if test -z "$ac_cv_path_EGREP"; then
11868     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11869   fi
11870 else
11871   ac_cv_path_EGREP=$EGREP
11872 fi
11873 
11874    fi
11875 fi
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11877 $as_echo "$ac_cv_path_EGREP" >&6; }
11878  EGREP="$ac_cv_path_EGREP"
11879 
11880 
11881   else
11882     # The variable is set, but is it from the command line or the environment?
11883 
11884     # Try to remove the string !EGREP! from our list.
11885     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11886     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11887       # If it failed, the variable was not from the command line. Ignore it,
11888       # but warn the user (except for BASH, which is always set by the calling BASH).
11889       if test "xEGREP" != xBASH; then
11890         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11891 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11892       fi
11893       # Try to locate tool using the code snippet
11894       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11895 $as_echo_n "checking for egrep... " >&6; }
11896 if ${ac_cv_path_EGREP+:} false; then :
11897   $as_echo_n "(cached) " >&6
11898 else
11899   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11900    then ac_cv_path_EGREP="$GREP -E"
11901    else
11902      if test -z "$EGREP"; then
11903   ac_path_EGREP_found=false
11904   # Loop through the user's path and test for each of PROGNAME-LIST
11905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11907 do
11908   IFS=$as_save_IFS
11909   test -z "$as_dir" && as_dir=.
11910     for ac_prog in egrep; do
11911     for ac_exec_ext in '' $ac_executable_extensions; do
11912       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11913       as_fn_executable_p "$ac_path_EGREP" || continue
11914 # Check for GNU ac_path_EGREP and select it if it is found.
11915   # Check for GNU $ac_path_EGREP
11916 case `"$ac_path_EGREP" --version 2>&1` in
11917 *GNU*)
11918   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11919 *)
11920   ac_count=0
11921   $as_echo_n 0123456789 >"conftest.in"
11922   while :
11923   do
11924     cat "conftest.in" "conftest.in" >"conftest.tmp"
11925     mv "conftest.tmp" "conftest.in"
11926     cp "conftest.in" "conftest.nl"
11927     $as_echo 'EGREP' >> "conftest.nl"
11928     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11929     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11930     as_fn_arith $ac_count + 1 && ac_count=$as_val
11931     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11932       # Best one so far, save it but keep looking for a better one
11933       ac_cv_path_EGREP="$ac_path_EGREP"
11934       ac_path_EGREP_max=$ac_count
11935     fi
11936     # 10*(2^10) chars as input seems more than enough
11937     test $ac_count -gt 10 && break
11938   done
11939   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11940 esac
11941 
11942       $ac_path_EGREP_found && break 3
11943     done
11944   done
11945   done
11946 IFS=$as_save_IFS
11947   if test -z "$ac_cv_path_EGREP"; then
11948     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11949   fi
11950 else
11951   ac_cv_path_EGREP=$EGREP
11952 fi
11953 
11954    fi
11955 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11957 $as_echo "$ac_cv_path_EGREP" >&6; }
11958  EGREP="$ac_cv_path_EGREP"
11959 
11960 
11961     else
11962       # If it succeeded, then it was overridden by the user. We will use it
11963       # for the tool.
11964 
11965       # First remove it from the list of overridden variables, so we can test
11966       # for unknown variables in the end.
11967       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11968 
11969       # Check if the provided tool contains a complete path.
11970       tool_specified="$EGREP"
11971       tool_basename="${tool_specified##*/}"
11972       if test "x$tool_basename" = "x$tool_specified"; then
11973         # A command without a complete path is provided, search $PATH.
11974         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11975 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11976         # Extract the first word of "$tool_basename", so it can be a program name with args.
11977 set dummy $tool_basename; ac_word=$2
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11979 $as_echo_n "checking for $ac_word... " >&6; }
11980 if ${ac_cv_path_EGREP+:} false; then :
11981   $as_echo_n "(cached) " >&6
11982 else
11983   case $EGREP in
11984   [\\/]* | ?:[\\/]*)
11985   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11986   ;;
11987   *)
11988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11989 for as_dir in $PATH
11990 do
11991   IFS=$as_save_IFS
11992   test -z "$as_dir" && as_dir=.
11993     for ac_exec_ext in '' $ac_executable_extensions; do
11994   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11995     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11996     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11997     break 2
11998   fi
11999 done
12000   done
12001 IFS=$as_save_IFS
12002 
12003   ;;
12004 esac
12005 fi
12006 EGREP=$ac_cv_path_EGREP
12007 if test -n "$EGREP"; then
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12009 $as_echo "$EGREP" >&6; }
12010 else
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12012 $as_echo "no" >&6; }
12013 fi
12014 
12015 
12016         if test "x$EGREP" = x; then
12017           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12018         fi
12019       else
12020         # Otherwise we believe it is a complete path. Use it as it is.
12021         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12022 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12023         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12024 $as_echo_n "checking for EGREP... " >&6; }
12025         if test ! -x "$tool_specified"; then
12026           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12027 $as_echo "not found" >&6; }
12028           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12029         fi
12030         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12031 $as_echo "$tool_specified" >&6; }
12032       fi
12033     fi
12034   fi
12035 
12036 
12037   if test "x$EGREP" = x; then
12038     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12039   fi
12040 
12041 
12042 
12043 
12044   # Publish this variable in the help.
12045 
12046 
12047   if test "x$FGREP" = x; then
12048     # The variable is not set by user, try to locate tool using the code snippet
12049     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12050 $as_echo_n "checking for fgrep... " >&6; }
12051 if ${ac_cv_path_FGREP+:} false; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12055    then ac_cv_path_FGREP="$GREP -F"
12056    else
12057      if test -z "$FGREP"; then
12058   ac_path_FGREP_found=false
12059   # Loop through the user's path and test for each of PROGNAME-LIST
12060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12062 do
12063   IFS=$as_save_IFS
12064   test -z "$as_dir" && as_dir=.
12065     for ac_prog in fgrep; do
12066     for ac_exec_ext in '' $ac_executable_extensions; do
12067       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12068       as_fn_executable_p "$ac_path_FGREP" || continue
12069 # Check for GNU ac_path_FGREP and select it if it is found.
12070   # Check for GNU $ac_path_FGREP
12071 case `"$ac_path_FGREP" --version 2>&1` in
12072 *GNU*)
12073   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12074 *)
12075   ac_count=0
12076   $as_echo_n 0123456789 >"conftest.in"
12077   while :
12078   do
12079     cat "conftest.in" "conftest.in" >"conftest.tmp"
12080     mv "conftest.tmp" "conftest.in"
12081     cp "conftest.in" "conftest.nl"
12082     $as_echo 'FGREP' >> "conftest.nl"
12083     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12084     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12085     as_fn_arith $ac_count + 1 && ac_count=$as_val
12086     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12087       # Best one so far, save it but keep looking for a better one
12088       ac_cv_path_FGREP="$ac_path_FGREP"
12089       ac_path_FGREP_max=$ac_count
12090     fi
12091     # 10*(2^10) chars as input seems more than enough
12092     test $ac_count -gt 10 && break
12093   done
12094   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12095 esac
12096 
12097       $ac_path_FGREP_found && break 3
12098     done
12099   done
12100   done
12101 IFS=$as_save_IFS
12102   if test -z "$ac_cv_path_FGREP"; then
12103     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12104   fi
12105 else
12106   ac_cv_path_FGREP=$FGREP
12107 fi
12108 
12109    fi
12110 fi
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12112 $as_echo "$ac_cv_path_FGREP" >&6; }
12113  FGREP="$ac_cv_path_FGREP"
12114 
12115 
12116   else
12117     # The variable is set, but is it from the command line or the environment?
12118 
12119     # Try to remove the string !FGREP! from our list.
12120     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12121     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12122       # If it failed, the variable was not from the command line. Ignore it,
12123       # but warn the user (except for BASH, which is always set by the calling BASH).
12124       if test "xFGREP" != xBASH; then
12125         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12126 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12127       fi
12128       # Try to locate tool using the code snippet
12129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12130 $as_echo_n "checking for fgrep... " >&6; }
12131 if ${ac_cv_path_FGREP+:} false; then :
12132   $as_echo_n "(cached) " >&6
12133 else
12134   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12135    then ac_cv_path_FGREP="$GREP -F"
12136    else
12137      if test -z "$FGREP"; then
12138   ac_path_FGREP_found=false
12139   # Loop through the user's path and test for each of PROGNAME-LIST
12140   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12142 do
12143   IFS=$as_save_IFS
12144   test -z "$as_dir" && as_dir=.
12145     for ac_prog in fgrep; do
12146     for ac_exec_ext in '' $ac_executable_extensions; do
12147       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12148       as_fn_executable_p "$ac_path_FGREP" || continue
12149 # Check for GNU ac_path_FGREP and select it if it is found.
12150   # Check for GNU $ac_path_FGREP
12151 case `"$ac_path_FGREP" --version 2>&1` in
12152 *GNU*)
12153   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12154 *)
12155   ac_count=0
12156   $as_echo_n 0123456789 >"conftest.in"
12157   while :
12158   do
12159     cat "conftest.in" "conftest.in" >"conftest.tmp"
12160     mv "conftest.tmp" "conftest.in"
12161     cp "conftest.in" "conftest.nl"
12162     $as_echo 'FGREP' >> "conftest.nl"
12163     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12164     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12165     as_fn_arith $ac_count + 1 && ac_count=$as_val
12166     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12167       # Best one so far, save it but keep looking for a better one
12168       ac_cv_path_FGREP="$ac_path_FGREP"
12169       ac_path_FGREP_max=$ac_count
12170     fi
12171     # 10*(2^10) chars as input seems more than enough
12172     test $ac_count -gt 10 && break
12173   done
12174   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12175 esac
12176 
12177       $ac_path_FGREP_found && break 3
12178     done
12179   done
12180   done
12181 IFS=$as_save_IFS
12182   if test -z "$ac_cv_path_FGREP"; then
12183     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12184   fi
12185 else
12186   ac_cv_path_FGREP=$FGREP
12187 fi
12188 
12189    fi
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12192 $as_echo "$ac_cv_path_FGREP" >&6; }
12193  FGREP="$ac_cv_path_FGREP"
12194 
12195 
12196     else
12197       # If it succeeded, then it was overridden by the user. We will use it
12198       # for the tool.
12199 
12200       # First remove it from the list of overridden variables, so we can test
12201       # for unknown variables in the end.
12202       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12203 
12204       # Check if the provided tool contains a complete path.
12205       tool_specified="$FGREP"
12206       tool_basename="${tool_specified##*/}"
12207       if test "x$tool_basename" = "x$tool_specified"; then
12208         # A command without a complete path is provided, search $PATH.
12209         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12210 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12211         # Extract the first word of "$tool_basename", so it can be a program name with args.
12212 set dummy $tool_basename; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12214 $as_echo_n "checking for $ac_word... " >&6; }
12215 if ${ac_cv_path_FGREP+:} false; then :
12216   $as_echo_n "(cached) " >&6
12217 else
12218   case $FGREP in
12219   [\\/]* | ?:[\\/]*)
12220   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12221   ;;
12222   *)
12223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12224 for as_dir in $PATH
12225 do
12226   IFS=$as_save_IFS
12227   test -z "$as_dir" && as_dir=.
12228     for ac_exec_ext in '' $ac_executable_extensions; do
12229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12230     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12232     break 2
12233   fi
12234 done
12235   done
12236 IFS=$as_save_IFS
12237 
12238   ;;
12239 esac
12240 fi
12241 FGREP=$ac_cv_path_FGREP
12242 if test -n "$FGREP"; then
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12244 $as_echo "$FGREP" >&6; }
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249 
12250 
12251         if test "x$FGREP" = x; then
12252           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12253         fi
12254       else
12255         # Otherwise we believe it is a complete path. Use it as it is.
12256         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12257 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12258         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12259 $as_echo_n "checking for FGREP... " >&6; }
12260         if test ! -x "$tool_specified"; then
12261           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12262 $as_echo "not found" >&6; }
12263           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12264         fi
12265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12266 $as_echo "$tool_specified" >&6; }
12267       fi
12268     fi
12269   fi
12270 
12271 
12272   if test "x$FGREP" = x; then
12273     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12274   fi
12275 
12276 
12277 
12278 
12279   # Publish this variable in the help.
12280 
12281 
12282   if test "x$SED" = x; then
12283     # The variable is not set by user, try to locate tool using the code snippet
12284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12285 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12286 if ${ac_cv_path_SED+:} false; then :
12287   $as_echo_n "(cached) " >&6
12288 else
12289             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12290      for ac_i in 1 2 3 4 5 6 7; do
12291        ac_script="$ac_script$as_nl$ac_script"
12292      done
12293      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12294      { ac_script=; unset ac_script;}
12295      if test -z "$SED"; then
12296   ac_path_SED_found=false
12297   # Loop through the user's path and test for each of PROGNAME-LIST
12298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12299 for as_dir in $PATH
12300 do
12301   IFS=$as_save_IFS
12302   test -z "$as_dir" && as_dir=.
12303     for ac_prog in sed gsed; do
12304     for ac_exec_ext in '' $ac_executable_extensions; do
12305       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12306       as_fn_executable_p "$ac_path_SED" || continue
12307 # Check for GNU ac_path_SED and select it if it is found.
12308   # Check for GNU $ac_path_SED
12309 case `"$ac_path_SED" --version 2>&1` in
12310 *GNU*)
12311   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12312 *)
12313   ac_count=0
12314   $as_echo_n 0123456789 >"conftest.in"
12315   while :
12316   do
12317     cat "conftest.in" "conftest.in" >"conftest.tmp"
12318     mv "conftest.tmp" "conftest.in"
12319     cp "conftest.in" "conftest.nl"
12320     $as_echo '' >> "conftest.nl"
12321     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12322     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12323     as_fn_arith $ac_count + 1 && ac_count=$as_val
12324     if test $ac_count -gt ${ac_path_SED_max-0}; then
12325       # Best one so far, save it but keep looking for a better one
12326       ac_cv_path_SED="$ac_path_SED"
12327       ac_path_SED_max=$ac_count
12328     fi
12329     # 10*(2^10) chars as input seems more than enough
12330     test $ac_count -gt 10 && break
12331   done
12332   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12333 esac
12334 
12335       $ac_path_SED_found && break 3
12336     done
12337   done
12338   done
12339 IFS=$as_save_IFS
12340   if test -z "$ac_cv_path_SED"; then
12341     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12342   fi
12343 else
12344   ac_cv_path_SED=$SED
12345 fi
12346 
12347 fi
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12349 $as_echo "$ac_cv_path_SED" >&6; }
12350  SED="$ac_cv_path_SED"
12351   rm -f conftest.sed
12352 
12353   else
12354     # The variable is set, but is it from the command line or the environment?
12355 
12356     # Try to remove the string !SED! from our list.
12357     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12358     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12359       # If it failed, the variable was not from the command line. Ignore it,
12360       # but warn the user (except for BASH, which is always set by the calling BASH).
12361       if test "xSED" != xBASH; then
12362         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12363 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12364       fi
12365       # Try to locate tool using the code snippet
12366       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12367 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12368 if ${ac_cv_path_SED+:} false; then :
12369   $as_echo_n "(cached) " >&6
12370 else
12371             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12372      for ac_i in 1 2 3 4 5 6 7; do
12373        ac_script="$ac_script$as_nl$ac_script"
12374      done
12375      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12376      { ac_script=; unset ac_script;}
12377      if test -z "$SED"; then
12378   ac_path_SED_found=false
12379   # Loop through the user's path and test for each of PROGNAME-LIST
12380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12382 do
12383   IFS=$as_save_IFS
12384   test -z "$as_dir" && as_dir=.
12385     for ac_prog in sed gsed; do
12386     for ac_exec_ext in '' $ac_executable_extensions; do
12387       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12388       as_fn_executable_p "$ac_path_SED" || continue
12389 # Check for GNU ac_path_SED and select it if it is found.
12390   # Check for GNU $ac_path_SED
12391 case `"$ac_path_SED" --version 2>&1` in
12392 *GNU*)
12393   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12394 *)
12395   ac_count=0
12396   $as_echo_n 0123456789 >"conftest.in"
12397   while :
12398   do
12399     cat "conftest.in" "conftest.in" >"conftest.tmp"
12400     mv "conftest.tmp" "conftest.in"
12401     cp "conftest.in" "conftest.nl"
12402     $as_echo '' >> "conftest.nl"
12403     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12404     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12405     as_fn_arith $ac_count + 1 && ac_count=$as_val
12406     if test $ac_count -gt ${ac_path_SED_max-0}; then
12407       # Best one so far, save it but keep looking for a better one
12408       ac_cv_path_SED="$ac_path_SED"
12409       ac_path_SED_max=$ac_count
12410     fi
12411     # 10*(2^10) chars as input seems more than enough
12412     test $ac_count -gt 10 && break
12413   done
12414   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12415 esac
12416 
12417       $ac_path_SED_found && break 3
12418     done
12419   done
12420   done
12421 IFS=$as_save_IFS
12422   if test -z "$ac_cv_path_SED"; then
12423     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12424   fi
12425 else
12426   ac_cv_path_SED=$SED
12427 fi
12428 
12429 fi
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12431 $as_echo "$ac_cv_path_SED" >&6; }
12432  SED="$ac_cv_path_SED"
12433   rm -f conftest.sed
12434 
12435     else
12436       # If it succeeded, then it was overridden by the user. We will use it
12437       # for the tool.
12438 
12439       # First remove it from the list of overridden variables, so we can test
12440       # for unknown variables in the end.
12441       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12442 
12443       # Check if the provided tool contains a complete path.
12444       tool_specified="$SED"
12445       tool_basename="${tool_specified##*/}"
12446       if test "x$tool_basename" = "x$tool_specified"; then
12447         # A command without a complete path is provided, search $PATH.
12448         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12449 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12450         # Extract the first word of "$tool_basename", so it can be a program name with args.
12451 set dummy $tool_basename; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if ${ac_cv_path_SED+:} false; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   case $SED in
12458   [\\/]* | ?:[\\/]*)
12459   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12460   ;;
12461   *)
12462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12463 for as_dir in $PATH
12464 do
12465   IFS=$as_save_IFS
12466   test -z "$as_dir" && as_dir=.
12467     for ac_exec_ext in '' $ac_executable_extensions; do
12468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12469     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12471     break 2
12472   fi
12473 done
12474   done
12475 IFS=$as_save_IFS
12476 
12477   ;;
12478 esac
12479 fi
12480 SED=$ac_cv_path_SED
12481 if test -n "$SED"; then
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12483 $as_echo "$SED" >&6; }
12484 else
12485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12486 $as_echo "no" >&6; }
12487 fi
12488 
12489 
12490         if test "x$SED" = x; then
12491           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12492         fi
12493       else
12494         # Otherwise we believe it is a complete path. Use it as it is.
12495         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12496 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12497         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12498 $as_echo_n "checking for SED... " >&6; }
12499         if test ! -x "$tool_specified"; then
12500           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12501 $as_echo "not found" >&6; }
12502           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12503         fi
12504         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12505 $as_echo "$tool_specified" >&6; }
12506       fi
12507     fi
12508   fi
12509 
12510 
12511   if test "x$SED" = x; then
12512     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12513   fi
12514 
12515 
12516 
12517   # Always force rm.
12518   RM="$RM -f"
12519 
12520   # pwd behaves differently on various platforms and some don't support the -L flag.
12521   # Always use the bash builtin pwd to get uniform behavior.
12522   THEPWDCMD=pwd
12523 
12524   # These are not required on all platforms
12525 
12526 
12527   # Publish this variable in the help.
12528 
12529 
12530   if test "x$CYGPATH" = x; then
12531     # The variable is not set by user, try to locate tool using the code snippet
12532     for ac_prog in cygpath
12533 do
12534   # Extract the first word of "$ac_prog", so it can be a program name with args.
12535 set dummy $ac_prog; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537 $as_echo_n "checking for $ac_word... " >&6; }
12538 if ${ac_cv_path_CYGPATH+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   case $CYGPATH in
12542   [\\/]* | ?:[\\/]*)
12543   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12544   ;;
12545   *)
12546   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12547 for as_dir in $PATH
12548 do
12549   IFS=$as_save_IFS
12550   test -z "$as_dir" && as_dir=.
12551     for ac_exec_ext in '' $ac_executable_extensions; do
12552   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12553     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12554     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12555     break 2
12556   fi
12557 done
12558   done
12559 IFS=$as_save_IFS
12560 
12561   ;;
12562 esac
12563 fi
12564 CYGPATH=$ac_cv_path_CYGPATH
12565 if test -n "$CYGPATH"; then
12566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12567 $as_echo "$CYGPATH" >&6; }
12568 else
12569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12570 $as_echo "no" >&6; }
12571 fi
12572 
12573 
12574   test -n "$CYGPATH" && break
12575 done
12576 
12577   else
12578     # The variable is set, but is it from the command line or the environment?
12579 
12580     # Try to remove the string !CYGPATH! from our list.
12581     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12582     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12583       # If it failed, the variable was not from the command line. Ignore it,
12584       # but warn the user (except for BASH, which is always set by the calling BASH).
12585       if test "xCYGPATH" != xBASH; then
12586         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12587 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12588       fi
12589       # Try to locate tool using the code snippet
12590       for ac_prog in cygpath
12591 do
12592   # Extract the first word of "$ac_prog", so it can be a program name with args.
12593 set dummy $ac_prog; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_path_CYGPATH+:} false; then :
12597   $as_echo_n "(cached) " >&6
12598 else
12599   case $CYGPATH in
12600   [\\/]* | ?:[\\/]*)
12601   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12602   ;;
12603   *)
12604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12606 do
12607   IFS=$as_save_IFS
12608   test -z "$as_dir" && as_dir=.
12609     for ac_exec_ext in '' $ac_executable_extensions; do
12610   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12612     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12613     break 2
12614   fi
12615 done
12616   done
12617 IFS=$as_save_IFS
12618 
12619   ;;
12620 esac
12621 fi
12622 CYGPATH=$ac_cv_path_CYGPATH
12623 if test -n "$CYGPATH"; then
12624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12625 $as_echo "$CYGPATH" >&6; }
12626 else
12627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12628 $as_echo "no" >&6; }
12629 fi
12630 
12631 
12632   test -n "$CYGPATH" && break
12633 done
12634 
12635     else
12636       # If it succeeded, then it was overridden by the user. We will use it
12637       # for the tool.
12638 
12639       # First remove it from the list of overridden variables, so we can test
12640       # for unknown variables in the end.
12641       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12642 
12643       # Check if the provided tool contains a complete path.
12644       tool_specified="$CYGPATH"
12645       tool_basename="${tool_specified##*/}"
12646       if test "x$tool_basename" = "x$tool_specified"; then
12647         # A command without a complete path is provided, search $PATH.
12648         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12649 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12650         # Extract the first word of "$tool_basename", so it can be a program name with args.
12651 set dummy $tool_basename; ac_word=$2
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12653 $as_echo_n "checking for $ac_word... " >&6; }
12654 if ${ac_cv_path_CYGPATH+:} false; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   case $CYGPATH in
12658   [\\/]* | ?:[\\/]*)
12659   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12660   ;;
12661   *)
12662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12664 do
12665   IFS=$as_save_IFS
12666   test -z "$as_dir" && as_dir=.
12667     for ac_exec_ext in '' $ac_executable_extensions; do
12668   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671     break 2
12672   fi
12673 done
12674   done
12675 IFS=$as_save_IFS
12676 
12677   ;;
12678 esac
12679 fi
12680 CYGPATH=$ac_cv_path_CYGPATH
12681 if test -n "$CYGPATH"; then
12682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12683 $as_echo "$CYGPATH" >&6; }
12684 else
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687 fi
12688 
12689 
12690         if test "x$CYGPATH" = x; then
12691           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12692         fi
12693       else
12694         # Otherwise we believe it is a complete path. Use it as it is.
12695         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12696 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12698 $as_echo_n "checking for CYGPATH... " >&6; }
12699         if test ! -x "$tool_specified"; then
12700           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12701 $as_echo "not found" >&6; }
12702           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12703         fi
12704         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12705 $as_echo "$tool_specified" >&6; }
12706       fi
12707     fi
12708   fi
12709 
12710 
12711 
12712 
12713   # Publish this variable in the help.
12714 
12715 
12716   if test "x$READLINK" = x; then
12717     # The variable is not set by user, try to locate tool using the code snippet
12718     for ac_prog in greadlink readlink
12719 do
12720   # Extract the first word of "$ac_prog", so it can be a program name with args.
12721 set dummy $ac_prog; ac_word=$2
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12723 $as_echo_n "checking for $ac_word... " >&6; }
12724 if ${ac_cv_path_READLINK+:} false; then :
12725   $as_echo_n "(cached) " >&6
12726 else
12727   case $READLINK in
12728   [\\/]* | ?:[\\/]*)
12729   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12730   ;;
12731   *)
12732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12733 for as_dir in $PATH
12734 do
12735   IFS=$as_save_IFS
12736   test -z "$as_dir" && as_dir=.
12737     for ac_exec_ext in '' $ac_executable_extensions; do
12738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12739     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12741     break 2
12742   fi
12743 done
12744   done
12745 IFS=$as_save_IFS
12746 
12747   ;;
12748 esac
12749 fi
12750 READLINK=$ac_cv_path_READLINK
12751 if test -n "$READLINK"; then
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12753 $as_echo "$READLINK" >&6; }
12754 else
12755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12757 fi
12758 
12759 
12760   test -n "$READLINK" && break
12761 done
12762 
12763   else
12764     # The variable is set, but is it from the command line or the environment?
12765 
12766     # Try to remove the string !READLINK! from our list.
12767     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12768     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12769       # If it failed, the variable was not from the command line. Ignore it,
12770       # but warn the user (except for BASH, which is always set by the calling BASH).
12771       if test "xREADLINK" != xBASH; then
12772         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12773 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12774       fi
12775       # Try to locate tool using the code snippet
12776       for ac_prog in greadlink readlink
12777 do
12778   # Extract the first word of "$ac_prog", so it can be a program name with args.
12779 set dummy $ac_prog; ac_word=$2
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12781 $as_echo_n "checking for $ac_word... " >&6; }
12782 if ${ac_cv_path_READLINK+:} false; then :
12783   $as_echo_n "(cached) " >&6
12784 else
12785   case $READLINK in
12786   [\\/]* | ?:[\\/]*)
12787   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12788   ;;
12789   *)
12790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12792 do
12793   IFS=$as_save_IFS
12794   test -z "$as_dir" && as_dir=.
12795     for ac_exec_ext in '' $ac_executable_extensions; do
12796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12799     break 2
12800   fi
12801 done
12802   done
12803 IFS=$as_save_IFS
12804 
12805   ;;
12806 esac
12807 fi
12808 READLINK=$ac_cv_path_READLINK
12809 if test -n "$READLINK"; then
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12811 $as_echo "$READLINK" >&6; }
12812 else
12813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12815 fi
12816 
12817 
12818   test -n "$READLINK" && break
12819 done
12820 
12821     else
12822       # If it succeeded, then it was overridden by the user. We will use it
12823       # for the tool.
12824 
12825       # First remove it from the list of overridden variables, so we can test
12826       # for unknown variables in the end.
12827       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12828 
12829       # Check if the provided tool contains a complete path.
12830       tool_specified="$READLINK"
12831       tool_basename="${tool_specified##*/}"
12832       if test "x$tool_basename" = "x$tool_specified"; then
12833         # A command without a complete path is provided, search $PATH.
12834         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12835 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12836         # Extract the first word of "$tool_basename", so it can be a program name with args.
12837 set dummy $tool_basename; ac_word=$2
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12839 $as_echo_n "checking for $ac_word... " >&6; }
12840 if ${ac_cv_path_READLINK+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843   case $READLINK in
12844   [\\/]* | ?:[\\/]*)
12845   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12846   ;;
12847   *)
12848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12849 for as_dir in $PATH
12850 do
12851   IFS=$as_save_IFS
12852   test -z "$as_dir" && as_dir=.
12853     for ac_exec_ext in '' $ac_executable_extensions; do
12854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12855     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12857     break 2
12858   fi
12859 done
12860   done
12861 IFS=$as_save_IFS
12862 
12863   ;;
12864 esac
12865 fi
12866 READLINK=$ac_cv_path_READLINK
12867 if test -n "$READLINK"; then
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12869 $as_echo "$READLINK" >&6; }
12870 else
12871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12872 $as_echo "no" >&6; }
12873 fi
12874 
12875 
12876         if test "x$READLINK" = x; then
12877           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12878         fi
12879       else
12880         # Otherwise we believe it is a complete path. Use it as it is.
12881         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12882 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12883         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12884 $as_echo_n "checking for READLINK... " >&6; }
12885         if test ! -x "$tool_specified"; then
12886           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12887 $as_echo "not found" >&6; }
12888           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12889         fi
12890         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12891 $as_echo "$tool_specified" >&6; }
12892       fi
12893     fi
12894   fi
12895 
12896 
12897 
12898 
12899   # Publish this variable in the help.
12900 
12901 
12902   if test "x$DF" = x; then
12903     # The variable is not set by user, try to locate tool using the code snippet
12904     for ac_prog in df
12905 do
12906   # Extract the first word of "$ac_prog", so it can be a program name with args.
12907 set dummy $ac_prog; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12909 $as_echo_n "checking for $ac_word... " >&6; }
12910 if ${ac_cv_path_DF+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   case $DF in
12914   [\\/]* | ?:[\\/]*)
12915   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12916   ;;
12917   *)
12918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12919 for as_dir in $PATH
12920 do
12921   IFS=$as_save_IFS
12922   test -z "$as_dir" && as_dir=.
12923     for ac_exec_ext in '' $ac_executable_extensions; do
12924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12925     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12927     break 2
12928   fi
12929 done
12930   done
12931 IFS=$as_save_IFS
12932 
12933   ;;
12934 esac
12935 fi
12936 DF=$ac_cv_path_DF
12937 if test -n "$DF"; then
12938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12939 $as_echo "$DF" >&6; }
12940 else
12941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942 $as_echo "no" >&6; }
12943 fi
12944 
12945 
12946   test -n "$DF" && break
12947 done
12948 
12949   else
12950     # The variable is set, but is it from the command line or the environment?
12951 
12952     # Try to remove the string !DF! from our list.
12953     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12954     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12955       # If it failed, the variable was not from the command line. Ignore it,
12956       # but warn the user (except for BASH, which is always set by the calling BASH).
12957       if test "xDF" != xBASH; then
12958         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12959 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12960       fi
12961       # Try to locate tool using the code snippet
12962       for ac_prog in df
12963 do
12964   # Extract the first word of "$ac_prog", so it can be a program name with args.
12965 set dummy $ac_prog; ac_word=$2
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967 $as_echo_n "checking for $ac_word... " >&6; }
12968 if ${ac_cv_path_DF+:} false; then :
12969   $as_echo_n "(cached) " >&6
12970 else
12971   case $DF in
12972   [\\/]* | ?:[\\/]*)
12973   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12974   ;;
12975   *)
12976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977 for as_dir in $PATH
12978 do
12979   IFS=$as_save_IFS
12980   test -z "$as_dir" && as_dir=.
12981     for ac_exec_ext in '' $ac_executable_extensions; do
12982   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12984     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985     break 2
12986   fi
12987 done
12988   done
12989 IFS=$as_save_IFS
12990 
12991   ;;
12992 esac
12993 fi
12994 DF=$ac_cv_path_DF
12995 if test -n "$DF"; then
12996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12997 $as_echo "$DF" >&6; }
12998 else
12999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000 $as_echo "no" >&6; }
13001 fi
13002 
13003 
13004   test -n "$DF" && break
13005 done
13006 
13007     else
13008       # If it succeeded, then it was overridden by the user. We will use it
13009       # for the tool.
13010 
13011       # First remove it from the list of overridden variables, so we can test
13012       # for unknown variables in the end.
13013       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13014 
13015       # Check if the provided tool contains a complete path.
13016       tool_specified="$DF"
13017       tool_basename="${tool_specified##*/}"
13018       if test "x$tool_basename" = "x$tool_specified"; then
13019         # A command without a complete path is provided, search $PATH.
13020         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13021 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13022         # Extract the first word of "$tool_basename", so it can be a program name with args.
13023 set dummy $tool_basename; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025 $as_echo_n "checking for $ac_word... " >&6; }
13026 if ${ac_cv_path_DF+:} false; then :
13027   $as_echo_n "(cached) " >&6
13028 else
13029   case $DF in
13030   [\\/]* | ?:[\\/]*)
13031   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13032   ;;
13033   *)
13034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035 for as_dir in $PATH
13036 do
13037   IFS=$as_save_IFS
13038   test -z "$as_dir" && as_dir=.
13039     for ac_exec_ext in '' $ac_executable_extensions; do
13040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13041     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043     break 2
13044   fi
13045 done
13046   done
13047 IFS=$as_save_IFS
13048 
13049   ;;
13050 esac
13051 fi
13052 DF=$ac_cv_path_DF
13053 if test -n "$DF"; then
13054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13055 $as_echo "$DF" >&6; }
13056 else
13057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13058 $as_echo "no" >&6; }
13059 fi
13060 
13061 
13062         if test "x$DF" = x; then
13063           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13064         fi
13065       else
13066         # Otherwise we believe it is a complete path. Use it as it is.
13067         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13068 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13069         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13070 $as_echo_n "checking for DF... " >&6; }
13071         if test ! -x "$tool_specified"; then
13072           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13073 $as_echo "not found" >&6; }
13074           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13075         fi
13076         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13077 $as_echo "$tool_specified" >&6; }
13078       fi
13079     fi
13080   fi
13081 
13082 
13083 
13084 
13085   # Publish this variable in the help.
13086 
13087 
13088   if test "x$SETFILE" = x; then
13089     # The variable is not set by user, try to locate tool using the code snippet
13090     for ac_prog in SetFile
13091 do
13092   # Extract the first word of "$ac_prog", so it can be a program name with args.
13093 set dummy $ac_prog; ac_word=$2
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13095 $as_echo_n "checking for $ac_word... " >&6; }
13096 if ${ac_cv_path_SETFILE+:} false; then :
13097   $as_echo_n "(cached) " >&6
13098 else
13099   case $SETFILE in
13100   [\\/]* | ?:[\\/]*)
13101   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13102   ;;
13103   *)
13104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13105 for as_dir in $PATH
13106 do
13107   IFS=$as_save_IFS
13108   test -z "$as_dir" && as_dir=.
13109     for ac_exec_ext in '' $ac_executable_extensions; do
13110   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13111     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13112     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13113     break 2
13114   fi
13115 done
13116   done
13117 IFS=$as_save_IFS
13118 
13119   ;;
13120 esac
13121 fi
13122 SETFILE=$ac_cv_path_SETFILE
13123 if test -n "$SETFILE"; then
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13125 $as_echo "$SETFILE" >&6; }
13126 else
13127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13128 $as_echo "no" >&6; }
13129 fi
13130 
13131 
13132   test -n "$SETFILE" && break
13133 done
13134 
13135   else
13136     # The variable is set, but is it from the command line or the environment?
13137 
13138     # Try to remove the string !SETFILE! from our list.
13139     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13140     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13141       # If it failed, the variable was not from the command line. Ignore it,
13142       # but warn the user (except for BASH, which is always set by the calling BASH).
13143       if test "xSETFILE" != xBASH; then
13144         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13145 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13146       fi
13147       # Try to locate tool using the code snippet
13148       for ac_prog in SetFile
13149 do
13150   # Extract the first word of "$ac_prog", so it can be a program name with args.
13151 set dummy $ac_prog; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if ${ac_cv_path_SETFILE+:} false; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   case $SETFILE in
13158   [\\/]* | ?:[\\/]*)
13159   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13160   ;;
13161   *)
13162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163 for as_dir in $PATH
13164 do
13165   IFS=$as_save_IFS
13166   test -z "$as_dir" && as_dir=.
13167     for ac_exec_ext in '' $ac_executable_extensions; do
13168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13169     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171     break 2
13172   fi
13173 done
13174   done
13175 IFS=$as_save_IFS
13176 
13177   ;;
13178 esac
13179 fi
13180 SETFILE=$ac_cv_path_SETFILE
13181 if test -n "$SETFILE"; then
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13183 $as_echo "$SETFILE" >&6; }
13184 else
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13186 $as_echo "no" >&6; }
13187 fi
13188 
13189 
13190   test -n "$SETFILE" && break
13191 done
13192 
13193     else
13194       # If it succeeded, then it was overridden by the user. We will use it
13195       # for the tool.
13196 
13197       # First remove it from the list of overridden variables, so we can test
13198       # for unknown variables in the end.
13199       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13200 
13201       # Check if the provided tool contains a complete path.
13202       tool_specified="$SETFILE"
13203       tool_basename="${tool_specified##*/}"
13204       if test "x$tool_basename" = "x$tool_specified"; then
13205         # A command without a complete path is provided, search $PATH.
13206         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13207 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13208         # Extract the first word of "$tool_basename", so it can be a program name with args.
13209 set dummy $tool_basename; ac_word=$2
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13211 $as_echo_n "checking for $ac_word... " >&6; }
13212 if ${ac_cv_path_SETFILE+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215   case $SETFILE in
13216   [\\/]* | ?:[\\/]*)
13217   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13218   ;;
13219   *)
13220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13221 for as_dir in $PATH
13222 do
13223   IFS=$as_save_IFS
13224   test -z "$as_dir" && as_dir=.
13225     for ac_exec_ext in '' $ac_executable_extensions; do
13226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13227     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13229     break 2
13230   fi
13231 done
13232   done
13233 IFS=$as_save_IFS
13234 
13235   ;;
13236 esac
13237 fi
13238 SETFILE=$ac_cv_path_SETFILE
13239 if test -n "$SETFILE"; then
13240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13241 $as_echo "$SETFILE" >&6; }
13242 else
13243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13244 $as_echo "no" >&6; }
13245 fi
13246 
13247 
13248         if test "x$SETFILE" = x; then
13249           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13250         fi
13251       else
13252         # Otherwise we believe it is a complete path. Use it as it is.
13253         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13254 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13255         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13256 $as_echo_n "checking for SETFILE... " >&6; }
13257         if test ! -x "$tool_specified"; then
13258           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13259 $as_echo "not found" >&6; }
13260           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13261         fi
13262         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13263 $as_echo "$tool_specified" >&6; }
13264       fi
13265     fi
13266   fi
13267 
13268 
13269 
13270 
13271   # Publish this variable in the help.
13272 
13273 
13274   if test "x$CPIO" = x; then
13275     # The variable is not set by user, try to locate tool using the code snippet
13276     for ac_prog in cpio bsdcpio
13277 do
13278   # Extract the first word of "$ac_prog", so it can be a program name with args.
13279 set dummy $ac_prog; ac_word=$2
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13281 $as_echo_n "checking for $ac_word... " >&6; }
13282 if ${ac_cv_path_CPIO+:} false; then :
13283   $as_echo_n "(cached) " >&6
13284 else
13285   case $CPIO in
13286   [\\/]* | ?:[\\/]*)
13287   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13288   ;;
13289   *)
13290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13291 for as_dir in $PATH
13292 do
13293   IFS=$as_save_IFS
13294   test -z "$as_dir" && as_dir=.
13295     for ac_exec_ext in '' $ac_executable_extensions; do
13296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13297     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13299     break 2
13300   fi
13301 done
13302   done
13303 IFS=$as_save_IFS
13304 
13305   ;;
13306 esac
13307 fi
13308 CPIO=$ac_cv_path_CPIO
13309 if test -n "$CPIO"; then
13310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13311 $as_echo "$CPIO" >&6; }
13312 else
13313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13314 $as_echo "no" >&6; }
13315 fi
13316 
13317 
13318   test -n "$CPIO" && break
13319 done
13320 
13321   else
13322     # The variable is set, but is it from the command line or the environment?
13323 
13324     # Try to remove the string !CPIO! from our list.
13325     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13326     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13327       # If it failed, the variable was not from the command line. Ignore it,
13328       # but warn the user (except for BASH, which is always set by the calling BASH).
13329       if test "xCPIO" != xBASH; then
13330         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13331 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13332       fi
13333       # Try to locate tool using the code snippet
13334       for ac_prog in cpio bsdcpio
13335 do
13336   # Extract the first word of "$ac_prog", so it can be a program name with args.
13337 set dummy $ac_prog; ac_word=$2
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339 $as_echo_n "checking for $ac_word... " >&6; }
13340 if ${ac_cv_path_CPIO+:} false; then :
13341   $as_echo_n "(cached) " >&6
13342 else
13343   case $CPIO in
13344   [\\/]* | ?:[\\/]*)
13345   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13346   ;;
13347   *)
13348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13349 for as_dir in $PATH
13350 do
13351   IFS=$as_save_IFS
13352   test -z "$as_dir" && as_dir=.
13353     for ac_exec_ext in '' $ac_executable_extensions; do
13354   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13355     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13357     break 2
13358   fi
13359 done
13360   done
13361 IFS=$as_save_IFS
13362 
13363   ;;
13364 esac
13365 fi
13366 CPIO=$ac_cv_path_CPIO
13367 if test -n "$CPIO"; then
13368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13369 $as_echo "$CPIO" >&6; }
13370 else
13371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 $as_echo "no" >&6; }
13373 fi
13374 
13375 
13376   test -n "$CPIO" && break
13377 done
13378 
13379     else
13380       # If it succeeded, then it was overridden by the user. We will use it
13381       # for the tool.
13382 
13383       # First remove it from the list of overridden variables, so we can test
13384       # for unknown variables in the end.
13385       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13386 
13387       # Check if the provided tool contains a complete path.
13388       tool_specified="$CPIO"
13389       tool_basename="${tool_specified##*/}"
13390       if test "x$tool_basename" = "x$tool_specified"; then
13391         # A command without a complete path is provided, search $PATH.
13392         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13393 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13394         # Extract the first word of "$tool_basename", so it can be a program name with args.
13395 set dummy $tool_basename; ac_word=$2
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13397 $as_echo_n "checking for $ac_word... " >&6; }
13398 if ${ac_cv_path_CPIO+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   case $CPIO in
13402   [\\/]* | ?:[\\/]*)
13403   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13404   ;;
13405   *)
13406   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13407 for as_dir in $PATH
13408 do
13409   IFS=$as_save_IFS
13410   test -z "$as_dir" && as_dir=.
13411     for ac_exec_ext in '' $ac_executable_extensions; do
13412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13413     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13415     break 2
13416   fi
13417 done
13418   done
13419 IFS=$as_save_IFS
13420 
13421   ;;
13422 esac
13423 fi
13424 CPIO=$ac_cv_path_CPIO
13425 if test -n "$CPIO"; then
13426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13427 $as_echo "$CPIO" >&6; }
13428 else
13429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13430 $as_echo "no" >&6; }
13431 fi
13432 
13433 
13434         if test "x$CPIO" = x; then
13435           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13436         fi
13437       else
13438         # Otherwise we believe it is a complete path. Use it as it is.
13439         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13440 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13442 $as_echo_n "checking for CPIO... " >&6; }
13443         if test ! -x "$tool_specified"; then
13444           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13445 $as_echo "not found" >&6; }
13446           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13447         fi
13448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13449 $as_echo "$tool_specified" >&6; }
13450       fi
13451     fi
13452   fi
13453 
13454 
13455 
13456 
13457 # Now we can determine OpenJDK build and target platforms. This is required to
13458 # have early on.
13459 # Make sure we can run config.sub.
13460 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13461   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13462 
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13464 $as_echo_n "checking build system type... " >&6; }
13465 if ${ac_cv_build+:} false; then :
13466   $as_echo_n "(cached) " >&6
13467 else
13468   ac_build_alias=$build_alias
13469 test "x$ac_build_alias" = x &&
13470   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13471 test "x$ac_build_alias" = x &&
13472   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13474   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13475 
13476 fi
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13478 $as_echo "$ac_cv_build" >&6; }
13479 case $ac_cv_build in
13480 *-*-*) ;;
13481 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13482 esac
13483 build=$ac_cv_build
13484 ac_save_IFS=$IFS; IFS='-'
13485 set x $ac_cv_build
13486 shift
13487 build_cpu=$1
13488 build_vendor=$2
13489 shift; shift
13490 # Remember, the first character of IFS is used to create $*,
13491 # except with old shells:
13492 build_os=$*
13493 IFS=$ac_save_IFS
13494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13495 
13496 
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13498 $as_echo_n "checking host system type... " >&6; }
13499 if ${ac_cv_host+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   if test "x$host_alias" = x; then
13503   ac_cv_host=$ac_cv_build
13504 else
13505   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13506     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13507 fi
13508 
13509 fi
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13511 $as_echo "$ac_cv_host" >&6; }
13512 case $ac_cv_host in
13513 *-*-*) ;;
13514 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13515 esac
13516 host=$ac_cv_host
13517 ac_save_IFS=$IFS; IFS='-'
13518 set x $ac_cv_host
13519 shift
13520 host_cpu=$1
13521 host_vendor=$2
13522 shift; shift
13523 # Remember, the first character of IFS is used to create $*,
13524 # except with old shells:
13525 host_os=$*
13526 IFS=$ac_save_IFS
13527 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13528 
13529 
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13531 $as_echo_n "checking target system type... " >&6; }
13532 if ${ac_cv_target+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   if test "x$target_alias" = x; then
13536   ac_cv_target=$ac_cv_host
13537 else
13538   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13539     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13540 fi
13541 
13542 fi
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13544 $as_echo "$ac_cv_target" >&6; }
13545 case $ac_cv_target in
13546 *-*-*) ;;
13547 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13548 esac
13549 target=$ac_cv_target
13550 ac_save_IFS=$IFS; IFS='-'
13551 set x $ac_cv_target
13552 shift
13553 target_cpu=$1
13554 target_vendor=$2
13555 shift; shift
13556 # Remember, the first character of IFS is used to create $*,
13557 # except with old shells:
13558 target_os=$*
13559 IFS=$ac_save_IFS
13560 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13561 
13562 
13563 # The aliases save the names the user supplied, while $host etc.
13564 # will get canonicalized.
13565 test -n "$target_alias" &&
13566   test "$program_prefix$program_suffix$program_transform_name" = \
13567     NONENONEs,x,x, &&
13568   program_prefix=${target_alias}-
13569 
13570   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13571   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13572   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13573   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13574   # to use the configure naming style.
13575 
13576 
13577 
13578 
13579 
13580   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13581   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13582   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13583   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13584   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13585   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13586 
13587 
13588 
13589   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13590 
13591   case "$build_os" in
13592     *linux*)
13593       VAR_OS=linux
13594       VAR_OS_API=posix
13595       VAR_OS_ENV=linux
13596       ;;
13597     *solaris*)
13598       VAR_OS=solaris
13599       VAR_OS_API=posix
13600       VAR_OS_ENV=solaris
13601       ;;
13602     *darwin*)
13603       VAR_OS=macosx
13604       VAR_OS_API=posix
13605       VAR_OS_ENV=macosx
13606       ;;
13607     *bsd*)
13608       VAR_OS=bsd
13609       VAR_OS_API=posix
13610       VAR_OS_ENV=bsd
13611       ;;
13612     *cygwin*)
13613       VAR_OS=windows
13614       VAR_OS_API=winapi
13615       VAR_OS_ENV=windows.cygwin
13616       ;;
13617     *mingw*)
13618       VAR_OS=windows
13619       VAR_OS_API=winapi
13620       VAR_OS_ENV=windows.msys
13621       ;;
13622     *aix*)
13623       VAR_OS=aix
13624       VAR_OS_API=posix
13625       VAR_OS_ENV=aix
13626       ;;
13627     *)
13628       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13629       ;;
13630   esac
13631 
13632 
13633   # First argument is the cpu name from the trip/quad
13634   case "$build_cpu" in
13635     x86_64)
13636       VAR_CPU=x86_64
13637       VAR_CPU_ARCH=x86
13638       VAR_CPU_BITS=64
13639       VAR_CPU_ENDIAN=little
13640       ;;
13641     i?86)
13642       VAR_CPU=x86
13643       VAR_CPU_ARCH=x86
13644       VAR_CPU_BITS=32
13645       VAR_CPU_ENDIAN=little
13646       ;;
13647     arm*)
13648       VAR_CPU=arm
13649       VAR_CPU_ARCH=arm
13650       VAR_CPU_BITS=32
13651       VAR_CPU_ENDIAN=little
13652       ;;
13653     aarch64)
13654       VAR_CPU=aarch64
13655       VAR_CPU_ARCH=aarch64
13656       VAR_CPU_BITS=64
13657       VAR_CPU_ENDIAN=little
13658       ;;
13659     powerpc)
13660       VAR_CPU=ppc
13661       VAR_CPU_ARCH=ppc
13662       VAR_CPU_BITS=32
13663       VAR_CPU_ENDIAN=big
13664       ;;
13665     powerpc64)
13666       VAR_CPU=ppc64
13667       VAR_CPU_ARCH=ppc
13668       VAR_CPU_BITS=64
13669       VAR_CPU_ENDIAN=big
13670       ;;
13671     powerpc64le)
13672       VAR_CPU=ppc64le
13673       VAR_CPU_ARCH=ppc
13674       VAR_CPU_BITS=64
13675       VAR_CPU_ENDIAN=little
13676       ;;
13677     s390)
13678       VAR_CPU=s390
13679       VAR_CPU_ARCH=s390
13680       VAR_CPU_BITS=32
13681       VAR_CPU_ENDIAN=big
13682       ;;
13683     s390x)
13684       VAR_CPU=s390x
13685       VAR_CPU_ARCH=s390
13686       VAR_CPU_BITS=64
13687       VAR_CPU_ENDIAN=big
13688       ;;
13689     sparc)
13690       VAR_CPU=sparc
13691       VAR_CPU_ARCH=sparc
13692       VAR_CPU_BITS=32
13693       VAR_CPU_ENDIAN=big
13694       ;;
13695     sparcv9|sparc64)
13696       VAR_CPU=sparcv9
13697       VAR_CPU_ARCH=sparc
13698       VAR_CPU_BITS=64
13699       VAR_CPU_ENDIAN=big
13700       ;;
13701     *)
13702       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13703       ;;
13704   esac
13705 
13706   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13707   OPENJDK_BUILD_OS="$VAR_OS"
13708   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13709   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13710   OPENJDK_BUILD_CPU="$VAR_CPU"
13711   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13712   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13713   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13714 
13715 
13716 
13717 
13718 
13719 
13720 
13721 
13722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13723 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13725 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13726 
13727   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13728 
13729   case "$host_os" in
13730     *linux*)
13731       VAR_OS=linux
13732       VAR_OS_API=posix
13733       VAR_OS_ENV=linux
13734       ;;
13735     *solaris*)
13736       VAR_OS=solaris
13737       VAR_OS_API=posix
13738       VAR_OS_ENV=solaris
13739       ;;
13740     *darwin*)
13741       VAR_OS=macosx
13742       VAR_OS_API=posix
13743       VAR_OS_ENV=macosx
13744       ;;
13745     *bsd*)
13746       VAR_OS=bsd
13747       VAR_OS_API=posix
13748       VAR_OS_ENV=bsd
13749       ;;
13750     *cygwin*)
13751       VAR_OS=windows
13752       VAR_OS_API=winapi
13753       VAR_OS_ENV=windows.cygwin
13754       ;;
13755     *mingw*)
13756       VAR_OS=windows
13757       VAR_OS_API=winapi
13758       VAR_OS_ENV=windows.msys
13759       ;;
13760     *aix*)
13761       VAR_OS=aix
13762       VAR_OS_API=posix
13763       VAR_OS_ENV=aix
13764       ;;
13765     *)
13766       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13767       ;;
13768   esac
13769 
13770 
13771   # First argument is the cpu name from the trip/quad
13772   case "$host_cpu" in
13773     x86_64)
13774       VAR_CPU=x86_64
13775       VAR_CPU_ARCH=x86
13776       VAR_CPU_BITS=64
13777       VAR_CPU_ENDIAN=little
13778       ;;
13779     i?86)
13780       VAR_CPU=x86
13781       VAR_CPU_ARCH=x86
13782       VAR_CPU_BITS=32
13783       VAR_CPU_ENDIAN=little
13784       ;;
13785     arm*)
13786       VAR_CPU=arm
13787       VAR_CPU_ARCH=arm
13788       VAR_CPU_BITS=32
13789       VAR_CPU_ENDIAN=little
13790       ;;
13791     aarch64)
13792       VAR_CPU=aarch64
13793       VAR_CPU_ARCH=aarch64
13794       VAR_CPU_BITS=64
13795       VAR_CPU_ENDIAN=little
13796       ;;
13797     powerpc)
13798       VAR_CPU=ppc
13799       VAR_CPU_ARCH=ppc
13800       VAR_CPU_BITS=32
13801       VAR_CPU_ENDIAN=big
13802       ;;
13803     powerpc64)
13804       VAR_CPU=ppc64
13805       VAR_CPU_ARCH=ppc
13806       VAR_CPU_BITS=64
13807       VAR_CPU_ENDIAN=big
13808       ;;
13809     powerpc64le)
13810       VAR_CPU=ppc64le
13811       VAR_CPU_ARCH=ppc
13812       VAR_CPU_BITS=64
13813       VAR_CPU_ENDIAN=little
13814       ;;
13815     s390)
13816       VAR_CPU=s390
13817       VAR_CPU_ARCH=s390
13818       VAR_CPU_BITS=32
13819       VAR_CPU_ENDIAN=big
13820       ;;
13821     s390x)
13822       VAR_CPU=s390x
13823       VAR_CPU_ARCH=s390
13824       VAR_CPU_BITS=64
13825       VAR_CPU_ENDIAN=big
13826       ;;
13827     sparc)
13828       VAR_CPU=sparc
13829       VAR_CPU_ARCH=sparc
13830       VAR_CPU_BITS=32
13831       VAR_CPU_ENDIAN=big
13832       ;;
13833     sparcv9|sparc64)
13834       VAR_CPU=sparcv9
13835       VAR_CPU_ARCH=sparc
13836       VAR_CPU_BITS=64
13837       VAR_CPU_ENDIAN=big
13838       ;;
13839     *)
13840       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13841       ;;
13842   esac
13843 
13844   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13845   OPENJDK_TARGET_OS="$VAR_OS"
13846   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13847   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13848   OPENJDK_TARGET_CPU="$VAR_CPU"
13849   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13850   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13851   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13852 
13853 
13854 
13855 
13856 
13857 
13858 
13859 
13860   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13861 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13863 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13864 
13865 
13866 
13867 # Check whether --with-target-bits was given.
13868 if test "${with_target_bits+set}" = set; then :
13869   withval=$with_target_bits;
13870 fi
13871 
13872 
13873   # We have three types of compiles:
13874   # native  == normal compilation, target system == build system
13875   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13876   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13877   #
13878   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13879     # We're doing a proper cross-compilation
13880     COMPILE_TYPE="cross"
13881   else
13882     COMPILE_TYPE="native"
13883   fi
13884 
13885   if test "x$with_target_bits" != x; then
13886     if test "x$COMPILE_TYPE" = "xcross"; then
13887       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13888     fi
13889 
13890     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13891       # A reduced build is requested
13892       COMPILE_TYPE="reduced"
13893       OPENJDK_TARGET_CPU_BITS=32
13894       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13895         OPENJDK_TARGET_CPU=x86
13896       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13897         OPENJDK_TARGET_CPU=sparc
13898       else
13899         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13900       fi
13901     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13902       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
13903     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13904       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13905 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13906     else
13907       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13908     fi
13909   fi
13910 
13911 
13912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13913 $as_echo_n "checking compilation type... " >&6; }
13914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13915 $as_echo "$COMPILE_TYPE" >&6; }
13916 
13917 
13918   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13919     REQUIRED_OS_NAME=SunOS
13920     REQUIRED_OS_VERSION=5.10
13921   fi
13922   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13923     REQUIRED_OS_NAME=Linux
13924     REQUIRED_OS_VERSION=2.6
13925   fi
13926   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13927     REQUIRED_OS_NAME=Windows
13928     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13929       REQUIRED_OS_VERSION=5.2
13930     else
13931       REQUIRED_OS_VERSION=5.1
13932     fi
13933   fi
13934   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13935     REQUIRED_OS_NAME=Darwin
13936     REQUIRED_OS_VERSION=11.2
13937   fi
13938 
13939 
13940 
13941 
13942 
13943   # Also store the legacy naming of the cpu.
13944   # Ie i586 and amd64 instead of x86 and x86_64
13945   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13946   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13947     OPENJDK_TARGET_CPU_LEGACY="i586"
13948   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13949     # On all platforms except MacOSX replace x86_64 with amd64.
13950     OPENJDK_TARGET_CPU_LEGACY="amd64"
13951   fi
13952 
13953 
13954   # And the second legacy naming of the cpu.
13955   # Ie i386 and amd64 instead of x86 and x86_64.
13956   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13957   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13958     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13959   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13960     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13961   fi
13962 
13963 
13964   # This is the name of the cpu (but using i386 and amd64 instead of
13965   # x86 and x86_64, respectively), preceeded by a /, to be used when
13966   # locating libraries. On macosx, it's empty, though.
13967   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13968   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13969     OPENJDK_TARGET_CPU_LIBDIR=""
13970   fi
13971 
13972 
13973   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13974   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13975   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13976   OPENJDK_TARGET_CPU_ISADIR=""
13977   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13978     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13979       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13980     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13981       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13982     fi
13983   fi
13984 
13985 
13986   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13987   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13988   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13989     # On linux only, we replace x86 with i386.
13990     OPENJDK_TARGET_CPU_OSARCH="i386"
13991   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13992     # On all platforms except macosx, we replace x86_64 with amd64.
13993     OPENJDK_TARGET_CPU_OSARCH="amd64"
13994   fi
13995 
13996 
13997   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13998   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13999     OPENJDK_TARGET_CPU_JLI="i386"
14000   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
14001     # On all platforms except macosx, we replace x86_64 with amd64.
14002     OPENJDK_TARGET_CPU_JLI="amd64"
14003   fi
14004   # Now setup the -D flags for building libjli.
14005   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
14006   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
14007     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
14008       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
14009     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
14010       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
14011     fi
14012   fi
14013 
14014 
14015   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
14016   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
14017     OPENJDK_TARGET_OS_API_DIR="solaris"
14018   fi
14019   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14020     OPENJDK_TARGET_OS_API_DIR="windows"
14021   fi
14022 
14023 
14024   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14025       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14026   else
14027       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14028   fi
14029 
14030 
14031   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14032     A_LP64="LP64:="
14033     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14034     # unpack200.exe
14035     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14036       ADD_LP64="-D_LP64=1"
14037     fi
14038   fi
14039   LP64=$A_LP64
14040 
14041 
14042   if test "x$COMPILE_TYPE" = "xcross"; then
14043     # FIXME: ... or should this include reduced builds..?
14044     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14045   else
14046     DEFINE_CROSS_COMPILE_ARCH=""
14047   fi
14048 
14049 
14050   # ZERO_ARCHDEF is used to enable architecture-specific code
14051   case "${OPENJDK_TARGET_CPU}" in
14052     ppc)     ZERO_ARCHDEF=PPC32 ;;
14053     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14054     s390*)   ZERO_ARCHDEF=S390  ;;
14055     sparc*)  ZERO_ARCHDEF=SPARC ;;
14056     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14057     x86)     ZERO_ARCHDEF=IA32  ;;
14058     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14059   esac
14060 
14061 
14062 
14063 
14064 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14065 
14066   # Save the current directory this script was started from
14067   CURDIR="$PWD"
14068 
14069   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14070     PATH_SEP=";"
14071 
14072   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14073   if test $SRC_ROOT_LENGTH -gt 100; then
14074     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14075   fi
14076 
14077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14079 $as_echo_n "checking cygwin release... " >&6; }
14080     CYGWIN_VERSION=`$UNAME -r`
14081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14082 $as_echo "$CYGWIN_VERSION" >&6; }
14083     WINDOWS_ENV_VENDOR='cygwin'
14084     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14085 
14086     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14087     if test "x$CYGWIN_VERSION_OLD" != x; then
14088       { $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
14089 $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;}
14090       as_fn_error $? "Cannot continue" "$LINENO" 5
14091     fi
14092     if test "x$CYGPATH" = x; then
14093       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14094     fi
14095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14096 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14097     # The cmd output ends with Windows line endings (CR/LF)
14098     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14099     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14100     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14101     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14102 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14103     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14104     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14105     if test "x$test_cygdrive_prefix" = x; then
14106       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14107     fi
14108   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14109     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14110 $as_echo_n "checking msys release... " >&6; }
14111     MSYS_VERSION=`$UNAME -r`
14112     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14113 $as_echo "$MSYS_VERSION" >&6; }
14114 
14115     WINDOWS_ENV_VENDOR='msys'
14116     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14117 
14118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14119 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14120     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14121     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14122 
14123   windows_path="$MSYS_ROOT_PATH"
14124   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14125     unix_path=`$CYGPATH -u "$windows_path"`
14126     MSYS_ROOT_PATH="$unix_path"
14127   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14128     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14129     MSYS_ROOT_PATH="$unix_path"
14130   fi
14131 
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14133 $as_echo "$MSYS_ROOT_PATH" >&6; }
14134     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14135   else
14136     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14137   fi
14138 
14139   # Test if windows or unix (cygwin/msys) find is first in path.
14140   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14141 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14142   FIND_BINARY_OUTPUT=`find --version 2>&1`
14143   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14144     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14145 $as_echo "unix style" >&6; }
14146   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14147     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14148 $as_echo "Windows" >&6; }
14149     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14150 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14151     { $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
14152 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14153     as_fn_error $? "Cannot continue" "$LINENO" 5
14154   else
14155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14156 $as_echo "unknown" >&6; }
14157     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14158 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14159   fi
14160 
14161   else
14162     PATH_SEP=":"
14163   fi
14164 
14165 
14166   # We get the top-level directory from the supporting wrappers.
14167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14168 $as_echo_n "checking for top-level directory... " >&6; }
14169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14170 $as_echo "$TOPDIR" >&6; }
14171 
14172 
14173   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14174 
14175   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14176 
14177   # Input might be given as Windows format, start by converting to
14178   # unix format.
14179   path="$CURDIR"
14180   new_path=`$CYGPATH -u "$path"`
14181 
14182   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14183   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14184   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14185   # "foo.exe" is OK but "foo" is an error.
14186   #
14187   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14188   # It is also a way to make sure we got the proper file name for the real test later on.
14189   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14190   if test "x$test_shortpath" = x; then
14191     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14192 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14193     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14194   fi
14195 
14196   # Call helper function which possibly converts this using DOS-style short mode.
14197   # If so, the updated path is stored in $new_path.
14198 
14199   input_path="$new_path"
14200   # Check if we need to convert this using DOS-style short mode. If the path
14201   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14202   # take no chances and rewrite it.
14203   # Note: m4 eats our [], so we need to use [ and ] instead.
14204   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14205   if test "x$has_forbidden_chars" != x; then
14206     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14207     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14208     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14209     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14210       # Going to short mode and back again did indeed matter. Since short mode is
14211       # case insensitive, let's make it lowercase to improve readability.
14212       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14213       # Now convert it back to Unix-style (cygpath)
14214       input_path=`$CYGPATH -u "$shortmode_path"`
14215       new_path="$input_path"
14216     fi
14217   fi
14218 
14219   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14220   if test "x$test_cygdrive_prefix" = x; then
14221     # As a simple fix, exclude /usr/bin since it's not a real path.
14222     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14223       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14224       # a path prefixed by /cygdrive for fixpath to work.
14225       new_path="$CYGWIN_ROOT_PATH$input_path"
14226     fi
14227   fi
14228 
14229 
14230   if test "x$path" != "x$new_path"; then
14231     CURDIR="$new_path"
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14233 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14234   fi
14235 
14236   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14237 
14238   path="$CURDIR"
14239   has_colon=`$ECHO $path | $GREP ^.:`
14240   new_path="$path"
14241   if test "x$has_colon" = x; then
14242     # Not in mixed or Windows style, start by that.
14243     new_path=`cmd //c echo $path`
14244   fi
14245 
14246 
14247   input_path="$new_path"
14248   # Check if we need to convert this using DOS-style short mode. If the path
14249   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14250   # take no chances and rewrite it.
14251   # Note: m4 eats our [], so we need to use [ and ] instead.
14252   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14253   if test "x$has_forbidden_chars" != x; then
14254     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14255     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14256   fi
14257 
14258 
14259   windows_path="$new_path"
14260   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14261     unix_path=`$CYGPATH -u "$windows_path"`
14262     new_path="$unix_path"
14263   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14264     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14265     new_path="$unix_path"
14266   fi
14267 
14268   if test "x$path" != "x$new_path"; then
14269     CURDIR="$new_path"
14270     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14271 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14272   fi
14273 
14274   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14275   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14276 
14277   else
14278     # We're on a posix platform. Hooray! :)
14279     path="$CURDIR"
14280     has_space=`$ECHO "$path" | $GREP " "`
14281     if test "x$has_space" != x; then
14282       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14283 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14284       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14285     fi
14286 
14287     # Use eval to expand a potential ~
14288     eval path="$path"
14289     if test ! -f "$path" && test ! -d "$path"; then
14290       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14291     fi
14292 
14293     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14294   fi
14295 
14296 
14297   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14298 
14299   # Input might be given as Windows format, start by converting to
14300   # unix format.
14301   path="$TOPDIR"
14302   new_path=`$CYGPATH -u "$path"`
14303 
14304   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14305   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14306   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14307   # "foo.exe" is OK but "foo" is an error.
14308   #
14309   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14310   # It is also a way to make sure we got the proper file name for the real test later on.
14311   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14312   if test "x$test_shortpath" = x; then
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14314 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14315     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14316   fi
14317 
14318   # Call helper function which possibly converts this using DOS-style short mode.
14319   # If so, the updated path is stored in $new_path.
14320 
14321   input_path="$new_path"
14322   # Check if we need to convert this using DOS-style short mode. If the path
14323   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14324   # take no chances and rewrite it.
14325   # Note: m4 eats our [], so we need to use [ and ] instead.
14326   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14327   if test "x$has_forbidden_chars" != x; then
14328     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14329     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14330     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14331     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14332       # Going to short mode and back again did indeed matter. Since short mode is
14333       # case insensitive, let's make it lowercase to improve readability.
14334       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14335       # Now convert it back to Unix-style (cygpath)
14336       input_path=`$CYGPATH -u "$shortmode_path"`
14337       new_path="$input_path"
14338     fi
14339   fi
14340 
14341   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14342   if test "x$test_cygdrive_prefix" = x; then
14343     # As a simple fix, exclude /usr/bin since it's not a real path.
14344     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14345       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14346       # a path prefixed by /cygdrive for fixpath to work.
14347       new_path="$CYGWIN_ROOT_PATH$input_path"
14348     fi
14349   fi
14350 
14351 
14352   if test "x$path" != "x$new_path"; then
14353     TOPDIR="$new_path"
14354     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14355 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14356   fi
14357 
14358   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14359 
14360   path="$TOPDIR"
14361   has_colon=`$ECHO $path | $GREP ^.:`
14362   new_path="$path"
14363   if test "x$has_colon" = x; then
14364     # Not in mixed or Windows style, start by that.
14365     new_path=`cmd //c echo $path`
14366   fi
14367 
14368 
14369   input_path="$new_path"
14370   # Check if we need to convert this using DOS-style short mode. If the path
14371   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14372   # take no chances and rewrite it.
14373   # Note: m4 eats our [], so we need to use [ and ] instead.
14374   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14375   if test "x$has_forbidden_chars" != x; then
14376     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14377     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14378   fi
14379 
14380 
14381   windows_path="$new_path"
14382   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14383     unix_path=`$CYGPATH -u "$windows_path"`
14384     new_path="$unix_path"
14385   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14386     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14387     new_path="$unix_path"
14388   fi
14389 
14390   if test "x$path" != "x$new_path"; then
14391     TOPDIR="$new_path"
14392     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14393 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14394   fi
14395 
14396   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14397   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14398 
14399   else
14400     # We're on a posix platform. Hooray! :)
14401     path="$TOPDIR"
14402     has_space=`$ECHO "$path" | $GREP " "`
14403     if test "x$has_space" != x; then
14404       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14405 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14406       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14407     fi
14408 
14409     # Use eval to expand a potential ~
14410     eval path="$path"
14411     if test ! -f "$path" && test ! -d "$path"; then
14412       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14413     fi
14414 
14415     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14416   fi
14417 
14418   # SRC_ROOT is a traditional alias for TOPDIR.
14419   SRC_ROOT=$TOPDIR
14420 
14421   # Locate the directory of this script.
14422   AUTOCONF_DIR=$TOPDIR/common/autoconf
14423 
14424 
14425   # Setup default logging of stdout and stderr to build.log in the output root.
14426   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14427   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14428   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14429 
14430 
14431 
14432 
14433 
14434 # Check if it's a pure open build or if custom sources are to be used.
14435 
14436   # Check whether --enable-openjdk-only was given.
14437 if test "${enable_openjdk_only+set}" = set; then :
14438   enableval=$enable_openjdk_only;
14439 else
14440   enable_openjdk_only="no"
14441 fi
14442 
14443 
14444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14445 $as_echo_n "checking for presence of closed sources... " >&6; }
14446   if test -d "$SRC_ROOT/jdk/src/closed"; then
14447     CLOSED_SOURCE_PRESENT=yes
14448   else
14449     CLOSED_SOURCE_PRESENT=no
14450   fi
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14452 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14453 
14454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14455 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14456   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14458 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14459 
14460   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14461     OPENJDK=true
14462     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14463       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14464 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14465     fi
14466   else
14467     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14468       OPENJDK=true
14469     else
14470       OPENJDK=false
14471     fi
14472   fi
14473 
14474   if test "x$OPENJDK" = "xtrue"; then
14475     SET_OPENJDK="OPENJDK=true"
14476   fi
14477 
14478 
14479 
14480 
14481 # These are needed to be able to create a configuration name (and thus the output directory)
14482 
14483   ###############################################################################
14484   #
14485   # Check which variant of the JDK that we want to build.
14486   # Currently we have:
14487   #    normal:   standard edition
14488   # but the custom make system may add other variants
14489   #
14490   # Effectively the JDK variant gives a name to a specific set of
14491   # modules to compile into the JDK. In the future, these modules
14492   # might even be Jigsaw modules.
14493   #
14494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14495 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14496 
14497 # Check whether --with-jdk-variant was given.
14498 if test "${with_jdk_variant+set}" = set; then :
14499   withval=$with_jdk_variant;
14500 fi
14501 
14502 
14503   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14504     JDK_VARIANT="normal"
14505   else
14506     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14507   fi
14508 
14509 
14510 
14511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14512 $as_echo "$JDK_VARIANT" >&6; }
14513 
14514 
14515 ###############################################################################
14516 #
14517 # Check which interpreter of the JVM we want to build.
14518 # Currently we have:
14519 #    template: Template interpreter (the default)
14520 #    cpp     : C++ interpreter
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14522 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14523 
14524 # Check whether --with-jvm-interpreter was given.
14525 if test "${with_jvm_interpreter+set}" = set; then :
14526   withval=$with_jvm_interpreter;
14527 fi
14528 
14529 
14530 if test "x$with_jvm_interpreter" = x; then
14531      with_jvm_interpreter="template"
14532 fi
14533 
14534 JVM_INTERPRETER="$with_jvm_interpreter"
14535 
14536 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14537    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14538 fi
14539 
14540 
14541 
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14543 $as_echo "$with_jvm_interpreter" >&6; }
14544 
14545 
14546 
14547   ###############################################################################
14548   #
14549   # Check which variants of the JVM that we want to build.
14550   # Currently we have:
14551   #    server: normal interpreter and a tiered C1/C2 compiler
14552   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14553   #    minimal1: reduced form of client with optional VM services and features stripped out
14554   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14555   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14556   #    zero: no machine code interpreter, no compiler
14557   #    zeroshark: zero interpreter and shark/llvm compiler backend
14558 #    core: interpreter only, no compiler (only works on some platforms)
14559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14560 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14561 
14562 # Check whether --with-jvm-variants was given.
14563 if test "${with_jvm_variants+set}" = set; then :
14564   withval=$with_jvm_variants;
14565 fi
14566 
14567 
14568   if test "x$with_jvm_variants" = x; then
14569     with_jvm_variants="server"
14570   fi
14571 
14572   JVM_VARIANTS=",$with_jvm_variants,"
14573   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,//'`
14574 
14575   if test "x$TEST_VARIANTS" != "x,"; then
14576      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14577   fi
14578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14579 $as_echo "$with_jvm_variants" >&6; }
14580 
14581   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14582   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14583   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14584   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14585   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14586   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14587   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14588 
14589   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14590     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14591       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14592     fi
14593   fi
14594   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14595     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14596       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14597     fi
14598   fi
14599   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14600     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14601       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14602     fi
14603   fi
14604 
14605   # Replace the commas with AND for use in the build directory name.
14606   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14607   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/'`
14608   if test "x$COUNT_VARIANTS" != "x,1"; then
14609     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14610   else
14611     BUILDING_MULTIPLE_JVM_VARIANTS=no
14612   fi
14613 
14614 
14615 
14616 
14617 
14618 
14619 
14620 
14621 
14622 
14623   INCLUDE_SA=true
14624   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14625     INCLUDE_SA=false
14626   fi
14627   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14628     INCLUDE_SA=false
14629   fi
14630   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14631     INCLUDE_SA=false
14632   fi
14633 
14634 
14635   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14636     MACOSX_UNIVERSAL="false"
14637   fi
14638 
14639 
14640 
14641 
14642   ###############################################################################
14643   #
14644   # Set the debug level
14645   #    release: no debug information, all optimizations, no asserts.
14646   #    fastdebug: debug information (-g), all optimizations, all asserts
14647   #    slowdebug: debug information (-g), no optimizations, all asserts
14648   #
14649   DEBUG_LEVEL="release"
14650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14651 $as_echo_n "checking which debug level to use... " >&6; }
14652   # Check whether --enable-debug was given.
14653 if test "${enable_debug+set}" = set; then :
14654   enableval=$enable_debug;
14655         ENABLE_DEBUG="${enableval}"
14656         DEBUG_LEVEL="fastdebug"
14657 
14658 else
14659   ENABLE_DEBUG="no"
14660 fi
14661 
14662 
14663 
14664 # Check whether --with-debug-level was given.
14665 if test "${with_debug_level+set}" = set; then :
14666   withval=$with_debug_level;
14667         DEBUG_LEVEL="${withval}"
14668         if test "x$ENABLE_DEBUG" = xyes; then
14669           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14670         fi
14671 
14672 fi
14673 
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14675 $as_echo "$DEBUG_LEVEL" >&6; }
14676 
14677   if test "x$DEBUG_LEVEL" != xrelease && \
14678       test "x$DEBUG_LEVEL" != xfastdebug && \
14679       test "x$DEBUG_LEVEL" != xslowdebug; then
14680     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14681   fi
14682 
14683 
14684   ###############################################################################
14685   #
14686   # Setup legacy vars/targets and new vars to deal with different debug levels.
14687   #
14688 
14689   case $DEBUG_LEVEL in
14690     release )
14691       VARIANT="OPT"
14692       FASTDEBUG="false"
14693       DEBUG_CLASSFILES="false"
14694       BUILD_VARIANT_RELEASE=""
14695       HOTSPOT_DEBUG_LEVEL="product"
14696       HOTSPOT_EXPORT="product"
14697       ;;
14698     fastdebug )
14699       VARIANT="DBG"
14700       FASTDEBUG="true"
14701       DEBUG_CLASSFILES="true"
14702       BUILD_VARIANT_RELEASE="-fastdebug"
14703       HOTSPOT_DEBUG_LEVEL="fastdebug"
14704       HOTSPOT_EXPORT="fastdebug"
14705       ;;
14706     slowdebug )
14707       VARIANT="DBG"
14708       FASTDEBUG="false"
14709       DEBUG_CLASSFILES="true"
14710       BUILD_VARIANT_RELEASE="-debug"
14711       HOTSPOT_DEBUG_LEVEL="jvmg"
14712       HOTSPOT_EXPORT="debug"
14713       ;;
14714   esac
14715 
14716   #####
14717   # Generate the legacy makefile targets for hotspot.
14718   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14719   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14720   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14721   # But until then ...
14722   HOTSPOT_TARGET=""
14723 
14724   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14725     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14726   fi
14727 
14728   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14729     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14730   fi
14731 
14732   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14733     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14734   fi
14735 
14736   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14737     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14738   fi
14739 
14740   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14741     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14742   fi
14743 
14744   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14745     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14746   fi
14747 
14748   if test "x$JVM_VARIANT_CORE" = xtrue; then
14749     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14750   fi
14751 
14752   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14753 
14754   # On Macosx universal binaries are produced, but they only contain
14755   # 64 bit intel. This invalidates control of which jvms are built
14756   # from configure, but only server is valid anyway. Fix this
14757   # when hotspot makefiles are rewritten.
14758   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14759     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14760   fi
14761 
14762   #####
14763 
14764 
14765 
14766 
14767 
14768 
14769 
14770 
14771 # With basic setup done, call the custom early hook.
14772 
14773 
14774 # Check if we have devkits, extra paths or sysroot set.
14775 
14776 
14777 # Check whether --with-devkit was given.
14778 if test "${with_devkit+set}" = set; then :
14779   withval=$with_devkit;
14780 fi
14781 
14782 
14783   if test "x$with_devkit" = xyes; then
14784     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14785   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14786 
14787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14788 
14789   # Input might be given as Windows format, start by converting to
14790   # unix format.
14791   path="$with_devkit"
14792   new_path=`$CYGPATH -u "$path"`
14793 
14794   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14795   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14796   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14797   # "foo.exe" is OK but "foo" is an error.
14798   #
14799   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14800   # It is also a way to make sure we got the proper file name for the real test later on.
14801   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14802   if test "x$test_shortpath" = x; then
14803     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14804 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14805     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14806   fi
14807 
14808   # Call helper function which possibly converts this using DOS-style short mode.
14809   # If so, the updated path is stored in $new_path.
14810 
14811   input_path="$new_path"
14812   # Check if we need to convert this using DOS-style short mode. If the path
14813   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14814   # take no chances and rewrite it.
14815   # Note: m4 eats our [], so we need to use [ and ] instead.
14816   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14817   if test "x$has_forbidden_chars" != x; then
14818     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14819     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14820     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14821     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14822       # Going to short mode and back again did indeed matter. Since short mode is
14823       # case insensitive, let's make it lowercase to improve readability.
14824       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14825       # Now convert it back to Unix-style (cygpath)
14826       input_path=`$CYGPATH -u "$shortmode_path"`
14827       new_path="$input_path"
14828     fi
14829   fi
14830 
14831   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14832   if test "x$test_cygdrive_prefix" = x; then
14833     # As a simple fix, exclude /usr/bin since it's not a real path.
14834     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14835       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14836       # a path prefixed by /cygdrive for fixpath to work.
14837       new_path="$CYGWIN_ROOT_PATH$input_path"
14838     fi
14839   fi
14840 
14841 
14842   if test "x$path" != "x$new_path"; then
14843     with_devkit="$new_path"
14844     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14845 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14846   fi
14847 
14848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14849 
14850   path="$with_devkit"
14851   has_colon=`$ECHO $path | $GREP ^.:`
14852   new_path="$path"
14853   if test "x$has_colon" = x; then
14854     # Not in mixed or Windows style, start by that.
14855     new_path=`cmd //c echo $path`
14856   fi
14857 
14858 
14859   input_path="$new_path"
14860   # Check if we need to convert this using DOS-style short mode. If the path
14861   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14862   # take no chances and rewrite it.
14863   # Note: m4 eats our [], so we need to use [ and ] instead.
14864   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14865   if test "x$has_forbidden_chars" != x; then
14866     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14867     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14868   fi
14869 
14870 
14871   windows_path="$new_path"
14872   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14873     unix_path=`$CYGPATH -u "$windows_path"`
14874     new_path="$unix_path"
14875   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14876     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14877     new_path="$unix_path"
14878   fi
14879 
14880   if test "x$path" != "x$new_path"; then
14881     with_devkit="$new_path"
14882     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14883 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14884   fi
14885 
14886   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14887   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14888 
14889   else
14890     # We're on a posix platform. Hooray! :)
14891     path="$with_devkit"
14892     has_space=`$ECHO "$path" | $GREP " "`
14893     if test "x$has_space" != x; then
14894       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14895 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14896       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14897     fi
14898 
14899     # Use eval to expand a potential ~
14900     eval path="$path"
14901     if test ! -f "$path" && test ! -d "$path"; then
14902       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14903     fi
14904 
14905     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14906   fi
14907 
14908     DEVKIT_ROOT="$with_devkit"
14909     # Check for a meta data info file in the root of the devkit
14910     if test -f "$DEVKIT_ROOT/devkit.info"; then
14911       . $DEVKIT_ROOT/devkit.info
14912       # This potentially sets the following:
14913       # A descriptive name of the devkit
14914 
14915   if test "x$DEVKIT_NAME" = x; then
14916     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14917   fi
14918 
14919       # Corresponds to --with-extra-path
14920 
14921   if test "x$DEVKIT_EXTRA_PATH" = x; then
14922     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14923   fi
14924 
14925       # Corresponds to --with-toolchain-path
14926 
14927   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14928     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14929   fi
14930 
14931       # Corresponds to --with-sysroot
14932 
14933   if test "x$DEVKIT_SYSROOT" = x; then
14934     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14935   fi
14936 
14937 
14938       # Identifies the Visual Studio version in the devkit
14939 
14940   if test "x$DEVKIT_VS_VERSION" = x; then
14941     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14942   fi
14943 
14944       # The Visual Studio include environment variable
14945 
14946   if test "x$DEVKIT_VS_INCLUDE" = x; then
14947     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14948   fi
14949 
14950       # The Visual Studio lib environment variable
14951 
14952   if test "x$DEVKIT_VS_LIB" = x; then
14953     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14954   fi
14955 
14956       # Corresponds to --with-msvcr-dll
14957 
14958   if test "x$DEVKIT_MSVCR_DLL" = x; then
14959     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14960   fi
14961 
14962       # Corresponds to --with-msvcp-dll
14963 
14964   if test "x$DEVKIT_MSVCP_DLL" = x; then
14965     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14966   fi
14967 
14968       # Corresponds to --with-ucrt-dll-dir
14969 
14970   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14971     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14972   fi
14973 
14974     fi
14975 
14976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14977 $as_echo_n "checking for devkit... " >&6; }
14978     if test "x$DEVKIT_NAME" != x; then
14979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14980 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14981     else
14982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14983 $as_echo "$DEVKIT_ROOT" >&6; }
14984     fi
14985 
14986 
14987   if test "x$DEVKIT_EXTRA_PATH" != x; then
14988     if test "x$EXTRA_PATH" = x; then
14989       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14990     else
14991       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14992     fi
14993   fi
14994 
14995 
14996     # Fallback default of just /bin if DEVKIT_PATH is not defined
14997     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14998       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14999     fi
15000 
15001   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
15002     if test "x$TOOLCHAIN_PATH" = x; then
15003       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
15004     else
15005       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
15006     fi
15007   fi
15008 
15009 
15010     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
15011     # places for backwards compatiblity.
15012     if test "x$DEVKIT_SYSROOT" != x; then
15013       SYSROOT="$DEVKIT_SYSROOT"
15014     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15015       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15016     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15017       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15018     fi
15019 
15020     if test "x$DEVKIT_ROOT" != x; then
15021       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15022       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15023         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15024       fi
15025 
15026     fi
15027   fi
15028 
15029   # You can force the sysroot if the sysroot encoded into the compiler tools
15030   # is not correct.
15031 
15032 # Check whether --with-sys-root was given.
15033 if test "${with_sys_root+set}" = set; then :
15034   withval=$with_sys_root; SYSROOT=$with_sys_root
15035 
15036 fi
15037 
15038 
15039 
15040 # Check whether --with-sysroot was given.
15041 if test "${with_sysroot+set}" = set; then :
15042   withval=$with_sysroot; SYSROOT=$with_sysroot
15043 
15044 fi
15045 
15046 
15047 
15048 # Check whether --with-tools-dir was given.
15049 if test "${with_tools_dir+set}" = set; then :
15050   withval=$with_tools_dir;
15051   if test "x$with_tools_dir" != x; then
15052     if test "x$TOOLCHAIN_PATH" = x; then
15053       TOOLCHAIN_PATH="$with_tools_dir"
15054     else
15055       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15056     fi
15057   fi
15058 
15059 
15060 fi
15061 
15062 
15063 
15064 # Check whether --with-toolchain-path was given.
15065 if test "${with_toolchain_path+set}" = set; then :
15066   withval=$with_toolchain_path;
15067   if test "x$with_toolchain_path" != x; then
15068     if test "x$TOOLCHAIN_PATH" = x; then
15069       TOOLCHAIN_PATH="$with_toolchain_path"
15070     else
15071       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15072     fi
15073   fi
15074 
15075 
15076 fi
15077 
15078 
15079 
15080 # Check whether --with-extra-path was given.
15081 if test "${with_extra_path+set}" = set; then :
15082   withval=$with_extra_path;
15083   if test "x$with_extra_path" != x; then
15084     if test "x$EXTRA_PATH" = x; then
15085       EXTRA_PATH="$with_extra_path"
15086     else
15087       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15088     fi
15089   fi
15090 
15091 
15092 fi
15093 
15094 
15095   # Prepend the extra path to the global path
15096 
15097   if test "x$EXTRA_PATH" != x; then
15098     if test "x$PATH" = x; then
15099       PATH="$EXTRA_PATH"
15100     else
15101       PATH="$EXTRA_PATH:$PATH"
15102     fi
15103   fi
15104 
15105 
15106   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15107     # Add extra search paths on solaris for utilities like ar and as etc...
15108     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15109   fi
15110 
15111   # Xcode version will be validated later
15112 
15113 # Check whether --with-xcode-path was given.
15114 if test "${with_xcode_path+set}" = set; then :
15115   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15116 
15117 fi
15118 
15119 
15120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15121 $as_echo_n "checking for sysroot... " >&6; }
15122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15123 $as_echo "$SYSROOT" >&6; }
15124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15125 $as_echo_n "checking for toolchain path... " >&6; }
15126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15127 $as_echo "$TOOLCHAIN_PATH" >&6; }
15128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15129 $as_echo_n "checking for extra path... " >&6; }
15130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15131 $as_echo "$EXTRA_PATH" >&6; }
15132 
15133 
15134 # To properly create a configuration name, we need to have the OpenJDK target
15135 # and options (variants and debug level) parsed.
15136 
15137 
15138 
15139 # Check whether --with-conf-name was given.
15140 if test "${with_conf_name+set}" = set; then :
15141   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15142 fi
15143 
15144 
15145   # Test from where we are running configure, in or outside of src root.
15146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15147 $as_echo_n "checking where to store configuration... " >&6; }
15148   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15149       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15150       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15151     # We are running configure from the src root.
15152     # Create a default ./build/target-variant-debuglevel output root.
15153     if test "x${CONF_NAME}" = x; then
15154       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15155 $as_echo "in default location" >&6; }
15156       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15157     else
15158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15159 $as_echo "in build directory with custom name" >&6; }
15160     fi
15161     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15162     $MKDIR -p "$OUTPUT_ROOT"
15163     if test ! -d "$OUTPUT_ROOT"; then
15164       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15165     fi
15166   else
15167     # We are running configure from outside of the src dir.
15168     # Then use the current directory as output dir!
15169     # If configuration is situated in normal build directory, just use the build
15170     # directory name as configuration name, otherwise use the complete path.
15171     if test "x${CONF_NAME}" = x; then
15172       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15173     fi
15174     OUTPUT_ROOT="$CURDIR"
15175     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15176 $as_echo "in current directory" >&6; }
15177 
15178     # WARNING: This might be a bad thing to do. You need to be sure you want to
15179     # have a configuration in this directory. Do some sanity checks!
15180 
15181     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15182       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15183       # other files
15184       files_present=`$LS $OUTPUT_ROOT`
15185       # Configure has already touched config.log and confdefs.h in the current dir when this check
15186       # is performed.
15187       filtered_files=`$ECHO "$files_present" \
15188           | $SED -e 's/config.log//g' \
15189               -e 's/confdefs.h//g' \
15190               -e 's/fixpath.exe//g' \
15191               -e 's/ //g' \
15192           | $TR -d '\n'`
15193       if test "x$filtered_files" != x; then
15194         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15195 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15196         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15197 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15198         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15199 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15200         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15201 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15202         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15203 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15204         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15205 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15206         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15207 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15208         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15209       fi
15210     fi
15211   fi
15212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15213 $as_echo_n "checking what configuration name to use... " >&6; }
15214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15215 $as_echo "$CONF_NAME" >&6; }
15216 
15217 
15218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15219 
15220   # Input might be given as Windows format, start by converting to
15221   # unix format.
15222   path="$OUTPUT_ROOT"
15223   new_path=`$CYGPATH -u "$path"`
15224 
15225   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15226   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15227   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15228   # "foo.exe" is OK but "foo" is an error.
15229   #
15230   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15231   # It is also a way to make sure we got the proper file name for the real test later on.
15232   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15233   if test "x$test_shortpath" = x; then
15234     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15235 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15236     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15237   fi
15238 
15239   # Call helper function which possibly converts this using DOS-style short mode.
15240   # If so, the updated path is stored in $new_path.
15241 
15242   input_path="$new_path"
15243   # Check if we need to convert this using DOS-style short mode. If the path
15244   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15245   # take no chances and rewrite it.
15246   # Note: m4 eats our [], so we need to use [ and ] instead.
15247   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15248   if test "x$has_forbidden_chars" != x; then
15249     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15250     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15251     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15252     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15253       # Going to short mode and back again did indeed matter. Since short mode is
15254       # case insensitive, let's make it lowercase to improve readability.
15255       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15256       # Now convert it back to Unix-style (cygpath)
15257       input_path=`$CYGPATH -u "$shortmode_path"`
15258       new_path="$input_path"
15259     fi
15260   fi
15261 
15262   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15263   if test "x$test_cygdrive_prefix" = x; then
15264     # As a simple fix, exclude /usr/bin since it's not a real path.
15265     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15266       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15267       # a path prefixed by /cygdrive for fixpath to work.
15268       new_path="$CYGWIN_ROOT_PATH$input_path"
15269     fi
15270   fi
15271 
15272 
15273   if test "x$path" != "x$new_path"; then
15274     OUTPUT_ROOT="$new_path"
15275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15276 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15277   fi
15278 
15279   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15280 
15281   path="$OUTPUT_ROOT"
15282   has_colon=`$ECHO $path | $GREP ^.:`
15283   new_path="$path"
15284   if test "x$has_colon" = x; then
15285     # Not in mixed or Windows style, start by that.
15286     new_path=`cmd //c echo $path`
15287   fi
15288 
15289 
15290   input_path="$new_path"
15291   # Check if we need to convert this using DOS-style short mode. If the path
15292   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15293   # take no chances and rewrite it.
15294   # Note: m4 eats our [], so we need to use [ and ] instead.
15295   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15296   if test "x$has_forbidden_chars" != x; then
15297     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15298     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15299   fi
15300 
15301 
15302   windows_path="$new_path"
15303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15304     unix_path=`$CYGPATH -u "$windows_path"`
15305     new_path="$unix_path"
15306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15307     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15308     new_path="$unix_path"
15309   fi
15310 
15311   if test "x$path" != "x$new_path"; then
15312     OUTPUT_ROOT="$new_path"
15313     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15314 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15315   fi
15316 
15317   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15318   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15319 
15320   else
15321     # We're on a posix platform. Hooray! :)
15322     path="$OUTPUT_ROOT"
15323     has_space=`$ECHO "$path" | $GREP " "`
15324     if test "x$has_space" != x; then
15325       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15326 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15327       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15328     fi
15329 
15330     # Use eval to expand a potential ~
15331     eval path="$path"
15332     if test ! -f "$path" && test ! -d "$path"; then
15333       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15334     fi
15335 
15336     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15337   fi
15338 
15339 
15340   SPEC=$OUTPUT_ROOT/spec.gmk
15341 
15342   CONF_NAME=$CONF_NAME
15343 
15344   OUTPUT_ROOT=$OUTPUT_ROOT
15345 
15346 
15347   # Most of the probed defines are put into config.h
15348   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15349 
15350   # The spec.gmk file contains all variables for the make system.
15351   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15352 
15353   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15354   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15355 
15356   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15357   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15358 
15359   # The compare.sh is used to compare the build output to other builds.
15360   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15361 
15362   # Spec.sh is currently used by compare-objects.sh
15363   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15364 
15365   # The generated Makefile knows where the spec.gmk is and where the source is.
15366   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15367   # which will look for generated configurations
15368   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15369 
15370 
15371 
15372 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15373 
15374   for ac_prog in apt-get yum port pkgutil pkgadd
15375 do
15376   # Extract the first word of "$ac_prog", so it can be a program name with args.
15377 set dummy $ac_prog; ac_word=$2
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15379 $as_echo_n "checking for $ac_word... " >&6; }
15380 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15381   $as_echo_n "(cached) " >&6
15382 else
15383   if test -n "$PKGHANDLER"; then
15384   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15385 else
15386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15387 for as_dir in $PATH
15388 do
15389   IFS=$as_save_IFS
15390   test -z "$as_dir" && as_dir=.
15391     for ac_exec_ext in '' $ac_executable_extensions; do
15392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15393     ac_cv_prog_PKGHANDLER="$ac_prog"
15394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15395     break 2
15396   fi
15397 done
15398   done
15399 IFS=$as_save_IFS
15400 
15401 fi
15402 fi
15403 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15404 if test -n "$PKGHANDLER"; then
15405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15406 $as_echo "$PKGHANDLER" >&6; }
15407 else
15408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15409 $as_echo "no" >&6; }
15410 fi
15411 
15412 
15413   test -n "$PKGHANDLER" && break
15414 done
15415 
15416 
15417 
15418 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15419 
15420 
15421   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15422   if test "x$MAKE" != x; then
15423     # User has supplied a make, test it.
15424     if test ! -f "$MAKE"; then
15425       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15426     fi
15427 
15428   MAKE_CANDIDATE=""$MAKE""
15429   DESCRIPTION="user supplied MAKE=$MAKE"
15430   if test "x$MAKE_CANDIDATE" != x; then
15431     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15432 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15433     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15434     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15435     if test "x$IS_GNU_MAKE" = x; then
15436       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15437 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15438     else
15439       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15440       if test "x$IS_MODERN_MAKE" = x; then
15441         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15442 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15443       else
15444         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15445           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15446             MAKE_EXPECTED_ENV='cygwin'
15447           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15448             MAKE_EXPECTED_ENV='msys'
15449           else
15450             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15451           fi
15452           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15453           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15454         else
15455           # Not relevant for non-Windows
15456           IS_MAKE_CORRECT_ENV=true
15457         fi
15458         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15459           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15460 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15461         else
15462           FOUND_MAKE=$MAKE_CANDIDATE
15463 
15464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15465 
15466   # First separate the path from the arguments. This will split at the first
15467   # space.
15468   complete="$FOUND_MAKE"
15469   path="${complete%% *}"
15470   tmp="$complete EOL"
15471   arguments="${tmp#* }"
15472 
15473   # Input might be given as Windows format, start by converting to
15474   # unix format.
15475   new_path=`$CYGPATH -u "$path"`
15476 
15477   # Now try to locate executable using which
15478   new_path=`$WHICH "$new_path" 2> /dev/null`
15479   # bat and cmd files are not always considered executable in cygwin causing which
15480   # to not find them
15481   if test "x$new_path" = x \
15482       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15483       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15484     new_path=`$CYGPATH -u "$path"`
15485   fi
15486   if test "x$new_path" = x; then
15487     # Oops. Which didn't find the executable.
15488     # The splitting of arguments from the executable at a space might have been incorrect,
15489     # since paths with space are more likely in Windows. Give it another try with the whole
15490     # argument.
15491     path="$complete"
15492     arguments="EOL"
15493     new_path=`$CYGPATH -u "$path"`
15494     new_path=`$WHICH "$new_path" 2> /dev/null`
15495     # bat and cmd files are not always considered executable in cygwin causing which
15496     # to not find them
15497     if test "x$new_path" = x \
15498         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15499         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15500       new_path=`$CYGPATH -u "$path"`
15501     fi
15502     if test "x$new_path" = x; then
15503       # It's still not found. Now this is an unrecoverable error.
15504       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15505 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15506       has_space=`$ECHO "$complete" | $GREP " "`
15507       if test "x$has_space" != x; then
15508         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15509 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15510       fi
15511       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15512     fi
15513   fi
15514 
15515   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15516   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15517   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15518   # "foo.exe" is OK but "foo" is an error.
15519   #
15520   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15521   # It is also a way to make sure we got the proper file name for the real test later on.
15522   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15523   if test "x$test_shortpath" = x; then
15524     # Short path failed, file does not exist as specified.
15525     # Try adding .exe or .cmd
15526     if test -f "${new_path}.exe"; then
15527       input_to_shortpath="${new_path}.exe"
15528     elif test -f "${new_path}.cmd"; then
15529       input_to_shortpath="${new_path}.cmd"
15530     else
15531       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15532 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15533       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15534 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15535       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15536     fi
15537   else
15538     input_to_shortpath="$new_path"
15539   fi
15540 
15541   # Call helper function which possibly converts this using DOS-style short mode.
15542   # If so, the updated path is stored in $new_path.
15543   new_path="$input_to_shortpath"
15544 
15545   input_path="$input_to_shortpath"
15546   # Check if we need to convert this using DOS-style short mode. If the path
15547   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15548   # take no chances and rewrite it.
15549   # Note: m4 eats our [], so we need to use [ and ] instead.
15550   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15551   if test "x$has_forbidden_chars" != x; then
15552     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15553     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15554     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15555     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15556       # Going to short mode and back again did indeed matter. Since short mode is
15557       # case insensitive, let's make it lowercase to improve readability.
15558       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15559       # Now convert it back to Unix-style (cygpath)
15560       input_path=`$CYGPATH -u "$shortmode_path"`
15561       new_path="$input_path"
15562     fi
15563   fi
15564 
15565   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15566   if test "x$test_cygdrive_prefix" = x; then
15567     # As a simple fix, exclude /usr/bin since it's not a real path.
15568     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15569       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15570       # a path prefixed by /cygdrive for fixpath to work.
15571       new_path="$CYGWIN_ROOT_PATH$input_path"
15572     fi
15573   fi
15574 
15575   # remove trailing .exe if any
15576   new_path="${new_path/%.exe/}"
15577 
15578   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15579 
15580   # First separate the path from the arguments. This will split at the first
15581   # space.
15582   complete="$FOUND_MAKE"
15583   path="${complete%% *}"
15584   tmp="$complete EOL"
15585   arguments="${tmp#* }"
15586 
15587   # Input might be given as Windows format, start by converting to
15588   # unix format.
15589   new_path="$path"
15590 
15591   windows_path="$new_path"
15592   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15593     unix_path=`$CYGPATH -u "$windows_path"`
15594     new_path="$unix_path"
15595   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15596     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15597     new_path="$unix_path"
15598   fi
15599 
15600 
15601   # Now try to locate executable using which
15602   new_path=`$WHICH "$new_path" 2> /dev/null`
15603 
15604   if test "x$new_path" = x; then
15605     # Oops. Which didn't find the executable.
15606     # The splitting of arguments from the executable at a space might have been incorrect,
15607     # since paths with space are more likely in Windows. Give it another try with the whole
15608     # argument.
15609     path="$complete"
15610     arguments="EOL"
15611     new_path="$path"
15612 
15613   windows_path="$new_path"
15614   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15615     unix_path=`$CYGPATH -u "$windows_path"`
15616     new_path="$unix_path"
15617   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15618     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15619     new_path="$unix_path"
15620   fi
15621 
15622 
15623     new_path=`$WHICH "$new_path" 2> /dev/null`
15624     # bat and cmd files are not always considered executable in MSYS causing which
15625     # to not find them
15626     if test "x$new_path" = x \
15627         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15628         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15629       new_path="$path"
15630 
15631   windows_path="$new_path"
15632   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15633     unix_path=`$CYGPATH -u "$windows_path"`
15634     new_path="$unix_path"
15635   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15636     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15637     new_path="$unix_path"
15638   fi
15639 
15640     fi
15641 
15642     if test "x$new_path" = x; then
15643       # It's still not found. Now this is an unrecoverable error.
15644       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15645 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15646       has_space=`$ECHO "$complete" | $GREP " "`
15647       if test "x$has_space" != x; then
15648         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15649 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15650       fi
15651       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15652     fi
15653   fi
15654 
15655   # Now new_path has a complete unix path to the binary
15656   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15657     # Keep paths in /bin as-is, but remove trailing .exe if any
15658     new_path="${new_path/%.exe/}"
15659     # Do not save /bin paths to all_fixpath_prefixes!
15660   else
15661     # Not in mixed or Windows style, start by that.
15662     new_path=`cmd //c echo $new_path`
15663 
15664   input_path="$new_path"
15665   # Check if we need to convert this using DOS-style short mode. If the path
15666   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15667   # take no chances and rewrite it.
15668   # Note: m4 eats our [], so we need to use [ and ] instead.
15669   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15670   if test "x$has_forbidden_chars" != x; then
15671     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15672     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15673   fi
15674 
15675     # Output is in $new_path
15676 
15677   windows_path="$new_path"
15678   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15679     unix_path=`$CYGPATH -u "$windows_path"`
15680     new_path="$unix_path"
15681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15682     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15683     new_path="$unix_path"
15684   fi
15685 
15686     # remove trailing .exe if any
15687     new_path="${new_path/%.exe/}"
15688 
15689     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15690     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15691   fi
15692 
15693   else
15694     # We're on a posix platform. Hooray! :)
15695     # First separate the path from the arguments. This will split at the first
15696     # space.
15697     complete="$FOUND_MAKE"
15698     path="${complete%% *}"
15699     tmp="$complete EOL"
15700     arguments="${tmp#* }"
15701 
15702     # Cannot rely on the command "which" here since it doesn't always work.
15703     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15704     if test -z "$is_absolute_path"; then
15705       # Path to executable is not absolute. Find it.
15706       IFS_save="$IFS"
15707       IFS=:
15708       for p in $PATH; do
15709         if test -f "$p/$path" && test -x "$p/$path"; then
15710           new_path="$p/$path"
15711           break
15712         fi
15713       done
15714       IFS="$IFS_save"
15715     else
15716       # This is an absolute path, we can use it without further modifications.
15717       new_path="$path"
15718     fi
15719 
15720     if test "x$new_path" = x; then
15721       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15722 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15723       has_space=`$ECHO "$complete" | $GREP " "`
15724       if test "x$has_space" != x; then
15725         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15726 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15727       fi
15728       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15729     fi
15730   fi
15731 
15732   # Now join together the path and the arguments once again
15733   if test "x$arguments" != xEOL; then
15734     new_complete="$new_path ${arguments% *}"
15735   else
15736     new_complete="$new_path"
15737   fi
15738 
15739   if test "x$complete" != "x$new_complete"; then
15740     FOUND_MAKE="$new_complete"
15741     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15742 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15743   fi
15744 
15745         fi
15746       fi
15747     fi
15748   fi
15749 
15750     if test "x$FOUND_MAKE" = x; then
15751       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15752     fi
15753   else
15754     # Try our hardest to locate a correct version of GNU make
15755     for ac_prog in gmake
15756 do
15757   # Extract the first word of "$ac_prog", so it can be a program name with args.
15758 set dummy $ac_prog; ac_word=$2
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15760 $as_echo_n "checking for $ac_word... " >&6; }
15761 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15762   $as_echo_n "(cached) " >&6
15763 else
15764   case $CHECK_GMAKE in
15765   [\\/]* | ?:[\\/]*)
15766   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15767   ;;
15768   *)
15769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15770 for as_dir in $PATH
15771 do
15772   IFS=$as_save_IFS
15773   test -z "$as_dir" && as_dir=.
15774     for ac_exec_ext in '' $ac_executable_extensions; do
15775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15776     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15778     break 2
15779   fi
15780 done
15781   done
15782 IFS=$as_save_IFS
15783 
15784   ;;
15785 esac
15786 fi
15787 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15788 if test -n "$CHECK_GMAKE"; then
15789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15790 $as_echo "$CHECK_GMAKE" >&6; }
15791 else
15792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15793 $as_echo "no" >&6; }
15794 fi
15795 
15796 
15797   test -n "$CHECK_GMAKE" && break
15798 done
15799 
15800 
15801   MAKE_CANDIDATE=""$CHECK_GMAKE""
15802   DESCRIPTION="gmake in PATH"
15803   if test "x$MAKE_CANDIDATE" != x; then
15804     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15805 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15806     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15807     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15808     if test "x$IS_GNU_MAKE" = x; then
15809       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15810 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15811     else
15812       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15813       if test "x$IS_MODERN_MAKE" = x; then
15814         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
15815 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
15816       else
15817         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15818           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15819             MAKE_EXPECTED_ENV='cygwin'
15820           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15821             MAKE_EXPECTED_ENV='msys'
15822           else
15823             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15824           fi
15825           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15826           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15827         else
15828           # Not relevant for non-Windows
15829           IS_MAKE_CORRECT_ENV=true
15830         fi
15831         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15832           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
15833 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
15834         else
15835           FOUND_MAKE=$MAKE_CANDIDATE
15836 
15837   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15838 
15839   # First separate the path from the arguments. This will split at the first
15840   # space.
15841   complete="$FOUND_MAKE"
15842   path="${complete%% *}"
15843   tmp="$complete EOL"
15844   arguments="${tmp#* }"
15845 
15846   # Input might be given as Windows format, start by converting to
15847   # unix format.
15848   new_path=`$CYGPATH -u "$path"`
15849 
15850   # Now try to locate executable using which
15851   new_path=`$WHICH "$new_path" 2> /dev/null`
15852   # bat and cmd files are not always considered executable in cygwin causing which
15853   # to not find them
15854   if test "x$new_path" = x \
15855       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15856       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15857     new_path=`$CYGPATH -u "$path"`
15858   fi
15859   if test "x$new_path" = x; then
15860     # Oops. Which didn't find the executable.
15861     # The splitting of arguments from the executable at a space might have been incorrect,
15862     # since paths with space are more likely in Windows. Give it another try with the whole
15863     # argument.
15864     path="$complete"
15865     arguments="EOL"
15866     new_path=`$CYGPATH -u "$path"`
15867     new_path=`$WHICH "$new_path" 2> /dev/null`
15868     # bat and cmd files are not always considered executable in cygwin causing which
15869     # to not find them
15870     if test "x$new_path" = x \
15871         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15872         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15873       new_path=`$CYGPATH -u "$path"`
15874     fi
15875     if test "x$new_path" = x; then
15876       # It's still not found. Now this is an unrecoverable error.
15877       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15878 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15879       has_space=`$ECHO "$complete" | $GREP " "`
15880       if test "x$has_space" != x; then
15881         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15882 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15883       fi
15884       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15885     fi
15886   fi
15887 
15888   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15889   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15890   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15891   # "foo.exe" is OK but "foo" is an error.
15892   #
15893   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15894   # It is also a way to make sure we got the proper file name for the real test later on.
15895   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15896   if test "x$test_shortpath" = x; then
15897     # Short path failed, file does not exist as specified.
15898     # Try adding .exe or .cmd
15899     if test -f "${new_path}.exe"; then
15900       input_to_shortpath="${new_path}.exe"
15901     elif test -f "${new_path}.cmd"; then
15902       input_to_shortpath="${new_path}.cmd"
15903     else
15904       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15905 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15906       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15907 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15908       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15909     fi
15910   else
15911     input_to_shortpath="$new_path"
15912   fi
15913 
15914   # Call helper function which possibly converts this using DOS-style short mode.
15915   # If so, the updated path is stored in $new_path.
15916   new_path="$input_to_shortpath"
15917 
15918   input_path="$input_to_shortpath"
15919   # Check if we need to convert this using DOS-style short mode. If the path
15920   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15921   # take no chances and rewrite it.
15922   # Note: m4 eats our [], so we need to use [ and ] instead.
15923   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15924   if test "x$has_forbidden_chars" != x; then
15925     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15926     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15927     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15928     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15929       # Going to short mode and back again did indeed matter. Since short mode is
15930       # case insensitive, let's make it lowercase to improve readability.
15931       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15932       # Now convert it back to Unix-style (cygpath)
15933       input_path=`$CYGPATH -u "$shortmode_path"`
15934       new_path="$input_path"
15935     fi
15936   fi
15937 
15938   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15939   if test "x$test_cygdrive_prefix" = x; then
15940     # As a simple fix, exclude /usr/bin since it's not a real path.
15941     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15942       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15943       # a path prefixed by /cygdrive for fixpath to work.
15944       new_path="$CYGWIN_ROOT_PATH$input_path"
15945     fi
15946   fi
15947 
15948   # remove trailing .exe if any
15949   new_path="${new_path/%.exe/}"
15950 
15951   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15952 
15953   # First separate the path from the arguments. This will split at the first
15954   # space.
15955   complete="$FOUND_MAKE"
15956   path="${complete%% *}"
15957   tmp="$complete EOL"
15958   arguments="${tmp#* }"
15959 
15960   # Input might be given as Windows format, start by converting to
15961   # unix format.
15962   new_path="$path"
15963 
15964   windows_path="$new_path"
15965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15966     unix_path=`$CYGPATH -u "$windows_path"`
15967     new_path="$unix_path"
15968   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15969     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15970     new_path="$unix_path"
15971   fi
15972 
15973 
15974   # Now try to locate executable using which
15975   new_path=`$WHICH "$new_path" 2> /dev/null`
15976 
15977   if test "x$new_path" = x; then
15978     # Oops. Which didn't find the executable.
15979     # The splitting of arguments from the executable at a space might have been incorrect,
15980     # since paths with space are more likely in Windows. Give it another try with the whole
15981     # argument.
15982     path="$complete"
15983     arguments="EOL"
15984     new_path="$path"
15985 
15986   windows_path="$new_path"
15987   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15988     unix_path=`$CYGPATH -u "$windows_path"`
15989     new_path="$unix_path"
15990   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15991     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15992     new_path="$unix_path"
15993   fi
15994 
15995 
15996     new_path=`$WHICH "$new_path" 2> /dev/null`
15997     # bat and cmd files are not always considered executable in MSYS causing which
15998     # to not find them
15999     if test "x$new_path" = x \
16000         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16001         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16002       new_path="$path"
16003 
16004   windows_path="$new_path"
16005   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16006     unix_path=`$CYGPATH -u "$windows_path"`
16007     new_path="$unix_path"
16008   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16009     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16010     new_path="$unix_path"
16011   fi
16012 
16013     fi
16014 
16015     if test "x$new_path" = x; then
16016       # It's still not found. Now this is an unrecoverable error.
16017       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16018 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16019       has_space=`$ECHO "$complete" | $GREP " "`
16020       if test "x$has_space" != x; then
16021         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16023       fi
16024       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16025     fi
16026   fi
16027 
16028   # Now new_path has a complete unix path to the binary
16029   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16030     # Keep paths in /bin as-is, but remove trailing .exe if any
16031     new_path="${new_path/%.exe/}"
16032     # Do not save /bin paths to all_fixpath_prefixes!
16033   else
16034     # Not in mixed or Windows style, start by that.
16035     new_path=`cmd //c echo $new_path`
16036 
16037   input_path="$new_path"
16038   # Check if we need to convert this using DOS-style short mode. If the path
16039   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16040   # take no chances and rewrite it.
16041   # Note: m4 eats our [], so we need to use [ and ] instead.
16042   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16043   if test "x$has_forbidden_chars" != x; then
16044     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16045     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16046   fi
16047 
16048     # Output is in $new_path
16049 
16050   windows_path="$new_path"
16051   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16052     unix_path=`$CYGPATH -u "$windows_path"`
16053     new_path="$unix_path"
16054   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16055     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16056     new_path="$unix_path"
16057   fi
16058 
16059     # remove trailing .exe if any
16060     new_path="${new_path/%.exe/}"
16061 
16062     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16063     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16064   fi
16065 
16066   else
16067     # We're on a posix platform. Hooray! :)
16068     # First separate the path from the arguments. This will split at the first
16069     # space.
16070     complete="$FOUND_MAKE"
16071     path="${complete%% *}"
16072     tmp="$complete EOL"
16073     arguments="${tmp#* }"
16074 
16075     # Cannot rely on the command "which" here since it doesn't always work.
16076     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16077     if test -z "$is_absolute_path"; then
16078       # Path to executable is not absolute. Find it.
16079       IFS_save="$IFS"
16080       IFS=:
16081       for p in $PATH; do
16082         if test -f "$p/$path" && test -x "$p/$path"; then
16083           new_path="$p/$path"
16084           break
16085         fi
16086       done
16087       IFS="$IFS_save"
16088     else
16089       # This is an absolute path, we can use it without further modifications.
16090       new_path="$path"
16091     fi
16092 
16093     if test "x$new_path" = x; then
16094       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16095 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16096       has_space=`$ECHO "$complete" | $GREP " "`
16097       if test "x$has_space" != x; then
16098         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16100       fi
16101       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16102     fi
16103   fi
16104 
16105   # Now join together the path and the arguments once again
16106   if test "x$arguments" != xEOL; then
16107     new_complete="$new_path ${arguments% *}"
16108   else
16109     new_complete="$new_path"
16110   fi
16111 
16112   if test "x$complete" != "x$new_complete"; then
16113     FOUND_MAKE="$new_complete"
16114     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16115 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16116   fi
16117 
16118         fi
16119       fi
16120     fi
16121   fi
16122 
16123 
16124     if test "x$FOUND_MAKE" = x; then
16125       for ac_prog in make
16126 do
16127   # Extract the first word of "$ac_prog", so it can be a program name with args.
16128 set dummy $ac_prog; ac_word=$2
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16130 $as_echo_n "checking for $ac_word... " >&6; }
16131 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16132   $as_echo_n "(cached) " >&6
16133 else
16134   case $CHECK_MAKE in
16135   [\\/]* | ?:[\\/]*)
16136   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16137   ;;
16138   *)
16139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16140 for as_dir in $PATH
16141 do
16142   IFS=$as_save_IFS
16143   test -z "$as_dir" && as_dir=.
16144     for ac_exec_ext in '' $ac_executable_extensions; do
16145   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16146     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16148     break 2
16149   fi
16150 done
16151   done
16152 IFS=$as_save_IFS
16153 
16154   ;;
16155 esac
16156 fi
16157 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16158 if test -n "$CHECK_MAKE"; then
16159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16160 $as_echo "$CHECK_MAKE" >&6; }
16161 else
16162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 fi
16165 
16166 
16167   test -n "$CHECK_MAKE" && break
16168 done
16169 
16170 
16171   MAKE_CANDIDATE=""$CHECK_MAKE""
16172   DESCRIPTION="make in PATH"
16173   if test "x$MAKE_CANDIDATE" != x; then
16174     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16175 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16176     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16177     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16178     if test "x$IS_GNU_MAKE" = x; then
16179       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16180 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16181     else
16182       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16183       if test "x$IS_MODERN_MAKE" = x; then
16184         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16185 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16186       else
16187         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16188           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16189             MAKE_EXPECTED_ENV='cygwin'
16190           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16191             MAKE_EXPECTED_ENV='msys'
16192           else
16193             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16194           fi
16195           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16196           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16197         else
16198           # Not relevant for non-Windows
16199           IS_MAKE_CORRECT_ENV=true
16200         fi
16201         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16202           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16203 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16204         else
16205           FOUND_MAKE=$MAKE_CANDIDATE
16206 
16207   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16208 
16209   # First separate the path from the arguments. This will split at the first
16210   # space.
16211   complete="$FOUND_MAKE"
16212   path="${complete%% *}"
16213   tmp="$complete EOL"
16214   arguments="${tmp#* }"
16215 
16216   # Input might be given as Windows format, start by converting to
16217   # unix format.
16218   new_path=`$CYGPATH -u "$path"`
16219 
16220   # Now try to locate executable using which
16221   new_path=`$WHICH "$new_path" 2> /dev/null`
16222   # bat and cmd files are not always considered executable in cygwin causing which
16223   # to not find them
16224   if test "x$new_path" = x \
16225       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16226       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16227     new_path=`$CYGPATH -u "$path"`
16228   fi
16229   if test "x$new_path" = x; then
16230     # Oops. Which didn't find the executable.
16231     # The splitting of arguments from the executable at a space might have been incorrect,
16232     # since paths with space are more likely in Windows. Give it another try with the whole
16233     # argument.
16234     path="$complete"
16235     arguments="EOL"
16236     new_path=`$CYGPATH -u "$path"`
16237     new_path=`$WHICH "$new_path" 2> /dev/null`
16238     # bat and cmd files are not always considered executable in cygwin causing which
16239     # to not find them
16240     if test "x$new_path" = x \
16241         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16242         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16243       new_path=`$CYGPATH -u "$path"`
16244     fi
16245     if test "x$new_path" = x; then
16246       # It's still not found. Now this is an unrecoverable error.
16247       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16248 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16249       has_space=`$ECHO "$complete" | $GREP " "`
16250       if test "x$has_space" != x; then
16251         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16252 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16253       fi
16254       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16255     fi
16256   fi
16257 
16258   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16259   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16260   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16261   # "foo.exe" is OK but "foo" is an error.
16262   #
16263   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16264   # It is also a way to make sure we got the proper file name for the real test later on.
16265   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16266   if test "x$test_shortpath" = x; then
16267     # Short path failed, file does not exist as specified.
16268     # Try adding .exe or .cmd
16269     if test -f "${new_path}.exe"; then
16270       input_to_shortpath="${new_path}.exe"
16271     elif test -f "${new_path}.cmd"; then
16272       input_to_shortpath="${new_path}.cmd"
16273     else
16274       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16275 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16276       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16277 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16278       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16279     fi
16280   else
16281     input_to_shortpath="$new_path"
16282   fi
16283 
16284   # Call helper function which possibly converts this using DOS-style short mode.
16285   # If so, the updated path is stored in $new_path.
16286   new_path="$input_to_shortpath"
16287 
16288   input_path="$input_to_shortpath"
16289   # Check if we need to convert this using DOS-style short mode. If the path
16290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16291   # take no chances and rewrite it.
16292   # Note: m4 eats our [], so we need to use [ and ] instead.
16293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16294   if test "x$has_forbidden_chars" != x; then
16295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16296     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16297     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16298     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16299       # Going to short mode and back again did indeed matter. Since short mode is
16300       # case insensitive, let's make it lowercase to improve readability.
16301       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16302       # Now convert it back to Unix-style (cygpath)
16303       input_path=`$CYGPATH -u "$shortmode_path"`
16304       new_path="$input_path"
16305     fi
16306   fi
16307 
16308   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16309   if test "x$test_cygdrive_prefix" = x; then
16310     # As a simple fix, exclude /usr/bin since it's not a real path.
16311     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16312       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16313       # a path prefixed by /cygdrive for fixpath to work.
16314       new_path="$CYGWIN_ROOT_PATH$input_path"
16315     fi
16316   fi
16317 
16318   # remove trailing .exe if any
16319   new_path="${new_path/%.exe/}"
16320 
16321   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16322 
16323   # First separate the path from the arguments. This will split at the first
16324   # space.
16325   complete="$FOUND_MAKE"
16326   path="${complete%% *}"
16327   tmp="$complete EOL"
16328   arguments="${tmp#* }"
16329 
16330   # Input might be given as Windows format, start by converting to
16331   # unix format.
16332   new_path="$path"
16333 
16334   windows_path="$new_path"
16335   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16336     unix_path=`$CYGPATH -u "$windows_path"`
16337     new_path="$unix_path"
16338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16339     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16340     new_path="$unix_path"
16341   fi
16342 
16343 
16344   # Now try to locate executable using which
16345   new_path=`$WHICH "$new_path" 2> /dev/null`
16346 
16347   if test "x$new_path" = x; then
16348     # Oops. Which didn't find the executable.
16349     # The splitting of arguments from the executable at a space might have been incorrect,
16350     # since paths with space are more likely in Windows. Give it another try with the whole
16351     # argument.
16352     path="$complete"
16353     arguments="EOL"
16354     new_path="$path"
16355 
16356   windows_path="$new_path"
16357   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16358     unix_path=`$CYGPATH -u "$windows_path"`
16359     new_path="$unix_path"
16360   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16361     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16362     new_path="$unix_path"
16363   fi
16364 
16365 
16366     new_path=`$WHICH "$new_path" 2> /dev/null`
16367     # bat and cmd files are not always considered executable in MSYS causing which
16368     # to not find them
16369     if test "x$new_path" = x \
16370         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16371         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16372       new_path="$path"
16373 
16374   windows_path="$new_path"
16375   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16376     unix_path=`$CYGPATH -u "$windows_path"`
16377     new_path="$unix_path"
16378   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16379     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16380     new_path="$unix_path"
16381   fi
16382 
16383     fi
16384 
16385     if test "x$new_path" = x; then
16386       # It's still not found. Now this is an unrecoverable error.
16387       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16388 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16389       has_space=`$ECHO "$complete" | $GREP " "`
16390       if test "x$has_space" != x; then
16391         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16393       fi
16394       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16395     fi
16396   fi
16397 
16398   # Now new_path has a complete unix path to the binary
16399   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16400     # Keep paths in /bin as-is, but remove trailing .exe if any
16401     new_path="${new_path/%.exe/}"
16402     # Do not save /bin paths to all_fixpath_prefixes!
16403   else
16404     # Not in mixed or Windows style, start by that.
16405     new_path=`cmd //c echo $new_path`
16406 
16407   input_path="$new_path"
16408   # Check if we need to convert this using DOS-style short mode. If the path
16409   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16410   # take no chances and rewrite it.
16411   # Note: m4 eats our [], so we need to use [ and ] instead.
16412   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16413   if test "x$has_forbidden_chars" != x; then
16414     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16415     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16416   fi
16417 
16418     # Output is in $new_path
16419 
16420   windows_path="$new_path"
16421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16422     unix_path=`$CYGPATH -u "$windows_path"`
16423     new_path="$unix_path"
16424   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16425     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16426     new_path="$unix_path"
16427   fi
16428 
16429     # remove trailing .exe if any
16430     new_path="${new_path/%.exe/}"
16431 
16432     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16433     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16434   fi
16435 
16436   else
16437     # We're on a posix platform. Hooray! :)
16438     # First separate the path from the arguments. This will split at the first
16439     # space.
16440     complete="$FOUND_MAKE"
16441     path="${complete%% *}"
16442     tmp="$complete EOL"
16443     arguments="${tmp#* }"
16444 
16445     # Cannot rely on the command "which" here since it doesn't always work.
16446     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16447     if test -z "$is_absolute_path"; then
16448       # Path to executable is not absolute. Find it.
16449       IFS_save="$IFS"
16450       IFS=:
16451       for p in $PATH; do
16452         if test -f "$p/$path" && test -x "$p/$path"; then
16453           new_path="$p/$path"
16454           break
16455         fi
16456       done
16457       IFS="$IFS_save"
16458     else
16459       # This is an absolute path, we can use it without further modifications.
16460       new_path="$path"
16461     fi
16462 
16463     if test "x$new_path" = x; then
16464       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16465 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16466       has_space=`$ECHO "$complete" | $GREP " "`
16467       if test "x$has_space" != x; then
16468         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16469 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16470       fi
16471       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16472     fi
16473   fi
16474 
16475   # Now join together the path and the arguments once again
16476   if test "x$arguments" != xEOL; then
16477     new_complete="$new_path ${arguments% *}"
16478   else
16479     new_complete="$new_path"
16480   fi
16481 
16482   if test "x$complete" != "x$new_complete"; then
16483     FOUND_MAKE="$new_complete"
16484     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16485 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16486   fi
16487 
16488         fi
16489       fi
16490     fi
16491   fi
16492 
16493     fi
16494 
16495     if test "x$FOUND_MAKE" = x; then
16496       if test "x$TOOLCHAIN_PATH" != x; then
16497         # We have a toolchain path, check that as well before giving up.
16498         OLD_PATH=$PATH
16499         PATH=$TOOLCHAIN_PATH:$PATH
16500         for ac_prog in gmake
16501 do
16502   # Extract the first word of "$ac_prog", so it can be a program name with args.
16503 set dummy $ac_prog; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16505 $as_echo_n "checking for $ac_word... " >&6; }
16506 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16507   $as_echo_n "(cached) " >&6
16508 else
16509   case $CHECK_TOOLSDIR_GMAKE in
16510   [\\/]* | ?:[\\/]*)
16511   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16512   ;;
16513   *)
16514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16516 do
16517   IFS=$as_save_IFS
16518   test -z "$as_dir" && as_dir=.
16519     for ac_exec_ext in '' $ac_executable_extensions; do
16520   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16522     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16523     break 2
16524   fi
16525 done
16526   done
16527 IFS=$as_save_IFS
16528 
16529   ;;
16530 esac
16531 fi
16532 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16533 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16535 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16536 else
16537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16538 $as_echo "no" >&6; }
16539 fi
16540 
16541 
16542   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16543 done
16544 
16545 
16546   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16547   DESCRIPTION="gmake in tools-dir"
16548   if test "x$MAKE_CANDIDATE" != x; then
16549     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16550 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16551     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16552     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16553     if test "x$IS_GNU_MAKE" = x; then
16554       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16555 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16556     else
16557       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16558       if test "x$IS_MODERN_MAKE" = x; then
16559         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16560 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16561       else
16562         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16563           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16564             MAKE_EXPECTED_ENV='cygwin'
16565           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16566             MAKE_EXPECTED_ENV='msys'
16567           else
16568             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16569           fi
16570           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16571           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16572         else
16573           # Not relevant for non-Windows
16574           IS_MAKE_CORRECT_ENV=true
16575         fi
16576         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16577           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16578 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16579         else
16580           FOUND_MAKE=$MAKE_CANDIDATE
16581 
16582   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16583 
16584   # First separate the path from the arguments. This will split at the first
16585   # space.
16586   complete="$FOUND_MAKE"
16587   path="${complete%% *}"
16588   tmp="$complete EOL"
16589   arguments="${tmp#* }"
16590 
16591   # Input might be given as Windows format, start by converting to
16592   # unix format.
16593   new_path=`$CYGPATH -u "$path"`
16594 
16595   # Now try to locate executable using which
16596   new_path=`$WHICH "$new_path" 2> /dev/null`
16597   # bat and cmd files are not always considered executable in cygwin causing which
16598   # to not find them
16599   if test "x$new_path" = x \
16600       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16601       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16602     new_path=`$CYGPATH -u "$path"`
16603   fi
16604   if test "x$new_path" = x; then
16605     # Oops. Which didn't find the executable.
16606     # The splitting of arguments from the executable at a space might have been incorrect,
16607     # since paths with space are more likely in Windows. Give it another try with the whole
16608     # argument.
16609     path="$complete"
16610     arguments="EOL"
16611     new_path=`$CYGPATH -u "$path"`
16612     new_path=`$WHICH "$new_path" 2> /dev/null`
16613     # bat and cmd files are not always considered executable in cygwin causing which
16614     # to not find them
16615     if test "x$new_path" = x \
16616         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16617         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16618       new_path=`$CYGPATH -u "$path"`
16619     fi
16620     if test "x$new_path" = x; then
16621       # It's still not found. Now this is an unrecoverable error.
16622       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16623 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16624       has_space=`$ECHO "$complete" | $GREP " "`
16625       if test "x$has_space" != x; then
16626         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16628       fi
16629       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16630     fi
16631   fi
16632 
16633   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16634   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16635   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16636   # "foo.exe" is OK but "foo" is an error.
16637   #
16638   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16639   # It is also a way to make sure we got the proper file name for the real test later on.
16640   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16641   if test "x$test_shortpath" = x; then
16642     # Short path failed, file does not exist as specified.
16643     # Try adding .exe or .cmd
16644     if test -f "${new_path}.exe"; then
16645       input_to_shortpath="${new_path}.exe"
16646     elif test -f "${new_path}.cmd"; then
16647       input_to_shortpath="${new_path}.cmd"
16648     else
16649       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16650 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16651       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16652 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16653       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16654     fi
16655   else
16656     input_to_shortpath="$new_path"
16657   fi
16658 
16659   # Call helper function which possibly converts this using DOS-style short mode.
16660   # If so, the updated path is stored in $new_path.
16661   new_path="$input_to_shortpath"
16662 
16663   input_path="$input_to_shortpath"
16664   # Check if we need to convert this using DOS-style short mode. If the path
16665   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16666   # take no chances and rewrite it.
16667   # Note: m4 eats our [], so we need to use [ and ] instead.
16668   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16669   if test "x$has_forbidden_chars" != x; then
16670     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16671     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16672     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16673     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16674       # Going to short mode and back again did indeed matter. Since short mode is
16675       # case insensitive, let's make it lowercase to improve readability.
16676       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16677       # Now convert it back to Unix-style (cygpath)
16678       input_path=`$CYGPATH -u "$shortmode_path"`
16679       new_path="$input_path"
16680     fi
16681   fi
16682 
16683   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16684   if test "x$test_cygdrive_prefix" = x; then
16685     # As a simple fix, exclude /usr/bin since it's not a real path.
16686     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16687       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16688       # a path prefixed by /cygdrive for fixpath to work.
16689       new_path="$CYGWIN_ROOT_PATH$input_path"
16690     fi
16691   fi
16692 
16693   # remove trailing .exe if any
16694   new_path="${new_path/%.exe/}"
16695 
16696   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16697 
16698   # First separate the path from the arguments. This will split at the first
16699   # space.
16700   complete="$FOUND_MAKE"
16701   path="${complete%% *}"
16702   tmp="$complete EOL"
16703   arguments="${tmp#* }"
16704 
16705   # Input might be given as Windows format, start by converting to
16706   # unix format.
16707   new_path="$path"
16708 
16709   windows_path="$new_path"
16710   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16711     unix_path=`$CYGPATH -u "$windows_path"`
16712     new_path="$unix_path"
16713   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16714     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16715     new_path="$unix_path"
16716   fi
16717 
16718 
16719   # Now try to locate executable using which
16720   new_path=`$WHICH "$new_path" 2> /dev/null`
16721 
16722   if test "x$new_path" = x; then
16723     # Oops. Which didn't find the executable.
16724     # The splitting of arguments from the executable at a space might have been incorrect,
16725     # since paths with space are more likely in Windows. Give it another try with the whole
16726     # argument.
16727     path="$complete"
16728     arguments="EOL"
16729     new_path="$path"
16730 
16731   windows_path="$new_path"
16732   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16733     unix_path=`$CYGPATH -u "$windows_path"`
16734     new_path="$unix_path"
16735   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16736     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16737     new_path="$unix_path"
16738   fi
16739 
16740 
16741     new_path=`$WHICH "$new_path" 2> /dev/null`
16742     # bat and cmd files are not always considered executable in MSYS causing which
16743     # to not find them
16744     if test "x$new_path" = x \
16745         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16746         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16747       new_path="$path"
16748 
16749   windows_path="$new_path"
16750   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16751     unix_path=`$CYGPATH -u "$windows_path"`
16752     new_path="$unix_path"
16753   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16754     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16755     new_path="$unix_path"
16756   fi
16757 
16758     fi
16759 
16760     if test "x$new_path" = x; then
16761       # It's still not found. Now this is an unrecoverable error.
16762       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16763 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16764       has_space=`$ECHO "$complete" | $GREP " "`
16765       if test "x$has_space" != x; then
16766         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16767 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16768       fi
16769       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16770     fi
16771   fi
16772 
16773   # Now new_path has a complete unix path to the binary
16774   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16775     # Keep paths in /bin as-is, but remove trailing .exe if any
16776     new_path="${new_path/%.exe/}"
16777     # Do not save /bin paths to all_fixpath_prefixes!
16778   else
16779     # Not in mixed or Windows style, start by that.
16780     new_path=`cmd //c echo $new_path`
16781 
16782   input_path="$new_path"
16783   # Check if we need to convert this using DOS-style short mode. If the path
16784   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16785   # take no chances and rewrite it.
16786   # Note: m4 eats our [], so we need to use [ and ] instead.
16787   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16788   if test "x$has_forbidden_chars" != x; then
16789     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16790     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16791   fi
16792 
16793     # Output is in $new_path
16794 
16795   windows_path="$new_path"
16796   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16797     unix_path=`$CYGPATH -u "$windows_path"`
16798     new_path="$unix_path"
16799   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16800     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16801     new_path="$unix_path"
16802   fi
16803 
16804     # remove trailing .exe if any
16805     new_path="${new_path/%.exe/}"
16806 
16807     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16808     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16809   fi
16810 
16811   else
16812     # We're on a posix platform. Hooray! :)
16813     # First separate the path from the arguments. This will split at the first
16814     # space.
16815     complete="$FOUND_MAKE"
16816     path="${complete%% *}"
16817     tmp="$complete EOL"
16818     arguments="${tmp#* }"
16819 
16820     # Cannot rely on the command "which" here since it doesn't always work.
16821     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16822     if test -z "$is_absolute_path"; then
16823       # Path to executable is not absolute. Find it.
16824       IFS_save="$IFS"
16825       IFS=:
16826       for p in $PATH; do
16827         if test -f "$p/$path" && test -x "$p/$path"; then
16828           new_path="$p/$path"
16829           break
16830         fi
16831       done
16832       IFS="$IFS_save"
16833     else
16834       # This is an absolute path, we can use it without further modifications.
16835       new_path="$path"
16836     fi
16837 
16838     if test "x$new_path" = x; then
16839       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16840 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16841       has_space=`$ECHO "$complete" | $GREP " "`
16842       if test "x$has_space" != x; then
16843         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16844 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16845       fi
16846       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16847     fi
16848   fi
16849 
16850   # Now join together the path and the arguments once again
16851   if test "x$arguments" != xEOL; then
16852     new_complete="$new_path ${arguments% *}"
16853   else
16854     new_complete="$new_path"
16855   fi
16856 
16857   if test "x$complete" != "x$new_complete"; then
16858     FOUND_MAKE="$new_complete"
16859     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16860 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16861   fi
16862 
16863         fi
16864       fi
16865     fi
16866   fi
16867 
16868         if test "x$FOUND_MAKE" = x; then
16869           for ac_prog in make
16870 do
16871   # Extract the first word of "$ac_prog", so it can be a program name with args.
16872 set dummy $ac_prog; ac_word=$2
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16874 $as_echo_n "checking for $ac_word... " >&6; }
16875 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16876   $as_echo_n "(cached) " >&6
16877 else
16878   case $CHECK_TOOLSDIR_MAKE in
16879   [\\/]* | ?:[\\/]*)
16880   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16881   ;;
16882   *)
16883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16884 for as_dir in $PATH
16885 do
16886   IFS=$as_save_IFS
16887   test -z "$as_dir" && as_dir=.
16888     for ac_exec_ext in '' $ac_executable_extensions; do
16889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16890     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16892     break 2
16893   fi
16894 done
16895   done
16896 IFS=$as_save_IFS
16897 
16898   ;;
16899 esac
16900 fi
16901 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16902 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16904 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16905 else
16906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16907 $as_echo "no" >&6; }
16908 fi
16909 
16910 
16911   test -n "$CHECK_TOOLSDIR_MAKE" && break
16912 done
16913 
16914 
16915   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16916   DESCRIPTION="make in tools-dir"
16917   if test "x$MAKE_CANDIDATE" != x; then
16918     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16919 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16920     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16921     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16922     if test "x$IS_GNU_MAKE" = x; then
16923       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16924 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16925     else
16926       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16927       if test "x$IS_MODERN_MAKE" = x; then
16928         { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5
16929 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;}
16930       else
16931         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16932           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16933             MAKE_EXPECTED_ENV='cygwin'
16934           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16935             MAKE_EXPECTED_ENV='msys'
16936           else
16937             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16938           fi
16939           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16940           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16941         else
16942           # Not relevant for non-Windows
16943           IS_MAKE_CORRECT_ENV=true
16944         fi
16945         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16946           { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&5
16947 $as_echo "$as_me: Found GNU make version $MAKE_VERSION_STRING at $MAKE_CANDIDATE, but it is not for $MAKE_EXPECTED_ENV (it says: $MAKE_BUILT_FOR). Ignoring." >&6;}
16948         else
16949           FOUND_MAKE=$MAKE_CANDIDATE
16950 
16951   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16952 
16953   # First separate the path from the arguments. This will split at the first
16954   # space.
16955   complete="$FOUND_MAKE"
16956   path="${complete%% *}"
16957   tmp="$complete EOL"
16958   arguments="${tmp#* }"
16959 
16960   # Input might be given as Windows format, start by converting to
16961   # unix format.
16962   new_path=`$CYGPATH -u "$path"`
16963 
16964   # Now try to locate executable using which
16965   new_path=`$WHICH "$new_path" 2> /dev/null`
16966   # bat and cmd files are not always considered executable in cygwin causing which
16967   # to not find them
16968   if test "x$new_path" = x \
16969       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16970       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16971     new_path=`$CYGPATH -u "$path"`
16972   fi
16973   if test "x$new_path" = x; then
16974     # Oops. Which didn't find the executable.
16975     # The splitting of arguments from the executable at a space might have been incorrect,
16976     # since paths with space are more likely in Windows. Give it another try with the whole
16977     # argument.
16978     path="$complete"
16979     arguments="EOL"
16980     new_path=`$CYGPATH -u "$path"`
16981     new_path=`$WHICH "$new_path" 2> /dev/null`
16982     # bat and cmd files are not always considered executable in cygwin causing which
16983     # to not find them
16984     if test "x$new_path" = x \
16985         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16986         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16987       new_path=`$CYGPATH -u "$path"`
16988     fi
16989     if test "x$new_path" = x; then
16990       # It's still not found. Now this is an unrecoverable error.
16991       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16992 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16993       has_space=`$ECHO "$complete" | $GREP " "`
16994       if test "x$has_space" != x; then
16995         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16996 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16997       fi
16998       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16999     fi
17000   fi
17001 
17002   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
17003   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
17004   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
17005   # "foo.exe" is OK but "foo" is an error.
17006   #
17007   # This test is therefore slightly more accurate than "test -f" to check for file presence.
17008   # It is also a way to make sure we got the proper file name for the real test later on.
17009   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
17010   if test "x$test_shortpath" = x; then
17011     # Short path failed, file does not exist as specified.
17012     # Try adding .exe or .cmd
17013     if test -f "${new_path}.exe"; then
17014       input_to_shortpath="${new_path}.exe"
17015     elif test -f "${new_path}.cmd"; then
17016       input_to_shortpath="${new_path}.cmd"
17017     else
17018       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17019 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17020       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17021 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17022       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17023     fi
17024   else
17025     input_to_shortpath="$new_path"
17026   fi
17027 
17028   # Call helper function which possibly converts this using DOS-style short mode.
17029   # If so, the updated path is stored in $new_path.
17030   new_path="$input_to_shortpath"
17031 
17032   input_path="$input_to_shortpath"
17033   # Check if we need to convert this using DOS-style short mode. If the path
17034   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17035   # take no chances and rewrite it.
17036   # Note: m4 eats our [], so we need to use [ and ] instead.
17037   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17038   if test "x$has_forbidden_chars" != x; then
17039     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17040     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17041     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17042     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17043       # Going to short mode and back again did indeed matter. Since short mode is
17044       # case insensitive, let's make it lowercase to improve readability.
17045       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17046       # Now convert it back to Unix-style (cygpath)
17047       input_path=`$CYGPATH -u "$shortmode_path"`
17048       new_path="$input_path"
17049     fi
17050   fi
17051 
17052   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17053   if test "x$test_cygdrive_prefix" = x; then
17054     # As a simple fix, exclude /usr/bin since it's not a real path.
17055     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17056       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17057       # a path prefixed by /cygdrive for fixpath to work.
17058       new_path="$CYGWIN_ROOT_PATH$input_path"
17059     fi
17060   fi
17061 
17062   # remove trailing .exe if any
17063   new_path="${new_path/%.exe/}"
17064 
17065   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17066 
17067   # First separate the path from the arguments. This will split at the first
17068   # space.
17069   complete="$FOUND_MAKE"
17070   path="${complete%% *}"
17071   tmp="$complete EOL"
17072   arguments="${tmp#* }"
17073 
17074   # Input might be given as Windows format, start by converting to
17075   # unix format.
17076   new_path="$path"
17077 
17078   windows_path="$new_path"
17079   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17080     unix_path=`$CYGPATH -u "$windows_path"`
17081     new_path="$unix_path"
17082   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17083     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17084     new_path="$unix_path"
17085   fi
17086 
17087 
17088   # Now try to locate executable using which
17089   new_path=`$WHICH "$new_path" 2> /dev/null`
17090 
17091   if test "x$new_path" = x; then
17092     # Oops. Which didn't find the executable.
17093     # The splitting of arguments from the executable at a space might have been incorrect,
17094     # since paths with space are more likely in Windows. Give it another try with the whole
17095     # argument.
17096     path="$complete"
17097     arguments="EOL"
17098     new_path="$path"
17099 
17100   windows_path="$new_path"
17101   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17102     unix_path=`$CYGPATH -u "$windows_path"`
17103     new_path="$unix_path"
17104   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17105     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17106     new_path="$unix_path"
17107   fi
17108 
17109 
17110     new_path=`$WHICH "$new_path" 2> /dev/null`
17111     # bat and cmd files are not always considered executable in MSYS causing which
17112     # to not find them
17113     if test "x$new_path" = x \
17114         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17115         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17116       new_path="$path"
17117 
17118   windows_path="$new_path"
17119   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17120     unix_path=`$CYGPATH -u "$windows_path"`
17121     new_path="$unix_path"
17122   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17123     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17124     new_path="$unix_path"
17125   fi
17126 
17127     fi
17128 
17129     if test "x$new_path" = x; then
17130       # It's still not found. Now this is an unrecoverable error.
17131       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17132 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17133       has_space=`$ECHO "$complete" | $GREP " "`
17134       if test "x$has_space" != x; then
17135         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17136 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17137       fi
17138       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17139     fi
17140   fi
17141 
17142   # Now new_path has a complete unix path to the binary
17143   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17144     # Keep paths in /bin as-is, but remove trailing .exe if any
17145     new_path="${new_path/%.exe/}"
17146     # Do not save /bin paths to all_fixpath_prefixes!
17147   else
17148     # Not in mixed or Windows style, start by that.
17149     new_path=`cmd //c echo $new_path`
17150 
17151   input_path="$new_path"
17152   # Check if we need to convert this using DOS-style short mode. If the path
17153   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17154   # take no chances and rewrite it.
17155   # Note: m4 eats our [], so we need to use [ and ] instead.
17156   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17157   if test "x$has_forbidden_chars" != x; then
17158     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17159     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17160   fi
17161 
17162     # Output is in $new_path
17163 
17164   windows_path="$new_path"
17165   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17166     unix_path=`$CYGPATH -u "$windows_path"`
17167     new_path="$unix_path"
17168   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17169     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17170     new_path="$unix_path"
17171   fi
17172 
17173     # remove trailing .exe if any
17174     new_path="${new_path/%.exe/}"
17175 
17176     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17177     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17178   fi
17179 
17180   else
17181     # We're on a posix platform. Hooray! :)
17182     # First separate the path from the arguments. This will split at the first
17183     # space.
17184     complete="$FOUND_MAKE"
17185     path="${complete%% *}"
17186     tmp="$complete EOL"
17187     arguments="${tmp#* }"
17188 
17189     # Cannot rely on the command "which" here since it doesn't always work.
17190     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17191     if test -z "$is_absolute_path"; then
17192       # Path to executable is not absolute. Find it.
17193       IFS_save="$IFS"
17194       IFS=:
17195       for p in $PATH; do
17196         if test -f "$p/$path" && test -x "$p/$path"; then
17197           new_path="$p/$path"
17198           break
17199         fi
17200       done
17201       IFS="$IFS_save"
17202     else
17203       # This is an absolute path, we can use it without further modifications.
17204       new_path="$path"
17205     fi
17206 
17207     if test "x$new_path" = x; then
17208       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17209 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17210       has_space=`$ECHO "$complete" | $GREP " "`
17211       if test "x$has_space" != x; then
17212         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17213 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17214       fi
17215       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17216     fi
17217   fi
17218 
17219   # Now join together the path and the arguments once again
17220   if test "x$arguments" != xEOL; then
17221     new_complete="$new_path ${arguments% *}"
17222   else
17223     new_complete="$new_path"
17224   fi
17225 
17226   if test "x$complete" != "x$new_complete"; then
17227     FOUND_MAKE="$new_complete"
17228     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17229 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17230   fi
17231 
17232         fi
17233       fi
17234     fi
17235   fi
17236 
17237         fi
17238         PATH=$OLD_PATH
17239       fi
17240     fi
17241 
17242     if test "x$FOUND_MAKE" = x; then
17243       as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5
17244     fi
17245   fi
17246 
17247   MAKE=$FOUND_MAKE
17248 
17249   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17250 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17251 
17252 
17253 
17254   # Test if find supports -delete
17255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17256 $as_echo_n "checking if find supports -delete... " >&6; }
17257   FIND_DELETE="-delete"
17258 
17259   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17260 
17261   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17262 
17263   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17264   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17265     # No, it does not.
17266     rm $DELETEDIR/TestIfFindSupportsDelete
17267     FIND_DELETE="-exec rm \{\} \+"
17268     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17269 $as_echo "no" >&6; }
17270   else
17271     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17272 $as_echo "yes" >&6; }
17273   fi
17274   rmdir $DELETEDIR
17275 
17276 
17277 
17278   # These tools might not be installed by default,
17279   # need hint on how to install them.
17280 
17281 
17282 
17283   # Publish this variable in the help.
17284 
17285 
17286   if test "x$UNZIP" = x; then
17287     # The variable is not set by user, try to locate tool using the code snippet
17288     for ac_prog in unzip
17289 do
17290   # Extract the first word of "$ac_prog", so it can be a program name with args.
17291 set dummy $ac_prog; ac_word=$2
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17293 $as_echo_n "checking for $ac_word... " >&6; }
17294 if ${ac_cv_path_UNZIP+:} false; then :
17295   $as_echo_n "(cached) " >&6
17296 else
17297   case $UNZIP in
17298   [\\/]* | ?:[\\/]*)
17299   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17300   ;;
17301   *)
17302   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17303 for as_dir in $PATH
17304 do
17305   IFS=$as_save_IFS
17306   test -z "$as_dir" && as_dir=.
17307     for ac_exec_ext in '' $ac_executable_extensions; do
17308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17309     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17311     break 2
17312   fi
17313 done
17314   done
17315 IFS=$as_save_IFS
17316 
17317   ;;
17318 esac
17319 fi
17320 UNZIP=$ac_cv_path_UNZIP
17321 if test -n "$UNZIP"; then
17322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17323 $as_echo "$UNZIP" >&6; }
17324 else
17325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17326 $as_echo "no" >&6; }
17327 fi
17328 
17329 
17330   test -n "$UNZIP" && break
17331 done
17332 
17333   else
17334     # The variable is set, but is it from the command line or the environment?
17335 
17336     # Try to remove the string !UNZIP! from our list.
17337     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17338     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17339       # If it failed, the variable was not from the command line. Ignore it,
17340       # but warn the user (except for BASH, which is always set by the calling BASH).
17341       if test "xUNZIP" != xBASH; then
17342         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17343 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17344       fi
17345       # Try to locate tool using the code snippet
17346       for ac_prog in unzip
17347 do
17348   # Extract the first word of "$ac_prog", so it can be a program name with args.
17349 set dummy $ac_prog; ac_word=$2
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17351 $as_echo_n "checking for $ac_word... " >&6; }
17352 if ${ac_cv_path_UNZIP+:} false; then :
17353   $as_echo_n "(cached) " >&6
17354 else
17355   case $UNZIP in
17356   [\\/]* | ?:[\\/]*)
17357   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17358   ;;
17359   *)
17360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17361 for as_dir in $PATH
17362 do
17363   IFS=$as_save_IFS
17364   test -z "$as_dir" && as_dir=.
17365     for ac_exec_ext in '' $ac_executable_extensions; do
17366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17367     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17369     break 2
17370   fi
17371 done
17372   done
17373 IFS=$as_save_IFS
17374 
17375   ;;
17376 esac
17377 fi
17378 UNZIP=$ac_cv_path_UNZIP
17379 if test -n "$UNZIP"; then
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17381 $as_echo "$UNZIP" >&6; }
17382 else
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386 
17387 
17388   test -n "$UNZIP" && break
17389 done
17390 
17391     else
17392       # If it succeeded, then it was overridden by the user. We will use it
17393       # for the tool.
17394 
17395       # First remove it from the list of overridden variables, so we can test
17396       # for unknown variables in the end.
17397       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17398 
17399       # Check if the provided tool contains a complete path.
17400       tool_specified="$UNZIP"
17401       tool_basename="${tool_specified##*/}"
17402       if test "x$tool_basename" = "x$tool_specified"; then
17403         # A command without a complete path is provided, search $PATH.
17404         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17405 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17406         # Extract the first word of "$tool_basename", so it can be a program name with args.
17407 set dummy $tool_basename; ac_word=$2
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17409 $as_echo_n "checking for $ac_word... " >&6; }
17410 if ${ac_cv_path_UNZIP+:} false; then :
17411   $as_echo_n "(cached) " >&6
17412 else
17413   case $UNZIP in
17414   [\\/]* | ?:[\\/]*)
17415   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17416   ;;
17417   *)
17418   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17419 for as_dir in $PATH
17420 do
17421   IFS=$as_save_IFS
17422   test -z "$as_dir" && as_dir=.
17423     for ac_exec_ext in '' $ac_executable_extensions; do
17424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17425     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17427     break 2
17428   fi
17429 done
17430   done
17431 IFS=$as_save_IFS
17432 
17433   ;;
17434 esac
17435 fi
17436 UNZIP=$ac_cv_path_UNZIP
17437 if test -n "$UNZIP"; then
17438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17439 $as_echo "$UNZIP" >&6; }
17440 else
17441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442 $as_echo "no" >&6; }
17443 fi
17444 
17445 
17446         if test "x$UNZIP" = x; then
17447           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17448         fi
17449       else
17450         # Otherwise we believe it is a complete path. Use it as it is.
17451         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17452 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17453         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17454 $as_echo_n "checking for UNZIP... " >&6; }
17455         if test ! -x "$tool_specified"; then
17456           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17457 $as_echo "not found" >&6; }
17458           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17459         fi
17460         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17461 $as_echo "$tool_specified" >&6; }
17462       fi
17463     fi
17464   fi
17465 
17466 
17467 
17468   if test "x$UNZIP" = x; then
17469     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17470   fi
17471 
17472 
17473 
17474 
17475 
17476   # Publish this variable in the help.
17477 
17478 
17479   if test "x$ZIP" = x; then
17480     # The variable is not set by user, try to locate tool using the code snippet
17481     for ac_prog in zip
17482 do
17483   # Extract the first word of "$ac_prog", so it can be a program name with args.
17484 set dummy $ac_prog; ac_word=$2
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 $as_echo_n "checking for $ac_word... " >&6; }
17487 if ${ac_cv_path_ZIP+:} false; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490   case $ZIP in
17491   [\\/]* | ?:[\\/]*)
17492   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17493   ;;
17494   *)
17495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17496 for as_dir in $PATH
17497 do
17498   IFS=$as_save_IFS
17499   test -z "$as_dir" && as_dir=.
17500     for ac_exec_ext in '' $ac_executable_extensions; do
17501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17502     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17504     break 2
17505   fi
17506 done
17507   done
17508 IFS=$as_save_IFS
17509 
17510   ;;
17511 esac
17512 fi
17513 ZIP=$ac_cv_path_ZIP
17514 if test -n "$ZIP"; then
17515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17516 $as_echo "$ZIP" >&6; }
17517 else
17518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17519 $as_echo "no" >&6; }
17520 fi
17521 
17522 
17523   test -n "$ZIP" && break
17524 done
17525 
17526   else
17527     # The variable is set, but is it from the command line or the environment?
17528 
17529     # Try to remove the string !ZIP! from our list.
17530     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17531     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17532       # If it failed, the variable was not from the command line. Ignore it,
17533       # but warn the user (except for BASH, which is always set by the calling BASH).
17534       if test "xZIP" != xBASH; then
17535         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17536 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17537       fi
17538       # Try to locate tool using the code snippet
17539       for ac_prog in zip
17540 do
17541   # Extract the first word of "$ac_prog", so it can be a program name with args.
17542 set dummy $ac_prog; ac_word=$2
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17544 $as_echo_n "checking for $ac_word... " >&6; }
17545 if ${ac_cv_path_ZIP+:} false; then :
17546   $as_echo_n "(cached) " >&6
17547 else
17548   case $ZIP in
17549   [\\/]* | ?:[\\/]*)
17550   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17551   ;;
17552   *)
17553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17554 for as_dir in $PATH
17555 do
17556   IFS=$as_save_IFS
17557   test -z "$as_dir" && as_dir=.
17558     for ac_exec_ext in '' $ac_executable_extensions; do
17559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17560     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17562     break 2
17563   fi
17564 done
17565   done
17566 IFS=$as_save_IFS
17567 
17568   ;;
17569 esac
17570 fi
17571 ZIP=$ac_cv_path_ZIP
17572 if test -n "$ZIP"; then
17573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17574 $as_echo "$ZIP" >&6; }
17575 else
17576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17577 $as_echo "no" >&6; }
17578 fi
17579 
17580 
17581   test -n "$ZIP" && break
17582 done
17583 
17584     else
17585       # If it succeeded, then it was overridden by the user. We will use it
17586       # for the tool.
17587 
17588       # First remove it from the list of overridden variables, so we can test
17589       # for unknown variables in the end.
17590       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17591 
17592       # Check if the provided tool contains a complete path.
17593       tool_specified="$ZIP"
17594       tool_basename="${tool_specified##*/}"
17595       if test "x$tool_basename" = "x$tool_specified"; then
17596         # A command without a complete path is provided, search $PATH.
17597         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17598 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17599         # Extract the first word of "$tool_basename", so it can be a program name with args.
17600 set dummy $tool_basename; ac_word=$2
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17602 $as_echo_n "checking for $ac_word... " >&6; }
17603 if ${ac_cv_path_ZIP+:} false; then :
17604   $as_echo_n "(cached) " >&6
17605 else
17606   case $ZIP in
17607   [\\/]* | ?:[\\/]*)
17608   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17609   ;;
17610   *)
17611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17612 for as_dir in $PATH
17613 do
17614   IFS=$as_save_IFS
17615   test -z "$as_dir" && as_dir=.
17616     for ac_exec_ext in '' $ac_executable_extensions; do
17617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17618     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17620     break 2
17621   fi
17622 done
17623   done
17624 IFS=$as_save_IFS
17625 
17626   ;;
17627 esac
17628 fi
17629 ZIP=$ac_cv_path_ZIP
17630 if test -n "$ZIP"; then
17631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17632 $as_echo "$ZIP" >&6; }
17633 else
17634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17635 $as_echo "no" >&6; }
17636 fi
17637 
17638 
17639         if test "x$ZIP" = x; then
17640           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17641         fi
17642       else
17643         # Otherwise we believe it is a complete path. Use it as it is.
17644         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17645 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17646         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17647 $as_echo_n "checking for ZIP... " >&6; }
17648         if test ! -x "$tool_specified"; then
17649           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17650 $as_echo "not found" >&6; }
17651           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17652         fi
17653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17654 $as_echo "$tool_specified" >&6; }
17655       fi
17656     fi
17657   fi
17658 
17659 
17660 
17661   if test "x$ZIP" = x; then
17662     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17663   fi
17664 
17665 
17666 
17667   # Non-required basic tools
17668 
17669 
17670 
17671   # Publish this variable in the help.
17672 
17673 
17674   if test "x$LDD" = x; then
17675     # The variable is not set by user, try to locate tool using the code snippet
17676     for ac_prog in ldd
17677 do
17678   # Extract the first word of "$ac_prog", so it can be a program name with args.
17679 set dummy $ac_prog; ac_word=$2
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17681 $as_echo_n "checking for $ac_word... " >&6; }
17682 if ${ac_cv_path_LDD+:} false; then :
17683   $as_echo_n "(cached) " >&6
17684 else
17685   case $LDD in
17686   [\\/]* | ?:[\\/]*)
17687   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17688   ;;
17689   *)
17690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17691 for as_dir in $PATH
17692 do
17693   IFS=$as_save_IFS
17694   test -z "$as_dir" && as_dir=.
17695     for ac_exec_ext in '' $ac_executable_extensions; do
17696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17697     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17699     break 2
17700   fi
17701 done
17702   done
17703 IFS=$as_save_IFS
17704 
17705   ;;
17706 esac
17707 fi
17708 LDD=$ac_cv_path_LDD
17709 if test -n "$LDD"; then
17710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17711 $as_echo "$LDD" >&6; }
17712 else
17713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17714 $as_echo "no" >&6; }
17715 fi
17716 
17717 
17718   test -n "$LDD" && break
17719 done
17720 
17721   else
17722     # The variable is set, but is it from the command line or the environment?
17723 
17724     # Try to remove the string !LDD! from our list.
17725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17727       # If it failed, the variable was not from the command line. Ignore it,
17728       # but warn the user (except for BASH, which is always set by the calling BASH).
17729       if test "xLDD" != xBASH; then
17730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17731 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17732       fi
17733       # Try to locate tool using the code snippet
17734       for ac_prog in ldd
17735 do
17736   # Extract the first word of "$ac_prog", so it can be a program name with args.
17737 set dummy $ac_prog; ac_word=$2
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17739 $as_echo_n "checking for $ac_word... " >&6; }
17740 if ${ac_cv_path_LDD+:} false; then :
17741   $as_echo_n "(cached) " >&6
17742 else
17743   case $LDD in
17744   [\\/]* | ?:[\\/]*)
17745   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17746   ;;
17747   *)
17748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17749 for as_dir in $PATH
17750 do
17751   IFS=$as_save_IFS
17752   test -z "$as_dir" && as_dir=.
17753     for ac_exec_ext in '' $ac_executable_extensions; do
17754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17755     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17757     break 2
17758   fi
17759 done
17760   done
17761 IFS=$as_save_IFS
17762 
17763   ;;
17764 esac
17765 fi
17766 LDD=$ac_cv_path_LDD
17767 if test -n "$LDD"; then
17768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17769 $as_echo "$LDD" >&6; }
17770 else
17771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17772 $as_echo "no" >&6; }
17773 fi
17774 
17775 
17776   test -n "$LDD" && break
17777 done
17778 
17779     else
17780       # If it succeeded, then it was overridden by the user. We will use it
17781       # for the tool.
17782 
17783       # First remove it from the list of overridden variables, so we can test
17784       # for unknown variables in the end.
17785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17786 
17787       # Check if the provided tool contains a complete path.
17788       tool_specified="$LDD"
17789       tool_basename="${tool_specified##*/}"
17790       if test "x$tool_basename" = "x$tool_specified"; then
17791         # A command without a complete path is provided, search $PATH.
17792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17793 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17794         # Extract the first word of "$tool_basename", so it can be a program name with args.
17795 set dummy $tool_basename; ac_word=$2
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17797 $as_echo_n "checking for $ac_word... " >&6; }
17798 if ${ac_cv_path_LDD+:} false; then :
17799   $as_echo_n "(cached) " >&6
17800 else
17801   case $LDD in
17802   [\\/]* | ?:[\\/]*)
17803   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17804   ;;
17805   *)
17806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17807 for as_dir in $PATH
17808 do
17809   IFS=$as_save_IFS
17810   test -z "$as_dir" && as_dir=.
17811     for ac_exec_ext in '' $ac_executable_extensions; do
17812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17813     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17815     break 2
17816   fi
17817 done
17818   done
17819 IFS=$as_save_IFS
17820 
17821   ;;
17822 esac
17823 fi
17824 LDD=$ac_cv_path_LDD
17825 if test -n "$LDD"; then
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17827 $as_echo "$LDD" >&6; }
17828 else
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831 fi
17832 
17833 
17834         if test "x$LDD" = x; then
17835           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17836         fi
17837       else
17838         # Otherwise we believe it is a complete path. Use it as it is.
17839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17840 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17842 $as_echo_n "checking for LDD... " >&6; }
17843         if test ! -x "$tool_specified"; then
17844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17845 $as_echo "not found" >&6; }
17846           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17847         fi
17848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17849 $as_echo "$tool_specified" >&6; }
17850       fi
17851     fi
17852   fi
17853 
17854 
17855   if test "x$LDD" = "x"; then
17856     # List shared lib dependencies is used for
17857     # debug output and checking for forbidden dependencies.
17858     # We can build without it.
17859     LDD="true"
17860   fi
17861 
17862 
17863   # Publish this variable in the help.
17864 
17865 
17866   if test "x$READELF" = x; then
17867     # The variable is not set by user, try to locate tool using the code snippet
17868     for ac_prog in readelf greadelf
17869 do
17870   # Extract the first word of "$ac_prog", so it can be a program name with args.
17871 set dummy $ac_prog; ac_word=$2
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17873 $as_echo_n "checking for $ac_word... " >&6; }
17874 if ${ac_cv_path_READELF+:} false; then :
17875   $as_echo_n "(cached) " >&6
17876 else
17877   case $READELF in
17878   [\\/]* | ?:[\\/]*)
17879   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17880   ;;
17881   *)
17882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17883 for as_dir in $PATH
17884 do
17885   IFS=$as_save_IFS
17886   test -z "$as_dir" && as_dir=.
17887     for ac_exec_ext in '' $ac_executable_extensions; do
17888   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17889     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17891     break 2
17892   fi
17893 done
17894   done
17895 IFS=$as_save_IFS
17896 
17897   ;;
17898 esac
17899 fi
17900 READELF=$ac_cv_path_READELF
17901 if test -n "$READELF"; then
17902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17903 $as_echo "$READELF" >&6; }
17904 else
17905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17906 $as_echo "no" >&6; }
17907 fi
17908 
17909 
17910   test -n "$READELF" && break
17911 done
17912 
17913   else
17914     # The variable is set, but is it from the command line or the environment?
17915 
17916     # Try to remove the string !READELF! from our list.
17917     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17918     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17919       # If it failed, the variable was not from the command line. Ignore it,
17920       # but warn the user (except for BASH, which is always set by the calling BASH).
17921       if test "xREADELF" != xBASH; then
17922         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17923 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17924       fi
17925       # Try to locate tool using the code snippet
17926       for ac_prog in readelf greadelf
17927 do
17928   # Extract the first word of "$ac_prog", so it can be a program name with args.
17929 set dummy $ac_prog; ac_word=$2
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17931 $as_echo_n "checking for $ac_word... " >&6; }
17932 if ${ac_cv_path_READELF+:} false; then :
17933   $as_echo_n "(cached) " >&6
17934 else
17935   case $READELF in
17936   [\\/]* | ?:[\\/]*)
17937   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17938   ;;
17939   *)
17940   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17941 for as_dir in $PATH
17942 do
17943   IFS=$as_save_IFS
17944   test -z "$as_dir" && as_dir=.
17945     for ac_exec_ext in '' $ac_executable_extensions; do
17946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17947     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17949     break 2
17950   fi
17951 done
17952   done
17953 IFS=$as_save_IFS
17954 
17955   ;;
17956 esac
17957 fi
17958 READELF=$ac_cv_path_READELF
17959 if test -n "$READELF"; then
17960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17961 $as_echo "$READELF" >&6; }
17962 else
17963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17965 fi
17966 
17967 
17968   test -n "$READELF" && break
17969 done
17970 
17971     else
17972       # If it succeeded, then it was overridden by the user. We will use it
17973       # for the tool.
17974 
17975       # First remove it from the list of overridden variables, so we can test
17976       # for unknown variables in the end.
17977       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17978 
17979       # Check if the provided tool contains a complete path.
17980       tool_specified="$READELF"
17981       tool_basename="${tool_specified##*/}"
17982       if test "x$tool_basename" = "x$tool_specified"; then
17983         # A command without a complete path is provided, search $PATH.
17984         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17985 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17986         # Extract the first word of "$tool_basename", so it can be a program name with args.
17987 set dummy $tool_basename; ac_word=$2
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17989 $as_echo_n "checking for $ac_word... " >&6; }
17990 if ${ac_cv_path_READELF+:} false; then :
17991   $as_echo_n "(cached) " >&6
17992 else
17993   case $READELF in
17994   [\\/]* | ?:[\\/]*)
17995   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17996   ;;
17997   *)
17998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17999 for as_dir in $PATH
18000 do
18001   IFS=$as_save_IFS
18002   test -z "$as_dir" && as_dir=.
18003     for ac_exec_ext in '' $ac_executable_extensions; do
18004   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18005     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
18006     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18007     break 2
18008   fi
18009 done
18010   done
18011 IFS=$as_save_IFS
18012 
18013   ;;
18014 esac
18015 fi
18016 READELF=$ac_cv_path_READELF
18017 if test -n "$READELF"; then
18018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18019 $as_echo "$READELF" >&6; }
18020 else
18021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18022 $as_echo "no" >&6; }
18023 fi
18024 
18025 
18026         if test "x$READELF" = x; then
18027           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18028         fi
18029       else
18030         # Otherwise we believe it is a complete path. Use it as it is.
18031         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18032 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18033         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18034 $as_echo_n "checking for READELF... " >&6; }
18035         if test ! -x "$tool_specified"; then
18036           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18037 $as_echo "not found" >&6; }
18038           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18039         fi
18040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18041 $as_echo "$tool_specified" >&6; }
18042       fi
18043     fi
18044   fi
18045 
18046 
18047 
18048 
18049   # Publish this variable in the help.
18050 
18051 
18052   if test "x$HG" = x; then
18053     # The variable is not set by user, try to locate tool using the code snippet
18054     for ac_prog in hg
18055 do
18056   # Extract the first word of "$ac_prog", so it can be a program name with args.
18057 set dummy $ac_prog; ac_word=$2
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18059 $as_echo_n "checking for $ac_word... " >&6; }
18060 if ${ac_cv_path_HG+:} false; then :
18061   $as_echo_n "(cached) " >&6
18062 else
18063   case $HG in
18064   [\\/]* | ?:[\\/]*)
18065   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18066   ;;
18067   *)
18068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18069 for as_dir in $PATH
18070 do
18071   IFS=$as_save_IFS
18072   test -z "$as_dir" && as_dir=.
18073     for ac_exec_ext in '' $ac_executable_extensions; do
18074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18075     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18077     break 2
18078   fi
18079 done
18080   done
18081 IFS=$as_save_IFS
18082 
18083   ;;
18084 esac
18085 fi
18086 HG=$ac_cv_path_HG
18087 if test -n "$HG"; then
18088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18089 $as_echo "$HG" >&6; }
18090 else
18091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18092 $as_echo "no" >&6; }
18093 fi
18094 
18095 
18096   test -n "$HG" && break
18097 done
18098 
18099   else
18100     # The variable is set, but is it from the command line or the environment?
18101 
18102     # Try to remove the string !HG! from our list.
18103     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18104     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18105       # If it failed, the variable was not from the command line. Ignore it,
18106       # but warn the user (except for BASH, which is always set by the calling BASH).
18107       if test "xHG" != xBASH; then
18108         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18109 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18110       fi
18111       # Try to locate tool using the code snippet
18112       for ac_prog in hg
18113 do
18114   # Extract the first word of "$ac_prog", so it can be a program name with args.
18115 set dummy $ac_prog; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if ${ac_cv_path_HG+:} false; then :
18119   $as_echo_n "(cached) " >&6
18120 else
18121   case $HG in
18122   [\\/]* | ?:[\\/]*)
18123   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18124   ;;
18125   *)
18126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18127 for as_dir in $PATH
18128 do
18129   IFS=$as_save_IFS
18130   test -z "$as_dir" && as_dir=.
18131     for ac_exec_ext in '' $ac_executable_extensions; do
18132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18133     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18135     break 2
18136   fi
18137 done
18138   done
18139 IFS=$as_save_IFS
18140 
18141   ;;
18142 esac
18143 fi
18144 HG=$ac_cv_path_HG
18145 if test -n "$HG"; then
18146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18147 $as_echo "$HG" >&6; }
18148 else
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18150 $as_echo "no" >&6; }
18151 fi
18152 
18153 
18154   test -n "$HG" && break
18155 done
18156 
18157     else
18158       # If it succeeded, then it was overridden by the user. We will use it
18159       # for the tool.
18160 
18161       # First remove it from the list of overridden variables, so we can test
18162       # for unknown variables in the end.
18163       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18164 
18165       # Check if the provided tool contains a complete path.
18166       tool_specified="$HG"
18167       tool_basename="${tool_specified##*/}"
18168       if test "x$tool_basename" = "x$tool_specified"; then
18169         # A command without a complete path is provided, search $PATH.
18170         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18171 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18172         # Extract the first word of "$tool_basename", so it can be a program name with args.
18173 set dummy $tool_basename; ac_word=$2
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18175 $as_echo_n "checking for $ac_word... " >&6; }
18176 if ${ac_cv_path_HG+:} false; then :
18177   $as_echo_n "(cached) " >&6
18178 else
18179   case $HG in
18180   [\\/]* | ?:[\\/]*)
18181   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18182   ;;
18183   *)
18184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18185 for as_dir in $PATH
18186 do
18187   IFS=$as_save_IFS
18188   test -z "$as_dir" && as_dir=.
18189     for ac_exec_ext in '' $ac_executable_extensions; do
18190   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18191     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18193     break 2
18194   fi
18195 done
18196   done
18197 IFS=$as_save_IFS
18198 
18199   ;;
18200 esac
18201 fi
18202 HG=$ac_cv_path_HG
18203 if test -n "$HG"; then
18204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18205 $as_echo "$HG" >&6; }
18206 else
18207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18208 $as_echo "no" >&6; }
18209 fi
18210 
18211 
18212         if test "x$HG" = x; then
18213           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18214         fi
18215       else
18216         # Otherwise we believe it is a complete path. Use it as it is.
18217         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18218 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18220 $as_echo_n "checking for HG... " >&6; }
18221         if test ! -x "$tool_specified"; then
18222           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18223 $as_echo "not found" >&6; }
18224           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18225         fi
18226         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18227 $as_echo "$tool_specified" >&6; }
18228       fi
18229     fi
18230   fi
18231 
18232 
18233 
18234 
18235   # Publish this variable in the help.
18236 
18237 
18238   if test "x$STAT" = x; then
18239     # The variable is not set by user, try to locate tool using the code snippet
18240     for ac_prog in stat
18241 do
18242   # Extract the first word of "$ac_prog", so it can be a program name with args.
18243 set dummy $ac_prog; ac_word=$2
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18245 $as_echo_n "checking for $ac_word... " >&6; }
18246 if ${ac_cv_path_STAT+:} false; then :
18247   $as_echo_n "(cached) " >&6
18248 else
18249   case $STAT in
18250   [\\/]* | ?:[\\/]*)
18251   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18252   ;;
18253   *)
18254   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18255 for as_dir in $PATH
18256 do
18257   IFS=$as_save_IFS
18258   test -z "$as_dir" && as_dir=.
18259     for ac_exec_ext in '' $ac_executable_extensions; do
18260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18261     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18263     break 2
18264   fi
18265 done
18266   done
18267 IFS=$as_save_IFS
18268 
18269   ;;
18270 esac
18271 fi
18272 STAT=$ac_cv_path_STAT
18273 if test -n "$STAT"; then
18274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18275 $as_echo "$STAT" >&6; }
18276 else
18277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18278 $as_echo "no" >&6; }
18279 fi
18280 
18281 
18282   test -n "$STAT" && break
18283 done
18284 
18285   else
18286     # The variable is set, but is it from the command line or the environment?
18287 
18288     # Try to remove the string !STAT! from our list.
18289     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18290     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18291       # If it failed, the variable was not from the command line. Ignore it,
18292       # but warn the user (except for BASH, which is always set by the calling BASH).
18293       if test "xSTAT" != xBASH; then
18294         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18295 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18296       fi
18297       # Try to locate tool using the code snippet
18298       for ac_prog in stat
18299 do
18300   # Extract the first word of "$ac_prog", so it can be a program name with args.
18301 set dummy $ac_prog; ac_word=$2
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18303 $as_echo_n "checking for $ac_word... " >&6; }
18304 if ${ac_cv_path_STAT+:} false; then :
18305   $as_echo_n "(cached) " >&6
18306 else
18307   case $STAT in
18308   [\\/]* | ?:[\\/]*)
18309   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18310   ;;
18311   *)
18312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18313 for as_dir in $PATH
18314 do
18315   IFS=$as_save_IFS
18316   test -z "$as_dir" && as_dir=.
18317     for ac_exec_ext in '' $ac_executable_extensions; do
18318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18319     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18321     break 2
18322   fi
18323 done
18324   done
18325 IFS=$as_save_IFS
18326 
18327   ;;
18328 esac
18329 fi
18330 STAT=$ac_cv_path_STAT
18331 if test -n "$STAT"; then
18332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18333 $as_echo "$STAT" >&6; }
18334 else
18335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18336 $as_echo "no" >&6; }
18337 fi
18338 
18339 
18340   test -n "$STAT" && break
18341 done
18342 
18343     else
18344       # If it succeeded, then it was overridden by the user. We will use it
18345       # for the tool.
18346 
18347       # First remove it from the list of overridden variables, so we can test
18348       # for unknown variables in the end.
18349       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18350 
18351       # Check if the provided tool contains a complete path.
18352       tool_specified="$STAT"
18353       tool_basename="${tool_specified##*/}"
18354       if test "x$tool_basename" = "x$tool_specified"; then
18355         # A command without a complete path is provided, search $PATH.
18356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18357 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18358         # Extract the first word of "$tool_basename", so it can be a program name with args.
18359 set dummy $tool_basename; ac_word=$2
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18361 $as_echo_n "checking for $ac_word... " >&6; }
18362 if ${ac_cv_path_STAT+:} false; then :
18363   $as_echo_n "(cached) " >&6
18364 else
18365   case $STAT in
18366   [\\/]* | ?:[\\/]*)
18367   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18368   ;;
18369   *)
18370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18371 for as_dir in $PATH
18372 do
18373   IFS=$as_save_IFS
18374   test -z "$as_dir" && as_dir=.
18375     for ac_exec_ext in '' $ac_executable_extensions; do
18376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18377     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18379     break 2
18380   fi
18381 done
18382   done
18383 IFS=$as_save_IFS
18384 
18385   ;;
18386 esac
18387 fi
18388 STAT=$ac_cv_path_STAT
18389 if test -n "$STAT"; then
18390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18391 $as_echo "$STAT" >&6; }
18392 else
18393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18394 $as_echo "no" >&6; }
18395 fi
18396 
18397 
18398         if test "x$STAT" = x; then
18399           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18400         fi
18401       else
18402         # Otherwise we believe it is a complete path. Use it as it is.
18403         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18404 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18405         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18406 $as_echo_n "checking for STAT... " >&6; }
18407         if test ! -x "$tool_specified"; then
18408           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18409 $as_echo "not found" >&6; }
18410           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18411         fi
18412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18413 $as_echo "$tool_specified" >&6; }
18414       fi
18415     fi
18416   fi
18417 
18418 
18419 
18420 
18421   # Publish this variable in the help.
18422 
18423 
18424   if test "x$TIME" = x; then
18425     # The variable is not set by user, try to locate tool using the code snippet
18426     for ac_prog in time
18427 do
18428   # Extract the first word of "$ac_prog", so it can be a program name with args.
18429 set dummy $ac_prog; ac_word=$2
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18431 $as_echo_n "checking for $ac_word... " >&6; }
18432 if ${ac_cv_path_TIME+:} false; then :
18433   $as_echo_n "(cached) " >&6
18434 else
18435   case $TIME in
18436   [\\/]* | ?:[\\/]*)
18437   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18438   ;;
18439   *)
18440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18441 for as_dir in $PATH
18442 do
18443   IFS=$as_save_IFS
18444   test -z "$as_dir" && as_dir=.
18445     for ac_exec_ext in '' $ac_executable_extensions; do
18446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18447     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18449     break 2
18450   fi
18451 done
18452   done
18453 IFS=$as_save_IFS
18454 
18455   ;;
18456 esac
18457 fi
18458 TIME=$ac_cv_path_TIME
18459 if test -n "$TIME"; then
18460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18461 $as_echo "$TIME" >&6; }
18462 else
18463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18464 $as_echo "no" >&6; }
18465 fi
18466 
18467 
18468   test -n "$TIME" && break
18469 done
18470 
18471   else
18472     # The variable is set, but is it from the command line or the environment?
18473 
18474     # Try to remove the string !TIME! from our list.
18475     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18476     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18477       # If it failed, the variable was not from the command line. Ignore it,
18478       # but warn the user (except for BASH, which is always set by the calling BASH).
18479       if test "xTIME" != xBASH; then
18480         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18481 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18482       fi
18483       # Try to locate tool using the code snippet
18484       for ac_prog in time
18485 do
18486   # Extract the first word of "$ac_prog", so it can be a program name with args.
18487 set dummy $ac_prog; ac_word=$2
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18489 $as_echo_n "checking for $ac_word... " >&6; }
18490 if ${ac_cv_path_TIME+:} false; then :
18491   $as_echo_n "(cached) " >&6
18492 else
18493   case $TIME in
18494   [\\/]* | ?:[\\/]*)
18495   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18496   ;;
18497   *)
18498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18499 for as_dir in $PATH
18500 do
18501   IFS=$as_save_IFS
18502   test -z "$as_dir" && as_dir=.
18503     for ac_exec_ext in '' $ac_executable_extensions; do
18504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18505     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18507     break 2
18508   fi
18509 done
18510   done
18511 IFS=$as_save_IFS
18512 
18513   ;;
18514 esac
18515 fi
18516 TIME=$ac_cv_path_TIME
18517 if test -n "$TIME"; then
18518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18519 $as_echo "$TIME" >&6; }
18520 else
18521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18522 $as_echo "no" >&6; }
18523 fi
18524 
18525 
18526   test -n "$TIME" && break
18527 done
18528 
18529     else
18530       # If it succeeded, then it was overridden by the user. We will use it
18531       # for the tool.
18532 
18533       # First remove it from the list of overridden variables, so we can test
18534       # for unknown variables in the end.
18535       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18536 
18537       # Check if the provided tool contains a complete path.
18538       tool_specified="$TIME"
18539       tool_basename="${tool_specified##*/}"
18540       if test "x$tool_basename" = "x$tool_specified"; then
18541         # A command without a complete path is provided, search $PATH.
18542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18543 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18544         # Extract the first word of "$tool_basename", so it can be a program name with args.
18545 set dummy $tool_basename; ac_word=$2
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547 $as_echo_n "checking for $ac_word... " >&6; }
18548 if ${ac_cv_path_TIME+:} false; then :
18549   $as_echo_n "(cached) " >&6
18550 else
18551   case $TIME in
18552   [\\/]* | ?:[\\/]*)
18553   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18554   ;;
18555   *)
18556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557 for as_dir in $PATH
18558 do
18559   IFS=$as_save_IFS
18560   test -z "$as_dir" && as_dir=.
18561     for ac_exec_ext in '' $ac_executable_extensions; do
18562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18563     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565     break 2
18566   fi
18567 done
18568   done
18569 IFS=$as_save_IFS
18570 
18571   ;;
18572 esac
18573 fi
18574 TIME=$ac_cv_path_TIME
18575 if test -n "$TIME"; then
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18577 $as_echo "$TIME" >&6; }
18578 else
18579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18581 fi
18582 
18583 
18584         if test "x$TIME" = x; then
18585           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18586         fi
18587       else
18588         # Otherwise we believe it is a complete path. Use it as it is.
18589         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18590 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18592 $as_echo_n "checking for TIME... " >&6; }
18593         if test ! -x "$tool_specified"; then
18594           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18595 $as_echo "not found" >&6; }
18596           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18597         fi
18598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18599 $as_echo "$tool_specified" >&6; }
18600       fi
18601     fi
18602   fi
18603 
18604 
18605   # Check if it's GNU time
18606   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18607   if test "x$IS_GNU_TIME" != x; then
18608     IS_GNU_TIME=yes
18609   else
18610     IS_GNU_TIME=no
18611   fi
18612 
18613 
18614   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18615 
18616 
18617 
18618   # Publish this variable in the help.
18619 
18620 
18621   if test "x$COMM" = x; then
18622     # The variable is not set by user, try to locate tool using the code snippet
18623     for ac_prog in comm
18624 do
18625   # Extract the first word of "$ac_prog", so it can be a program name with args.
18626 set dummy $ac_prog; ac_word=$2
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18628 $as_echo_n "checking for $ac_word... " >&6; }
18629 if ${ac_cv_path_COMM+:} false; then :
18630   $as_echo_n "(cached) " >&6
18631 else
18632   case $COMM in
18633   [\\/]* | ?:[\\/]*)
18634   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18635   ;;
18636   *)
18637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18638 for as_dir in $PATH
18639 do
18640   IFS=$as_save_IFS
18641   test -z "$as_dir" && as_dir=.
18642     for ac_exec_ext in '' $ac_executable_extensions; do
18643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18644     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18646     break 2
18647   fi
18648 done
18649   done
18650 IFS=$as_save_IFS
18651 
18652   ;;
18653 esac
18654 fi
18655 COMM=$ac_cv_path_COMM
18656 if test -n "$COMM"; then
18657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18658 $as_echo "$COMM" >&6; }
18659 else
18660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18661 $as_echo "no" >&6; }
18662 fi
18663 
18664 
18665   test -n "$COMM" && break
18666 done
18667 
18668   else
18669     # The variable is set, but is it from the command line or the environment?
18670 
18671     # Try to remove the string !COMM! from our list.
18672     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18673     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18674       # If it failed, the variable was not from the command line. Ignore it,
18675       # but warn the user (except for BASH, which is always set by the calling BASH).
18676       if test "xCOMM" != xBASH; then
18677         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18678 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18679       fi
18680       # Try to locate tool using the code snippet
18681       for ac_prog in comm
18682 do
18683   # Extract the first word of "$ac_prog", so it can be a program name with args.
18684 set dummy $ac_prog; ac_word=$2
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18686 $as_echo_n "checking for $ac_word... " >&6; }
18687 if ${ac_cv_path_COMM+:} false; then :
18688   $as_echo_n "(cached) " >&6
18689 else
18690   case $COMM in
18691   [\\/]* | ?:[\\/]*)
18692   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18693   ;;
18694   *)
18695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18696 for as_dir in $PATH
18697 do
18698   IFS=$as_save_IFS
18699   test -z "$as_dir" && as_dir=.
18700     for ac_exec_ext in '' $ac_executable_extensions; do
18701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18702     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18704     break 2
18705   fi
18706 done
18707   done
18708 IFS=$as_save_IFS
18709 
18710   ;;
18711 esac
18712 fi
18713 COMM=$ac_cv_path_COMM
18714 if test -n "$COMM"; then
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18716 $as_echo "$COMM" >&6; }
18717 else
18718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18719 $as_echo "no" >&6; }
18720 fi
18721 
18722 
18723   test -n "$COMM" && break
18724 done
18725 
18726     else
18727       # If it succeeded, then it was overridden by the user. We will use it
18728       # for the tool.
18729 
18730       # First remove it from the list of overridden variables, so we can test
18731       # for unknown variables in the end.
18732       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18733 
18734       # Check if the provided tool contains a complete path.
18735       tool_specified="$COMM"
18736       tool_basename="${tool_specified##*/}"
18737       if test "x$tool_basename" = "x$tool_specified"; then
18738         # A command without a complete path is provided, search $PATH.
18739         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18740 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18741         # Extract the first word of "$tool_basename", so it can be a program name with args.
18742 set dummy $tool_basename; ac_word=$2
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18744 $as_echo_n "checking for $ac_word... " >&6; }
18745 if ${ac_cv_path_COMM+:} false; then :
18746   $as_echo_n "(cached) " >&6
18747 else
18748   case $COMM in
18749   [\\/]* | ?:[\\/]*)
18750   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18751   ;;
18752   *)
18753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18754 for as_dir in $PATH
18755 do
18756   IFS=$as_save_IFS
18757   test -z "$as_dir" && as_dir=.
18758     for ac_exec_ext in '' $ac_executable_extensions; do
18759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18760     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18762     break 2
18763   fi
18764 done
18765   done
18766 IFS=$as_save_IFS
18767 
18768   ;;
18769 esac
18770 fi
18771 COMM=$ac_cv_path_COMM
18772 if test -n "$COMM"; then
18773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18774 $as_echo "$COMM" >&6; }
18775 else
18776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18777 $as_echo "no" >&6; }
18778 fi
18779 
18780 
18781         if test "x$COMM" = x; then
18782           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18783         fi
18784       else
18785         # Otherwise we believe it is a complete path. Use it as it is.
18786         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18787 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18788         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18789 $as_echo_n "checking for COMM... " >&6; }
18790         if test ! -x "$tool_specified"; then
18791           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18792 $as_echo "not found" >&6; }
18793           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18794         fi
18795         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18796 $as_echo "$tool_specified" >&6; }
18797       fi
18798     fi
18799   fi
18800 
18801 
18802 
18803   if test "x$COMM" = x; then
18804     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18805   fi
18806 
18807 
18808   fi
18809 
18810   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18811 
18812 
18813 
18814   # Publish this variable in the help.
18815 
18816 
18817   if test "x$DSYMUTIL" = x; then
18818     # The variable is not set by user, try to locate tool using the code snippet
18819     for ac_prog in dsymutil
18820 do
18821   # Extract the first word of "$ac_prog", so it can be a program name with args.
18822 set dummy $ac_prog; ac_word=$2
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18824 $as_echo_n "checking for $ac_word... " >&6; }
18825 if ${ac_cv_path_DSYMUTIL+:} false; then :
18826   $as_echo_n "(cached) " >&6
18827 else
18828   case $DSYMUTIL in
18829   [\\/]* | ?:[\\/]*)
18830   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18831   ;;
18832   *)
18833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18834 for as_dir in $PATH
18835 do
18836   IFS=$as_save_IFS
18837   test -z "$as_dir" && as_dir=.
18838     for ac_exec_ext in '' $ac_executable_extensions; do
18839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18840     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18842     break 2
18843   fi
18844 done
18845   done
18846 IFS=$as_save_IFS
18847 
18848   ;;
18849 esac
18850 fi
18851 DSYMUTIL=$ac_cv_path_DSYMUTIL
18852 if test -n "$DSYMUTIL"; then
18853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18854 $as_echo "$DSYMUTIL" >&6; }
18855 else
18856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18857 $as_echo "no" >&6; }
18858 fi
18859 
18860 
18861   test -n "$DSYMUTIL" && break
18862 done
18863 
18864   else
18865     # The variable is set, but is it from the command line or the environment?
18866 
18867     # Try to remove the string !DSYMUTIL! from our list.
18868     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18869     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18870       # If it failed, the variable was not from the command line. Ignore it,
18871       # but warn the user (except for BASH, which is always set by the calling BASH).
18872       if test "xDSYMUTIL" != xBASH; then
18873         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18874 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18875       fi
18876       # Try to locate tool using the code snippet
18877       for ac_prog in dsymutil
18878 do
18879   # Extract the first word of "$ac_prog", so it can be a program name with args.
18880 set dummy $ac_prog; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if ${ac_cv_path_DSYMUTIL+:} false; then :
18884   $as_echo_n "(cached) " >&6
18885 else
18886   case $DSYMUTIL in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896     for ac_exec_ext in '' $ac_executable_extensions; do
18897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18898     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903   done
18904 IFS=$as_save_IFS
18905 
18906   ;;
18907 esac
18908 fi
18909 DSYMUTIL=$ac_cv_path_DSYMUTIL
18910 if test -n "$DSYMUTIL"; then
18911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18912 $as_echo "$DSYMUTIL" >&6; }
18913 else
18914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18915 $as_echo "no" >&6; }
18916 fi
18917 
18918 
18919   test -n "$DSYMUTIL" && break
18920 done
18921 
18922     else
18923       # If it succeeded, then it was overridden by the user. We will use it
18924       # for the tool.
18925 
18926       # First remove it from the list of overridden variables, so we can test
18927       # for unknown variables in the end.
18928       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18929 
18930       # Check if the provided tool contains a complete path.
18931       tool_specified="$DSYMUTIL"
18932       tool_basename="${tool_specified##*/}"
18933       if test "x$tool_basename" = "x$tool_specified"; then
18934         # A command without a complete path is provided, search $PATH.
18935         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18936 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18937         # Extract the first word of "$tool_basename", so it can be a program name with args.
18938 set dummy $tool_basename; ac_word=$2
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18940 $as_echo_n "checking for $ac_word... " >&6; }
18941 if ${ac_cv_path_DSYMUTIL+:} false; then :
18942   $as_echo_n "(cached) " >&6
18943 else
18944   case $DSYMUTIL in
18945   [\\/]* | ?:[\\/]*)
18946   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18947   ;;
18948   *)
18949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18950 for as_dir in $PATH
18951 do
18952   IFS=$as_save_IFS
18953   test -z "$as_dir" && as_dir=.
18954     for ac_exec_ext in '' $ac_executable_extensions; do
18955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18956     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18958     break 2
18959   fi
18960 done
18961   done
18962 IFS=$as_save_IFS
18963 
18964   ;;
18965 esac
18966 fi
18967 DSYMUTIL=$ac_cv_path_DSYMUTIL
18968 if test -n "$DSYMUTIL"; then
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18970 $as_echo "$DSYMUTIL" >&6; }
18971 else
18972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18974 fi
18975 
18976 
18977         if test "x$DSYMUTIL" = x; then
18978           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18979         fi
18980       else
18981         # Otherwise we believe it is a complete path. Use it as it is.
18982         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18983 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18984         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18985 $as_echo_n "checking for DSYMUTIL... " >&6; }
18986         if test ! -x "$tool_specified"; then
18987           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18988 $as_echo "not found" >&6; }
18989           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18990         fi
18991         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18992 $as_echo "$tool_specified" >&6; }
18993       fi
18994     fi
18995   fi
18996 
18997 
18998 
18999   if test "x$DSYMUTIL" = x; then
19000     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
19001   fi
19002 
19003 
19004 
19005 
19006 
19007   # Publish this variable in the help.
19008 
19009 
19010   if test "x$XATTR" = x; then
19011     # The variable is not set by user, try to locate tool using the code snippet
19012     for ac_prog in xattr
19013 do
19014   # Extract the first word of "$ac_prog", so it can be a program name with args.
19015 set dummy $ac_prog; ac_word=$2
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19017 $as_echo_n "checking for $ac_word... " >&6; }
19018 if ${ac_cv_path_XATTR+:} false; then :
19019   $as_echo_n "(cached) " >&6
19020 else
19021   case $XATTR in
19022   [\\/]* | ?:[\\/]*)
19023   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19024   ;;
19025   *)
19026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029   IFS=$as_save_IFS
19030   test -z "$as_dir" && as_dir=.
19031     for ac_exec_ext in '' $ac_executable_extensions; do
19032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19033     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035     break 2
19036   fi
19037 done
19038   done
19039 IFS=$as_save_IFS
19040 
19041   ;;
19042 esac
19043 fi
19044 XATTR=$ac_cv_path_XATTR
19045 if test -n "$XATTR"; then
19046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19047 $as_echo "$XATTR" >&6; }
19048 else
19049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19050 $as_echo "no" >&6; }
19051 fi
19052 
19053 
19054   test -n "$XATTR" && break
19055 done
19056 
19057   else
19058     # The variable is set, but is it from the command line or the environment?
19059 
19060     # Try to remove the string !XATTR! from our list.
19061     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19062     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19063       # If it failed, the variable was not from the command line. Ignore it,
19064       # but warn the user (except for BASH, which is always set by the calling BASH).
19065       if test "xXATTR" != xBASH; then
19066         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19067 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19068       fi
19069       # Try to locate tool using the code snippet
19070       for ac_prog in xattr
19071 do
19072   # Extract the first word of "$ac_prog", so it can be a program name with args.
19073 set dummy $ac_prog; ac_word=$2
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19075 $as_echo_n "checking for $ac_word... " >&6; }
19076 if ${ac_cv_path_XATTR+:} false; then :
19077   $as_echo_n "(cached) " >&6
19078 else
19079   case $XATTR in
19080   [\\/]* | ?:[\\/]*)
19081   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19082   ;;
19083   *)
19084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19085 for as_dir in $PATH
19086 do
19087   IFS=$as_save_IFS
19088   test -z "$as_dir" && as_dir=.
19089     for ac_exec_ext in '' $ac_executable_extensions; do
19090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19091     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19093     break 2
19094   fi
19095 done
19096   done
19097 IFS=$as_save_IFS
19098 
19099   ;;
19100 esac
19101 fi
19102 XATTR=$ac_cv_path_XATTR
19103 if test -n "$XATTR"; then
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19105 $as_echo "$XATTR" >&6; }
19106 else
19107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19109 fi
19110 
19111 
19112   test -n "$XATTR" && break
19113 done
19114 
19115     else
19116       # If it succeeded, then it was overridden by the user. We will use it
19117       # for the tool.
19118 
19119       # First remove it from the list of overridden variables, so we can test
19120       # for unknown variables in the end.
19121       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19122 
19123       # Check if the provided tool contains a complete path.
19124       tool_specified="$XATTR"
19125       tool_basename="${tool_specified##*/}"
19126       if test "x$tool_basename" = "x$tool_specified"; then
19127         # A command without a complete path is provided, search $PATH.
19128         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19129 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19130         # Extract the first word of "$tool_basename", so it can be a program name with args.
19131 set dummy $tool_basename; ac_word=$2
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19133 $as_echo_n "checking for $ac_word... " >&6; }
19134 if ${ac_cv_path_XATTR+:} false; then :
19135   $as_echo_n "(cached) " >&6
19136 else
19137   case $XATTR in
19138   [\\/]* | ?:[\\/]*)
19139   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19140   ;;
19141   *)
19142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19143 for as_dir in $PATH
19144 do
19145   IFS=$as_save_IFS
19146   test -z "$as_dir" && as_dir=.
19147     for ac_exec_ext in '' $ac_executable_extensions; do
19148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19149     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19151     break 2
19152   fi
19153 done
19154   done
19155 IFS=$as_save_IFS
19156 
19157   ;;
19158 esac
19159 fi
19160 XATTR=$ac_cv_path_XATTR
19161 if test -n "$XATTR"; then
19162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19163 $as_echo "$XATTR" >&6; }
19164 else
19165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19166 $as_echo "no" >&6; }
19167 fi
19168 
19169 
19170         if test "x$XATTR" = x; then
19171           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19172         fi
19173       else
19174         # Otherwise we believe it is a complete path. Use it as it is.
19175         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19176 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19178 $as_echo_n "checking for XATTR... " >&6; }
19179         if test ! -x "$tool_specified"; then
19180           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19181 $as_echo "not found" >&6; }
19182           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19183         fi
19184         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19185 $as_echo "$tool_specified" >&6; }
19186       fi
19187     fi
19188   fi
19189 
19190 
19191 
19192   if test "x$XATTR" = x; then
19193     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19194   fi
19195 
19196 
19197 
19198 
19199   # Publish this variable in the help.
19200 
19201 
19202   if test "x$CODESIGN" = x; then
19203     # The variable is not set by user, try to locate tool using the code snippet
19204     for ac_prog in codesign
19205 do
19206   # Extract the first word of "$ac_prog", so it can be a program name with args.
19207 set dummy $ac_prog; ac_word=$2
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19209 $as_echo_n "checking for $ac_word... " >&6; }
19210 if ${ac_cv_path_CODESIGN+:} false; then :
19211   $as_echo_n "(cached) " >&6
19212 else
19213   case $CODESIGN in
19214   [\\/]* | ?:[\\/]*)
19215   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19216   ;;
19217   *)
19218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19220 do
19221   IFS=$as_save_IFS
19222   test -z "$as_dir" && as_dir=.
19223     for ac_exec_ext in '' $ac_executable_extensions; do
19224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19225     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19227     break 2
19228   fi
19229 done
19230   done
19231 IFS=$as_save_IFS
19232 
19233   ;;
19234 esac
19235 fi
19236 CODESIGN=$ac_cv_path_CODESIGN
19237 if test -n "$CODESIGN"; then
19238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19239 $as_echo "$CODESIGN" >&6; }
19240 else
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19242 $as_echo "no" >&6; }
19243 fi
19244 
19245 
19246   test -n "$CODESIGN" && break
19247 done
19248 
19249   else
19250     # The variable is set, but is it from the command line or the environment?
19251 
19252     # Try to remove the string !CODESIGN! from our list.
19253     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19254     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19255       # If it failed, the variable was not from the command line. Ignore it,
19256       # but warn the user (except for BASH, which is always set by the calling BASH).
19257       if test "xCODESIGN" != xBASH; then
19258         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19259 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19260       fi
19261       # Try to locate tool using the code snippet
19262       for ac_prog in codesign
19263 do
19264   # Extract the first word of "$ac_prog", so it can be a program name with args.
19265 set dummy $ac_prog; ac_word=$2
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19267 $as_echo_n "checking for $ac_word... " >&6; }
19268 if ${ac_cv_path_CODESIGN+:} false; then :
19269   $as_echo_n "(cached) " >&6
19270 else
19271   case $CODESIGN in
19272   [\\/]* | ?:[\\/]*)
19273   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19274   ;;
19275   *)
19276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19277 for as_dir in $PATH
19278 do
19279   IFS=$as_save_IFS
19280   test -z "$as_dir" && as_dir=.
19281     for ac_exec_ext in '' $ac_executable_extensions; do
19282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19283     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19285     break 2
19286   fi
19287 done
19288   done
19289 IFS=$as_save_IFS
19290 
19291   ;;
19292 esac
19293 fi
19294 CODESIGN=$ac_cv_path_CODESIGN
19295 if test -n "$CODESIGN"; then
19296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19297 $as_echo "$CODESIGN" >&6; }
19298 else
19299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19301 fi
19302 
19303 
19304   test -n "$CODESIGN" && break
19305 done
19306 
19307     else
19308       # If it succeeded, then it was overridden by the user. We will use it
19309       # for the tool.
19310 
19311       # First remove it from the list of overridden variables, so we can test
19312       # for unknown variables in the end.
19313       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19314 
19315       # Check if the provided tool contains a complete path.
19316       tool_specified="$CODESIGN"
19317       tool_basename="${tool_specified##*/}"
19318       if test "x$tool_basename" = "x$tool_specified"; then
19319         # A command without a complete path is provided, search $PATH.
19320         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19321 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19322         # Extract the first word of "$tool_basename", so it can be a program name with args.
19323 set dummy $tool_basename; ac_word=$2
19324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19325 $as_echo_n "checking for $ac_word... " >&6; }
19326 if ${ac_cv_path_CODESIGN+:} false; then :
19327   $as_echo_n "(cached) " >&6
19328 else
19329   case $CODESIGN in
19330   [\\/]* | ?:[\\/]*)
19331   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19332   ;;
19333   *)
19334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19335 for as_dir in $PATH
19336 do
19337   IFS=$as_save_IFS
19338   test -z "$as_dir" && as_dir=.
19339     for ac_exec_ext in '' $ac_executable_extensions; do
19340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19341     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19343     break 2
19344   fi
19345 done
19346   done
19347 IFS=$as_save_IFS
19348 
19349   ;;
19350 esac
19351 fi
19352 CODESIGN=$ac_cv_path_CODESIGN
19353 if test -n "$CODESIGN"; then
19354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19355 $as_echo "$CODESIGN" >&6; }
19356 else
19357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19358 $as_echo "no" >&6; }
19359 fi
19360 
19361 
19362         if test "x$CODESIGN" = x; then
19363           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19364         fi
19365       else
19366         # Otherwise we believe it is a complete path. Use it as it is.
19367         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19368 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19369         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19370 $as_echo_n "checking for CODESIGN... " >&6; }
19371         if test ! -x "$tool_specified"; then
19372           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19373 $as_echo "not found" >&6; }
19374           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19375         fi
19376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19377 $as_echo "$tool_specified" >&6; }
19378       fi
19379     fi
19380   fi
19381 
19382 
19383     if test "x$CODESIGN" != "x"; then
19384       # Verify that the openjdk_codesign certificate is present
19385       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19386 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19387       rm -f codesign-testfile
19388       touch codesign-testfile
19389       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19390       rm -f codesign-testfile
19391       if test "x$CODESIGN" = x; then
19392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19393 $as_echo "no" >&6; }
19394       else
19395         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19396 $as_echo "yes" >&6; }
19397       fi
19398     fi
19399   fi
19400 
19401 
19402 # Check if pkg-config is available.
19403 
19404 
19405 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19406         if test -n "$ac_tool_prefix"; then
19407   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19408 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19410 $as_echo_n "checking for $ac_word... " >&6; }
19411 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19412   $as_echo_n "(cached) " >&6
19413 else
19414   case $PKG_CONFIG in
19415   [\\/]* | ?:[\\/]*)
19416   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19417   ;;
19418   *)
19419   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19420 for as_dir in $PATH
19421 do
19422   IFS=$as_save_IFS
19423   test -z "$as_dir" && as_dir=.
19424     for ac_exec_ext in '' $ac_executable_extensions; do
19425   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19426     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19428     break 2
19429   fi
19430 done
19431   done
19432 IFS=$as_save_IFS
19433 
19434   ;;
19435 esac
19436 fi
19437 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19438 if test -n "$PKG_CONFIG"; then
19439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19440 $as_echo "$PKG_CONFIG" >&6; }
19441 else
19442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19443 $as_echo "no" >&6; }
19444 fi
19445 
19446 
19447 fi
19448 if test -z "$ac_cv_path_PKG_CONFIG"; then
19449   ac_pt_PKG_CONFIG=$PKG_CONFIG
19450   # Extract the first word of "pkg-config", so it can be a program name with args.
19451 set dummy pkg-config; ac_word=$2
19452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19453 $as_echo_n "checking for $ac_word... " >&6; }
19454 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19455   $as_echo_n "(cached) " >&6
19456 else
19457   case $ac_pt_PKG_CONFIG in
19458   [\\/]* | ?:[\\/]*)
19459   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19460   ;;
19461   *)
19462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19463 for as_dir in $PATH
19464 do
19465   IFS=$as_save_IFS
19466   test -z "$as_dir" && as_dir=.
19467     for ac_exec_ext in '' $ac_executable_extensions; do
19468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19469     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19471     break 2
19472   fi
19473 done
19474   done
19475 IFS=$as_save_IFS
19476 
19477   ;;
19478 esac
19479 fi
19480 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19481 if test -n "$ac_pt_PKG_CONFIG"; then
19482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19483 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19484 else
19485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19486 $as_echo "no" >&6; }
19487 fi
19488 
19489   if test "x$ac_pt_PKG_CONFIG" = x; then
19490     PKG_CONFIG=""
19491   else
19492     case $cross_compiling:$ac_tool_warned in
19493 yes:)
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19496 ac_tool_warned=yes ;;
19497 esac
19498     PKG_CONFIG=$ac_pt_PKG_CONFIG
19499   fi
19500 else
19501   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19502 fi
19503 
19504 fi
19505 if test -n "$PKG_CONFIG"; then
19506         _pkg_min_version=0.9.0
19507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19508 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19509         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19510                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19511 $as_echo "yes" >&6; }
19512         else
19513                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19514 $as_echo "no" >&6; }
19515                 PKG_CONFIG=""
19516         fi
19517 
19518 fi
19519 
19520 # After basic tools have been setup, we can check build os specific details.
19521 
19522   ###############################################################################
19523 
19524   # Note that this is the build platform OS version!
19525 
19526   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19527   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19528   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19529   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19530 
19531 
19532 
19533 
19534 
19535 # Setup builddeps, for automatic downloading of tools we need.
19536 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19537 # boot-jdk setup, but we need to have basic tools setup first.
19538 
19539 
19540 # Check whether --with-builddeps-conf was given.
19541 if test "${with_builddeps_conf+set}" = set; then :
19542   withval=$with_builddeps_conf;
19543 fi
19544 
19545 
19546 
19547 # Check whether --with-builddeps-server was given.
19548 if test "${with_builddeps_server+set}" = set; then :
19549   withval=$with_builddeps_server;
19550 fi
19551 
19552 
19553 
19554 # Check whether --with-builddeps-dir was given.
19555 if test "${with_builddeps_dir+set}" = set; then :
19556   withval=$with_builddeps_dir;
19557 else
19558   with_builddeps_dir=/localhome/builddeps
19559 fi
19560 
19561 
19562 
19563 # Check whether --with-builddeps-group was given.
19564 if test "${with_builddeps_group+set}" = set; then :
19565   withval=$with_builddeps_group;
19566 fi
19567 
19568 
19569 
19570 
19571   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19572     if test "x$with_builddeps_conf" != x; then
19573       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19574 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19575       builddepsfile=$with_builddeps_conf
19576       if test -s $builddepsfile; then
19577         . $builddepsfile
19578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19579 $as_echo "loaded!" >&6; }
19580       else
19581         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19582       fi
19583     else
19584       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19585 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19586       builddepsfile=`mktemp`
19587       touch $builddepsfile
19588       # Put all found confs into a single file.
19589       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19590       # Source the file to acquire the variables
19591       if test -s $builddepsfile; then
19592         . $builddepsfile
19593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19594 $as_echo "found at least one!" >&6; }
19595       else
19596         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19597       fi
19598     fi
19599     # Create build and target names that use _ instead of "-" and ".".
19600     # This is necessary to use them in variable names.
19601     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19602     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19603     # Extract rewrite information for build and target
19604     eval rewritten_build=\${REWRITE_${build_var}}
19605     if test "x$rewritten_build" = x; then
19606       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19607       echo Build stays the same $rewritten_build
19608     else
19609       echo Rewriting build for builddeps into $rewritten_build
19610     fi
19611     eval rewritten_target=\${REWRITE_${target_var}}
19612     if test "x$rewritten_target" = x; then
19613       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19614       echo Target stays the same $rewritten_target
19615     else
19616       echo Rewriting target for builddeps into $rewritten_target
19617     fi
19618     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19619     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19620   fi
19621   for ac_prog in 7z unzip
19622 do
19623   # Extract the first word of "$ac_prog", so it can be a program name with args.
19624 set dummy $ac_prog; ac_word=$2
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19626 $as_echo_n "checking for $ac_word... " >&6; }
19627 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19628   $as_echo_n "(cached) " >&6
19629 else
19630   if test -n "$BDEPS_UNZIP"; then
19631   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19632 else
19633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19634 for as_dir in $PATH
19635 do
19636   IFS=$as_save_IFS
19637   test -z "$as_dir" && as_dir=.
19638     for ac_exec_ext in '' $ac_executable_extensions; do
19639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19640     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19642     break 2
19643   fi
19644 done
19645   done
19646 IFS=$as_save_IFS
19647 
19648 fi
19649 fi
19650 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19651 if test -n "$BDEPS_UNZIP"; then
19652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19653 $as_echo "$BDEPS_UNZIP" >&6; }
19654 else
19655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19656 $as_echo "no" >&6; }
19657 fi
19658 
19659 
19660   test -n "$BDEPS_UNZIP" && break
19661 done
19662 
19663   if test "x$BDEPS_UNZIP" = x7z; then
19664     BDEPS_UNZIP="7z x"
19665   fi
19666 
19667   for ac_prog in wget lftp ftp
19668 do
19669   # Extract the first word of "$ac_prog", so it can be a program name with args.
19670 set dummy $ac_prog; ac_word=$2
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19672 $as_echo_n "checking for $ac_word... " >&6; }
19673 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19674   $as_echo_n "(cached) " >&6
19675 else
19676   if test -n "$BDEPS_FTP"; then
19677   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19678 else
19679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19680 for as_dir in $PATH
19681 do
19682   IFS=$as_save_IFS
19683   test -z "$as_dir" && as_dir=.
19684     for ac_exec_ext in '' $ac_executable_extensions; do
19685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19686     ac_cv_prog_BDEPS_FTP="$ac_prog"
19687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19688     break 2
19689   fi
19690 done
19691   done
19692 IFS=$as_save_IFS
19693 
19694 fi
19695 fi
19696 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19697 if test -n "$BDEPS_FTP"; then
19698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19699 $as_echo "$BDEPS_FTP" >&6; }
19700 else
19701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19702 $as_echo "no" >&6; }
19703 fi
19704 
19705 
19706   test -n "$BDEPS_FTP" && break
19707 done
19708 
19709 
19710 
19711 ###############################################################################
19712 #
19713 # Determine OpenJDK variants, options and version numbers.
19714 #
19715 ###############################################################################
19716 
19717 # We need build & target for this.
19718 
19719 
19720   ###############################################################################
19721   #
19722   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19723   # We always build headless support.
19724   #
19725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19726 $as_echo_n "checking headful support... " >&6; }
19727   # Check whether --enable-headful was given.
19728 if test "${enable_headful+set}" = set; then :
19729   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19730 else
19731   SUPPORT_HEADFUL=yes
19732 fi
19733 
19734 
19735   SUPPORT_HEADLESS=yes
19736   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19737 
19738   if test "x$SUPPORT_HEADFUL" = xyes; then
19739     # We are building both headful and headless.
19740     headful_msg="include support for both headful and headless"
19741   fi
19742 
19743   if test "x$SUPPORT_HEADFUL" = xno; then
19744     # Thus we are building headless only.
19745     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19746     headful_msg="headless only"
19747   fi
19748 
19749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19750 $as_echo "$headful_msg" >&6; }
19751 
19752 
19753 
19754 
19755 
19756   # Control wether Hotspot runs Queens test after build.
19757   # Check whether --enable-hotspot-test-in-build was given.
19758 if test "${enable_hotspot_test_in_build+set}" = set; then :
19759   enableval=$enable_hotspot_test_in_build;
19760 else
19761   enable_hotspot_test_in_build=no
19762 fi
19763 
19764   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19765     TEST_IN_BUILD=true
19766   else
19767     TEST_IN_BUILD=false
19768   fi
19769 
19770 
19771   ###############################################################################
19772   #
19773   # Choose cacerts source file
19774   #
19775 
19776 # Check whether --with-cacerts-file was given.
19777 if test "${with_cacerts_file+set}" = set; then :
19778   withval=$with_cacerts_file;
19779 fi
19780 
19781   if test "x$with_cacerts_file" != x; then
19782     CACERTS_FILE=$with_cacerts_file
19783   fi
19784 
19785 
19786   ###############################################################################
19787   #
19788   # Enable or disable unlimited crypto
19789   #
19790   # Check whether --enable-unlimited-crypto was given.
19791 if test "${enable_unlimited_crypto+set}" = set; then :
19792   enableval=$enable_unlimited_crypto;
19793 else
19794   enable_unlimited_crypto=no
19795 fi
19796 
19797   if test "x$enable_unlimited_crypto" = "xyes"; then
19798     UNLIMITED_CRYPTO=true
19799   else
19800     UNLIMITED_CRYPTO=false
19801   fi
19802 
19803 
19804   ###############################################################################
19805   #
19806   # Enable or disable the elliptic curve crypto implementation
19807   #
19808 
19809 
19810   ###############################################################################
19811   #
19812   # Compress jars
19813   #
19814   COMPRESS_JARS=false
19815 
19816 
19817 
19818   ###############################################################################
19819   #
19820   # Enable or disable JFR
19821   #
19822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build jfr" >&5
19823 $as_echo_n "checking whether to build jfr... " >&6; }
19824   # Check whether --enable-jfr was given.
19825 if test "${enable_jfr+set}" = set; then :
19826   enableval=$enable_jfr;
19827 else
19828   enable_jfr=auto
19829 fi
19830 
19831   if test "x$enable_jfr" = "xno" -o "x$enable_jfr" = "xauto"; then
19832     ENABLE_JFR=false
19833   elif test "x$enable_jfr" = "xyes" ; then
19834     if test "x$JVM_VARIANT_MINIMAL1" = "xtrue" -o "x$JVM_VARIANT_ZERO" = "xtrue"; then
19835       as_fn_error $? "cannot enable JFR on minimal1 VM or zero build" "$LINENO" 5
19836     elif test "x$OPENJDK_TARGET_OS" = xaix; then
19837       as_fn_error $? "AIX does not support JFR" "$LINENO" 5
19838     else
19839       ENABLE_JFR=true
19840     fi
19841   else
19842     as_fn_error $? "--enable-jfr must either be set to yes or no" "$LINENO" 5
19843   fi
19844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JFR" >&5
19845 $as_echo "$ENABLE_JFR" >&6; }
19846 
19847 
19848 
19849   # Source the version numbers
19850   . $AUTOCONF_DIR/version-numbers
19851 
19852   # Get the settings from parameters
19853 
19854 # Check whether --with-milestone was given.
19855 if test "${with_milestone+set}" = set; then :
19856   withval=$with_milestone;
19857 fi
19858 
19859   if test "x$with_milestone" = xyes; then
19860     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19861   elif test "x$with_milestone" != x; then
19862     MILESTONE="$with_milestone"
19863   fi
19864   if test "x$MILESTONE" = x; then
19865     MILESTONE=internal
19866   fi
19867 
19868 
19869 # Check whether --with-update-version was given.
19870 if test "${with_update_version+set}" = set; then :
19871   withval=$with_update_version;
19872 fi
19873 
19874   if test "x$with_update_version" = xyes; then
19875     as_fn_error $? "Update version must have a value" "$LINENO" 5
19876   elif test "x$with_update_version" != x; then
19877     JDK_UPDATE_VERSION="$with_update_version"
19878     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19879     # to a bug in expr (which reduces it to just X). To work around this, we
19880     # always add a 0 to one digit update versions.
19881     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19882       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19883     fi
19884   fi
19885 
19886 
19887 # Check whether --with-user-release-suffix was given.
19888 if test "${with_user_release_suffix+set}" = set; then :
19889   withval=$with_user_release_suffix;
19890 fi
19891 
19892   if test "x$with_user_release_suffix" = xyes; then
19893     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19894   elif test "x$with_user_release_suffix" != x; then
19895     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19896   fi
19897 
19898 
19899 # Check whether --with-build-number was given.
19900 if test "${with_build_number+set}" = set; then :
19901   withval=$with_build_number;
19902 fi
19903 
19904   if test "x$with_build_number" = xyes; then
19905     as_fn_error $? "Build number must have a value" "$LINENO" 5
19906   elif test "x$with_build_number" != x; then
19907     JDK_BUILD_NUMBER="$with_build_number"
19908   fi
19909   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19910   if test "x$JDK_BUILD_NUMBER" = x; then
19911     JDK_BUILD_NUMBER=b00
19912     if test "x$USER_RELEASE_SUFFIX" = x; then
19913       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19914       # Avoid [:alnum:] since it depends on the locale.
19915       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19916       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19917     fi
19918   fi
19919 
19920   # Now set the JDK version, milestone, build number etc.
19921 
19922 
19923 
19924 
19925 
19926 
19927 
19928 
19929 
19930 
19931 
19932 
19933 
19934 
19935   # The vendor name, if any
19936 
19937 # Check whether --with-vendor-name was given.
19938 if test "${with_vendor_name+set}" = set; then :
19939   withval=$with_vendor_name;
19940 fi
19941 
19942   if test "x$with_vendor_name" = xyes; then
19943     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19944   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19945     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19946   elif test "x$with_vendor_name" != x; then
19947     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19948     # Otherwise we will use the value from "version-numbers" included above.
19949     COMPANY_NAME="$with_vendor_name"
19950   fi
19951 
19952 
19953   # The vendor URL, if any
19954 
19955 # Check whether --with-vendor-url was given.
19956 if test "${with_vendor_url+set}" = set; then :
19957   withval=$with_vendor_url;
19958 fi
19959 
19960   if test "x$with_vendor_url" = xyes; then
19961     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19962   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19963     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19964   else
19965     VENDOR_URL="$with_vendor_url"
19966   fi
19967 
19968 
19969   # The vendor bug URL, if any
19970 
19971 # Check whether --with-vendor-bug-url was given.
19972 if test "${with_vendor_bug_url+set}" = set; then :
19973   withval=$with_vendor_bug_url;
19974 fi
19975 
19976   if test "x$with_vendor_bug_url" = xyes; then
19977     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19978   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19979     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19980   else
19981     VENDOR_URL_BUG="$with_vendor_bug_url"
19982   fi
19983 
19984 
19985   # The vendor VM bug URL, if any
19986 
19987 # Check whether --with-vendor-vm-bug-url was given.
19988 if test "${with_vendor_vm_bug_url+set}" = set; then :
19989   withval=$with_vendor_vm_bug_url;
19990 fi
19991 
19992   if test "x$with_vendor_vm_bug_url" = xyes; then
19993     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19994   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19995     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
19996   else
19997     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
19998   fi
19999 
20000 
20001 
20002 # Check whether --with-copyright-year was given.
20003 if test "${with_copyright_year+set}" = set; then :
20004   withval=$with_copyright_year;
20005 fi
20006 
20007   if test "x$with_copyright_year" = xyes; then
20008     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
20009   elif test "x$with_copyright_year" != x; then
20010     COPYRIGHT_YEAR="$with_copyright_year"
20011   else
20012     COPYRIGHT_YEAR=`date +'%Y'`
20013   fi
20014 
20015 
20016   if test "x$JDK_UPDATE_VERSION" != x; then
20017     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
20018   else
20019     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
20020   fi
20021 
20022 
20023   # The cooked update version used to encode trailing letters in the update
20024   # version into a trailing number. That is no longer needed, but need to
20025   # keep the format in 8u for compatibility.
20026   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
20027 
20028 
20029   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
20030 
20031 
20032 
20033 ###############################################################################
20034 #
20035 # Setup BootJDK, used to bootstrap the build.
20036 #
20037 ###############################################################################
20038 
20039 
20040   BOOT_JDK_FOUND=no
20041 
20042 # Check whether --with-boot-jdk was given.
20043 if test "${with_boot_jdk+set}" = set; then :
20044   withval=$with_boot_jdk;
20045 fi
20046 
20047 
20048   # We look for the Boot JDK through various means, going from more certain to
20049   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20050   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20051   # must check if this is indeed valid; otherwise we'll continue looking.
20052 
20053   # Test: Is bootjdk explicitely set by command line arguments?
20054 
20055   if test "x$BOOT_JDK_FOUND" = xno; then
20056     # Now execute the test
20057 
20058   if test "x$with_boot_jdk" != x; then
20059     BOOT_JDK=$with_boot_jdk
20060     BOOT_JDK_FOUND=maybe
20061     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20062 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20063   fi
20064 
20065 
20066     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20067     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20068       # Do we have a bin/java?
20069       if test ! -x "$BOOT_JDK/bin/java"; then
20070         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20072         BOOT_JDK_FOUND=no
20073       else
20074         # Do we have a bin/javac?
20075         if test ! -x "$BOOT_JDK/bin/javac"; then
20076           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20077 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20078           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20079 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20080           BOOT_JDK_FOUND=no
20081         else
20082           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20083           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20084             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20085 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20086             BOOT_JDK_FOUND=no
20087           else
20088             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20089             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20090 
20091             # Extra M4 quote needed to protect [] in grep expression.
20092             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20093             if test "x$FOUND_VERSION_78" = x; then
20094               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20096               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20097 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20098               BOOT_JDK_FOUND=no
20099             else
20100               # We're done! :-)
20101               BOOT_JDK_FOUND=yes
20102 
20103   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20104 
20105   # Input might be given as Windows format, start by converting to
20106   # unix format.
20107   path="$BOOT_JDK"
20108   new_path=`$CYGPATH -u "$path"`
20109 
20110   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20111   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20112   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20113   # "foo.exe" is OK but "foo" is an error.
20114   #
20115   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20116   # It is also a way to make sure we got the proper file name for the real test later on.
20117   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20118   if test "x$test_shortpath" = x; then
20119     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20120 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20121     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20122   fi
20123 
20124   # Call helper function which possibly converts this using DOS-style short mode.
20125   # If so, the updated path is stored in $new_path.
20126 
20127   input_path="$new_path"
20128   # Check if we need to convert this using DOS-style short mode. If the path
20129   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20130   # take no chances and rewrite it.
20131   # Note: m4 eats our [], so we need to use [ and ] instead.
20132   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20133   if test "x$has_forbidden_chars" != x; then
20134     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20135     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20136     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20137     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20138       # Going to short mode and back again did indeed matter. Since short mode is
20139       # case insensitive, let's make it lowercase to improve readability.
20140       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20141       # Now convert it back to Unix-style (cygpath)
20142       input_path=`$CYGPATH -u "$shortmode_path"`
20143       new_path="$input_path"
20144     fi
20145   fi
20146 
20147   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20148   if test "x$test_cygdrive_prefix" = x; then
20149     # As a simple fix, exclude /usr/bin since it's not a real path.
20150     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20151       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20152       # a path prefixed by /cygdrive for fixpath to work.
20153       new_path="$CYGWIN_ROOT_PATH$input_path"
20154     fi
20155   fi
20156 
20157 
20158   if test "x$path" != "x$new_path"; then
20159     BOOT_JDK="$new_path"
20160     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20161 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20162   fi
20163 
20164   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20165 
20166   path="$BOOT_JDK"
20167   has_colon=`$ECHO $path | $GREP ^.:`
20168   new_path="$path"
20169   if test "x$has_colon" = x; then
20170     # Not in mixed or Windows style, start by that.
20171     new_path=`cmd //c echo $path`
20172   fi
20173 
20174 
20175   input_path="$new_path"
20176   # Check if we need to convert this using DOS-style short mode. If the path
20177   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20178   # take no chances and rewrite it.
20179   # Note: m4 eats our [], so we need to use [ and ] instead.
20180   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20181   if test "x$has_forbidden_chars" != x; then
20182     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20183     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20184   fi
20185 
20186 
20187   windows_path="$new_path"
20188   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20189     unix_path=`$CYGPATH -u "$windows_path"`
20190     new_path="$unix_path"
20191   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20192     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20193     new_path="$unix_path"
20194   fi
20195 
20196   if test "x$path" != "x$new_path"; then
20197     BOOT_JDK="$new_path"
20198     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20199 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20200   fi
20201 
20202   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20203   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20204 
20205   else
20206     # We're on a posix platform. Hooray! :)
20207     path="$BOOT_JDK"
20208     has_space=`$ECHO "$path" | $GREP " "`
20209     if test "x$has_space" != x; then
20210       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20211 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20212       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20213     fi
20214 
20215     # Use eval to expand a potential ~
20216     eval path="$path"
20217     if test ! -f "$path" && test ! -d "$path"; then
20218       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20219     fi
20220 
20221     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20222   fi
20223 
20224               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20225 $as_echo_n "checking for Boot JDK... " >&6; }
20226               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20227 $as_echo "$BOOT_JDK" >&6; }
20228               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20229 $as_echo_n "checking Boot JDK version... " >&6; }
20230               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20231               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20232 $as_echo "$BOOT_JDK_VERSION" >&6; }
20233             fi # end check jdk version
20234           fi # end check rt.jar
20235         fi # end check javac
20236       fi # end check java
20237     fi # end check boot jdk found
20238   fi
20239 
20240   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20241     # Having specified an argument which is incorrect will produce an instant failure;
20242     # we should not go on looking
20243     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20244   fi
20245 
20246   # Test: Is bootjdk available from builddeps?
20247 
20248   if test "x$BOOT_JDK_FOUND" = xno; then
20249     # Now execute the test
20250 
20251 
20252 
20253   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20254     # Source the builddeps file again, to make sure it uses the latest variables!
20255     . $builddepsfile
20256     # Look for a target and build machine specific resource!
20257     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20258     if test "x$resource" = x; then
20259       # Ok, lets instead look for a target specific resource
20260       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20261     fi
20262     if test "x$resource" = x; then
20263       # Ok, lets instead look for a build specific resource
20264       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20265     fi
20266     if test "x$resource" = x; then
20267       # Ok, lets instead look for a generic resource
20268       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20269       resource=${builddep_bootjdk}
20270     fi
20271     if test "x$resource" != x; then
20272       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20273 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20274       # If the resource in the builddeps.conf file is an existing directory,
20275       # for example /java/linux/cups
20276       if test -d ${resource}; then
20277         depdir=${resource}
20278       else
20279 
20280   # bootjdk is for example mymodule
20281   # $resource is for example libs/general/libmymod_1_2_3.zip
20282   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20283   # $with_builddeps_dir is for example /localhome/builddeps
20284   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20285   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20286   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20287   filename=`basename $resource`
20288   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20289   filebase=${filename%%.*}
20290   extension=${filename#*.}
20291   installdir=$with_builddeps_dir/$filebase
20292   if test ! -f $installdir/$filename.unpacked; then
20293     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20294 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20295     if test ! -d $installdir; then
20296       mkdir -p $installdir
20297     fi
20298     if test ! -d $installdir; then
20299       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20300     fi
20301     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20302     touch $tmpfile
20303     if test ! -f $tmpfile; then
20304       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20305     fi
20306 
20307   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20308   # $tmpfile is the local file name for the downloaded file.
20309   VALID_TOOL=no
20310   if test "x$BDEPS_FTP" = xwget; then
20311     VALID_TOOL=yes
20312     wget -O $tmpfile $with_builddeps_server/$resource
20313   fi
20314   if test "x$BDEPS_FTP" = xlftp; then
20315     VALID_TOOL=yes
20316     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20317   fi
20318   if test "x$BDEPS_FTP" = xftp; then
20319     VALID_TOOL=yes
20320     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20321     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20322     FTPUSERPWD=${FTPSERVER%%@*}
20323     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20324       FTPUSER=${userpwd%%:*}
20325       FTPPWD=${userpwd#*@}
20326       FTPSERVER=${FTPSERVER#*@}
20327     else
20328       FTPUSER=ftp
20329       FTPPWD=ftp
20330     fi
20331     # the "pass" command does not work on some
20332     # ftp clients (read ftp.exe) but if it works,
20333     # passive mode is better!
20334     ( \
20335         echo "user $FTPUSER $FTPPWD"        ; \
20336         echo "pass"                         ; \
20337         echo "bin"                          ; \
20338         echo "get $FTPPATH $tmpfile"              ; \
20339     ) | ftp -in $FTPSERVER
20340   fi
20341   if test "x$VALID_TOOL" != xyes; then
20342     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20343   fi
20344 
20345     mv $tmpfile $installdir/$filename
20346     if test ! -s $installdir/$filename; then
20347       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20348     fi
20349     case "$extension" in
20350       zip)  echo "Unzipping $installdir/$filename..."
20351         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20352         ;;
20353       tar.gz) echo "Untaring $installdir/$filename..."
20354         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20355         ;;
20356       tgz) echo "Untaring $installdir/$filename..."
20357         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20358         ;;
20359       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20360         ;;
20361     esac
20362   fi
20363   if test -f $installdir/$filename.unpacked; then
20364     depdir=$installdir
20365   fi
20366 
20367       fi
20368       # Source the builddeps file again, because in the previous command, the depdir
20369       # was updated to point at the current build dependency install directory.
20370       . $builddepsfile
20371       # Now extract variables from the builddeps.conf files.
20372       theroot=${builddep_bootjdk_ROOT}
20373       thecflags=${builddep_bootjdk_CFLAGS}
20374       thelibs=${builddep_bootjdk_LIBS}
20375       if test "x$depdir" = x; then
20376         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20377       fi
20378       BOOT_JDK=$depdir
20379       if test "x$theroot" != x; then
20380         BOOT_JDK="$theroot"
20381       fi
20382       if test "x$thecflags" != x; then
20383         BOOT_JDK_CFLAGS="$thecflags"
20384       fi
20385       if test "x$thelibs" != x; then
20386         BOOT_JDK_LIBS="$thelibs"
20387       fi
20388       BOOT_JDK_FOUND=maybe
20389       else BOOT_JDK_FOUND=no
20390 
20391     fi
20392     else BOOT_JDK_FOUND=no
20393 
20394   fi
20395 
20396 
20397 
20398     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20399     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20400       # Do we have a bin/java?
20401       if test ! -x "$BOOT_JDK/bin/java"; then
20402         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20404         BOOT_JDK_FOUND=no
20405       else
20406         # Do we have a bin/javac?
20407         if test ! -x "$BOOT_JDK/bin/javac"; then
20408           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20410           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20411 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20412           BOOT_JDK_FOUND=no
20413         else
20414           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20415           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20416             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20417 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20418             BOOT_JDK_FOUND=no
20419           else
20420             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20421             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20422 
20423             # Extra M4 quote needed to protect [] in grep expression.
20424             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20425             if test "x$FOUND_VERSION_78" = x; then
20426               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20428               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20429 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20430               BOOT_JDK_FOUND=no
20431             else
20432               # We're done! :-)
20433               BOOT_JDK_FOUND=yes
20434 
20435   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20436 
20437   # Input might be given as Windows format, start by converting to
20438   # unix format.
20439   path="$BOOT_JDK"
20440   new_path=`$CYGPATH -u "$path"`
20441 
20442   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20443   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20444   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20445   # "foo.exe" is OK but "foo" is an error.
20446   #
20447   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20448   # It is also a way to make sure we got the proper file name for the real test later on.
20449   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20450   if test "x$test_shortpath" = x; then
20451     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20452 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20453     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20454   fi
20455 
20456   # Call helper function which possibly converts this using DOS-style short mode.
20457   # If so, the updated path is stored in $new_path.
20458 
20459   input_path="$new_path"
20460   # Check if we need to convert this using DOS-style short mode. If the path
20461   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20462   # take no chances and rewrite it.
20463   # Note: m4 eats our [], so we need to use [ and ] instead.
20464   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20465   if test "x$has_forbidden_chars" != x; then
20466     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20467     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20468     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20469     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20470       # Going to short mode and back again did indeed matter. Since short mode is
20471       # case insensitive, let's make it lowercase to improve readability.
20472       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20473       # Now convert it back to Unix-style (cygpath)
20474       input_path=`$CYGPATH -u "$shortmode_path"`
20475       new_path="$input_path"
20476     fi
20477   fi
20478 
20479   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20480   if test "x$test_cygdrive_prefix" = x; then
20481     # As a simple fix, exclude /usr/bin since it's not a real path.
20482     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20483       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20484       # a path prefixed by /cygdrive for fixpath to work.
20485       new_path="$CYGWIN_ROOT_PATH$input_path"
20486     fi
20487   fi
20488 
20489 
20490   if test "x$path" != "x$new_path"; then
20491     BOOT_JDK="$new_path"
20492     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20493 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20494   fi
20495 
20496   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20497 
20498   path="$BOOT_JDK"
20499   has_colon=`$ECHO $path | $GREP ^.:`
20500   new_path="$path"
20501   if test "x$has_colon" = x; then
20502     # Not in mixed or Windows style, start by that.
20503     new_path=`cmd //c echo $path`
20504   fi
20505 
20506 
20507   input_path="$new_path"
20508   # Check if we need to convert this using DOS-style short mode. If the path
20509   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20510   # take no chances and rewrite it.
20511   # Note: m4 eats our [], so we need to use [ and ] instead.
20512   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20513   if test "x$has_forbidden_chars" != x; then
20514     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20515     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20516   fi
20517 
20518 
20519   windows_path="$new_path"
20520   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20521     unix_path=`$CYGPATH -u "$windows_path"`
20522     new_path="$unix_path"
20523   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20524     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20525     new_path="$unix_path"
20526   fi
20527 
20528   if test "x$path" != "x$new_path"; then
20529     BOOT_JDK="$new_path"
20530     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20531 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20532   fi
20533 
20534   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20535   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20536 
20537   else
20538     # We're on a posix platform. Hooray! :)
20539     path="$BOOT_JDK"
20540     has_space=`$ECHO "$path" | $GREP " "`
20541     if test "x$has_space" != x; then
20542       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20543 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20544       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20545     fi
20546 
20547     # Use eval to expand a potential ~
20548     eval path="$path"
20549     if test ! -f "$path" && test ! -d "$path"; then
20550       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20551     fi
20552 
20553     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20554   fi
20555 
20556               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20557 $as_echo_n "checking for Boot JDK... " >&6; }
20558               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20559 $as_echo "$BOOT_JDK" >&6; }
20560               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20561 $as_echo_n "checking Boot JDK version... " >&6; }
20562               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20563               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20564 $as_echo "$BOOT_JDK_VERSION" >&6; }
20565             fi # end check jdk version
20566           fi # end check rt.jar
20567         fi # end check javac
20568       fi # end check java
20569     fi # end check boot jdk found
20570   fi
20571 
20572 
20573   # Test: Is $JAVA_HOME set?
20574 
20575   if test "x$BOOT_JDK_FOUND" = xno; then
20576     # Now execute the test
20577 
20578   if test "x$JAVA_HOME" != x; then
20579     JAVA_HOME_PROCESSED="$JAVA_HOME"
20580 
20581   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20582 
20583   # Input might be given as Windows format, start by converting to
20584   # unix format.
20585   path="$JAVA_HOME_PROCESSED"
20586   new_path=`$CYGPATH -u "$path"`
20587 
20588   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20589   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20590   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20591   # "foo.exe" is OK but "foo" is an error.
20592   #
20593   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20594   # It is also a way to make sure we got the proper file name for the real test later on.
20595   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20596   if test "x$test_shortpath" = x; then
20597     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20598 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20599     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20600   fi
20601 
20602   # Call helper function which possibly converts this using DOS-style short mode.
20603   # If so, the updated path is stored in $new_path.
20604 
20605   input_path="$new_path"
20606   # Check if we need to convert this using DOS-style short mode. If the path
20607   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20608   # take no chances and rewrite it.
20609   # Note: m4 eats our [], so we need to use [ and ] instead.
20610   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20611   if test "x$has_forbidden_chars" != x; then
20612     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20613     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20614     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20615     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20616       # Going to short mode and back again did indeed matter. Since short mode is
20617       # case insensitive, let's make it lowercase to improve readability.
20618       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20619       # Now convert it back to Unix-style (cygpath)
20620       input_path=`$CYGPATH -u "$shortmode_path"`
20621       new_path="$input_path"
20622     fi
20623   fi
20624 
20625   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20626   if test "x$test_cygdrive_prefix" = x; then
20627     # As a simple fix, exclude /usr/bin since it's not a real path.
20628     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20629       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20630       # a path prefixed by /cygdrive for fixpath to work.
20631       new_path="$CYGWIN_ROOT_PATH$input_path"
20632     fi
20633   fi
20634 
20635 
20636   if test "x$path" != "x$new_path"; then
20637     JAVA_HOME_PROCESSED="$new_path"
20638     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20639 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20640   fi
20641 
20642   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20643 
20644   path="$JAVA_HOME_PROCESSED"
20645   has_colon=`$ECHO $path | $GREP ^.:`
20646   new_path="$path"
20647   if test "x$has_colon" = x; then
20648     # Not in mixed or Windows style, start by that.
20649     new_path=`cmd //c echo $path`
20650   fi
20651 
20652 
20653   input_path="$new_path"
20654   # Check if we need to convert this using DOS-style short mode. If the path
20655   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20656   # take no chances and rewrite it.
20657   # Note: m4 eats our [], so we need to use [ and ] instead.
20658   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20659   if test "x$has_forbidden_chars" != x; then
20660     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20661     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20662   fi
20663 
20664 
20665   windows_path="$new_path"
20666   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20667     unix_path=`$CYGPATH -u "$windows_path"`
20668     new_path="$unix_path"
20669   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20670     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20671     new_path="$unix_path"
20672   fi
20673 
20674   if test "x$path" != "x$new_path"; then
20675     JAVA_HOME_PROCESSED="$new_path"
20676     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20677 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20678   fi
20679 
20680   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20681   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20682 
20683   else
20684     # We're on a posix platform. Hooray! :)
20685     path="$JAVA_HOME_PROCESSED"
20686     has_space=`$ECHO "$path" | $GREP " "`
20687     if test "x$has_space" != x; then
20688       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20689 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20690       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20691     fi
20692 
20693     # Use eval to expand a potential ~
20694     eval path="$path"
20695     if test ! -f "$path" && test ! -d "$path"; then
20696       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20697     fi
20698 
20699     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20700   fi
20701 
20702     if test ! -d "$JAVA_HOME_PROCESSED"; then
20703       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20704 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20705     else
20706       # Aha, the user has set a JAVA_HOME
20707       # let us use that as the Boot JDK.
20708       BOOT_JDK="$JAVA_HOME_PROCESSED"
20709       BOOT_JDK_FOUND=maybe
20710       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20711 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20712     fi
20713   fi
20714 
20715 
20716     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20717     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20718       # Do we have a bin/java?
20719       if test ! -x "$BOOT_JDK/bin/java"; then
20720         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20722         BOOT_JDK_FOUND=no
20723       else
20724         # Do we have a bin/javac?
20725         if test ! -x "$BOOT_JDK/bin/javac"; then
20726           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20728           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20730           BOOT_JDK_FOUND=no
20731         else
20732           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20733           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20734             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20735 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20736             BOOT_JDK_FOUND=no
20737           else
20738             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20739             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20740 
20741             # Extra M4 quote needed to protect [] in grep expression.
20742             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20743             if test "x$FOUND_VERSION_78" = x; then
20744               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20746               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20747 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20748               BOOT_JDK_FOUND=no
20749             else
20750               # We're done! :-)
20751               BOOT_JDK_FOUND=yes
20752 
20753   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20754 
20755   # Input might be given as Windows format, start by converting to
20756   # unix format.
20757   path="$BOOT_JDK"
20758   new_path=`$CYGPATH -u "$path"`
20759 
20760   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20761   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20762   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20763   # "foo.exe" is OK but "foo" is an error.
20764   #
20765   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20766   # It is also a way to make sure we got the proper file name for the real test later on.
20767   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20768   if test "x$test_shortpath" = x; then
20769     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20770 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20771     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20772   fi
20773 
20774   # Call helper function which possibly converts this using DOS-style short mode.
20775   # If so, the updated path is stored in $new_path.
20776 
20777   input_path="$new_path"
20778   # Check if we need to convert this using DOS-style short mode. If the path
20779   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20780   # take no chances and rewrite it.
20781   # Note: m4 eats our [], so we need to use [ and ] instead.
20782   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20783   if test "x$has_forbidden_chars" != x; then
20784     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20785     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20786     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20787     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20788       # Going to short mode and back again did indeed matter. Since short mode is
20789       # case insensitive, let's make it lowercase to improve readability.
20790       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20791       # Now convert it back to Unix-style (cygpath)
20792       input_path=`$CYGPATH -u "$shortmode_path"`
20793       new_path="$input_path"
20794     fi
20795   fi
20796 
20797   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20798   if test "x$test_cygdrive_prefix" = x; then
20799     # As a simple fix, exclude /usr/bin since it's not a real path.
20800     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20801       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20802       # a path prefixed by /cygdrive for fixpath to work.
20803       new_path="$CYGWIN_ROOT_PATH$input_path"
20804     fi
20805   fi
20806 
20807 
20808   if test "x$path" != "x$new_path"; then
20809     BOOT_JDK="$new_path"
20810     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20811 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20812   fi
20813 
20814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20815 
20816   path="$BOOT_JDK"
20817   has_colon=`$ECHO $path | $GREP ^.:`
20818   new_path="$path"
20819   if test "x$has_colon" = x; then
20820     # Not in mixed or Windows style, start by that.
20821     new_path=`cmd //c echo $path`
20822   fi
20823 
20824 
20825   input_path="$new_path"
20826   # Check if we need to convert this using DOS-style short mode. If the path
20827   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20828   # take no chances and rewrite it.
20829   # Note: m4 eats our [], so we need to use [ and ] instead.
20830   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20831   if test "x$has_forbidden_chars" != x; then
20832     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20833     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20834   fi
20835 
20836 
20837   windows_path="$new_path"
20838   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20839     unix_path=`$CYGPATH -u "$windows_path"`
20840     new_path="$unix_path"
20841   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20842     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20843     new_path="$unix_path"
20844   fi
20845 
20846   if test "x$path" != "x$new_path"; then
20847     BOOT_JDK="$new_path"
20848     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20849 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20850   fi
20851 
20852   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20853   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20854 
20855   else
20856     # We're on a posix platform. Hooray! :)
20857     path="$BOOT_JDK"
20858     has_space=`$ECHO "$path" | $GREP " "`
20859     if test "x$has_space" != x; then
20860       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20862       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20863     fi
20864 
20865     # Use eval to expand a potential ~
20866     eval path="$path"
20867     if test ! -f "$path" && test ! -d "$path"; then
20868       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20869     fi
20870 
20871     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20872   fi
20873 
20874               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20875 $as_echo_n "checking for Boot JDK... " >&6; }
20876               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20877 $as_echo "$BOOT_JDK" >&6; }
20878               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20879 $as_echo_n "checking Boot JDK version... " >&6; }
20880               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20881               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20882 $as_echo "$BOOT_JDK_VERSION" >&6; }
20883             fi # end check jdk version
20884           fi # end check rt.jar
20885         fi # end check javac
20886       fi # end check java
20887     fi # end check boot jdk found
20888   fi
20889 
20890 
20891   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20892 
20893   if test "x$BOOT_JDK_FOUND" = xno; then
20894     # Now execute the test
20895 
20896   if test -x /usr/libexec/java_home; then
20897     BOOT_JDK=`/usr/libexec/java_home`
20898     BOOT_JDK_FOUND=maybe
20899     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20900 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20901   fi
20902 
20903 
20904     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20905     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20906       # Do we have a bin/java?
20907       if test ! -x "$BOOT_JDK/bin/java"; then
20908         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20909 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20910         BOOT_JDK_FOUND=no
20911       else
20912         # Do we have a bin/javac?
20913         if test ! -x "$BOOT_JDK/bin/javac"; then
20914           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20915 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20916           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20917 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20918           BOOT_JDK_FOUND=no
20919         else
20920           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20921           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20922             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20923 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20924             BOOT_JDK_FOUND=no
20925           else
20926             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20927             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20928 
20929             # Extra M4 quote needed to protect [] in grep expression.
20930             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20931             if test "x$FOUND_VERSION_78" = x; then
20932               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20933 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20934               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20935 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20936               BOOT_JDK_FOUND=no
20937             else
20938               # We're done! :-)
20939               BOOT_JDK_FOUND=yes
20940 
20941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20942 
20943   # Input might be given as Windows format, start by converting to
20944   # unix format.
20945   path="$BOOT_JDK"
20946   new_path=`$CYGPATH -u "$path"`
20947 
20948   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20949   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20950   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20951   # "foo.exe" is OK but "foo" is an error.
20952   #
20953   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20954   # It is also a way to make sure we got the proper file name for the real test later on.
20955   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20956   if test "x$test_shortpath" = x; then
20957     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20958 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20959     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20960   fi
20961 
20962   # Call helper function which possibly converts this using DOS-style short mode.
20963   # If so, the updated path is stored in $new_path.
20964 
20965   input_path="$new_path"
20966   # Check if we need to convert this using DOS-style short mode. If the path
20967   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20968   # take no chances and rewrite it.
20969   # Note: m4 eats our [], so we need to use [ and ] instead.
20970   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20971   if test "x$has_forbidden_chars" != x; then
20972     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20973     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20974     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20975     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20976       # Going to short mode and back again did indeed matter. Since short mode is
20977       # case insensitive, let's make it lowercase to improve readability.
20978       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20979       # Now convert it back to Unix-style (cygpath)
20980       input_path=`$CYGPATH -u "$shortmode_path"`
20981       new_path="$input_path"
20982     fi
20983   fi
20984 
20985   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20986   if test "x$test_cygdrive_prefix" = x; then
20987     # As a simple fix, exclude /usr/bin since it's not a real path.
20988     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20989       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20990       # a path prefixed by /cygdrive for fixpath to work.
20991       new_path="$CYGWIN_ROOT_PATH$input_path"
20992     fi
20993   fi
20994 
20995 
20996   if test "x$path" != "x$new_path"; then
20997     BOOT_JDK="$new_path"
20998     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20999 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21000   fi
21001 
21002   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21003 
21004   path="$BOOT_JDK"
21005   has_colon=`$ECHO $path | $GREP ^.:`
21006   new_path="$path"
21007   if test "x$has_colon" = x; then
21008     # Not in mixed or Windows style, start by that.
21009     new_path=`cmd //c echo $path`
21010   fi
21011 
21012 
21013   input_path="$new_path"
21014   # Check if we need to convert this using DOS-style short mode. If the path
21015   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21016   # take no chances and rewrite it.
21017   # Note: m4 eats our [], so we need to use [ and ] instead.
21018   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21019   if test "x$has_forbidden_chars" != x; then
21020     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21021     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21022   fi
21023 
21024 
21025   windows_path="$new_path"
21026   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21027     unix_path=`$CYGPATH -u "$windows_path"`
21028     new_path="$unix_path"
21029   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21030     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21031     new_path="$unix_path"
21032   fi
21033 
21034   if test "x$path" != "x$new_path"; then
21035     BOOT_JDK="$new_path"
21036     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21037 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21038   fi
21039 
21040   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21041   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21042 
21043   else
21044     # We're on a posix platform. Hooray! :)
21045     path="$BOOT_JDK"
21046     has_space=`$ECHO "$path" | $GREP " "`
21047     if test "x$has_space" != x; then
21048       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21049 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21050       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21051     fi
21052 
21053     # Use eval to expand a potential ~
21054     eval path="$path"
21055     if test ! -f "$path" && test ! -d "$path"; then
21056       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21057     fi
21058 
21059     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21060   fi
21061 
21062               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21063 $as_echo_n "checking for Boot JDK... " >&6; }
21064               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21065 $as_echo "$BOOT_JDK" >&6; }
21066               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21067 $as_echo_n "checking Boot JDK version... " >&6; }
21068               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21069               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21070 $as_echo "$BOOT_JDK_VERSION" >&6; }
21071             fi # end check jdk version
21072           fi # end check rt.jar
21073         fi # end check javac
21074       fi # end check java
21075     fi # end check boot jdk found
21076   fi
21077 
21078 
21079   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21080 
21081   if test "x$BOOT_JDK_FOUND" = xno; then
21082     # Now execute the test
21083 
21084   # Extract the first word of "javac", so it can be a program name with args.
21085 set dummy javac; ac_word=$2
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21087 $as_echo_n "checking for $ac_word... " >&6; }
21088 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21089   $as_echo_n "(cached) " >&6
21090 else
21091   case $JAVAC_CHECK in
21092   [\\/]* | ?:[\\/]*)
21093   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21094   ;;
21095   *)
21096   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21097 for as_dir in $PATH
21098 do
21099   IFS=$as_save_IFS
21100   test -z "$as_dir" && as_dir=.
21101     for ac_exec_ext in '' $ac_executable_extensions; do
21102   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21103     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21105     break 2
21106   fi
21107 done
21108   done
21109 IFS=$as_save_IFS
21110 
21111   ;;
21112 esac
21113 fi
21114 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21115 if test -n "$JAVAC_CHECK"; then
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21117 $as_echo "$JAVAC_CHECK" >&6; }
21118 else
21119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21120 $as_echo "no" >&6; }
21121 fi
21122 
21123 
21124   # Extract the first word of "java", so it can be a program name with args.
21125 set dummy java; ac_word=$2
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21127 $as_echo_n "checking for $ac_word... " >&6; }
21128 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21129   $as_echo_n "(cached) " >&6
21130 else
21131   case $JAVA_CHECK in
21132   [\\/]* | ?:[\\/]*)
21133   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21134   ;;
21135   *)
21136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21137 for as_dir in $PATH
21138 do
21139   IFS=$as_save_IFS
21140   test -z "$as_dir" && as_dir=.
21141     for ac_exec_ext in '' $ac_executable_extensions; do
21142   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21143     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21144     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21145     break 2
21146   fi
21147 done
21148   done
21149 IFS=$as_save_IFS
21150 
21151   ;;
21152 esac
21153 fi
21154 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21155 if test -n "$JAVA_CHECK"; then
21156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21157 $as_echo "$JAVA_CHECK" >&6; }
21158 else
21159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160 $as_echo "no" >&6; }
21161 fi
21162 
21163 
21164   BINARY="$JAVAC_CHECK"
21165   if test "x$JAVAC_CHECK" = x; then
21166     BINARY="$JAVA_CHECK"
21167   fi
21168   if test "x$BINARY" != x; then
21169     # So there is a java(c) binary, it might be part of a JDK.
21170     # Lets find the JDK/JRE directory by following symbolic links.
21171     # Linux/GNU systems often have links from /usr/bin/java to
21172     # /etc/alternatives/java to the real JDK binary.
21173 
21174   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21175     # Follow a chain of symbolic links. Use readlink
21176     # where it exists, else fall back to horribly
21177     # complicated shell code.
21178     if test "x$READLINK_TESTED" != yes; then
21179       # On MacOSX there is a readlink tool with a different
21180       # purpose than the GNU readlink tool. Check the found readlink.
21181       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21182       if test "x$ISGNU" = x; then
21183         # A readlink that we do not know how to use.
21184         # Are there other non-GNU readlinks out there?
21185         READLINK_TESTED=yes
21186         READLINK=
21187       fi
21188     fi
21189 
21190     if test "x$READLINK" != x; then
21191       BINARY=`$READLINK -f $BINARY`
21192     else
21193       # Save the current directory for restoring afterwards
21194       STARTDIR=$PWD
21195       COUNTER=0
21196       sym_link_dir=`$DIRNAME $BINARY`
21197       sym_link_file=`$BASENAME $BINARY`
21198       cd $sym_link_dir
21199       # Use -P flag to resolve symlinks in directories.
21200       cd `$THEPWDCMD -P`
21201       sym_link_dir=`$THEPWDCMD -P`
21202       # Resolve file symlinks
21203       while test $COUNTER -lt 20; do
21204         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21205         if test "x$ISLINK" == x; then
21206           # This is not a symbolic link! We are done!
21207           break
21208         fi
21209         # Again resolve directory symlinks since the target of the just found
21210         # link could be in a different directory
21211         cd `$DIRNAME $ISLINK`
21212         sym_link_dir=`$THEPWDCMD -P`
21213         sym_link_file=`$BASENAME $ISLINK`
21214         let COUNTER=COUNTER+1
21215       done
21216       cd $STARTDIR
21217       BINARY=$sym_link_dir/$sym_link_file
21218     fi
21219   fi
21220 
21221     BOOT_JDK=`dirname "$BINARY"`
21222     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21223     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21224       # Looks like we found ourselves an JDK
21225       BOOT_JDK_FOUND=maybe
21226       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21227 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21228     fi
21229   fi
21230 
21231 
21232     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21233     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21234       # Do we have a bin/java?
21235       if test ! -x "$BOOT_JDK/bin/java"; then
21236         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21237 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21238         BOOT_JDK_FOUND=no
21239       else
21240         # Do we have a bin/javac?
21241         if test ! -x "$BOOT_JDK/bin/javac"; then
21242           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21244           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21245 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21246           BOOT_JDK_FOUND=no
21247         else
21248           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21249           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21250             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21251 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21252             BOOT_JDK_FOUND=no
21253           else
21254             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21255             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21256 
21257             # Extra M4 quote needed to protect [] in grep expression.
21258             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21259             if test "x$FOUND_VERSION_78" = x; then
21260               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21261 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21262               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21263 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21264               BOOT_JDK_FOUND=no
21265             else
21266               # We're done! :-)
21267               BOOT_JDK_FOUND=yes
21268 
21269   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21270 
21271   # Input might be given as Windows format, start by converting to
21272   # unix format.
21273   path="$BOOT_JDK"
21274   new_path=`$CYGPATH -u "$path"`
21275 
21276   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21277   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21278   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21279   # "foo.exe" is OK but "foo" is an error.
21280   #
21281   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21282   # It is also a way to make sure we got the proper file name for the real test later on.
21283   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21284   if test "x$test_shortpath" = x; then
21285     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21286 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21287     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21288   fi
21289 
21290   # Call helper function which possibly converts this using DOS-style short mode.
21291   # If so, the updated path is stored in $new_path.
21292 
21293   input_path="$new_path"
21294   # Check if we need to convert this using DOS-style short mode. If the path
21295   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21296   # take no chances and rewrite it.
21297   # Note: m4 eats our [], so we need to use [ and ] instead.
21298   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21299   if test "x$has_forbidden_chars" != x; then
21300     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21301     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21302     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21303     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21304       # Going to short mode and back again did indeed matter. Since short mode is
21305       # case insensitive, let's make it lowercase to improve readability.
21306       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21307       # Now convert it back to Unix-style (cygpath)
21308       input_path=`$CYGPATH -u "$shortmode_path"`
21309       new_path="$input_path"
21310     fi
21311   fi
21312 
21313   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21314   if test "x$test_cygdrive_prefix" = x; then
21315     # As a simple fix, exclude /usr/bin since it's not a real path.
21316     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21317       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21318       # a path prefixed by /cygdrive for fixpath to work.
21319       new_path="$CYGWIN_ROOT_PATH$input_path"
21320     fi
21321   fi
21322 
21323 
21324   if test "x$path" != "x$new_path"; then
21325     BOOT_JDK="$new_path"
21326     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21327 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21328   fi
21329 
21330   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21331 
21332   path="$BOOT_JDK"
21333   has_colon=`$ECHO $path | $GREP ^.:`
21334   new_path="$path"
21335   if test "x$has_colon" = x; then
21336     # Not in mixed or Windows style, start by that.
21337     new_path=`cmd //c echo $path`
21338   fi
21339 
21340 
21341   input_path="$new_path"
21342   # Check if we need to convert this using DOS-style short mode. If the path
21343   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21344   # take no chances and rewrite it.
21345   # Note: m4 eats our [], so we need to use [ and ] instead.
21346   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21347   if test "x$has_forbidden_chars" != x; then
21348     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21349     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21350   fi
21351 
21352 
21353   windows_path="$new_path"
21354   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21355     unix_path=`$CYGPATH -u "$windows_path"`
21356     new_path="$unix_path"
21357   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21358     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21359     new_path="$unix_path"
21360   fi
21361 
21362   if test "x$path" != "x$new_path"; then
21363     BOOT_JDK="$new_path"
21364     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21365 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21366   fi
21367 
21368   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21369   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21370 
21371   else
21372     # We're on a posix platform. Hooray! :)
21373     path="$BOOT_JDK"
21374     has_space=`$ECHO "$path" | $GREP " "`
21375     if test "x$has_space" != x; then
21376       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21377 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21378       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21379     fi
21380 
21381     # Use eval to expand a potential ~
21382     eval path="$path"
21383     if test ! -f "$path" && test ! -d "$path"; then
21384       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21385     fi
21386 
21387     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21388   fi
21389 
21390               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21391 $as_echo_n "checking for Boot JDK... " >&6; }
21392               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21393 $as_echo "$BOOT_JDK" >&6; }
21394               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21395 $as_echo_n "checking Boot JDK version... " >&6; }
21396               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21397               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21398 $as_echo "$BOOT_JDK_VERSION" >&6; }
21399             fi # end check jdk version
21400           fi # end check rt.jar
21401         fi # end check javac
21402       fi # end check java
21403     fi # end check boot jdk found
21404   fi
21405 
21406 
21407   # Test: Is there a JDK installed in default, well-known locations?
21408 
21409   if test "x$BOOT_JDK_FOUND" = xno; then
21410     # Now execute the test
21411 
21412   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21413 
21414   if test "x$BOOT_JDK_FOUND" = xno; then
21415     # Now execute the test
21416 
21417   if test "x$ProgramW6432" != x; then
21418     VIRTUAL_DIR="$ProgramW6432/Java"
21419 
21420   windows_path="$VIRTUAL_DIR"
21421   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21422     unix_path=`$CYGPATH -u "$windows_path"`
21423     VIRTUAL_DIR="$unix_path"
21424   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21425     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21426     VIRTUAL_DIR="$unix_path"
21427   fi
21428 
21429 
21430   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21431   BOOT_JDK_SUFFIX=""
21432   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21433   if test "x$ALL_JDKS_FOUND" != x; then
21434     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21435 
21436   if test "x$BOOT_JDK_FOUND" = xno; then
21437     # Now execute the test
21438 
21439         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21440         if test -d "$BOOT_JDK"; then
21441           BOOT_JDK_FOUND=maybe
21442           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21443 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21444         fi
21445 
21446 
21447     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21448     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21449       # Do we have a bin/java?
21450       if test ! -x "$BOOT_JDK/bin/java"; then
21451         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21452 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21453         BOOT_JDK_FOUND=no
21454       else
21455         # Do we have a bin/javac?
21456         if test ! -x "$BOOT_JDK/bin/javac"; then
21457           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21458 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21459           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21460 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21461           BOOT_JDK_FOUND=no
21462         else
21463           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21464           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21465             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21466 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21467             BOOT_JDK_FOUND=no
21468           else
21469             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21470             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21471 
21472             # Extra M4 quote needed to protect [] in grep expression.
21473             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21474             if test "x$FOUND_VERSION_78" = x; then
21475               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21476 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21477               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21478 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21479               BOOT_JDK_FOUND=no
21480             else
21481               # We're done! :-)
21482               BOOT_JDK_FOUND=yes
21483 
21484   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21485 
21486   # Input might be given as Windows format, start by converting to
21487   # unix format.
21488   path="$BOOT_JDK"
21489   new_path=`$CYGPATH -u "$path"`
21490 
21491   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21492   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21493   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21494   # "foo.exe" is OK but "foo" is an error.
21495   #
21496   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21497   # It is also a way to make sure we got the proper file name for the real test later on.
21498   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21499   if test "x$test_shortpath" = x; then
21500     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21501 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21502     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21503   fi
21504 
21505   # Call helper function which possibly converts this using DOS-style short mode.
21506   # If so, the updated path is stored in $new_path.
21507 
21508   input_path="$new_path"
21509   # Check if we need to convert this using DOS-style short mode. If the path
21510   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21511   # take no chances and rewrite it.
21512   # Note: m4 eats our [], so we need to use [ and ] instead.
21513   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21514   if test "x$has_forbidden_chars" != x; then
21515     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21516     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21517     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21518     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21519       # Going to short mode and back again did indeed matter. Since short mode is
21520       # case insensitive, let's make it lowercase to improve readability.
21521       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21522       # Now convert it back to Unix-style (cygpath)
21523       input_path=`$CYGPATH -u "$shortmode_path"`
21524       new_path="$input_path"
21525     fi
21526   fi
21527 
21528   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21529   if test "x$test_cygdrive_prefix" = x; then
21530     # As a simple fix, exclude /usr/bin since it's not a real path.
21531     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21532       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21533       # a path prefixed by /cygdrive for fixpath to work.
21534       new_path="$CYGWIN_ROOT_PATH$input_path"
21535     fi
21536   fi
21537 
21538 
21539   if test "x$path" != "x$new_path"; then
21540     BOOT_JDK="$new_path"
21541     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21542 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21543   fi
21544 
21545   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21546 
21547   path="$BOOT_JDK"
21548   has_colon=`$ECHO $path | $GREP ^.:`
21549   new_path="$path"
21550   if test "x$has_colon" = x; then
21551     # Not in mixed or Windows style, start by that.
21552     new_path=`cmd //c echo $path`
21553   fi
21554 
21555 
21556   input_path="$new_path"
21557   # Check if we need to convert this using DOS-style short mode. If the path
21558   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21559   # take no chances and rewrite it.
21560   # Note: m4 eats our [], so we need to use [ and ] instead.
21561   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21562   if test "x$has_forbidden_chars" != x; then
21563     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21564     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21565   fi
21566 
21567 
21568   windows_path="$new_path"
21569   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21570     unix_path=`$CYGPATH -u "$windows_path"`
21571     new_path="$unix_path"
21572   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21573     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21574     new_path="$unix_path"
21575   fi
21576 
21577   if test "x$path" != "x$new_path"; then
21578     BOOT_JDK="$new_path"
21579     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21580 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21581   fi
21582 
21583   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21584   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21585 
21586   else
21587     # We're on a posix platform. Hooray! :)
21588     path="$BOOT_JDK"
21589     has_space=`$ECHO "$path" | $GREP " "`
21590     if test "x$has_space" != x; then
21591       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21592 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21593       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21594     fi
21595 
21596     # Use eval to expand a potential ~
21597     eval path="$path"
21598     if test ! -f "$path" && test ! -d "$path"; then
21599       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21600     fi
21601 
21602     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21603   fi
21604 
21605               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21606 $as_echo_n "checking for Boot JDK... " >&6; }
21607               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21608 $as_echo "$BOOT_JDK" >&6; }
21609               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21610 $as_echo_n "checking Boot JDK version... " >&6; }
21611               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21612               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21613 $as_echo "$BOOT_JDK_VERSION" >&6; }
21614             fi # end check jdk version
21615           fi # end check rt.jar
21616         fi # end check javac
21617       fi # end check java
21618     fi # end check boot jdk found
21619   fi
21620 
21621     done
21622   fi
21623 
21624   fi
21625 
21626 
21627     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21628     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21629       # Do we have a bin/java?
21630       if test ! -x "$BOOT_JDK/bin/java"; then
21631         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21633         BOOT_JDK_FOUND=no
21634       else
21635         # Do we have a bin/javac?
21636         if test ! -x "$BOOT_JDK/bin/javac"; then
21637           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21638 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21639           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21640 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21641           BOOT_JDK_FOUND=no
21642         else
21643           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21644           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21645             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21647             BOOT_JDK_FOUND=no
21648           else
21649             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21650             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21651 
21652             # Extra M4 quote needed to protect [] in grep expression.
21653             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21654             if test "x$FOUND_VERSION_78" = x; then
21655               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21656 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21657               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21658 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21659               BOOT_JDK_FOUND=no
21660             else
21661               # We're done! :-)
21662               BOOT_JDK_FOUND=yes
21663 
21664   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21665 
21666   # Input might be given as Windows format, start by converting to
21667   # unix format.
21668   path="$BOOT_JDK"
21669   new_path=`$CYGPATH -u "$path"`
21670 
21671   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21672   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21673   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21674   # "foo.exe" is OK but "foo" is an error.
21675   #
21676   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21677   # It is also a way to make sure we got the proper file name for the real test later on.
21678   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21679   if test "x$test_shortpath" = x; then
21680     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21681 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21682     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21683   fi
21684 
21685   # Call helper function which possibly converts this using DOS-style short mode.
21686   # If so, the updated path is stored in $new_path.
21687 
21688   input_path="$new_path"
21689   # Check if we need to convert this using DOS-style short mode. If the path
21690   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21691   # take no chances and rewrite it.
21692   # Note: m4 eats our [], so we need to use [ and ] instead.
21693   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21694   if test "x$has_forbidden_chars" != x; then
21695     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21696     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21697     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21698     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21699       # Going to short mode and back again did indeed matter. Since short mode is
21700       # case insensitive, let's make it lowercase to improve readability.
21701       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21702       # Now convert it back to Unix-style (cygpath)
21703       input_path=`$CYGPATH -u "$shortmode_path"`
21704       new_path="$input_path"
21705     fi
21706   fi
21707 
21708   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21709   if test "x$test_cygdrive_prefix" = x; then
21710     # As a simple fix, exclude /usr/bin since it's not a real path.
21711     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21712       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21713       # a path prefixed by /cygdrive for fixpath to work.
21714       new_path="$CYGWIN_ROOT_PATH$input_path"
21715     fi
21716   fi
21717 
21718 
21719   if test "x$path" != "x$new_path"; then
21720     BOOT_JDK="$new_path"
21721     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21722 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21723   fi
21724 
21725   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21726 
21727   path="$BOOT_JDK"
21728   has_colon=`$ECHO $path | $GREP ^.:`
21729   new_path="$path"
21730   if test "x$has_colon" = x; then
21731     # Not in mixed or Windows style, start by that.
21732     new_path=`cmd //c echo $path`
21733   fi
21734 
21735 
21736   input_path="$new_path"
21737   # Check if we need to convert this using DOS-style short mode. If the path
21738   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21739   # take no chances and rewrite it.
21740   # Note: m4 eats our [], so we need to use [ and ] instead.
21741   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21742   if test "x$has_forbidden_chars" != x; then
21743     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21744     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21745   fi
21746 
21747 
21748   windows_path="$new_path"
21749   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21750     unix_path=`$CYGPATH -u "$windows_path"`
21751     new_path="$unix_path"
21752   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21753     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21754     new_path="$unix_path"
21755   fi
21756 
21757   if test "x$path" != "x$new_path"; then
21758     BOOT_JDK="$new_path"
21759     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21760 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21761   fi
21762 
21763   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21764   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21765 
21766   else
21767     # We're on a posix platform. Hooray! :)
21768     path="$BOOT_JDK"
21769     has_space=`$ECHO "$path" | $GREP " "`
21770     if test "x$has_space" != x; then
21771       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21772 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21773       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21774     fi
21775 
21776     # Use eval to expand a potential ~
21777     eval path="$path"
21778     if test ! -f "$path" && test ! -d "$path"; then
21779       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21780     fi
21781 
21782     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21783   fi
21784 
21785               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21786 $as_echo_n "checking for Boot JDK... " >&6; }
21787               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21788 $as_echo "$BOOT_JDK" >&6; }
21789               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21790 $as_echo_n "checking Boot JDK version... " >&6; }
21791               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21792               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21793 $as_echo "$BOOT_JDK_VERSION" >&6; }
21794             fi # end check jdk version
21795           fi # end check rt.jar
21796         fi # end check javac
21797       fi # end check java
21798     fi # end check boot jdk found
21799   fi
21800 
21801 
21802   if test "x$BOOT_JDK_FOUND" = xno; then
21803     # Now execute the test
21804 
21805   if test "x$PROGRAMW6432" != x; then
21806     VIRTUAL_DIR="$PROGRAMW6432/Java"
21807 
21808   windows_path="$VIRTUAL_DIR"
21809   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21810     unix_path=`$CYGPATH -u "$windows_path"`
21811     VIRTUAL_DIR="$unix_path"
21812   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21813     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21814     VIRTUAL_DIR="$unix_path"
21815   fi
21816 
21817 
21818   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21819   BOOT_JDK_SUFFIX=""
21820   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21821   if test "x$ALL_JDKS_FOUND" != x; then
21822     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21823 
21824   if test "x$BOOT_JDK_FOUND" = xno; then
21825     # Now execute the test
21826 
21827         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21828         if test -d "$BOOT_JDK"; then
21829           BOOT_JDK_FOUND=maybe
21830           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21831 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21832         fi
21833 
21834 
21835     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21836     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21837       # Do we have a bin/java?
21838       if test ! -x "$BOOT_JDK/bin/java"; then
21839         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21840 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21841         BOOT_JDK_FOUND=no
21842       else
21843         # Do we have a bin/javac?
21844         if test ! -x "$BOOT_JDK/bin/javac"; then
21845           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21846 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21847           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21848 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21849           BOOT_JDK_FOUND=no
21850         else
21851           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21852           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21853             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21855             BOOT_JDK_FOUND=no
21856           else
21857             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21858             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21859 
21860             # Extra M4 quote needed to protect [] in grep expression.
21861             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21862             if test "x$FOUND_VERSION_78" = x; then
21863               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21865               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21866 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21867               BOOT_JDK_FOUND=no
21868             else
21869               # We're done! :-)
21870               BOOT_JDK_FOUND=yes
21871 
21872   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21873 
21874   # Input might be given as Windows format, start by converting to
21875   # unix format.
21876   path="$BOOT_JDK"
21877   new_path=`$CYGPATH -u "$path"`
21878 
21879   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21880   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21881   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21882   # "foo.exe" is OK but "foo" is an error.
21883   #
21884   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21885   # It is also a way to make sure we got the proper file name for the real test later on.
21886   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21887   if test "x$test_shortpath" = x; then
21888     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21889 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21890     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21891   fi
21892 
21893   # Call helper function which possibly converts this using DOS-style short mode.
21894   # If so, the updated path is stored in $new_path.
21895 
21896   input_path="$new_path"
21897   # Check if we need to convert this using DOS-style short mode. If the path
21898   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21899   # take no chances and rewrite it.
21900   # Note: m4 eats our [], so we need to use [ and ] instead.
21901   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21902   if test "x$has_forbidden_chars" != x; then
21903     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21904     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21905     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21906     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21907       # Going to short mode and back again did indeed matter. Since short mode is
21908       # case insensitive, let's make it lowercase to improve readability.
21909       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21910       # Now convert it back to Unix-style (cygpath)
21911       input_path=`$CYGPATH -u "$shortmode_path"`
21912       new_path="$input_path"
21913     fi
21914   fi
21915 
21916   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21917   if test "x$test_cygdrive_prefix" = x; then
21918     # As a simple fix, exclude /usr/bin since it's not a real path.
21919     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21920       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21921       # a path prefixed by /cygdrive for fixpath to work.
21922       new_path="$CYGWIN_ROOT_PATH$input_path"
21923     fi
21924   fi
21925 
21926 
21927   if test "x$path" != "x$new_path"; then
21928     BOOT_JDK="$new_path"
21929     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21930 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21931   fi
21932 
21933   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21934 
21935   path="$BOOT_JDK"
21936   has_colon=`$ECHO $path | $GREP ^.:`
21937   new_path="$path"
21938   if test "x$has_colon" = x; then
21939     # Not in mixed or Windows style, start by that.
21940     new_path=`cmd //c echo $path`
21941   fi
21942 
21943 
21944   input_path="$new_path"
21945   # Check if we need to convert this using DOS-style short mode. If the path
21946   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21947   # take no chances and rewrite it.
21948   # Note: m4 eats our [], so we need to use [ and ] instead.
21949   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21950   if test "x$has_forbidden_chars" != x; then
21951     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21952     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21953   fi
21954 
21955 
21956   windows_path="$new_path"
21957   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21958     unix_path=`$CYGPATH -u "$windows_path"`
21959     new_path="$unix_path"
21960   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21961     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21962     new_path="$unix_path"
21963   fi
21964 
21965   if test "x$path" != "x$new_path"; then
21966     BOOT_JDK="$new_path"
21967     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21968 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21969   fi
21970 
21971   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21972   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21973 
21974   else
21975     # We're on a posix platform. Hooray! :)
21976     path="$BOOT_JDK"
21977     has_space=`$ECHO "$path" | $GREP " "`
21978     if test "x$has_space" != x; then
21979       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21980 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21981       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21982     fi
21983 
21984     # Use eval to expand a potential ~
21985     eval path="$path"
21986     if test ! -f "$path" && test ! -d "$path"; then
21987       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21988     fi
21989 
21990     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21991   fi
21992 
21993               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21994 $as_echo_n "checking for Boot JDK... " >&6; }
21995               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21996 $as_echo "$BOOT_JDK" >&6; }
21997               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21998 $as_echo_n "checking Boot JDK version... " >&6; }
21999               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22000               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22001 $as_echo "$BOOT_JDK_VERSION" >&6; }
22002             fi # end check jdk version
22003           fi # end check rt.jar
22004         fi # end check javac
22005       fi # end check java
22006     fi # end check boot jdk found
22007   fi
22008 
22009     done
22010   fi
22011 
22012   fi
22013 
22014 
22015     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22016     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22017       # Do we have a bin/java?
22018       if test ! -x "$BOOT_JDK/bin/java"; then
22019         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22021         BOOT_JDK_FOUND=no
22022       else
22023         # Do we have a bin/javac?
22024         if test ! -x "$BOOT_JDK/bin/javac"; then
22025           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22026 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22027           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22028 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22029           BOOT_JDK_FOUND=no
22030         else
22031           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22032           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22033             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22034 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22035             BOOT_JDK_FOUND=no
22036           else
22037             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22038             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22039 
22040             # Extra M4 quote needed to protect [] in grep expression.
22041             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22042             if test "x$FOUND_VERSION_78" = x; then
22043               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22044 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22045               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22046 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22047               BOOT_JDK_FOUND=no
22048             else
22049               # We're done! :-)
22050               BOOT_JDK_FOUND=yes
22051 
22052   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22053 
22054   # Input might be given as Windows format, start by converting to
22055   # unix format.
22056   path="$BOOT_JDK"
22057   new_path=`$CYGPATH -u "$path"`
22058 
22059   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22060   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22061   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22062   # "foo.exe" is OK but "foo" is an error.
22063   #
22064   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22065   # It is also a way to make sure we got the proper file name for the real test later on.
22066   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22067   if test "x$test_shortpath" = x; then
22068     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22069 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22070     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22071   fi
22072 
22073   # Call helper function which possibly converts this using DOS-style short mode.
22074   # If so, the updated path is stored in $new_path.
22075 
22076   input_path="$new_path"
22077   # Check if we need to convert this using DOS-style short mode. If the path
22078   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22079   # take no chances and rewrite it.
22080   # Note: m4 eats our [], so we need to use [ and ] instead.
22081   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22082   if test "x$has_forbidden_chars" != x; then
22083     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22084     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22085     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22086     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22087       # Going to short mode and back again did indeed matter. Since short mode is
22088       # case insensitive, let's make it lowercase to improve readability.
22089       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22090       # Now convert it back to Unix-style (cygpath)
22091       input_path=`$CYGPATH -u "$shortmode_path"`
22092       new_path="$input_path"
22093     fi
22094   fi
22095 
22096   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22097   if test "x$test_cygdrive_prefix" = x; then
22098     # As a simple fix, exclude /usr/bin since it's not a real path.
22099     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22100       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22101       # a path prefixed by /cygdrive for fixpath to work.
22102       new_path="$CYGWIN_ROOT_PATH$input_path"
22103     fi
22104   fi
22105 
22106 
22107   if test "x$path" != "x$new_path"; then
22108     BOOT_JDK="$new_path"
22109     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22110 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22111   fi
22112 
22113   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22114 
22115   path="$BOOT_JDK"
22116   has_colon=`$ECHO $path | $GREP ^.:`
22117   new_path="$path"
22118   if test "x$has_colon" = x; then
22119     # Not in mixed or Windows style, start by that.
22120     new_path=`cmd //c echo $path`
22121   fi
22122 
22123 
22124   input_path="$new_path"
22125   # Check if we need to convert this using DOS-style short mode. If the path
22126   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22127   # take no chances and rewrite it.
22128   # Note: m4 eats our [], so we need to use [ and ] instead.
22129   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22130   if test "x$has_forbidden_chars" != x; then
22131     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22132     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22133   fi
22134 
22135 
22136   windows_path="$new_path"
22137   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22138     unix_path=`$CYGPATH -u "$windows_path"`
22139     new_path="$unix_path"
22140   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22141     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22142     new_path="$unix_path"
22143   fi
22144 
22145   if test "x$path" != "x$new_path"; then
22146     BOOT_JDK="$new_path"
22147     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22148 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22149   fi
22150 
22151   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22152   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22153 
22154   else
22155     # We're on a posix platform. Hooray! :)
22156     path="$BOOT_JDK"
22157     has_space=`$ECHO "$path" | $GREP " "`
22158     if test "x$has_space" != x; then
22159       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22160 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22161       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22162     fi
22163 
22164     # Use eval to expand a potential ~
22165     eval path="$path"
22166     if test ! -f "$path" && test ! -d "$path"; then
22167       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22168     fi
22169 
22170     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22171   fi
22172 
22173               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22174 $as_echo_n "checking for Boot JDK... " >&6; }
22175               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22176 $as_echo "$BOOT_JDK" >&6; }
22177               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22178 $as_echo_n "checking Boot JDK version... " >&6; }
22179               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22180               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22181 $as_echo "$BOOT_JDK_VERSION" >&6; }
22182             fi # end check jdk version
22183           fi # end check rt.jar
22184         fi # end check javac
22185       fi # end check java
22186     fi # end check boot jdk found
22187   fi
22188 
22189 
22190   if test "x$BOOT_JDK_FOUND" = xno; then
22191     # Now execute the test
22192 
22193   if test "x$PROGRAMFILES" != x; then
22194     VIRTUAL_DIR="$PROGRAMFILES/Java"
22195 
22196   windows_path="$VIRTUAL_DIR"
22197   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22198     unix_path=`$CYGPATH -u "$windows_path"`
22199     VIRTUAL_DIR="$unix_path"
22200   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22201     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22202     VIRTUAL_DIR="$unix_path"
22203   fi
22204 
22205 
22206   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22207   BOOT_JDK_SUFFIX=""
22208   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22209   if test "x$ALL_JDKS_FOUND" != x; then
22210     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22211 
22212   if test "x$BOOT_JDK_FOUND" = xno; then
22213     # Now execute the test
22214 
22215         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22216         if test -d "$BOOT_JDK"; then
22217           BOOT_JDK_FOUND=maybe
22218           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22219 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22220         fi
22221 
22222 
22223     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22224     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22225       # Do we have a bin/java?
22226       if test ! -x "$BOOT_JDK/bin/java"; then
22227         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22228 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22229         BOOT_JDK_FOUND=no
22230       else
22231         # Do we have a bin/javac?
22232         if test ! -x "$BOOT_JDK/bin/javac"; then
22233           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22234 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22235           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22236 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22237           BOOT_JDK_FOUND=no
22238         else
22239           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22240           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22241             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22242 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22243             BOOT_JDK_FOUND=no
22244           else
22245             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22246             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22247 
22248             # Extra M4 quote needed to protect [] in grep expression.
22249             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22250             if test "x$FOUND_VERSION_78" = x; then
22251               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22253               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22254 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22255               BOOT_JDK_FOUND=no
22256             else
22257               # We're done! :-)
22258               BOOT_JDK_FOUND=yes
22259 
22260   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22261 
22262   # Input might be given as Windows format, start by converting to
22263   # unix format.
22264   path="$BOOT_JDK"
22265   new_path=`$CYGPATH -u "$path"`
22266 
22267   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22268   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22269   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22270   # "foo.exe" is OK but "foo" is an error.
22271   #
22272   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22273   # It is also a way to make sure we got the proper file name for the real test later on.
22274   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22275   if test "x$test_shortpath" = x; then
22276     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22277 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22278     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22279   fi
22280 
22281   # Call helper function which possibly converts this using DOS-style short mode.
22282   # If so, the updated path is stored in $new_path.
22283 
22284   input_path="$new_path"
22285   # Check if we need to convert this using DOS-style short mode. If the path
22286   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22287   # take no chances and rewrite it.
22288   # Note: m4 eats our [], so we need to use [ and ] instead.
22289   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22290   if test "x$has_forbidden_chars" != x; then
22291     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22292     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22293     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22294     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22295       # Going to short mode and back again did indeed matter. Since short mode is
22296       # case insensitive, let's make it lowercase to improve readability.
22297       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22298       # Now convert it back to Unix-style (cygpath)
22299       input_path=`$CYGPATH -u "$shortmode_path"`
22300       new_path="$input_path"
22301     fi
22302   fi
22303 
22304   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22305   if test "x$test_cygdrive_prefix" = x; then
22306     # As a simple fix, exclude /usr/bin since it's not a real path.
22307     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22308       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22309       # a path prefixed by /cygdrive for fixpath to work.
22310       new_path="$CYGWIN_ROOT_PATH$input_path"
22311     fi
22312   fi
22313 
22314 
22315   if test "x$path" != "x$new_path"; then
22316     BOOT_JDK="$new_path"
22317     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22318 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22319   fi
22320 
22321   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22322 
22323   path="$BOOT_JDK"
22324   has_colon=`$ECHO $path | $GREP ^.:`
22325   new_path="$path"
22326   if test "x$has_colon" = x; then
22327     # Not in mixed or Windows style, start by that.
22328     new_path=`cmd //c echo $path`
22329   fi
22330 
22331 
22332   input_path="$new_path"
22333   # Check if we need to convert this using DOS-style short mode. If the path
22334   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22335   # take no chances and rewrite it.
22336   # Note: m4 eats our [], so we need to use [ and ] instead.
22337   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22338   if test "x$has_forbidden_chars" != x; then
22339     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22340     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22341   fi
22342 
22343 
22344   windows_path="$new_path"
22345   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22346     unix_path=`$CYGPATH -u "$windows_path"`
22347     new_path="$unix_path"
22348   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22349     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22350     new_path="$unix_path"
22351   fi
22352 
22353   if test "x$path" != "x$new_path"; then
22354     BOOT_JDK="$new_path"
22355     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22356 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22357   fi
22358 
22359   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22360   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22361 
22362   else
22363     # We're on a posix platform. Hooray! :)
22364     path="$BOOT_JDK"
22365     has_space=`$ECHO "$path" | $GREP " "`
22366     if test "x$has_space" != x; then
22367       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22368 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22369       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22370     fi
22371 
22372     # Use eval to expand a potential ~
22373     eval path="$path"
22374     if test ! -f "$path" && test ! -d "$path"; then
22375       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22376     fi
22377 
22378     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22379   fi
22380 
22381               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22382 $as_echo_n "checking for Boot JDK... " >&6; }
22383               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22384 $as_echo "$BOOT_JDK" >&6; }
22385               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22386 $as_echo_n "checking Boot JDK version... " >&6; }
22387               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22388               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22389 $as_echo "$BOOT_JDK_VERSION" >&6; }
22390             fi # end check jdk version
22391           fi # end check rt.jar
22392         fi # end check javac
22393       fi # end check java
22394     fi # end check boot jdk found
22395   fi
22396 
22397     done
22398   fi
22399 
22400   fi
22401 
22402 
22403     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22404     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22405       # Do we have a bin/java?
22406       if test ! -x "$BOOT_JDK/bin/java"; then
22407         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22409         BOOT_JDK_FOUND=no
22410       else
22411         # Do we have a bin/javac?
22412         if test ! -x "$BOOT_JDK/bin/javac"; then
22413           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22415           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22416 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22417           BOOT_JDK_FOUND=no
22418         else
22419           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22420           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22421             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22423             BOOT_JDK_FOUND=no
22424           else
22425             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22426             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22427 
22428             # Extra M4 quote needed to protect [] in grep expression.
22429             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22430             if test "x$FOUND_VERSION_78" = x; then
22431               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22433               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22434 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22435               BOOT_JDK_FOUND=no
22436             else
22437               # We're done! :-)
22438               BOOT_JDK_FOUND=yes
22439 
22440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22441 
22442   # Input might be given as Windows format, start by converting to
22443   # unix format.
22444   path="$BOOT_JDK"
22445   new_path=`$CYGPATH -u "$path"`
22446 
22447   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22448   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22449   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22450   # "foo.exe" is OK but "foo" is an error.
22451   #
22452   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22453   # It is also a way to make sure we got the proper file name for the real test later on.
22454   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22455   if test "x$test_shortpath" = x; then
22456     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22458     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22459   fi
22460 
22461   # Call helper function which possibly converts this using DOS-style short mode.
22462   # If so, the updated path is stored in $new_path.
22463 
22464   input_path="$new_path"
22465   # Check if we need to convert this using DOS-style short mode. If the path
22466   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22467   # take no chances and rewrite it.
22468   # Note: m4 eats our [], so we need to use [ and ] instead.
22469   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22470   if test "x$has_forbidden_chars" != x; then
22471     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22472     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22473     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22474     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22475       # Going to short mode and back again did indeed matter. Since short mode is
22476       # case insensitive, let's make it lowercase to improve readability.
22477       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22478       # Now convert it back to Unix-style (cygpath)
22479       input_path=`$CYGPATH -u "$shortmode_path"`
22480       new_path="$input_path"
22481     fi
22482   fi
22483 
22484   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22485   if test "x$test_cygdrive_prefix" = x; then
22486     # As a simple fix, exclude /usr/bin since it's not a real path.
22487     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22488       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22489       # a path prefixed by /cygdrive for fixpath to work.
22490       new_path="$CYGWIN_ROOT_PATH$input_path"
22491     fi
22492   fi
22493 
22494 
22495   if test "x$path" != "x$new_path"; then
22496     BOOT_JDK="$new_path"
22497     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22499   fi
22500 
22501   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22502 
22503   path="$BOOT_JDK"
22504   has_colon=`$ECHO $path | $GREP ^.:`
22505   new_path="$path"
22506   if test "x$has_colon" = x; then
22507     # Not in mixed or Windows style, start by that.
22508     new_path=`cmd //c echo $path`
22509   fi
22510 
22511 
22512   input_path="$new_path"
22513   # Check if we need to convert this using DOS-style short mode. If the path
22514   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22515   # take no chances and rewrite it.
22516   # Note: m4 eats our [], so we need to use [ and ] instead.
22517   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22518   if test "x$has_forbidden_chars" != x; then
22519     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22520     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22521   fi
22522 
22523 
22524   windows_path="$new_path"
22525   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22526     unix_path=`$CYGPATH -u "$windows_path"`
22527     new_path="$unix_path"
22528   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22529     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22530     new_path="$unix_path"
22531   fi
22532 
22533   if test "x$path" != "x$new_path"; then
22534     BOOT_JDK="$new_path"
22535     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22537   fi
22538 
22539   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22540   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22541 
22542   else
22543     # We're on a posix platform. Hooray! :)
22544     path="$BOOT_JDK"
22545     has_space=`$ECHO "$path" | $GREP " "`
22546     if test "x$has_space" != x; then
22547       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22549       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22550     fi
22551 
22552     # Use eval to expand a potential ~
22553     eval path="$path"
22554     if test ! -f "$path" && test ! -d "$path"; then
22555       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22556     fi
22557 
22558     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22559   fi
22560 
22561               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22562 $as_echo_n "checking for Boot JDK... " >&6; }
22563               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22564 $as_echo "$BOOT_JDK" >&6; }
22565               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22566 $as_echo_n "checking Boot JDK version... " >&6; }
22567               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22568               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22569 $as_echo "$BOOT_JDK_VERSION" >&6; }
22570             fi # end check jdk version
22571           fi # end check rt.jar
22572         fi # end check javac
22573       fi # end check java
22574     fi # end check boot jdk found
22575   fi
22576 
22577 
22578   if test "x$BOOT_JDK_FOUND" = xno; then
22579     # Now execute the test
22580 
22581   if test "x$ProgramFiles" != x; then
22582     VIRTUAL_DIR="$ProgramFiles/Java"
22583 
22584   windows_path="$VIRTUAL_DIR"
22585   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22586     unix_path=`$CYGPATH -u "$windows_path"`
22587     VIRTUAL_DIR="$unix_path"
22588   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22589     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22590     VIRTUAL_DIR="$unix_path"
22591   fi
22592 
22593 
22594   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22595   BOOT_JDK_SUFFIX=""
22596   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22597   if test "x$ALL_JDKS_FOUND" != x; then
22598     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22599 
22600   if test "x$BOOT_JDK_FOUND" = xno; then
22601     # Now execute the test
22602 
22603         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22604         if test -d "$BOOT_JDK"; then
22605           BOOT_JDK_FOUND=maybe
22606           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22607 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22608         fi
22609 
22610 
22611     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22612     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22613       # Do we have a bin/java?
22614       if test ! -x "$BOOT_JDK/bin/java"; then
22615         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22617         BOOT_JDK_FOUND=no
22618       else
22619         # Do we have a bin/javac?
22620         if test ! -x "$BOOT_JDK/bin/javac"; then
22621           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22622 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22623           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22624 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22625           BOOT_JDK_FOUND=no
22626         else
22627           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22628           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22629             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22630 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22631             BOOT_JDK_FOUND=no
22632           else
22633             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22634             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22635 
22636             # Extra M4 quote needed to protect [] in grep expression.
22637             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22638             if test "x$FOUND_VERSION_78" = x; then
22639               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22641               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22642 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22643               BOOT_JDK_FOUND=no
22644             else
22645               # We're done! :-)
22646               BOOT_JDK_FOUND=yes
22647 
22648   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22649 
22650   # Input might be given as Windows format, start by converting to
22651   # unix format.
22652   path="$BOOT_JDK"
22653   new_path=`$CYGPATH -u "$path"`
22654 
22655   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22656   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22657   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22658   # "foo.exe" is OK but "foo" is an error.
22659   #
22660   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22661   # It is also a way to make sure we got the proper file name for the real test later on.
22662   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22663   if test "x$test_shortpath" = x; then
22664     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22665 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22666     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22667   fi
22668 
22669   # Call helper function which possibly converts this using DOS-style short mode.
22670   # If so, the updated path is stored in $new_path.
22671 
22672   input_path="$new_path"
22673   # Check if we need to convert this using DOS-style short mode. If the path
22674   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22675   # take no chances and rewrite it.
22676   # Note: m4 eats our [], so we need to use [ and ] instead.
22677   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22678   if test "x$has_forbidden_chars" != x; then
22679     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22680     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22681     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22682     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22683       # Going to short mode and back again did indeed matter. Since short mode is
22684       # case insensitive, let's make it lowercase to improve readability.
22685       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22686       # Now convert it back to Unix-style (cygpath)
22687       input_path=`$CYGPATH -u "$shortmode_path"`
22688       new_path="$input_path"
22689     fi
22690   fi
22691 
22692   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22693   if test "x$test_cygdrive_prefix" = x; then
22694     # As a simple fix, exclude /usr/bin since it's not a real path.
22695     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22696       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22697       # a path prefixed by /cygdrive for fixpath to work.
22698       new_path="$CYGWIN_ROOT_PATH$input_path"
22699     fi
22700   fi
22701 
22702 
22703   if test "x$path" != "x$new_path"; then
22704     BOOT_JDK="$new_path"
22705     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22706 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22707   fi
22708 
22709   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22710 
22711   path="$BOOT_JDK"
22712   has_colon=`$ECHO $path | $GREP ^.:`
22713   new_path="$path"
22714   if test "x$has_colon" = x; then
22715     # Not in mixed or Windows style, start by that.
22716     new_path=`cmd //c echo $path`
22717   fi
22718 
22719 
22720   input_path="$new_path"
22721   # Check if we need to convert this using DOS-style short mode. If the path
22722   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22723   # take no chances and rewrite it.
22724   # Note: m4 eats our [], so we need to use [ and ] instead.
22725   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22726   if test "x$has_forbidden_chars" != x; then
22727     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22728     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22729   fi
22730 
22731 
22732   windows_path="$new_path"
22733   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22734     unix_path=`$CYGPATH -u "$windows_path"`
22735     new_path="$unix_path"
22736   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22737     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22738     new_path="$unix_path"
22739   fi
22740 
22741   if test "x$path" != "x$new_path"; then
22742     BOOT_JDK="$new_path"
22743     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22744 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22745   fi
22746 
22747   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22748   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22749 
22750   else
22751     # We're on a posix platform. Hooray! :)
22752     path="$BOOT_JDK"
22753     has_space=`$ECHO "$path" | $GREP " "`
22754     if test "x$has_space" != x; then
22755       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22756 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22757       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22758     fi
22759 
22760     # Use eval to expand a potential ~
22761     eval path="$path"
22762     if test ! -f "$path" && test ! -d "$path"; then
22763       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22764     fi
22765 
22766     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22767   fi
22768 
22769               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22770 $as_echo_n "checking for Boot JDK... " >&6; }
22771               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22772 $as_echo "$BOOT_JDK" >&6; }
22773               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22774 $as_echo_n "checking Boot JDK version... " >&6; }
22775               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22776               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22777 $as_echo "$BOOT_JDK_VERSION" >&6; }
22778             fi # end check jdk version
22779           fi # end check rt.jar
22780         fi # end check javac
22781       fi # end check java
22782     fi # end check boot jdk found
22783   fi
22784 
22785     done
22786   fi
22787 
22788   fi
22789 
22790 
22791     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22792     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22793       # Do we have a bin/java?
22794       if test ! -x "$BOOT_JDK/bin/java"; then
22795         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22797         BOOT_JDK_FOUND=no
22798       else
22799         # Do we have a bin/javac?
22800         if test ! -x "$BOOT_JDK/bin/javac"; then
22801           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22803           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22804 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22805           BOOT_JDK_FOUND=no
22806         else
22807           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22808           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22809             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22811             BOOT_JDK_FOUND=no
22812           else
22813             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22814             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22815 
22816             # Extra M4 quote needed to protect [] in grep expression.
22817             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22818             if test "x$FOUND_VERSION_78" = x; then
22819               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22821               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22822 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22823               BOOT_JDK_FOUND=no
22824             else
22825               # We're done! :-)
22826               BOOT_JDK_FOUND=yes
22827 
22828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22829 
22830   # Input might be given as Windows format, start by converting to
22831   # unix format.
22832   path="$BOOT_JDK"
22833   new_path=`$CYGPATH -u "$path"`
22834 
22835   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22836   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22837   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22838   # "foo.exe" is OK but "foo" is an error.
22839   #
22840   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22841   # It is also a way to make sure we got the proper file name for the real test later on.
22842   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22843   if test "x$test_shortpath" = x; then
22844     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22845 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22846     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22847   fi
22848 
22849   # Call helper function which possibly converts this using DOS-style short mode.
22850   # If so, the updated path is stored in $new_path.
22851 
22852   input_path="$new_path"
22853   # Check if we need to convert this using DOS-style short mode. If the path
22854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22855   # take no chances and rewrite it.
22856   # Note: m4 eats our [], so we need to use [ and ] instead.
22857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22858   if test "x$has_forbidden_chars" != x; then
22859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22860     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22861     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22862     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22863       # Going to short mode and back again did indeed matter. Since short mode is
22864       # case insensitive, let's make it lowercase to improve readability.
22865       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22866       # Now convert it back to Unix-style (cygpath)
22867       input_path=`$CYGPATH -u "$shortmode_path"`
22868       new_path="$input_path"
22869     fi
22870   fi
22871 
22872   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22873   if test "x$test_cygdrive_prefix" = x; then
22874     # As a simple fix, exclude /usr/bin since it's not a real path.
22875     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22876       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22877       # a path prefixed by /cygdrive for fixpath to work.
22878       new_path="$CYGWIN_ROOT_PATH$input_path"
22879     fi
22880   fi
22881 
22882 
22883   if test "x$path" != "x$new_path"; then
22884     BOOT_JDK="$new_path"
22885     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22886 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22887   fi
22888 
22889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22890 
22891   path="$BOOT_JDK"
22892   has_colon=`$ECHO $path | $GREP ^.:`
22893   new_path="$path"
22894   if test "x$has_colon" = x; then
22895     # Not in mixed or Windows style, start by that.
22896     new_path=`cmd //c echo $path`
22897   fi
22898 
22899 
22900   input_path="$new_path"
22901   # Check if we need to convert this using DOS-style short mode. If the path
22902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22903   # take no chances and rewrite it.
22904   # Note: m4 eats our [], so we need to use [ and ] instead.
22905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22906   if test "x$has_forbidden_chars" != x; then
22907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22908     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22909   fi
22910 
22911 
22912   windows_path="$new_path"
22913   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22914     unix_path=`$CYGPATH -u "$windows_path"`
22915     new_path="$unix_path"
22916   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22917     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22918     new_path="$unix_path"
22919   fi
22920 
22921   if test "x$path" != "x$new_path"; then
22922     BOOT_JDK="$new_path"
22923     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22924 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22925   fi
22926 
22927   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22928   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22929 
22930   else
22931     # We're on a posix platform. Hooray! :)
22932     path="$BOOT_JDK"
22933     has_space=`$ECHO "$path" | $GREP " "`
22934     if test "x$has_space" != x; then
22935       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22937       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22938     fi
22939 
22940     # Use eval to expand a potential ~
22941     eval path="$path"
22942     if test ! -f "$path" && test ! -d "$path"; then
22943       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22944     fi
22945 
22946     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22947   fi
22948 
22949               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22950 $as_echo_n "checking for Boot JDK... " >&6; }
22951               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22952 $as_echo "$BOOT_JDK" >&6; }
22953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22954 $as_echo_n "checking Boot JDK version... " >&6; }
22955               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22956               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22957 $as_echo "$BOOT_JDK_VERSION" >&6; }
22958             fi # end check jdk version
22959           fi # end check rt.jar
22960         fi # end check javac
22961       fi # end check java
22962     fi # end check boot jdk found
22963   fi
22964 
22965 
22966   if test "x$BOOT_JDK_FOUND" = xno; then
22967     # Now execute the test
22968 
22969   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22970   BOOT_JDK_SUFFIX=""
22971   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22972   if test "x$ALL_JDKS_FOUND" != x; then
22973     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22974 
22975   if test "x$BOOT_JDK_FOUND" = xno; then
22976     # Now execute the test
22977 
22978         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22979         if test -d "$BOOT_JDK"; then
22980           BOOT_JDK_FOUND=maybe
22981           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22982 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22983         fi
22984 
22985 
22986     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22987     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22988       # Do we have a bin/java?
22989       if test ! -x "$BOOT_JDK/bin/java"; then
22990         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22991 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22992         BOOT_JDK_FOUND=no
22993       else
22994         # Do we have a bin/javac?
22995         if test ! -x "$BOOT_JDK/bin/javac"; then
22996           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22997 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22998           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22999 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23000           BOOT_JDK_FOUND=no
23001         else
23002           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23003           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23004             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23006             BOOT_JDK_FOUND=no
23007           else
23008             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23009             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23010 
23011             # Extra M4 quote needed to protect [] in grep expression.
23012             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23013             if test "x$FOUND_VERSION_78" = x; then
23014               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23015 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23016               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23017 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23018               BOOT_JDK_FOUND=no
23019             else
23020               # We're done! :-)
23021               BOOT_JDK_FOUND=yes
23022 
23023   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23024 
23025   # Input might be given as Windows format, start by converting to
23026   # unix format.
23027   path="$BOOT_JDK"
23028   new_path=`$CYGPATH -u "$path"`
23029 
23030   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23031   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23032   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23033   # "foo.exe" is OK but "foo" is an error.
23034   #
23035   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23036   # It is also a way to make sure we got the proper file name for the real test later on.
23037   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23038   if test "x$test_shortpath" = x; then
23039     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23040 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23041     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23042   fi
23043 
23044   # Call helper function which possibly converts this using DOS-style short mode.
23045   # If so, the updated path is stored in $new_path.
23046 
23047   input_path="$new_path"
23048   # Check if we need to convert this using DOS-style short mode. If the path
23049   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23050   # take no chances and rewrite it.
23051   # Note: m4 eats our [], so we need to use [ and ] instead.
23052   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23053   if test "x$has_forbidden_chars" != x; then
23054     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23055     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23056     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23057     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23058       # Going to short mode and back again did indeed matter. Since short mode is
23059       # case insensitive, let's make it lowercase to improve readability.
23060       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23061       # Now convert it back to Unix-style (cygpath)
23062       input_path=`$CYGPATH -u "$shortmode_path"`
23063       new_path="$input_path"
23064     fi
23065   fi
23066 
23067   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23068   if test "x$test_cygdrive_prefix" = x; then
23069     # As a simple fix, exclude /usr/bin since it's not a real path.
23070     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23071       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23072       # a path prefixed by /cygdrive for fixpath to work.
23073       new_path="$CYGWIN_ROOT_PATH$input_path"
23074     fi
23075   fi
23076 
23077 
23078   if test "x$path" != "x$new_path"; then
23079     BOOT_JDK="$new_path"
23080     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23081 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23082   fi
23083 
23084   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23085 
23086   path="$BOOT_JDK"
23087   has_colon=`$ECHO $path | $GREP ^.:`
23088   new_path="$path"
23089   if test "x$has_colon" = x; then
23090     # Not in mixed or Windows style, start by that.
23091     new_path=`cmd //c echo $path`
23092   fi
23093 
23094 
23095   input_path="$new_path"
23096   # Check if we need to convert this using DOS-style short mode. If the path
23097   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23098   # take no chances and rewrite it.
23099   # Note: m4 eats our [], so we need to use [ and ] instead.
23100   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23101   if test "x$has_forbidden_chars" != x; then
23102     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23103     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23104   fi
23105 
23106 
23107   windows_path="$new_path"
23108   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23109     unix_path=`$CYGPATH -u "$windows_path"`
23110     new_path="$unix_path"
23111   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23112     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23113     new_path="$unix_path"
23114   fi
23115 
23116   if test "x$path" != "x$new_path"; then
23117     BOOT_JDK="$new_path"
23118     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23119 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23120   fi
23121 
23122   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23123   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23124 
23125   else
23126     # We're on a posix platform. Hooray! :)
23127     path="$BOOT_JDK"
23128     has_space=`$ECHO "$path" | $GREP " "`
23129     if test "x$has_space" != x; then
23130       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23131 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23132       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23133     fi
23134 
23135     # Use eval to expand a potential ~
23136     eval path="$path"
23137     if test ! -f "$path" && test ! -d "$path"; then
23138       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23139     fi
23140 
23141     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23142   fi
23143 
23144               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23145 $as_echo_n "checking for Boot JDK... " >&6; }
23146               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23147 $as_echo "$BOOT_JDK" >&6; }
23148               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23149 $as_echo_n "checking Boot JDK version... " >&6; }
23150               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23151               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23152 $as_echo "$BOOT_JDK_VERSION" >&6; }
23153             fi # end check jdk version
23154           fi # end check rt.jar
23155         fi # end check javac
23156       fi # end check java
23157     fi # end check boot jdk found
23158   fi
23159 
23160     done
23161   fi
23162 
23163 
23164     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23165     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23166       # Do we have a bin/java?
23167       if test ! -x "$BOOT_JDK/bin/java"; then
23168         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23170         BOOT_JDK_FOUND=no
23171       else
23172         # Do we have a bin/javac?
23173         if test ! -x "$BOOT_JDK/bin/javac"; then
23174           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23175 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23176           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23177 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23178           BOOT_JDK_FOUND=no
23179         else
23180           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23181           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23182             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23184             BOOT_JDK_FOUND=no
23185           else
23186             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23187             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23188 
23189             # Extra M4 quote needed to protect [] in grep expression.
23190             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23191             if test "x$FOUND_VERSION_78" = x; then
23192               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23194               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23195 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23196               BOOT_JDK_FOUND=no
23197             else
23198               # We're done! :-)
23199               BOOT_JDK_FOUND=yes
23200 
23201   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23202 
23203   # Input might be given as Windows format, start by converting to
23204   # unix format.
23205   path="$BOOT_JDK"
23206   new_path=`$CYGPATH -u "$path"`
23207 
23208   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23209   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23210   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23211   # "foo.exe" is OK but "foo" is an error.
23212   #
23213   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23214   # It is also a way to make sure we got the proper file name for the real test later on.
23215   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23216   if test "x$test_shortpath" = x; then
23217     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23218 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23219     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23220   fi
23221 
23222   # Call helper function which possibly converts this using DOS-style short mode.
23223   # If so, the updated path is stored in $new_path.
23224 
23225   input_path="$new_path"
23226   # Check if we need to convert this using DOS-style short mode. If the path
23227   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23228   # take no chances and rewrite it.
23229   # Note: m4 eats our [], so we need to use [ and ] instead.
23230   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23231   if test "x$has_forbidden_chars" != x; then
23232     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23233     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23234     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23235     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23236       # Going to short mode and back again did indeed matter. Since short mode is
23237       # case insensitive, let's make it lowercase to improve readability.
23238       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23239       # Now convert it back to Unix-style (cygpath)
23240       input_path=`$CYGPATH -u "$shortmode_path"`
23241       new_path="$input_path"
23242     fi
23243   fi
23244 
23245   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23246   if test "x$test_cygdrive_prefix" = x; then
23247     # As a simple fix, exclude /usr/bin since it's not a real path.
23248     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23249       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23250       # a path prefixed by /cygdrive for fixpath to work.
23251       new_path="$CYGWIN_ROOT_PATH$input_path"
23252     fi
23253   fi
23254 
23255 
23256   if test "x$path" != "x$new_path"; then
23257     BOOT_JDK="$new_path"
23258     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23259 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23260   fi
23261 
23262   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23263 
23264   path="$BOOT_JDK"
23265   has_colon=`$ECHO $path | $GREP ^.:`
23266   new_path="$path"
23267   if test "x$has_colon" = x; then
23268     # Not in mixed or Windows style, start by that.
23269     new_path=`cmd //c echo $path`
23270   fi
23271 
23272 
23273   input_path="$new_path"
23274   # Check if we need to convert this using DOS-style short mode. If the path
23275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23276   # take no chances and rewrite it.
23277   # Note: m4 eats our [], so we need to use [ and ] instead.
23278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23279   if test "x$has_forbidden_chars" != x; then
23280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23281     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23282   fi
23283 
23284 
23285   windows_path="$new_path"
23286   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23287     unix_path=`$CYGPATH -u "$windows_path"`
23288     new_path="$unix_path"
23289   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23290     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23291     new_path="$unix_path"
23292   fi
23293 
23294   if test "x$path" != "x$new_path"; then
23295     BOOT_JDK="$new_path"
23296     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23297 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23298   fi
23299 
23300   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23301   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23302 
23303   else
23304     # We're on a posix platform. Hooray! :)
23305     path="$BOOT_JDK"
23306     has_space=`$ECHO "$path" | $GREP " "`
23307     if test "x$has_space" != x; then
23308       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23309 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23310       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23311     fi
23312 
23313     # Use eval to expand a potential ~
23314     eval path="$path"
23315     if test ! -f "$path" && test ! -d "$path"; then
23316       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23317     fi
23318 
23319     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23320   fi
23321 
23322               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23323 $as_echo_n "checking for Boot JDK... " >&6; }
23324               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23325 $as_echo "$BOOT_JDK" >&6; }
23326               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23327 $as_echo_n "checking Boot JDK version... " >&6; }
23328               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23329               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23330 $as_echo "$BOOT_JDK_VERSION" >&6; }
23331             fi # end check jdk version
23332           fi # end check rt.jar
23333         fi # end check javac
23334       fi # end check java
23335     fi # end check boot jdk found
23336   fi
23337 
23338   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23339 
23340   if test "x$BOOT_JDK_FOUND" = xno; then
23341     # Now execute the test
23342 
23343   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23344   BOOT_JDK_SUFFIX="/Contents/Home"
23345   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23346   if test "x$ALL_JDKS_FOUND" != x; then
23347     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23348 
23349   if test "x$BOOT_JDK_FOUND" = xno; then
23350     # Now execute the test
23351 
23352         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23353         if test -d "$BOOT_JDK"; then
23354           BOOT_JDK_FOUND=maybe
23355           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23356 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23357         fi
23358 
23359 
23360     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23361     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23362       # Do we have a bin/java?
23363       if test ! -x "$BOOT_JDK/bin/java"; then
23364         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23366         BOOT_JDK_FOUND=no
23367       else
23368         # Do we have a bin/javac?
23369         if test ! -x "$BOOT_JDK/bin/javac"; then
23370           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23371 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23372           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23373 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23374           BOOT_JDK_FOUND=no
23375         else
23376           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23377           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23378             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23379 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23380             BOOT_JDK_FOUND=no
23381           else
23382             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23383             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23384 
23385             # Extra M4 quote needed to protect [] in grep expression.
23386             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23387             if test "x$FOUND_VERSION_78" = x; then
23388               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23390               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23391 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23392               BOOT_JDK_FOUND=no
23393             else
23394               # We're done! :-)
23395               BOOT_JDK_FOUND=yes
23396 
23397   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23398 
23399   # Input might be given as Windows format, start by converting to
23400   # unix format.
23401   path="$BOOT_JDK"
23402   new_path=`$CYGPATH -u "$path"`
23403 
23404   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23405   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23406   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23407   # "foo.exe" is OK but "foo" is an error.
23408   #
23409   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23410   # It is also a way to make sure we got the proper file name for the real test later on.
23411   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23412   if test "x$test_shortpath" = x; then
23413     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23414 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23415     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23416   fi
23417 
23418   # Call helper function which possibly converts this using DOS-style short mode.
23419   # If so, the updated path is stored in $new_path.
23420 
23421   input_path="$new_path"
23422   # Check if we need to convert this using DOS-style short mode. If the path
23423   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23424   # take no chances and rewrite it.
23425   # Note: m4 eats our [], so we need to use [ and ] instead.
23426   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23427   if test "x$has_forbidden_chars" != x; then
23428     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23429     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23430     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23431     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23432       # Going to short mode and back again did indeed matter. Since short mode is
23433       # case insensitive, let's make it lowercase to improve readability.
23434       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23435       # Now convert it back to Unix-style (cygpath)
23436       input_path=`$CYGPATH -u "$shortmode_path"`
23437       new_path="$input_path"
23438     fi
23439   fi
23440 
23441   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23442   if test "x$test_cygdrive_prefix" = x; then
23443     # As a simple fix, exclude /usr/bin since it's not a real path.
23444     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23445       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23446       # a path prefixed by /cygdrive for fixpath to work.
23447       new_path="$CYGWIN_ROOT_PATH$input_path"
23448     fi
23449   fi
23450 
23451 
23452   if test "x$path" != "x$new_path"; then
23453     BOOT_JDK="$new_path"
23454     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23455 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23456   fi
23457 
23458   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23459 
23460   path="$BOOT_JDK"
23461   has_colon=`$ECHO $path | $GREP ^.:`
23462   new_path="$path"
23463   if test "x$has_colon" = x; then
23464     # Not in mixed or Windows style, start by that.
23465     new_path=`cmd //c echo $path`
23466   fi
23467 
23468 
23469   input_path="$new_path"
23470   # Check if we need to convert this using DOS-style short mode. If the path
23471   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23472   # take no chances and rewrite it.
23473   # Note: m4 eats our [], so we need to use [ and ] instead.
23474   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23475   if test "x$has_forbidden_chars" != x; then
23476     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23477     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23478   fi
23479 
23480 
23481   windows_path="$new_path"
23482   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23483     unix_path=`$CYGPATH -u "$windows_path"`
23484     new_path="$unix_path"
23485   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23486     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23487     new_path="$unix_path"
23488   fi
23489 
23490   if test "x$path" != "x$new_path"; then
23491     BOOT_JDK="$new_path"
23492     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23493 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23494   fi
23495 
23496   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23497   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23498 
23499   else
23500     # We're on a posix platform. Hooray! :)
23501     path="$BOOT_JDK"
23502     has_space=`$ECHO "$path" | $GREP " "`
23503     if test "x$has_space" != x; then
23504       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23505 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23506       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23507     fi
23508 
23509     # Use eval to expand a potential ~
23510     eval path="$path"
23511     if test ! -f "$path" && test ! -d "$path"; then
23512       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23513     fi
23514 
23515     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23516   fi
23517 
23518               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23519 $as_echo_n "checking for Boot JDK... " >&6; }
23520               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23521 $as_echo "$BOOT_JDK" >&6; }
23522               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23523 $as_echo_n "checking Boot JDK version... " >&6; }
23524               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23525               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23526 $as_echo "$BOOT_JDK_VERSION" >&6; }
23527             fi # end check jdk version
23528           fi # end check rt.jar
23529         fi # end check javac
23530       fi # end check java
23531     fi # end check boot jdk found
23532   fi
23533 
23534     done
23535   fi
23536 
23537 
23538     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23539     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23540       # Do we have a bin/java?
23541       if test ! -x "$BOOT_JDK/bin/java"; then
23542         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23543 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23544         BOOT_JDK_FOUND=no
23545       else
23546         # Do we have a bin/javac?
23547         if test ! -x "$BOOT_JDK/bin/javac"; then
23548           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23549 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23550           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23551 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23552           BOOT_JDK_FOUND=no
23553         else
23554           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23555           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23556             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23557 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23558             BOOT_JDK_FOUND=no
23559           else
23560             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23561             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23562 
23563             # Extra M4 quote needed to protect [] in grep expression.
23564             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23565             if test "x$FOUND_VERSION_78" = x; then
23566               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23568               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23569 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23570               BOOT_JDK_FOUND=no
23571             else
23572               # We're done! :-)
23573               BOOT_JDK_FOUND=yes
23574 
23575   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23576 
23577   # Input might be given as Windows format, start by converting to
23578   # unix format.
23579   path="$BOOT_JDK"
23580   new_path=`$CYGPATH -u "$path"`
23581 
23582   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23583   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23584   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23585   # "foo.exe" is OK but "foo" is an error.
23586   #
23587   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23588   # It is also a way to make sure we got the proper file name for the real test later on.
23589   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23590   if test "x$test_shortpath" = x; then
23591     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23592 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23593     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23594   fi
23595 
23596   # Call helper function which possibly converts this using DOS-style short mode.
23597   # If so, the updated path is stored in $new_path.
23598 
23599   input_path="$new_path"
23600   # Check if we need to convert this using DOS-style short mode. If the path
23601   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23602   # take no chances and rewrite it.
23603   # Note: m4 eats our [], so we need to use [ and ] instead.
23604   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23605   if test "x$has_forbidden_chars" != x; then
23606     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23607     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23608     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23609     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23610       # Going to short mode and back again did indeed matter. Since short mode is
23611       # case insensitive, let's make it lowercase to improve readability.
23612       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23613       # Now convert it back to Unix-style (cygpath)
23614       input_path=`$CYGPATH -u "$shortmode_path"`
23615       new_path="$input_path"
23616     fi
23617   fi
23618 
23619   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23620   if test "x$test_cygdrive_prefix" = x; then
23621     # As a simple fix, exclude /usr/bin since it's not a real path.
23622     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23623       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23624       # a path prefixed by /cygdrive for fixpath to work.
23625       new_path="$CYGWIN_ROOT_PATH$input_path"
23626     fi
23627   fi
23628 
23629 
23630   if test "x$path" != "x$new_path"; then
23631     BOOT_JDK="$new_path"
23632     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23633 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23634   fi
23635 
23636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23637 
23638   path="$BOOT_JDK"
23639   has_colon=`$ECHO $path | $GREP ^.:`
23640   new_path="$path"
23641   if test "x$has_colon" = x; then
23642     # Not in mixed or Windows style, start by that.
23643     new_path=`cmd //c echo $path`
23644   fi
23645 
23646 
23647   input_path="$new_path"
23648   # Check if we need to convert this using DOS-style short mode. If the path
23649   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23650   # take no chances and rewrite it.
23651   # Note: m4 eats our [], so we need to use [ and ] instead.
23652   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23653   if test "x$has_forbidden_chars" != x; then
23654     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23655     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23656   fi
23657 
23658 
23659   windows_path="$new_path"
23660   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23661     unix_path=`$CYGPATH -u "$windows_path"`
23662     new_path="$unix_path"
23663   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23664     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23665     new_path="$unix_path"
23666   fi
23667 
23668   if test "x$path" != "x$new_path"; then
23669     BOOT_JDK="$new_path"
23670     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23671 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23672   fi
23673 
23674   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23675   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23676 
23677   else
23678     # We're on a posix platform. Hooray! :)
23679     path="$BOOT_JDK"
23680     has_space=`$ECHO "$path" | $GREP " "`
23681     if test "x$has_space" != x; then
23682       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23683 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23684       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23685     fi
23686 
23687     # Use eval to expand a potential ~
23688     eval path="$path"
23689     if test ! -f "$path" && test ! -d "$path"; then
23690       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23691     fi
23692 
23693     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23694   fi
23695 
23696               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23697 $as_echo_n "checking for Boot JDK... " >&6; }
23698               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23699 $as_echo "$BOOT_JDK" >&6; }
23700               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23701 $as_echo_n "checking Boot JDK version... " >&6; }
23702               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23703               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23704 $as_echo "$BOOT_JDK_VERSION" >&6; }
23705             fi # end check jdk version
23706           fi # end check rt.jar
23707         fi # end check javac
23708       fi # end check java
23709     fi # end check boot jdk found
23710   fi
23711 
23712 
23713   if test "x$BOOT_JDK_FOUND" = xno; then
23714     # Now execute the test
23715 
23716   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23717   BOOT_JDK_SUFFIX="/Contents/Home"
23718   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23719   if test "x$ALL_JDKS_FOUND" != x; then
23720     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23721 
23722   if test "x$BOOT_JDK_FOUND" = xno; then
23723     # Now execute the test
23724 
23725         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23726         if test -d "$BOOT_JDK"; then
23727           BOOT_JDK_FOUND=maybe
23728           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23729 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23730         fi
23731 
23732 
23733     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23734     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23735       # Do we have a bin/java?
23736       if test ! -x "$BOOT_JDK/bin/java"; then
23737         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23738 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23739         BOOT_JDK_FOUND=no
23740       else
23741         # Do we have a bin/javac?
23742         if test ! -x "$BOOT_JDK/bin/javac"; then
23743           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23745           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23746 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23747           BOOT_JDK_FOUND=no
23748         else
23749           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23750           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23751             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23753             BOOT_JDK_FOUND=no
23754           else
23755             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23756             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23757 
23758             # Extra M4 quote needed to protect [] in grep expression.
23759             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23760             if test "x$FOUND_VERSION_78" = x; then
23761               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23763               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23764 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23765               BOOT_JDK_FOUND=no
23766             else
23767               # We're done! :-)
23768               BOOT_JDK_FOUND=yes
23769 
23770   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23771 
23772   # Input might be given as Windows format, start by converting to
23773   # unix format.
23774   path="$BOOT_JDK"
23775   new_path=`$CYGPATH -u "$path"`
23776 
23777   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23778   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23779   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23780   # "foo.exe" is OK but "foo" is an error.
23781   #
23782   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23783   # It is also a way to make sure we got the proper file name for the real test later on.
23784   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23785   if test "x$test_shortpath" = x; then
23786     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23787 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23788     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23789   fi
23790 
23791   # Call helper function which possibly converts this using DOS-style short mode.
23792   # If so, the updated path is stored in $new_path.
23793 
23794   input_path="$new_path"
23795   # Check if we need to convert this using DOS-style short mode. If the path
23796   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23797   # take no chances and rewrite it.
23798   # Note: m4 eats our [], so we need to use [ and ] instead.
23799   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23800   if test "x$has_forbidden_chars" != x; then
23801     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23802     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23803     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23804     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23805       # Going to short mode and back again did indeed matter. Since short mode is
23806       # case insensitive, let's make it lowercase to improve readability.
23807       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23808       # Now convert it back to Unix-style (cygpath)
23809       input_path=`$CYGPATH -u "$shortmode_path"`
23810       new_path="$input_path"
23811     fi
23812   fi
23813 
23814   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23815   if test "x$test_cygdrive_prefix" = x; then
23816     # As a simple fix, exclude /usr/bin since it's not a real path.
23817     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23818       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23819       # a path prefixed by /cygdrive for fixpath to work.
23820       new_path="$CYGWIN_ROOT_PATH$input_path"
23821     fi
23822   fi
23823 
23824 
23825   if test "x$path" != "x$new_path"; then
23826     BOOT_JDK="$new_path"
23827     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23828 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23829   fi
23830 
23831   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23832 
23833   path="$BOOT_JDK"
23834   has_colon=`$ECHO $path | $GREP ^.:`
23835   new_path="$path"
23836   if test "x$has_colon" = x; then
23837     # Not in mixed or Windows style, start by that.
23838     new_path=`cmd //c echo $path`
23839   fi
23840 
23841 
23842   input_path="$new_path"
23843   # Check if we need to convert this using DOS-style short mode. If the path
23844   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23845   # take no chances and rewrite it.
23846   # Note: m4 eats our [], so we need to use [ and ] instead.
23847   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23848   if test "x$has_forbidden_chars" != x; then
23849     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23850     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23851   fi
23852 
23853 
23854   windows_path="$new_path"
23855   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23856     unix_path=`$CYGPATH -u "$windows_path"`
23857     new_path="$unix_path"
23858   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23859     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23860     new_path="$unix_path"
23861   fi
23862 
23863   if test "x$path" != "x$new_path"; then
23864     BOOT_JDK="$new_path"
23865     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23866 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23867   fi
23868 
23869   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23870   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23871 
23872   else
23873     # We're on a posix platform. Hooray! :)
23874     path="$BOOT_JDK"
23875     has_space=`$ECHO "$path" | $GREP " "`
23876     if test "x$has_space" != x; then
23877       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23878 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23879       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23880     fi
23881 
23882     # Use eval to expand a potential ~
23883     eval path="$path"
23884     if test ! -f "$path" && test ! -d "$path"; then
23885       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23886     fi
23887 
23888     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23889   fi
23890 
23891               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23892 $as_echo_n "checking for Boot JDK... " >&6; }
23893               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23894 $as_echo "$BOOT_JDK" >&6; }
23895               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23896 $as_echo_n "checking Boot JDK version... " >&6; }
23897               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23898               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23899 $as_echo "$BOOT_JDK_VERSION" >&6; }
23900             fi # end check jdk version
23901           fi # end check rt.jar
23902         fi # end check javac
23903       fi # end check java
23904     fi # end check boot jdk found
23905   fi
23906 
23907     done
23908   fi
23909 
23910 
23911     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23912     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23913       # Do we have a bin/java?
23914       if test ! -x "$BOOT_JDK/bin/java"; then
23915         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23917         BOOT_JDK_FOUND=no
23918       else
23919         # Do we have a bin/javac?
23920         if test ! -x "$BOOT_JDK/bin/javac"; then
23921           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23922 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23923           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23924 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23925           BOOT_JDK_FOUND=no
23926         else
23927           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23928           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23929             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23930 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23931             BOOT_JDK_FOUND=no
23932           else
23933             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23934             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23935 
23936             # Extra M4 quote needed to protect [] in grep expression.
23937             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23938             if test "x$FOUND_VERSION_78" = x; then
23939               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23940 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23941               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23942 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23943               BOOT_JDK_FOUND=no
23944             else
23945               # We're done! :-)
23946               BOOT_JDK_FOUND=yes
23947 
23948   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23949 
23950   # Input might be given as Windows format, start by converting to
23951   # unix format.
23952   path="$BOOT_JDK"
23953   new_path=`$CYGPATH -u "$path"`
23954 
23955   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23956   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23957   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23958   # "foo.exe" is OK but "foo" is an error.
23959   #
23960   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23961   # It is also a way to make sure we got the proper file name for the real test later on.
23962   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23963   if test "x$test_shortpath" = x; then
23964     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23965 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23966     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23967   fi
23968 
23969   # Call helper function which possibly converts this using DOS-style short mode.
23970   # If so, the updated path is stored in $new_path.
23971 
23972   input_path="$new_path"
23973   # Check if we need to convert this using DOS-style short mode. If the path
23974   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23975   # take no chances and rewrite it.
23976   # Note: m4 eats our [], so we need to use [ and ] instead.
23977   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23978   if test "x$has_forbidden_chars" != x; then
23979     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23980     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23981     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23982     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23983       # Going to short mode and back again did indeed matter. Since short mode is
23984       # case insensitive, let's make it lowercase to improve readability.
23985       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23986       # Now convert it back to Unix-style (cygpath)
23987       input_path=`$CYGPATH -u "$shortmode_path"`
23988       new_path="$input_path"
23989     fi
23990   fi
23991 
23992   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23993   if test "x$test_cygdrive_prefix" = x; then
23994     # As a simple fix, exclude /usr/bin since it's not a real path.
23995     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23996       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23997       # a path prefixed by /cygdrive for fixpath to work.
23998       new_path="$CYGWIN_ROOT_PATH$input_path"
23999     fi
24000   fi
24001 
24002 
24003   if test "x$path" != "x$new_path"; then
24004     BOOT_JDK="$new_path"
24005     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24006 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24007   fi
24008 
24009   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24010 
24011   path="$BOOT_JDK"
24012   has_colon=`$ECHO $path | $GREP ^.:`
24013   new_path="$path"
24014   if test "x$has_colon" = x; then
24015     # Not in mixed or Windows style, start by that.
24016     new_path=`cmd //c echo $path`
24017   fi
24018 
24019 
24020   input_path="$new_path"
24021   # Check if we need to convert this using DOS-style short mode. If the path
24022   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24023   # take no chances and rewrite it.
24024   # Note: m4 eats our [], so we need to use [ and ] instead.
24025   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24026   if test "x$has_forbidden_chars" != x; then
24027     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24028     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24029   fi
24030 
24031 
24032   windows_path="$new_path"
24033   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24034     unix_path=`$CYGPATH -u "$windows_path"`
24035     new_path="$unix_path"
24036   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24037     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24038     new_path="$unix_path"
24039   fi
24040 
24041   if test "x$path" != "x$new_path"; then
24042     BOOT_JDK="$new_path"
24043     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24044 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24045   fi
24046 
24047   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24048   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24049 
24050   else
24051     # We're on a posix platform. Hooray! :)
24052     path="$BOOT_JDK"
24053     has_space=`$ECHO "$path" | $GREP " "`
24054     if test "x$has_space" != x; then
24055       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24056 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24057       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24058     fi
24059 
24060     # Use eval to expand a potential ~
24061     eval path="$path"
24062     if test ! -f "$path" && test ! -d "$path"; then
24063       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24064     fi
24065 
24066     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24067   fi
24068 
24069               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24070 $as_echo_n "checking for Boot JDK... " >&6; }
24071               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24072 $as_echo "$BOOT_JDK" >&6; }
24073               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24074 $as_echo_n "checking Boot JDK version... " >&6; }
24075               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24076               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24077 $as_echo "$BOOT_JDK_VERSION" >&6; }
24078             fi # end check jdk version
24079           fi # end check rt.jar
24080         fi # end check javac
24081       fi # end check java
24082     fi # end check boot jdk found
24083   fi
24084 
24085   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24086 
24087   if test "x$BOOT_JDK_FOUND" = xno; then
24088     # Now execute the test
24089 
24090   BOOT_JDK_PREFIX="/usr/lib/jvm"
24091   BOOT_JDK_SUFFIX=""
24092   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24093   if test "x$ALL_JDKS_FOUND" != x; then
24094     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24095 
24096   if test "x$BOOT_JDK_FOUND" = xno; then
24097     # Now execute the test
24098 
24099         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24100         if test -d "$BOOT_JDK"; then
24101           BOOT_JDK_FOUND=maybe
24102           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24103 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24104         fi
24105 
24106 
24107     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24108     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24109       # Do we have a bin/java?
24110       if test ! -x "$BOOT_JDK/bin/java"; then
24111         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24113         BOOT_JDK_FOUND=no
24114       else
24115         # Do we have a bin/javac?
24116         if test ! -x "$BOOT_JDK/bin/javac"; then
24117           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24119           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24120 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24121           BOOT_JDK_FOUND=no
24122         else
24123           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24124           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24125             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24127             BOOT_JDK_FOUND=no
24128           else
24129             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24130             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24131 
24132             # Extra M4 quote needed to protect [] in grep expression.
24133             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24134             if test "x$FOUND_VERSION_78" = x; then
24135               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24137               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24138 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24139               BOOT_JDK_FOUND=no
24140             else
24141               # We're done! :-)
24142               BOOT_JDK_FOUND=yes
24143 
24144   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24145 
24146   # Input might be given as Windows format, start by converting to
24147   # unix format.
24148   path="$BOOT_JDK"
24149   new_path=`$CYGPATH -u "$path"`
24150 
24151   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24152   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24153   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24154   # "foo.exe" is OK but "foo" is an error.
24155   #
24156   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24157   # It is also a way to make sure we got the proper file name for the real test later on.
24158   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24159   if test "x$test_shortpath" = x; then
24160     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24161 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24162     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24163   fi
24164 
24165   # Call helper function which possibly converts this using DOS-style short mode.
24166   # If so, the updated path is stored in $new_path.
24167 
24168   input_path="$new_path"
24169   # Check if we need to convert this using DOS-style short mode. If the path
24170   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24171   # take no chances and rewrite it.
24172   # Note: m4 eats our [], so we need to use [ and ] instead.
24173   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24174   if test "x$has_forbidden_chars" != x; then
24175     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24176     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24177     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24178     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24179       # Going to short mode and back again did indeed matter. Since short mode is
24180       # case insensitive, let's make it lowercase to improve readability.
24181       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24182       # Now convert it back to Unix-style (cygpath)
24183       input_path=`$CYGPATH -u "$shortmode_path"`
24184       new_path="$input_path"
24185     fi
24186   fi
24187 
24188   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24189   if test "x$test_cygdrive_prefix" = x; then
24190     # As a simple fix, exclude /usr/bin since it's not a real path.
24191     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24192       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24193       # a path prefixed by /cygdrive for fixpath to work.
24194       new_path="$CYGWIN_ROOT_PATH$input_path"
24195     fi
24196   fi
24197 
24198 
24199   if test "x$path" != "x$new_path"; then
24200     BOOT_JDK="$new_path"
24201     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24202 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24203   fi
24204 
24205   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24206 
24207   path="$BOOT_JDK"
24208   has_colon=`$ECHO $path | $GREP ^.:`
24209   new_path="$path"
24210   if test "x$has_colon" = x; then
24211     # Not in mixed or Windows style, start by that.
24212     new_path=`cmd //c echo $path`
24213   fi
24214 
24215 
24216   input_path="$new_path"
24217   # Check if we need to convert this using DOS-style short mode. If the path
24218   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24219   # take no chances and rewrite it.
24220   # Note: m4 eats our [], so we need to use [ and ] instead.
24221   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24222   if test "x$has_forbidden_chars" != x; then
24223     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24224     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24225   fi
24226 
24227 
24228   windows_path="$new_path"
24229   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24230     unix_path=`$CYGPATH -u "$windows_path"`
24231     new_path="$unix_path"
24232   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24233     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24234     new_path="$unix_path"
24235   fi
24236 
24237   if test "x$path" != "x$new_path"; then
24238     BOOT_JDK="$new_path"
24239     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24240 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24241   fi
24242 
24243   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24244   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24245 
24246   else
24247     # We're on a posix platform. Hooray! :)
24248     path="$BOOT_JDK"
24249     has_space=`$ECHO "$path" | $GREP " "`
24250     if test "x$has_space" != x; then
24251       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24252 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24253       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24254     fi
24255 
24256     # Use eval to expand a potential ~
24257     eval path="$path"
24258     if test ! -f "$path" && test ! -d "$path"; then
24259       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24260     fi
24261 
24262     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24263   fi
24264 
24265               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24266 $as_echo_n "checking for Boot JDK... " >&6; }
24267               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24268 $as_echo "$BOOT_JDK" >&6; }
24269               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24270 $as_echo_n "checking Boot JDK version... " >&6; }
24271               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24272               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24273 $as_echo "$BOOT_JDK_VERSION" >&6; }
24274             fi # end check jdk version
24275           fi # end check rt.jar
24276         fi # end check javac
24277       fi # end check java
24278     fi # end check boot jdk found
24279   fi
24280 
24281     done
24282   fi
24283 
24284 
24285     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24286     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24287       # Do we have a bin/java?
24288       if test ! -x "$BOOT_JDK/bin/java"; then
24289         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24291         BOOT_JDK_FOUND=no
24292       else
24293         # Do we have a bin/javac?
24294         if test ! -x "$BOOT_JDK/bin/javac"; then
24295           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24296 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24297           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24298 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24299           BOOT_JDK_FOUND=no
24300         else
24301           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24302           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24303             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24304 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24305             BOOT_JDK_FOUND=no
24306           else
24307             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24308             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24309 
24310             # Extra M4 quote needed to protect [] in grep expression.
24311             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24312             if test "x$FOUND_VERSION_78" = x; then
24313               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24314 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24315               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24316 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24317               BOOT_JDK_FOUND=no
24318             else
24319               # We're done! :-)
24320               BOOT_JDK_FOUND=yes
24321 
24322   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24323 
24324   # Input might be given as Windows format, start by converting to
24325   # unix format.
24326   path="$BOOT_JDK"
24327   new_path=`$CYGPATH -u "$path"`
24328 
24329   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24330   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24331   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24332   # "foo.exe" is OK but "foo" is an error.
24333   #
24334   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24335   # It is also a way to make sure we got the proper file name for the real test later on.
24336   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24337   if test "x$test_shortpath" = x; then
24338     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24339 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24340     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24341   fi
24342 
24343   # Call helper function which possibly converts this using DOS-style short mode.
24344   # If so, the updated path is stored in $new_path.
24345 
24346   input_path="$new_path"
24347   # Check if we need to convert this using DOS-style short mode. If the path
24348   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24349   # take no chances and rewrite it.
24350   # Note: m4 eats our [], so we need to use [ and ] instead.
24351   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24352   if test "x$has_forbidden_chars" != x; then
24353     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24354     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24355     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24356     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24357       # Going to short mode and back again did indeed matter. Since short mode is
24358       # case insensitive, let's make it lowercase to improve readability.
24359       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24360       # Now convert it back to Unix-style (cygpath)
24361       input_path=`$CYGPATH -u "$shortmode_path"`
24362       new_path="$input_path"
24363     fi
24364   fi
24365 
24366   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24367   if test "x$test_cygdrive_prefix" = x; then
24368     # As a simple fix, exclude /usr/bin since it's not a real path.
24369     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24370       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24371       # a path prefixed by /cygdrive for fixpath to work.
24372       new_path="$CYGWIN_ROOT_PATH$input_path"
24373     fi
24374   fi
24375 
24376 
24377   if test "x$path" != "x$new_path"; then
24378     BOOT_JDK="$new_path"
24379     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24380 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24381   fi
24382 
24383   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24384 
24385   path="$BOOT_JDK"
24386   has_colon=`$ECHO $path | $GREP ^.:`
24387   new_path="$path"
24388   if test "x$has_colon" = x; then
24389     # Not in mixed or Windows style, start by that.
24390     new_path=`cmd //c echo $path`
24391   fi
24392 
24393 
24394   input_path="$new_path"
24395   # Check if we need to convert this using DOS-style short mode. If the path
24396   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24397   # take no chances and rewrite it.
24398   # Note: m4 eats our [], so we need to use [ and ] instead.
24399   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24400   if test "x$has_forbidden_chars" != x; then
24401     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24402     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24403   fi
24404 
24405 
24406   windows_path="$new_path"
24407   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24408     unix_path=`$CYGPATH -u "$windows_path"`
24409     new_path="$unix_path"
24410   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24411     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24412     new_path="$unix_path"
24413   fi
24414 
24415   if test "x$path" != "x$new_path"; then
24416     BOOT_JDK="$new_path"
24417     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24418 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24419   fi
24420 
24421   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24422   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24423 
24424   else
24425     # We're on a posix platform. Hooray! :)
24426     path="$BOOT_JDK"
24427     has_space=`$ECHO "$path" | $GREP " "`
24428     if test "x$has_space" != x; then
24429       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24430 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24431       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24432     fi
24433 
24434     # Use eval to expand a potential ~
24435     eval path="$path"
24436     if test ! -f "$path" && test ! -d "$path"; then
24437       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24438     fi
24439 
24440     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24441   fi
24442 
24443               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24444 $as_echo_n "checking for Boot JDK... " >&6; }
24445               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24446 $as_echo "$BOOT_JDK" >&6; }
24447               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24448 $as_echo_n "checking Boot JDK version... " >&6; }
24449               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24450               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24451 $as_echo "$BOOT_JDK_VERSION" >&6; }
24452             fi # end check jdk version
24453           fi # end check rt.jar
24454         fi # end check javac
24455       fi # end check java
24456     fi # end check boot jdk found
24457   fi
24458 
24459   fi
24460 
24461 
24462     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24463     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24464       # Do we have a bin/java?
24465       if test ! -x "$BOOT_JDK/bin/java"; then
24466         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24467 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24468         BOOT_JDK_FOUND=no
24469       else
24470         # Do we have a bin/javac?
24471         if test ! -x "$BOOT_JDK/bin/javac"; then
24472           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24473 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24474           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24475 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24476           BOOT_JDK_FOUND=no
24477         else
24478           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24479           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24480             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24482             BOOT_JDK_FOUND=no
24483           else
24484             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24485             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24486 
24487             # Extra M4 quote needed to protect [] in grep expression.
24488             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24489             if test "x$FOUND_VERSION_78" = x; then
24490               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24491 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24492               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24493 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24494               BOOT_JDK_FOUND=no
24495             else
24496               # We're done! :-)
24497               BOOT_JDK_FOUND=yes
24498 
24499   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24500 
24501   # Input might be given as Windows format, start by converting to
24502   # unix format.
24503   path="$BOOT_JDK"
24504   new_path=`$CYGPATH -u "$path"`
24505 
24506   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24507   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24508   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24509   # "foo.exe" is OK but "foo" is an error.
24510   #
24511   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24512   # It is also a way to make sure we got the proper file name for the real test later on.
24513   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24514   if test "x$test_shortpath" = x; then
24515     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24516 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24517     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24518   fi
24519 
24520   # Call helper function which possibly converts this using DOS-style short mode.
24521   # If so, the updated path is stored in $new_path.
24522 
24523   input_path="$new_path"
24524   # Check if we need to convert this using DOS-style short mode. If the path
24525   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24526   # take no chances and rewrite it.
24527   # Note: m4 eats our [], so we need to use [ and ] instead.
24528   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24529   if test "x$has_forbidden_chars" != x; then
24530     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24531     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24532     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24533     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24534       # Going to short mode and back again did indeed matter. Since short mode is
24535       # case insensitive, let's make it lowercase to improve readability.
24536       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24537       # Now convert it back to Unix-style (cygpath)
24538       input_path=`$CYGPATH -u "$shortmode_path"`
24539       new_path="$input_path"
24540     fi
24541   fi
24542 
24543   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24544   if test "x$test_cygdrive_prefix" = x; then
24545     # As a simple fix, exclude /usr/bin since it's not a real path.
24546     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24547       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24548       # a path prefixed by /cygdrive for fixpath to work.
24549       new_path="$CYGWIN_ROOT_PATH$input_path"
24550     fi
24551   fi
24552 
24553 
24554   if test "x$path" != "x$new_path"; then
24555     BOOT_JDK="$new_path"
24556     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24557 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24558   fi
24559 
24560   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24561 
24562   path="$BOOT_JDK"
24563   has_colon=`$ECHO $path | $GREP ^.:`
24564   new_path="$path"
24565   if test "x$has_colon" = x; then
24566     # Not in mixed or Windows style, start by that.
24567     new_path=`cmd //c echo $path`
24568   fi
24569 
24570 
24571   input_path="$new_path"
24572   # Check if we need to convert this using DOS-style short mode. If the path
24573   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24574   # take no chances and rewrite it.
24575   # Note: m4 eats our [], so we need to use [ and ] instead.
24576   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24577   if test "x$has_forbidden_chars" != x; then
24578     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24579     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24580   fi
24581 
24582 
24583   windows_path="$new_path"
24584   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24585     unix_path=`$CYGPATH -u "$windows_path"`
24586     new_path="$unix_path"
24587   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24588     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24589     new_path="$unix_path"
24590   fi
24591 
24592   if test "x$path" != "x$new_path"; then
24593     BOOT_JDK="$new_path"
24594     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24595 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24596   fi
24597 
24598   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24599   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24600 
24601   else
24602     # We're on a posix platform. Hooray! :)
24603     path="$BOOT_JDK"
24604     has_space=`$ECHO "$path" | $GREP " "`
24605     if test "x$has_space" != x; then
24606       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24607 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24608       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24609     fi
24610 
24611     # Use eval to expand a potential ~
24612     eval path="$path"
24613     if test ! -f "$path" && test ! -d "$path"; then
24614       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24615     fi
24616 
24617     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24618   fi
24619 
24620               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24621 $as_echo_n "checking for Boot JDK... " >&6; }
24622               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24623 $as_echo "$BOOT_JDK" >&6; }
24624               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24625 $as_echo_n "checking Boot JDK version... " >&6; }
24626               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24627               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24628 $as_echo "$BOOT_JDK_VERSION" >&6; }
24629             fi # end check jdk version
24630           fi # end check rt.jar
24631         fi # end check javac
24632       fi # end check java
24633     fi # end check boot jdk found
24634   fi
24635 
24636 
24637   # If we haven't found anything yet, we've truly lost. Give up.
24638   if test "x$BOOT_JDK_FOUND" = xno; then
24639 
24640   # Print a helpful message on how to acquire the necessary build dependency.
24641   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24642   MISSING_DEPENDENCY=openjdk
24643 
24644   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24645     cygwin_help $MISSING_DEPENDENCY
24646   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24647     msys_help $MISSING_DEPENDENCY
24648   else
24649     PKGHANDLER_COMMAND=
24650 
24651     case $PKGHANDLER in
24652       apt-get)
24653         apt_help     $MISSING_DEPENDENCY ;;
24654       yum)
24655         yum_help     $MISSING_DEPENDENCY ;;
24656       port)
24657         port_help    $MISSING_DEPENDENCY ;;
24658       pkgutil)
24659         pkgutil_help $MISSING_DEPENDENCY ;;
24660       pkgadd)
24661         pkgadd_help  $MISSING_DEPENDENCY ;;
24662     esac
24663 
24664     if test "x$PKGHANDLER_COMMAND" != x; then
24665       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24666     fi
24667   fi
24668 
24669     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24670 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24671     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24672 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24673     as_fn_error $? "Cannot continue" "$LINENO" 5
24674   fi
24675 
24676   # Setup proper paths for what we found
24677   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24678   if test ! -f "$BOOT_RTJAR"; then
24679     # On MacOSX it is called classes.jar
24680     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24681     if test -f "$BOOT_RTJAR"; then
24682       # Remove the ..
24683       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24684     fi
24685   fi
24686   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24687   BOOT_JDK="$BOOT_JDK"
24688 
24689 
24690 
24691 
24692   # Setup tools from the Boot JDK.
24693 
24694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24695 $as_echo_n "checking for java in Boot JDK... " >&6; }
24696   JAVA=$BOOT_JDK/bin/java
24697   if test ! -x $JAVA; then
24698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24699 $as_echo "not found" >&6; }
24700     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24701 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24702     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24703   fi
24704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24705 $as_echo "ok" >&6; }
24706 
24707 
24708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24709 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24710   JAVAC=$BOOT_JDK/bin/javac
24711   if test ! -x $JAVAC; then
24712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24713 $as_echo "not found" >&6; }
24714     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24715 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24716     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24717   fi
24718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24719 $as_echo "ok" >&6; }
24720 
24721 
24722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24723 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24724   JAVAH=$BOOT_JDK/bin/javah
24725   if test ! -x $JAVAH; then
24726     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24727 $as_echo "not found" >&6; }
24728     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24729 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24730     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24731   fi
24732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24733 $as_echo "ok" >&6; }
24734 
24735 
24736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24737 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24738   JAVAP=$BOOT_JDK/bin/javap
24739   if test ! -x $JAVAP; then
24740     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24741 $as_echo "not found" >&6; }
24742     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24743 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24744     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24745   fi
24746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24747 $as_echo "ok" >&6; }
24748 
24749 
24750   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24751 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24752   JAR=$BOOT_JDK/bin/jar
24753   if test ! -x $JAR; then
24754     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24755 $as_echo "not found" >&6; }
24756     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24757 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24758     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24759   fi
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24761 $as_echo "ok" >&6; }
24762 
24763 
24764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24765 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24766   RMIC=$BOOT_JDK/bin/rmic
24767   if test ! -x $RMIC; then
24768     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24769 $as_echo "not found" >&6; }
24770     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24771 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24772     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24773   fi
24774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24775 $as_echo "ok" >&6; }
24776 
24777 
24778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24779 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24780   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24781   if test ! -x $NATIVE2ASCII; then
24782     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24783 $as_echo "not found" >&6; }
24784     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24785 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24786     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24787   fi
24788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24789 $as_echo "ok" >&6; }
24790 
24791 
24792   # Finally, set some other options...
24793 
24794   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24795   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24796 
24797 
24798 
24799   # Check if the boot jdk is 32 or 64 bit
24800   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24801     BOOT_JDK_BITS="64"
24802   else
24803     BOOT_JDK_BITS="32"
24804   fi
24805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24806 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24808 $as_echo "$BOOT_JDK_BITS" >&6; }
24809 
24810 
24811 
24812   ##############################################################################
24813   #
24814   # Specify options for anything that is run with the Boot JDK.
24815   #
24816 
24817 # Check whether --with-boot-jdk-jvmargs was given.
24818 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24819   withval=$with_boot_jdk_jvmargs;
24820 fi
24821 
24822 
24823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24824 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24825 
24826   # Disable special log output when a debug build is used as Boot JDK...
24827 
24828   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24829   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24830   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24831   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24832   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24833   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24834     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24835     JVM_ARG_OK