1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk9'
 590 PACKAGE_STRING='OpenJDK jdk9'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 MSVCR_DLL
 644 LIBCXX
 645 LLVM_LIBS
 646 LLVM_LDFLAGS
 647 LLVM_CFLAGS
 648 LLVM_CONFIG
 649 LIBFFI_LIBS
 650 LIBFFI_CFLAGS
 651 STATIC_CXX_SETTING
 652 LIBDL
 653 LIBM
 654 LIBZIP_CAN_USE_MMAP
 655 USE_EXTERNAL_LIBZ
 656 USE_EXTERNAL_LIBPNG
 657 PNG_LIBS
 658 PNG_CFLAGS
 659 USE_EXTERNAL_LIBGIF
 660 USE_EXTERNAL_LIBJPEG
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 OPENWIN_HOME
 668 X_EXTRA_LIBS
 669 X_LIBS
 670 X_PRE_LIBS
 671 X_CFLAGS
 672 XMKMF
 673 FIXPATH
 674 ZIP_DEBUGINFO_FILES
 675 ENABLE_DEBUG_SYMBOLS
 676 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 677 ZERO_ARCHFLAG
 678 LDFLAGS_CXX_JDK
 679 LDFLAGS_JDKEXE_SUFFIX
 680 LDFLAGS_JDKLIB_SUFFIX
 681 LDFLAGS_JDKEXE
 682 LDFLAGS_JDKLIB
 683 CXXFLAGS_JDKEXE
 684 CXXFLAGS_JDKLIB
 685 CFLAGS_JDKEXE
 686 CFLAGS_JDKLIB
 687 MACOSX_VERSION_MIN
 688 LEGACY_EXTRA_LDFLAGS
 689 LEGACY_EXTRA_CXXFLAGS
 690 LEGACY_EXTRA_CFLAGS
 691 CXX_O_FLAG_NONE
 692 CXX_O_FLAG_NORM
 693 CXX_O_FLAG_HI
 694 CXX_O_FLAG_HIGHEST
 695 C_O_FLAG_NONE
 696 C_O_FLAG_NORM
 697 C_O_FLAG_HI
 698 C_O_FLAG_HIGHEST
 699 CXXFLAGS_DEBUG_SYMBOLS
 700 CFLAGS_DEBUG_SYMBOLS
 701 CXX_FLAG_DEPS
 702 C_FLAG_DEPS
 703 SET_SHARED_LIBRARY_MAPFILE
 704 SET_SHARED_LIBRARY_NAME
 705 SET_SHARED_LIBRARY_ORIGIN
 706 SET_EXECUTABLE_ORIGIN
 707 SHARED_LIBRARY_FLAGS
 708 CXX_FLAG_REORDER
 709 C_FLAG_REORDER
 710 RC_FLAGS
 711 AR_OUT_OPTION
 712 LD_OUT_OPTION
 713 EXE_OUT_OPTION
 714 CC_OUT_OPTION
 715 POST_MCS_CMD
 716 POST_STRIP_CMD
 717 ARFLAGS
 718 COMPILER_TARGET_BITS_FLAG
 719 JT_HOME
 720 JTREGEXE
 721 USING_BROKEN_SUSE_LD
 722 PACKAGE_PATH
 723 LDEXECXX
 724 LDEXE
 725 USE_CLANG
 726 HOTSPOT_LD
 727 HOTSPOT_CXX
 728 HOTSPOT_RC
 729 HOTSPOT_MT
 730 BUILD_LD
 731 BUILD_CXX
 732 BUILD_CC
 733 ac_ct_OBJDUMP
 734 OBJDUMP
 735 ac_ct_OBJCOPY
 736 OBJCOPY
 737 ac_ct_NM
 738 ac_ct_STRIP
 739 MCS
 740 GNM
 741 NM
 742 STRIP
 743 DUMPBIN
 744 RC
 745 MT
 746 LIPO
 747 ac_ct_OBJC
 748 OBJCFLAGS
 749 OBJC
 750 ac_ct_AR
 751 AR
 752 AS
 753 LDCXX
 754 LD
 755 CXXCPP
 756 CPP
 757 ac_ct_CXX
 758 CXXFLAGS
 759 CXX
 760 ac_ct_PROPER_COMPILER_CXX
 761 PROPER_COMPILER_CXX
 762 TOOLS_DIR_CXX
 763 POTENTIAL_CXX
 764 OBJEXT
 765 EXEEXT
 766 ac_ct_CC
 767 CPPFLAGS
 768 LDFLAGS
 769 CFLAGS
 770 CC
 771 ac_ct_PROPER_COMPILER_CC
 772 PROPER_COMPILER_CC
 773 TOOLS_DIR_CC
 774 POTENTIAL_CC
 775 VS_PATH
 776 VS_LIB
 777 VS_INCLUDE
 778 CYGWIN_LINK
 779 EXE_SUFFIX
 780 OBJ_SUFFIX
 781 STATIC_LIBRARY
 782 SHARED_LIBRARY
 783 STATIC_LIBRARY_SUFFIX
 784 SHARED_LIBRARY_SUFFIX
 785 LIBRARY_PREFIX
 786 TOOLCHAIN_TYPE
 787 BUILD_HOTSPOT
 788 HOTSPOT_DIST
 789 BUILD_OUTPUT
 790 OVERRIDE_SRC_ROOT
 791 ADD_SRC_ROOT
 792 JDK_TOPDIR
 793 NASHORN_TOPDIR
 794 HOTSPOT_TOPDIR
 795 JAXWS_TOPDIR
 796 JAXP_TOPDIR
 797 CORBA_TOPDIR
 798 LANGTOOLS_TOPDIR
 799 JAVA_FLAGS
 800 BOOT_JDK_JVMARGS
 801 JAVAC_FLAGS
 802 BOOT_JDK_SOURCETARGET
 803 JARSIGNER
 804 NATIVE2ASCII
 805 JAR
 806 JAVAH
 807 JAVAC
 808 JAVA
 809 BOOT_JDK
 810 BOOT_TOOLSJAR
 811 BOOT_RTJAR
 812 JAVA_CHECK
 813 JAVAC_CHECK
 814 COOKED_BUILD_NUMBER
 815 JDK_VERSION
 816 COPYRIGHT_YEAR
 817 MACOSX_BUNDLE_ID_BASE
 818 MACOSX_BUNDLE_NAME_BASE
 819 COMPANY_NAME
 820 JDK_RC_PLATFORM_NAME
 821 PRODUCT_SUFFIX
 822 PRODUCT_NAME
 823 LAUNCHER_NAME
 824 MILESTONE
 825 JDK_BUILD_NUMBER
 826 JDK_UPDATE_VERSION
 827 JDK_MICRO_VERSION
 828 JDK_MINOR_VERSION
 829 JDK_MAJOR_VERSION
 830 USER_RELEASE_SUFFIX
 831 COMPRESS_JARS
 832 RMICONNECTOR_IIOP
 833 UNLIMITED_CRYPTO
 834 CACERTS_FILE
 835 TEST_IN_BUILD
 836 BUILD_HEADLESS
 837 SUPPORT_HEADFUL
 838 SUPPORT_HEADLESS
 839 BDEPS_FTP
 840 BDEPS_UNZIP
 841 OS_VERSION_MICRO
 842 OS_VERSION_MINOR
 843 OS_VERSION_MAJOR
 844 PKG_CONFIG
 845 CODESIGN
 846 XATTR
 847 DSYMUTIL
 848 IS_GNU_TIME
 849 TIME
 850 STAT
 851 HG
 852 READELF
 853 OTOOL
 854 LDD
 855 ZIP
 856 UNZIP
 857 FIND_DELETE
 858 MAKE
 859 CHECK_TOOLSDIR_MAKE
 860 CHECK_TOOLSDIR_GMAKE
 861 CHECK_MAKE
 862 CHECK_GMAKE
 863 PKGHANDLER
 864 OUTPUT_ROOT
 865 CONF_NAME
 866 SPEC
 867 BUILD_VARIANT_RELEASE
 868 DEBUG_CLASSFILES
 869 FASTDEBUG
 870 VARIANT
 871 DEBUG_LEVEL
 872 MACOSX_UNIVERSAL
 873 INCLUDE_SA
 874 JVM_VARIANT_CORE
 875 JVM_VARIANT_ZEROSHARK
 876 JVM_VARIANT_ZERO
 877 JVM_VARIANT_KERNEL
 878 JVM_VARIANT_MINIMAL1
 879 JVM_VARIANT_CLIENT
 880 JVM_VARIANT_SERVER
 881 JVM_VARIANTS
 882 JVM_INTERPRETER
 883 JDK_VARIANT
 884 SET_OPENJDK
 885 BUILD_LOG_WRAPPER
 886 BUILD_LOG_PREVIOUS
 887 BUILD_LOG
 888 SYS_ROOT
 889 TOPDIR
 890 PATH_SEP
 891 ZERO_ARCHDEF
 892 DEFINE_CROSS_COMPILE_ARCH
 893 LP64
 894 OPENJDK_TARGET_OS_EXPORT_DIR
 895 OPENJDK_TARGET_OS_API_DIR
 896 OPENJDK_TARGET_CPU_JLI_CFLAGS
 897 OPENJDK_TARGET_CPU_OSARCH
 898 OPENJDK_TARGET_CPU_ISADIR
 899 OPENJDK_TARGET_CPU_LIBDIR
 900 OPENJDK_TARGET_CPU_LEGACY_LIB
 901 OPENJDK_TARGET_CPU_LEGACY
 902 REQUIRED_OS_VERSION
 903 REQUIRED_OS_NAME
 904 COMPILE_TYPE
 905 OPENJDK_TARGET_CPU_ENDIAN
 906 OPENJDK_TARGET_CPU_BITS
 907 OPENJDK_TARGET_CPU_ARCH
 908 OPENJDK_TARGET_CPU
 909 OPENJDK_TARGET_OS_API
 910 OPENJDK_TARGET_OS
 911 OPENJDK_BUILD_CPU_ENDIAN
 912 OPENJDK_BUILD_CPU_BITS
 913 OPENJDK_BUILD_CPU_ARCH
 914 OPENJDK_BUILD_CPU
 915 OPENJDK_BUILD_OS_API
 916 OPENJDK_BUILD_OS
 917 OPENJDK_BUILD_AUTOCONF_NAME
 918 OPENJDK_TARGET_AUTOCONF_NAME
 919 target_os
 920 target_vendor
 921 target_cpu
 922 target
 923 host_os
 924 host_vendor
 925 host_cpu
 926 host
 927 build_os
 928 build_vendor
 929 build_cpu
 930 build
 931 SETFILE
 932 DF
 933 READLINK
 934 CYGPATH
 935 SED
 936 FGREP
 937 EGREP
 938 GREP
 939 AWK
 940 XARGS
 941 WHICH
 942 WC
 943 UNIQ
 944 UNAME
 945 TR
 946 TOUCH
 947 TEE
 948 TAR
 949 TAIL
 950 SORT
 951 SH
 952 RM
 953 PRINTF
 954 NAWK
 955 MV
 956 MKTEMP
 957 MKDIR
 958 LS
 959 LN
 960 HEAD
 961 FIND
 962 FILE
 963 EXPR
 964 ECHO
 965 DIRNAME
 966 DIFF
 967 DATE
 968 CUT
 969 CPIO
 970 CP
 971 COMM
 972 CMP
 973 CHMOD
 974 CAT
 975 BASH
 976 BASENAME
 977 DATE_WHEN_CONFIGURED
 978 CONFIGURE_COMMAND_LINE
 979 target_alias
 980 host_alias
 981 build_alias
 982 LIBS
 983 ECHO_T
 984 ECHO_N
 985 ECHO_C
 986 DEFS
 987 mandir
 988 localedir
 989 libdir
 990 psdir
 991 pdfdir
 992 dvidir
 993 htmldir
 994 infodir
 995 docdir
 996 oldincludedir
 997 includedir
 998 localstatedir
 999 sharedstatedir
1000 sysconfdir
1001 datadir
1002 datarootdir
1003 libexecdir
1004 sbindir
1005 bindir
1006 program_transform_name
1007 prefix
1008 exec_prefix
1009 PACKAGE_URL
1010 PACKAGE_BUGREPORT
1011 PACKAGE_STRING
1012 PACKAGE_VERSION
1013 PACKAGE_TARNAME
1014 PACKAGE_NAME
1015 PATH_SEPARATOR
1016 SHELL'
1017 ac_subst_files=''
1018 ac_user_opts='
1019 enable_option_checking
1020 with_target_bits
1021 with_sys_root
1022 with_tools_dir
1023 with_devkit
1024 enable_openjdk_only
1025 with_custom_make_dir
1026 with_jdk_variant
1027 with_jvm_interpreter
1028 with_jvm_variants
1029 enable_debug
1030 with_debug_level
1031 with_conf_name
1032 with_builddeps_conf
1033 with_builddeps_server
1034 with_builddeps_dir
1035 with_builddeps_group
1036 enable_headful
1037 enable_hotspot_test_in_build
1038 with_cacerts_file
1039 enable_unlimited_crypto
1040 enable_rmiconnector_iiop
1041 with_milestone
1042 with_update_version
1043 with_user_release_suffix
1044 with_build_number
1045 with_boot_jdk
1046 with_boot_jdk_jvmargs
1047 with_add_source_root
1048 with_override_source_root
1049 with_adds_and_overrides
1050 with_override_langtools
1051 with_override_corba
1052 with_override_jaxp
1053 with_override_jaxws
1054 with_override_hotspot
1055 with_override_nashorn
1056 with_override_jdk
1057 with_import_hotspot
1058 with_toolchain_type
1059 with_jtreg
1060 with_extra_cflags
1061 with_extra_cxxflags
1062 with_extra_ldflags
1063 enable_debug_symbols
1064 enable_zip_debug_info
1065 enable_macosx_runtime_support
1066 with_x
1067 with_cups
1068 with_cups_include
1069 with_freetype
1070 with_freetype_include
1071 with_freetype_lib
1072 enable_freetype_bundling
1073 with_alsa
1074 with_alsa_include
1075 with_alsa_lib
1076 with_giflib
1077 with_libpng
1078 with_zlib
1079 with_stdc__lib
1080 with_msvcr_dll
1081 with_dxsdk
1082 with_dxsdk_lib
1083 with_dxsdk_include
1084 with_num_cores
1085 with_memory_size
1086 with_jobs
1087 with_sjavac_server_java
1088 enable_sjavac
1089 enable_precompiled_headers
1090 enable_ccache
1091 with_ccache_dir
1092 '
1093       ac_precious_vars='build_alias
1094 host_alias
1095 target_alias
1096 BASENAME
1097 BASH
1098 CAT
1099 CHMOD
1100 CMP
1101 COMM
1102 CP
1103 CPIO
1104 CUT
1105 DATE
1106 DIFF
1107 DIRNAME
1108 ECHO
1109 EXPR
1110 FILE
1111 FIND
1112 HEAD
1113 LN
1114 LS
1115 MKDIR
1116 MKTEMP
1117 MV
1118 NAWK
1119 PRINTF
1120 RM
1121 SH
1122 SORT
1123 TAIL
1124 TAR
1125 TEE
1126 TOUCH
1127 TR
1128 UNAME
1129 UNIQ
1130 WC
1131 WHICH
1132 XARGS
1133 AWK
1134 GREP
1135 EGREP
1136 FGREP
1137 SED
1138 CYGPATH
1139 READLINK
1140 DF
1141 SETFILE
1142 UNZIP
1143 ZIP
1144 LDD
1145 OTOOL
1146 READELF
1147 HG
1148 STAT
1149 TIME
1150 DSYMUTIL
1151 XATTR
1152 CODESIGN
1153 PKG_CONFIG
1154 JAVA
1155 JAVAC
1156 JAVAH
1157 JAR
1158 NATIVE2ASCII
1159 JARSIGNER
1160 CC
1161 CFLAGS
1162 LDFLAGS
1163 LIBS
1164 CPPFLAGS
1165 CXX
1166 CXXFLAGS
1167 CCC
1168 CPP
1169 CXXCPP
1170 AS
1171 AR
1172 OBJC
1173 OBJCFLAGS
1174 LIPO
1175 STRIP
1176 NM
1177 GNM
1178 MCS
1179 OBJCOPY
1180 OBJDUMP
1181 BUILD_CC
1182 BUILD_CXX
1183 BUILD_LD
1184 JTREGEXE
1185 XMKMF
1186 FREETYPE_CFLAGS
1187 FREETYPE_LIBS
1188 ALSA_CFLAGS
1189 ALSA_LIBS
1190 PNG_CFLAGS
1191 PNG_LIBS
1192 LIBFFI_CFLAGS
1193 LIBFFI_LIBS
1194 CCACHE'
1195 
1196 
1197 # Initialize some variables set by options.
1198 ac_init_help=
1199 ac_init_version=false
1200 ac_unrecognized_opts=
1201 ac_unrecognized_sep=
1202 # The variables have the same names as the options, with
1203 # dashes changed to underlines.
1204 cache_file=/dev/null
1205 exec_prefix=NONE
1206 no_create=
1207 no_recursion=
1208 prefix=NONE
1209 program_prefix=NONE
1210 program_suffix=NONE
1211 program_transform_name=s,x,x,
1212 silent=
1213 site=
1214 srcdir=
1215 verbose=
1216 x_includes=NONE
1217 x_libraries=NONE
1218 
1219 # Installation directory options.
1220 # These are left unexpanded so users can "make install exec_prefix=/foo"
1221 # and all the variables that are supposed to be based on exec_prefix
1222 # by default will actually change.
1223 # Use braces instead of parens because sh, perl, etc. also accept them.
1224 # (The list follows the same order as the GNU Coding Standards.)
1225 bindir='${exec_prefix}/bin'
1226 sbindir='${exec_prefix}/sbin'
1227 libexecdir='${exec_prefix}/libexec'
1228 datarootdir='${prefix}/share'
1229 datadir='${datarootdir}'
1230 sysconfdir='${prefix}/etc'
1231 sharedstatedir='${prefix}/com'
1232 localstatedir='${prefix}/var'
1233 includedir='${prefix}/include'
1234 oldincludedir='/usr/include'
1235 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1236 infodir='${datarootdir}/info'
1237 htmldir='${docdir}'
1238 dvidir='${docdir}'
1239 pdfdir='${docdir}'
1240 psdir='${docdir}'
1241 libdir='${exec_prefix}/lib'
1242 localedir='${datarootdir}/locale'
1243 mandir='${datarootdir}/man'
1244 
1245 ac_prev=
1246 ac_dashdash=
1247 for ac_option
1248 do
1249   # If the previous option needs an argument, assign it.
1250   if test -n "$ac_prev"; then
1251     eval $ac_prev=\$ac_option
1252     ac_prev=
1253     continue
1254   fi
1255 
1256   case $ac_option in
1257   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1258   *=)   ac_optarg= ;;
1259   *)    ac_optarg=yes ;;
1260   esac
1261 
1262   # Accept the important Cygnus configure options, so we can diagnose typos.
1263 
1264   case $ac_dashdash$ac_option in
1265   --)
1266     ac_dashdash=yes ;;
1267 
1268   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1269     ac_prev=bindir ;;
1270   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1271     bindir=$ac_optarg ;;
1272 
1273   -build | --build | --buil | --bui | --bu)
1274     ac_prev=build_alias ;;
1275   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1276     build_alias=$ac_optarg ;;
1277 
1278   -cache-file | --cache-file | --cache-fil | --cache-fi \
1279   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1280     ac_prev=cache_file ;;
1281   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1282   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1283     cache_file=$ac_optarg ;;
1284 
1285   --config-cache | -C)
1286     cache_file=config.cache ;;
1287 
1288   -datadir | --datadir | --datadi | --datad)
1289     ac_prev=datadir ;;
1290   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1291     datadir=$ac_optarg ;;
1292 
1293   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1294   | --dataroo | --dataro | --datar)
1295     ac_prev=datarootdir ;;
1296   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1297   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1298     datarootdir=$ac_optarg ;;
1299 
1300   -disable-* | --disable-*)
1301     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1302     # Reject names that are not valid shell variable names.
1303     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1304       as_fn_error $? "invalid feature name: $ac_useropt"
1305     ac_useropt_orig=$ac_useropt
1306     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1307     case $ac_user_opts in
1308       *"
1309 "enable_$ac_useropt"
1310 "*) ;;
1311       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1312          ac_unrecognized_sep=', ';;
1313     esac
1314     eval enable_$ac_useropt=no ;;
1315 
1316   -docdir | --docdir | --docdi | --doc | --do)
1317     ac_prev=docdir ;;
1318   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1319     docdir=$ac_optarg ;;
1320 
1321   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1322     ac_prev=dvidir ;;
1323   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1324     dvidir=$ac_optarg ;;
1325 
1326   -enable-* | --enable-*)
1327     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1328     # Reject names that are not valid shell variable names.
1329     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1330       as_fn_error $? "invalid feature name: $ac_useropt"
1331     ac_useropt_orig=$ac_useropt
1332     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1333     case $ac_user_opts in
1334       *"
1335 "enable_$ac_useropt"
1336 "*) ;;
1337       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1338          ac_unrecognized_sep=', ';;
1339     esac
1340     eval enable_$ac_useropt=\$ac_optarg ;;
1341 
1342   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1343   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1344   | --exec | --exe | --ex)
1345     ac_prev=exec_prefix ;;
1346   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1347   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1348   | --exec=* | --exe=* | --ex=*)
1349     exec_prefix=$ac_optarg ;;
1350 
1351   -gas | --gas | --ga | --g)
1352     # Obsolete; use --with-gas.
1353     with_gas=yes ;;
1354 
1355   -help | --help | --hel | --he | -h)
1356     ac_init_help=long ;;
1357   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1358     ac_init_help=recursive ;;
1359   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1360     ac_init_help=short ;;
1361 
1362   -host | --host | --hos | --ho)
1363     ac_prev=host_alias ;;
1364   -host=* | --host=* | --hos=* | --ho=*)
1365     host_alias=$ac_optarg ;;
1366 
1367   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1368     ac_prev=htmldir ;;
1369   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1370   | --ht=*)
1371     htmldir=$ac_optarg ;;
1372 
1373   -includedir | --includedir | --includedi | --included | --include \
1374   | --includ | --inclu | --incl | --inc)
1375     ac_prev=includedir ;;
1376   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1377   | --includ=* | --inclu=* | --incl=* | --inc=*)
1378     includedir=$ac_optarg ;;
1379 
1380   -infodir | --infodir | --infodi | --infod | --info | --inf)
1381     ac_prev=infodir ;;
1382   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1383     infodir=$ac_optarg ;;
1384 
1385   -libdir | --libdir | --libdi | --libd)
1386     ac_prev=libdir ;;
1387   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1388     libdir=$ac_optarg ;;
1389 
1390   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1391   | --libexe | --libex | --libe)
1392     ac_prev=libexecdir ;;
1393   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1394   | --libexe=* | --libex=* | --libe=*)
1395     libexecdir=$ac_optarg ;;
1396 
1397   -localedir | --localedir | --localedi | --localed | --locale)
1398     ac_prev=localedir ;;
1399   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1400     localedir=$ac_optarg ;;
1401 
1402   -localstatedir | --localstatedir | --localstatedi | --localstated \
1403   | --localstate | --localstat | --localsta | --localst | --locals)
1404     ac_prev=localstatedir ;;
1405   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1406   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1407     localstatedir=$ac_optarg ;;
1408 
1409   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1410     ac_prev=mandir ;;
1411   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1412     mandir=$ac_optarg ;;
1413 
1414   -nfp | --nfp | --nf)
1415     # Obsolete; use --without-fp.
1416     with_fp=no ;;
1417 
1418   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1419   | --no-cr | --no-c | -n)
1420     no_create=yes ;;
1421 
1422   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1423   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1424     no_recursion=yes ;;
1425 
1426   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1427   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1428   | --oldin | --oldi | --old | --ol | --o)
1429     ac_prev=oldincludedir ;;
1430   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1431   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1432   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1433     oldincludedir=$ac_optarg ;;
1434 
1435   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1436     ac_prev=prefix ;;
1437   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1438     prefix=$ac_optarg ;;
1439 
1440   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1441   | --program-pre | --program-pr | --program-p)
1442     ac_prev=program_prefix ;;
1443   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1444   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1445     program_prefix=$ac_optarg ;;
1446 
1447   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1448   | --program-suf | --program-su | --program-s)
1449     ac_prev=program_suffix ;;
1450   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1451   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1452     program_suffix=$ac_optarg ;;
1453 
1454   -program-transform-name | --program-transform-name \
1455   | --program-transform-nam | --program-transform-na \
1456   | --program-transform-n | --program-transform- \
1457   | --program-transform | --program-transfor \
1458   | --program-transfo | --program-transf \
1459   | --program-trans | --program-tran \
1460   | --progr-tra | --program-tr | --program-t)
1461     ac_prev=program_transform_name ;;
1462   -program-transform-name=* | --program-transform-name=* \
1463   | --program-transform-nam=* | --program-transform-na=* \
1464   | --program-transform-n=* | --program-transform-=* \
1465   | --program-transform=* | --program-transfor=* \
1466   | --program-transfo=* | --program-transf=* \
1467   | --program-trans=* | --program-tran=* \
1468   | --progr-tra=* | --program-tr=* | --program-t=*)
1469     program_transform_name=$ac_optarg ;;
1470 
1471   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1472     ac_prev=pdfdir ;;
1473   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1474     pdfdir=$ac_optarg ;;
1475 
1476   -psdir | --psdir | --psdi | --psd | --ps)
1477     ac_prev=psdir ;;
1478   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1479     psdir=$ac_optarg ;;
1480 
1481   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482   | -silent | --silent | --silen | --sile | --sil)
1483     silent=yes ;;
1484 
1485   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1486     ac_prev=sbindir ;;
1487   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1488   | --sbi=* | --sb=*)
1489     sbindir=$ac_optarg ;;
1490 
1491   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1492   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1493   | --sharedst | --shareds | --shared | --share | --shar \
1494   | --sha | --sh)
1495     ac_prev=sharedstatedir ;;
1496   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1497   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1498   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1499   | --sha=* | --sh=*)
1500     sharedstatedir=$ac_optarg ;;
1501 
1502   -site | --site | --sit)
1503     ac_prev=site ;;
1504   -site=* | --site=* | --sit=*)
1505     site=$ac_optarg ;;
1506 
1507   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1508     ac_prev=srcdir ;;
1509   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1510     srcdir=$ac_optarg ;;
1511 
1512   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1513   | --syscon | --sysco | --sysc | --sys | --sy)
1514     ac_prev=sysconfdir ;;
1515   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1516   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1517     sysconfdir=$ac_optarg ;;
1518 
1519   -target | --target | --targe | --targ | --tar | --ta | --t)
1520     ac_prev=target_alias ;;
1521   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1522     target_alias=$ac_optarg ;;
1523 
1524   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1525     verbose=yes ;;
1526 
1527   -version | --version | --versio | --versi | --vers | -V)
1528     ac_init_version=: ;;
1529 
1530   -with-* | --with-*)
1531     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1532     # Reject names that are not valid shell variable names.
1533     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1534       as_fn_error $? "invalid package name: $ac_useropt"
1535     ac_useropt_orig=$ac_useropt
1536     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1537     case $ac_user_opts in
1538       *"
1539 "with_$ac_useropt"
1540 "*) ;;
1541       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1542          ac_unrecognized_sep=', ';;
1543     esac
1544     eval with_$ac_useropt=\$ac_optarg ;;
1545 
1546   -without-* | --without-*)
1547     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1548     # Reject names that are not valid shell variable names.
1549     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1550       as_fn_error $? "invalid package name: $ac_useropt"
1551     ac_useropt_orig=$ac_useropt
1552     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1553     case $ac_user_opts in
1554       *"
1555 "with_$ac_useropt"
1556 "*) ;;
1557       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1558          ac_unrecognized_sep=', ';;
1559     esac
1560     eval with_$ac_useropt=no ;;
1561 
1562   --x)
1563     # Obsolete; use --with-x.
1564     with_x=yes ;;
1565 
1566   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1567   | --x-incl | --x-inc | --x-in | --x-i)
1568     ac_prev=x_includes ;;
1569   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1570   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1571     x_includes=$ac_optarg ;;
1572 
1573   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1574   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1575     ac_prev=x_libraries ;;
1576   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1577   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1578     x_libraries=$ac_optarg ;;
1579 
1580   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1581 Try \`$0 --help' for more information"
1582     ;;
1583 
1584   *=*)
1585     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1586     # Reject names that are not valid shell variable names.
1587     case $ac_envvar in #(
1588       '' | [0-9]* | *[!_$as_cr_alnum]* )
1589       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1590     esac
1591     eval $ac_envvar=\$ac_optarg
1592     export $ac_envvar ;;
1593 
1594   *)
1595     # FIXME: should be removed in autoconf 3.0.
1596     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1597     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1598       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1599     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1600     ;;
1601 
1602   esac
1603 done
1604 
1605 if test -n "$ac_prev"; then
1606   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1607   as_fn_error $? "missing argument to $ac_option"
1608 fi
1609 
1610 if test -n "$ac_unrecognized_opts"; then
1611   case $enable_option_checking in
1612     no) ;;
1613     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1614     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1615   esac
1616 fi
1617 
1618 # Check all directory arguments for consistency.
1619 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1620                 datadir sysconfdir sharedstatedir localstatedir includedir \
1621                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1622                 libdir localedir mandir
1623 do
1624   eval ac_val=\$$ac_var
1625   # Remove trailing slashes.
1626   case $ac_val in
1627     */ )
1628       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1629       eval $ac_var=\$ac_val;;
1630   esac
1631   # Be sure to have absolute directory names.
1632   case $ac_val in
1633     [\\/$]* | ?:[\\/]* )  continue;;
1634     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1635   esac
1636   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1637 done
1638 
1639 # There might be people who depend on the old broken behavior: `$host'
1640 # used to hold the argument of --host etc.
1641 # FIXME: To remove some day.
1642 build=$build_alias
1643 host=$host_alias
1644 target=$target_alias
1645 
1646 # FIXME: To remove some day.
1647 if test "x$host_alias" != x; then
1648   if test "x$build_alias" = x; then
1649     cross_compiling=maybe
1650   elif test "x$build_alias" != "x$host_alias"; then
1651     cross_compiling=yes
1652   fi
1653 fi
1654 
1655 ac_tool_prefix=
1656 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1657 
1658 test "$silent" = yes && exec 6>/dev/null
1659 
1660 
1661 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1662 ac_ls_di=`ls -di .` &&
1663 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1664   as_fn_error $? "working directory cannot be determined"
1665 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1666   as_fn_error $? "pwd does not report name of working directory"
1667 
1668 
1669 # Find the source files, if location was not specified.
1670 if test -z "$srcdir"; then
1671   ac_srcdir_defaulted=yes
1672   # Try the directory containing this script, then the parent directory.
1673   ac_confdir=`$as_dirname -- "$as_myself" ||
1674 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1675          X"$as_myself" : 'X\(//\)[^/]' \| \
1676          X"$as_myself" : 'X\(//\)$' \| \
1677          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1678 $as_echo X"$as_myself" |
1679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1680             s//\1/
1681             q
1682           }
1683           /^X\(\/\/\)[^/].*/{
1684             s//\1/
1685             q
1686           }
1687           /^X\(\/\/\)$/{
1688             s//\1/
1689             q
1690           }
1691           /^X\(\/\).*/{
1692             s//\1/
1693             q
1694           }
1695           s/.*/./; q'`
1696   srcdir=$ac_confdir
1697   if test ! -r "$srcdir/$ac_unique_file"; then
1698     srcdir=..
1699   fi
1700 else
1701   ac_srcdir_defaulted=no
1702 fi
1703 if test ! -r "$srcdir/$ac_unique_file"; then
1704   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1705   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1706 fi
1707 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1708 ac_abs_confdir=`(
1709         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1710         pwd)`
1711 # When building in place, set srcdir=.
1712 if test "$ac_abs_confdir" = "$ac_pwd"; then
1713   srcdir=.
1714 fi
1715 # Remove unnecessary trailing slashes from srcdir.
1716 # Double slashes in file names in object file debugging info
1717 # mess up M-x gdb in Emacs.
1718 case $srcdir in
1719 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1720 esac
1721 for ac_var in $ac_precious_vars; do
1722   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1723   eval ac_env_${ac_var}_value=\$${ac_var}
1724   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1725   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1726 done
1727 
1728 #
1729 # Report the --help message.
1730 #
1731 if test "$ac_init_help" = "long"; then
1732   # Omit some internal or obsolete options to make the list less imposing.
1733   # This message is too long to be a string in the A/UX 3.1 sh.
1734   cat <<_ACEOF
1735 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems.
1736 
1737 Usage: $0 [OPTION]... [VAR=VALUE]...
1738 
1739 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1740 VAR=VALUE.  See below for descriptions of some of the useful variables.
1741 
1742 Defaults for the options are specified in brackets.
1743 
1744 Configuration:
1745   -h, --help              display this help and exit
1746       --help=short        display options specific to this package
1747       --help=recursive    display the short help of all the included packages
1748   -V, --version           display version information and exit
1749   -q, --quiet, --silent   do not print \`checking ...' messages
1750       --cache-file=FILE   cache test results in FILE [disabled]
1751   -C, --config-cache      alias for \`--cache-file=config.cache'
1752   -n, --no-create         do not create output files
1753       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1754 
1755 Installation directories:
1756   --prefix=PREFIX         install architecture-independent files in PREFIX
1757                           [$ac_default_prefix]
1758   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1759                           [PREFIX]
1760 
1761 By default, \`make install' will install all the files in
1762 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1763 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1764 for instance \`--prefix=\$HOME'.
1765 
1766 For better control, use the options below.
1767 
1768 Fine tuning of the installation directories:
1769   --bindir=DIR            user executables [EPREFIX/bin]
1770   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1771   --libexecdir=DIR        program executables [EPREFIX/libexec]
1772   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1773   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1774   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1775   --libdir=DIR            object code libraries [EPREFIX/lib]
1776   --includedir=DIR        C header files [PREFIX/include]
1777   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1778   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1779   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1780   --infodir=DIR           info documentation [DATAROOTDIR/info]
1781   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1782   --mandir=DIR            man documentation [DATAROOTDIR/man]
1783   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1784   --htmldir=DIR           html documentation [DOCDIR]
1785   --dvidir=DIR            dvi documentation [DOCDIR]
1786   --pdfdir=DIR            pdf documentation [DOCDIR]
1787   --psdir=DIR             ps documentation [DOCDIR]
1788 _ACEOF
1789 
1790   cat <<\_ACEOF
1791 
1792 X features:
1793   --x-includes=DIR    X include files are in DIR
1794   --x-libraries=DIR   X library files are in DIR
1795 
1796 System types:
1797   --build=BUILD     configure for building on BUILD [guessed]
1798   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1799   --target=TARGET   configure for building compilers for TARGET [HOST]
1800 _ACEOF
1801 fi
1802 
1803 if test -n "$ac_init_help"; then
1804   case $ac_init_help in
1805      short | recursive ) echo "Configuration of OpenJDK jdk9:";;
1806    esac
1807   cat <<\_ACEOF
1808 
1809 Optional Features:
1810   --disable-option-checking  ignore unrecognized --enable/--with options
1811   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1812   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1813   --enable-openjdk-only   suppress building custom source even if present
1814                           [disabled]
1815   --enable-debug          set the debug level to fastdebug (shorthand for
1816                           --with-debug-level=fastdebug) [disabled]
1817   --disable-headful       disable building headful support (graphical UI
1818                           support) [enabled]
1819   --enable-hotspot-test-in-build
1820                           run the Queens test after Hotspot build [disabled]
1821   --enable-unlimited-crypto
1822                           Enable unlimited crypto policy [disabled]
1823   --enable-rmiconnector-iiop
1824                           enable the JMX RMIConnector iiop transport
1825                           [disabled]
1826   --disable-debug-symbols disable generation of debug symbols [enabled]
1827   --disable-zip-debug-info
1828                           disable zipping of debug-info files [enabled]
1829   --enable-macosx-runtime-support
1830                           Deprecated. Option is kept for backwards
1831                           compatibility and is ignored
1832   --disable-freetype-bundling
1833                           disable bundling of the freetype library with the
1834                           build result [enabled on Windows or when using
1835                           --with-freetype, disabled otherwise]
1836   --enable-sjavac         use sjavac to do fast incremental compiles
1837                           [disabled]
1838   --disable-precompiled-headers
1839                           disable using precompiled headers when compiling C++
1840                           [enabled]
1841   --enable-ccache         enable using ccache to speed up recompilations
1842                           [disabled]
1843 
1844 Optional Packages:
1845   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1846   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1847   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1848                           support it), e.g. --with-target-bits=32 [guessed]
1849   --with-sys-root         pass this sys-root to the compilers and tools (for
1850                           cross-compiling)
1851   --with-tools-dir        search this directory for compilers and tools (for
1852                           cross-compiling)
1853   --with-devkit           use this directory as base for tools-dir and
1854                           sys-root (for cross-compiling)
1855   --with-custom-make-dir  Deprecated. Option is kept for backwards
1856                           compatibility and is ignored
1857   --with-jdk-variant      JDK variant to build (normal) [normal]
1858   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1859   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1860                           client, minimal1, kernel, zero, zeroshark, core)
1861                           [server]
1862   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1863                           [release]
1864   --with-conf-name        use this as the name of the configuration [generated
1865                           from important configuration options]
1866   --with-builddeps-conf   use this configuration file for the builddeps
1867   --with-builddeps-server download and use build dependencies from this server
1868                           url
1869   --with-builddeps-dir    store downloaded build dependencies here
1870                           [/localhome/builddeps]
1871   --with-builddeps-group  chgrp the downloaded build dependencies to this
1872                           group
1873   --with-cacerts-file     specify alternative cacerts file
1874   --with-milestone        Set milestone value for build [internal]
1875   --with-update-version   Set update version value for build [b00]
1876   --with-user-release-suffix
1877                           Add a custom string to the version string if build
1878                           number is not set.[username_builddateb00]
1879   --with-build-number     Set build number value for build [b00]
1880   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1881   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java
1882                           invocations of boot JDK, overriding the default
1883                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1884                           -enableassertions"
1885   --with-add-source-root  for each and every source directory, look in this
1886                           additional source root for the same directory; if it
1887                           exists and have files in it, include it in the build
1888   --with-override-source-root
1889                           for each and every source directory, look in this
1890                           override source root for the same directory; if it
1891                           exists, use that directory instead and ignore the
1892                           directory in the original source root
1893   --with-adds-and-overrides
1894                           use the subdirs 'adds' and 'overrides' in the
1895                           specified directory as add-source-root and
1896                           override-source-root
1897   --with-override-langtools
1898                           use this langtools dir for the build
1899   --with-override-corba   use this corba dir for the build
1900   --with-override-jaxp    use this jaxp dir for the build
1901   --with-override-jaxws   use this jaxws dir for the build
1902   --with-override-hotspot use this hotspot dir for the build
1903   --with-override-nashorn use this nashorn dir for the build
1904   --with-override-jdk     use this jdk dir for the build
1905   --with-import-hotspot   import hotspot binaries from this jdk image or
1906                           hotspot build dist dir instead of building from
1907                           source
1908   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1909                           to show possible values [platform dependent]
1910   --with-jtreg            Regression Test Harness [probed]
1911   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1912   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1913   --with-extra-ldflags    extra flags to be used when linking jdk
1914   --with-x                use the X Window System
1915   --with-cups             specify prefix directory for the cups package
1916                           (expecting the headers under PATH/include)
1917   --with-cups-include     specify directory for the cups include files
1918   --with-freetype         specify prefix directory for the freetype package
1919                           (expecting the libraries under PATH/lib and the
1920                           headers under PATH/include)
1921   --with-freetype-include specify directory for the freetype include files
1922   --with-freetype-lib     specify directory for the freetype library
1923   --with-alsa             specify prefix directory for the alsa package
1924                           (expecting the libraries under PATH/lib and the
1925                           headers under PATH/include)
1926   --with-alsa-include     specify directory for the alsa include files
1927   --with-alsa-lib         specify directory for the alsa library
1928   --with-giflib           use giflib from build system or OpenJDK source
1929                           (system, bundled) [bundled]
1930   --with-libpng           use libpng from build system or OpenJDK source
1931                           (system, bundled) [bundled]
1932   --with-zlib             use zlib from build system or OpenJDK source
1933                           (system, bundled) [bundled]
1934   --with-stdc++lib=<static>,<dynamic>,<default>
1935                           force linking of the C++ runtime on Linux to either
1936                           static or dynamic, default is static with dynamic as
1937                           fallback
1938   --with-msvcr-dll        copy this msvcr100.dll into the built JDK (Windows
1939                           only) [probed]
1940   --with-dxsdk            Deprecated. Option is kept for backwards
1941                           compatibility and is ignored
1942   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1943                           compatibility and is ignored
1944   --with-dxsdk-include    Deprecated. Option is kept for backwards
1945                           compatibility and is ignored
1946   --with-num-cores        number of cores in the build system, e.g.
1947                           --with-num-cores=8 [probed]
1948   --with-memory-size      memory (in MB) available in the build system, e.g.
1949                           --with-memory-size=1024 [probed]
1950   --with-jobs             number of parallel jobs to let make run [calculated
1951                           based on cores and memory]
1952   --with-sjavac-server-java
1953                           use this java binary for running the sjavac
1954                           background server [Boot JDK java]
1955   --with-ccache-dir       where to store ccache files [~/.ccache]
1956 
1957 Some influential environment variables:
1958   BASENAME    Override default value for BASENAME
1959   BASH        Override default value for BASH
1960   CAT         Override default value for CAT
1961   CHMOD       Override default value for CHMOD
1962   CMP         Override default value for CMP
1963   COMM        Override default value for COMM
1964   CP          Override default value for CP
1965   CPIO        Override default value for CPIO
1966   CUT         Override default value for CUT
1967   DATE        Override default value for DATE
1968   DIFF        Override default value for DIFF
1969   DIRNAME     Override default value for DIRNAME
1970   ECHO        Override default value for ECHO
1971   EXPR        Override default value for EXPR
1972   FILE        Override default value for FILE
1973   FIND        Override default value for FIND
1974   HEAD        Override default value for HEAD
1975   LN          Override default value for LN
1976   LS          Override default value for LS
1977   MKDIR       Override default value for MKDIR
1978   MKTEMP      Override default value for MKTEMP
1979   MV          Override default value for MV
1980   NAWK        Override default value for NAWK
1981   PRINTF      Override default value for PRINTF
1982   RM          Override default value for RM
1983   SH          Override default value for SH
1984   SORT        Override default value for SORT
1985   TAIL        Override default value for TAIL
1986   TAR         Override default value for TAR
1987   TEE         Override default value for TEE
1988   TOUCH       Override default value for TOUCH
1989   TR          Override default value for TR
1990   UNAME       Override default value for UNAME
1991   UNIQ        Override default value for UNIQ
1992   WC          Override default value for WC
1993   WHICH       Override default value for WHICH
1994   XARGS       Override default value for XARGS
1995   AWK         Override default value for AWK
1996   GREP        Override default value for GREP
1997   EGREP       Override default value for EGREP
1998   FGREP       Override default value for FGREP
1999   SED         Override default value for SED
2000   CYGPATH     Override default value for CYGPATH
2001   READLINK    Override default value for READLINK
2002   DF          Override default value for DF
2003   SETFILE     Override default value for SETFILE
2004   UNZIP       Override default value for UNZIP
2005   ZIP         Override default value for ZIP
2006   LDD         Override default value for LDD
2007   OTOOL       Override default value for OTOOL
2008   READELF     Override default value for READELF
2009   HG          Override default value for HG
2010   STAT        Override default value for STAT
2011   TIME        Override default value for TIME
2012   DSYMUTIL    Override default value for DSYMUTIL
2013   XATTR       Override default value for XATTR
2014   CODESIGN    Override default value for CODESIGN
2015   PKG_CONFIG  path to pkg-config utility
2016   JAVA        Override default value for JAVA
2017   JAVAC       Override default value for JAVAC
2018   JAVAH       Override default value for JAVAH
2019   JAR         Override default value for JAR
2020   NATIVE2ASCII
2021               Override default value for NATIVE2ASCII
2022   JARSIGNER   Override default value for JARSIGNER
2023   CC          C compiler command
2024   CFLAGS      C compiler flags
2025   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2026               nonstandard directory <lib dir>
2027   LIBS        libraries to pass to the linker, e.g. -l<library>
2028   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2029               you have headers in a nonstandard directory <include dir>
2030   CXX         C++ compiler command
2031   CXXFLAGS    C++ compiler flags
2032   CPP         C preprocessor
2033   CXXCPP      C++ preprocessor
2034   AS          Override default value for AS
2035   AR          Override default value for AR
2036   OBJC        Objective C compiler command
2037   OBJCFLAGS   Objective C compiler flags
2038   LIPO        Override default value for LIPO
2039   STRIP       Override default value for STRIP
2040   NM          Override default value for NM
2041   GNM         Override default value for GNM
2042   MCS         Override default value for MCS
2043   OBJCOPY     Override default value for OBJCOPY
2044   OBJDUMP     Override default value for OBJDUMP
2045   BUILD_CC    Override default value for BUILD_CC
2046   BUILD_CXX   Override default value for BUILD_CXX
2047   BUILD_LD    Override default value for BUILD_LD
2048   JTREGEXE    Override default value for JTREGEXE
2049   XMKMF       Path to xmkmf, Makefile generator for X Window System
2050   FREETYPE_CFLAGS
2051               C compiler flags for FREETYPE, overriding pkg-config
2052   FREETYPE_LIBS
2053               linker flags for FREETYPE, overriding pkg-config
2054   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2055   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2056   PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2057   PNG_LIBS    linker flags for PNG, overriding pkg-config
2058   LIBFFI_CFLAGS
2059               C compiler flags for LIBFFI, overriding pkg-config
2060   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2061   CCACHE      Override default value for CCACHE
2062 
2063 Use these variables to override the choices made by `configure' or to help
2064 it to find libraries and programs with nonstandard names/locations.
2065 
2066 Report bugs to <build-dev@openjdk.java.net>.
2067 OpenJDK home page: <http://openjdk.java.net>.
2068 _ACEOF
2069 ac_status=$?
2070 fi
2071 
2072 if test "$ac_init_help" = "recursive"; then
2073   # If there are subdirs, report their specific --help.
2074   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2075     test -d "$ac_dir" ||
2076       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2077       continue
2078     ac_builddir=.
2079 
2080 case "$ac_dir" in
2081 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2082 *)
2083   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2084   # A ".." for each directory in $ac_dir_suffix.
2085   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2086   case $ac_top_builddir_sub in
2087   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2088   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2089   esac ;;
2090 esac
2091 ac_abs_top_builddir=$ac_pwd
2092 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2093 # for backward compatibility:
2094 ac_top_builddir=$ac_top_build_prefix
2095 
2096 case $srcdir in
2097   .)  # We are building in place.
2098     ac_srcdir=.
2099     ac_top_srcdir=$ac_top_builddir_sub
2100     ac_abs_top_srcdir=$ac_pwd ;;
2101   [\\/]* | ?:[\\/]* )  # Absolute name.
2102     ac_srcdir=$srcdir$ac_dir_suffix;
2103     ac_top_srcdir=$srcdir
2104     ac_abs_top_srcdir=$srcdir ;;
2105   *) # Relative name.
2106     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2107     ac_top_srcdir=$ac_top_build_prefix$srcdir
2108     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2109 esac
2110 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2111 
2112     cd "$ac_dir" || { ac_status=$?; continue; }
2113     # Check for guested configure.
2114     if test -f "$ac_srcdir/configure.gnu"; then
2115       echo &&
2116       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2117     elif test -f "$ac_srcdir/configure"; then
2118       echo &&
2119       $SHELL "$ac_srcdir/configure" --help=recursive
2120     else
2121       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2122     fi || ac_status=$?
2123     cd "$ac_pwd" || { ac_status=$?; break; }
2124   done
2125 fi
2126 
2127 test -n "$ac_init_help" && exit $ac_status
2128 if $ac_init_version; then
2129   cat <<\_ACEOF
2130 OpenJDK configure jdk9
2131 generated by GNU Autoconf 2.69
2132 
2133 Copyright (C) 2012 Free Software Foundation, Inc.
2134 This configure script is free software; the Free Software Foundation
2135 gives unlimited permission to copy, distribute and modify it.
2136 _ACEOF
2137   exit
2138 fi
2139 
2140 ## ------------------------ ##
2141 ## Autoconf initialization. ##
2142 ## ------------------------ ##
2143 
2144 # ac_fn_c_try_compile LINENO
2145 # --------------------------
2146 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2147 ac_fn_c_try_compile ()
2148 {
2149   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2150   rm -f conftest.$ac_objext
2151   if { { ac_try="$ac_compile"
2152 case "(($ac_try" in
2153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2154   *) ac_try_echo=$ac_try;;
2155 esac
2156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2157 $as_echo "$ac_try_echo"; } >&5
2158   (eval "$ac_compile") 2>conftest.err
2159   ac_status=$?
2160   if test -s conftest.err; then
2161     grep -v '^ *+' conftest.err >conftest.er1
2162     cat conftest.er1 >&5
2163     mv -f conftest.er1 conftest.err
2164   fi
2165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2166   test $ac_status = 0; } && {
2167          test -z "$ac_c_werror_flag" ||
2168          test ! -s conftest.err
2169        } && test -s conftest.$ac_objext; then :
2170   ac_retval=0
2171 else
2172   $as_echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174 
2175         ac_retval=1
2176 fi
2177   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178   as_fn_set_status $ac_retval
2179 
2180 } # ac_fn_c_try_compile
2181 
2182 # ac_fn_cxx_try_compile LINENO
2183 # ----------------------------
2184 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_cxx_try_compile ()
2186 {
2187   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188   rm -f conftest.$ac_objext
2189   if { { ac_try="$ac_compile"
2190 case "(($ac_try" in
2191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192   *) ac_try_echo=$ac_try;;
2193 esac
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196   (eval "$ac_compile") 2>conftest.err
2197   ac_status=$?
2198   if test -s conftest.err; then
2199     grep -v '^ *+' conftest.err >conftest.er1
2200     cat conftest.er1 >&5
2201     mv -f conftest.er1 conftest.err
2202   fi
2203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204   test $ac_status = 0; } && {
2205          test -z "$ac_cxx_werror_flag" ||
2206          test ! -s conftest.err
2207        } && test -s conftest.$ac_objext; then :
2208   ac_retval=0
2209 else
2210   $as_echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2212 
2213         ac_retval=1
2214 fi
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217 
2218 } # ac_fn_cxx_try_compile
2219 
2220 # ac_fn_c_try_cpp LINENO
2221 # ----------------------
2222 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_cpp ()
2224 {
2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226   if { { ac_try="$ac_cpp conftest.$ac_ext"
2227 case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2234   ac_status=$?
2235   if test -s conftest.err; then
2236     grep -v '^ *+' conftest.err >conftest.er1
2237     cat conftest.er1 >&5
2238     mv -f conftest.er1 conftest.err
2239   fi
2240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241   test $ac_status = 0; } > conftest.i && {
2242          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2243          test ! -s conftest.err
2244        }; then :
2245   ac_retval=0
2246 else
2247   $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249 
2250     ac_retval=1
2251 fi
2252   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253   as_fn_set_status $ac_retval
2254 
2255 } # ac_fn_c_try_cpp
2256 
2257 # ac_fn_cxx_try_cpp LINENO
2258 # ------------------------
2259 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_cpp ()
2261 {
2262   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263   if { { ac_try="$ac_cpp conftest.$ac_ext"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2271   ac_status=$?
2272   if test -s conftest.err; then
2273     grep -v '^ *+' conftest.err >conftest.er1
2274     cat conftest.er1 >&5
2275     mv -f conftest.er1 conftest.err
2276   fi
2277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278   test $ac_status = 0; } > conftest.i && {
2279          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2280          test ! -s conftest.err
2281        }; then :
2282   ac_retval=0
2283 else
2284   $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286 
2287     ac_retval=1
2288 fi
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290   as_fn_set_status $ac_retval
2291 
2292 } # ac_fn_cxx_try_cpp
2293 
2294 # ac_fn_objc_try_compile LINENO
2295 # -----------------------------
2296 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2297 ac_fn_objc_try_compile ()
2298 {
2299   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300   rm -f conftest.$ac_objext
2301   if { { ac_try="$ac_compile"
2302 case "(($ac_try" in
2303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304   *) ac_try_echo=$ac_try;;
2305 esac
2306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307 $as_echo "$ac_try_echo"; } >&5
2308   (eval "$ac_compile") 2>conftest.err
2309   ac_status=$?
2310   if test -s conftest.err; then
2311     grep -v '^ *+' conftest.err >conftest.er1
2312     cat conftest.er1 >&5
2313     mv -f conftest.er1 conftest.err
2314   fi
2315   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2316   test $ac_status = 0; } && {
2317          test -z "$ac_objc_werror_flag" ||
2318          test ! -s conftest.err
2319        } && test -s conftest.$ac_objext; then :
2320   ac_retval=0
2321 else
2322   $as_echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2324 
2325         ac_retval=1
2326 fi
2327   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2328   as_fn_set_status $ac_retval
2329 
2330 } # ac_fn_objc_try_compile
2331 
2332 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # ---------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2336 # accordingly.
2337 ac_fn_cxx_check_header_mongrel ()
2338 {
2339   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340   if eval \${$3+:} false; then :
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 fi
2346 eval ac_res=\$$3
2347                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 else
2350   # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $4
2356 #include <$2>
2357 _ACEOF
2358 if ac_fn_cxx_try_compile "$LINENO"; then :
2359   ac_header_compiler=yes
2360 else
2361   ac_header_compiler=no
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2366 
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 #include <$2>
2373 _ACEOF
2374 if ac_fn_cxx_try_cpp "$LINENO"; then :
2375   ac_header_preproc=yes
2376 else
2377   ac_header_preproc=no
2378 fi
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2382 
2383 # So?  What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2385   yes:no: )
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2390     ;;
2391   no:yes:* )
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2402 ( $as_echo "## ----------------------------------------- ##
2403 ## Report this to build-dev@openjdk.java.net ##
2404 ## ----------------------------------------- ##"
2405      ) | sed "s/^/$as_me: WARNING:     /" >&2
2406     ;;
2407 esac
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409 $as_echo_n "checking for $2... " >&6; }
2410 if eval \${$3+:} false; then :
2411   $as_echo_n "(cached) " >&6
2412 else
2413   eval "$3=\$ac_header_compiler"
2414 fi
2415 eval ac_res=\$$3
2416                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 fi
2419   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420 
2421 } # ac_fn_cxx_check_header_mongrel
2422 
2423 # ac_fn_cxx_try_run LINENO
2424 # ------------------------
2425 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2426 # that executables *can* be run.
2427 ac_fn_cxx_try_run ()
2428 {
2429   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2430   if { { ac_try="$ac_link"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2436 $as_echo "$ac_try_echo"; } >&5
2437   (eval "$ac_link") 2>&5
2438   ac_status=$?
2439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2440   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2441   { { case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447   (eval "$ac_try") 2>&5
2448   ac_status=$?
2449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2450   test $ac_status = 0; }; }; then :
2451   ac_retval=0
2452 else
2453   $as_echo "$as_me: program exited with status $ac_status" >&5
2454        $as_echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2456 
2457        ac_retval=$ac_status
2458 fi
2459   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2460   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461   as_fn_set_status $ac_retval
2462 
2463 } # ac_fn_cxx_try_run
2464 
2465 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2466 # ---------------------------------------------------------
2467 # Tests whether HEADER exists and can be compiled using the include files in
2468 # INCLUDES, setting the cache variable VAR accordingly.
2469 ac_fn_cxx_check_header_compile ()
2470 {
2471   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2473 $as_echo_n "checking for $2... " >&6; }
2474 if eval \${$3+:} false; then :
2475   $as_echo_n "(cached) " >&6
2476 else
2477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h.  */
2479 $4
2480 #include <$2>
2481 _ACEOF
2482 if ac_fn_cxx_try_compile "$LINENO"; then :
2483   eval "$3=yes"
2484 else
2485   eval "$3=no"
2486 fi
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 fi
2489 eval ac_res=\$$3
2490                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2491 $as_echo "$ac_res" >&6; }
2492   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 
2494 } # ac_fn_cxx_check_header_compile
2495 
2496 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2497 # ----------------------------------------------
2498 # Tries to find the compile-time value of EXPR in a program that includes
2499 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2500 # computed
2501 ac_fn_cxx_compute_int ()
2502 {
2503   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2504   if test "$cross_compiling" = yes; then
2505     # Depending upon the size, compute the lo and hi bounds.
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h.  */
2508 $4
2509 int
2510 main ()
2511 {
2512 static int test_array [1 - 2 * !(($2) >= 0)];
2513 test_array [0] = 0;
2514 return test_array [0];
2515 
2516   ;
2517   return 0;
2518 }
2519 _ACEOF
2520 if ac_fn_cxx_try_compile "$LINENO"; then :
2521   ac_lo=0 ac_mid=0
2522   while :; do
2523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h.  */
2525 $4
2526 int
2527 main ()
2528 {
2529 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2530 test_array [0] = 0;
2531 return test_array [0];
2532 
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 if ac_fn_cxx_try_compile "$LINENO"; then :
2538   ac_hi=$ac_mid; break
2539 else
2540   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2541                         if test $ac_lo -le $ac_mid; then
2542                           ac_lo= ac_hi=
2543                           break
2544                         fi
2545                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2546 fi
2547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2548   done
2549 else
2550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h.  */
2552 $4
2553 int
2554 main ()
2555 {
2556 static int test_array [1 - 2 * !(($2) < 0)];
2557 test_array [0] = 0;
2558 return test_array [0];
2559 
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_cxx_try_compile "$LINENO"; then :
2565   ac_hi=-1 ac_mid=-1
2566   while :; do
2567     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h.  */
2569 $4
2570 int
2571 main ()
2572 {
2573 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2574 test_array [0] = 0;
2575 return test_array [0];
2576 
2577   ;
2578   return 0;
2579 }
2580 _ACEOF
2581 if ac_fn_cxx_try_compile "$LINENO"; then :
2582   ac_lo=$ac_mid; break
2583 else
2584   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2585                         if test $ac_mid -le $ac_hi; then
2586                           ac_lo= ac_hi=
2587                           break
2588                         fi
2589                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2590 fi
2591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592   done
2593 else
2594   ac_lo= ac_hi=
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 # Binary search between lo and hi bounds.
2600 while test "x$ac_lo" != "x$ac_hi"; do
2601   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h.  */
2604 $4
2605 int
2606 main ()
2607 {
2608 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2609 test_array [0] = 0;
2610 return test_array [0];
2611 
2612   ;
2613   return 0;
2614 }
2615 _ACEOF
2616 if ac_fn_cxx_try_compile "$LINENO"; then :
2617   ac_hi=$ac_mid
2618 else
2619   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2620 fi
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 done
2623 case $ac_lo in #((
2624 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2625 '') ac_retval=1 ;;
2626 esac
2627   else
2628     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $4
2631 static long int longval () { return $2; }
2632 static unsigned long int ulongval () { return $2; }
2633 #include <stdio.h>
2634 #include <stdlib.h>
2635 int
2636 main ()
2637 {
2638 
2639   FILE *f = fopen ("conftest.val", "w");
2640   if (! f)
2641     return 1;
2642   if (($2) < 0)
2643     {
2644       long int i = longval ();
2645       if (i != ($2))
2646         return 1;
2647       fprintf (f, "%ld", i);
2648     }
2649   else
2650     {
2651       unsigned long int i = ulongval ();
2652       if (i != ($2))
2653         return 1;
2654       fprintf (f, "%lu", i);
2655     }
2656   /* Do not output a trailing newline, as this causes \r\n confusion
2657      on some platforms.  */
2658   return ferror (f) || fclose (f) != 0;
2659 
2660   ;
2661   return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_cxx_try_run "$LINENO"; then :
2665   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2666 else
2667   ac_retval=1
2668 fi
2669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2670   conftest.$ac_objext conftest.beam conftest.$ac_ext
2671 rm -f conftest.val
2672 
2673   fi
2674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2675   as_fn_set_status $ac_retval
2676 
2677 } # ac_fn_cxx_compute_int
2678 
2679 # ac_fn_cxx_try_link LINENO
2680 # -------------------------
2681 # Try to link conftest.$ac_ext, and return whether this succeeded.
2682 ac_fn_cxx_try_link ()
2683 {
2684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685   rm -f conftest.$ac_objext conftest$ac_exeext
2686   if { { ac_try="$ac_link"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693   (eval "$ac_link") 2>conftest.err
2694   ac_status=$?
2695   if test -s conftest.err; then
2696     grep -v '^ *+' conftest.err >conftest.er1
2697     cat conftest.er1 >&5
2698     mv -f conftest.er1 conftest.err
2699   fi
2700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2701   test $ac_status = 0; } && {
2702          test -z "$ac_cxx_werror_flag" ||
2703          test ! -s conftest.err
2704        } && test -s conftest$ac_exeext && {
2705          test "$cross_compiling" = yes ||
2706          test -x conftest$ac_exeext
2707        }; then :
2708   ac_retval=0
2709 else
2710   $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712 
2713         ac_retval=1
2714 fi
2715   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2716   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2717   # interfere with the next link command; also delete a directory that is
2718   # left behind by Apple's compiler.  We do this before executing the actions.
2719   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2721   as_fn_set_status $ac_retval
2722 
2723 } # ac_fn_cxx_try_link
2724 
2725 # ac_fn_cxx_check_func LINENO FUNC VAR
2726 # ------------------------------------
2727 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2728 ac_fn_cxx_check_func ()
2729 {
2730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2732 $as_echo_n "checking for $2... " >&6; }
2733 if eval \${$3+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h.  */
2738 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2740 #define $2 innocuous_$2
2741 
2742 /* System header to define __stub macros and hopefully few prototypes,
2743     which can conflict with char $2 (); below.
2744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2745     <limits.h> exists even on freestanding compilers.  */
2746 
2747 #ifdef __STDC__
2748 # include <limits.h>
2749 #else
2750 # include <assert.h>
2751 #endif
2752 
2753 #undef $2
2754 
2755 /* Override any GCC internal prototype to avoid an error.
2756    Use char because int might match the return type of a GCC
2757    builtin and then its argument prototype would still apply.  */
2758 #ifdef __cplusplus
2759 extern "C"
2760 #endif
2761 char $2 ();
2762 /* The GNU C library defines this for functions which it implements
2763     to always fail with ENOSYS.  Some functions are actually named
2764     something starting with __ and the normal name is an alias.  */
2765 #if defined __stub_$2 || defined __stub___$2
2766 choke me
2767 #endif
2768 
2769 int
2770 main ()
2771 {
2772 return $2 ();
2773   ;
2774   return 0;
2775 }
2776 _ACEOF
2777 if ac_fn_cxx_try_link "$LINENO"; then :
2778   eval "$3=yes"
2779 else
2780   eval "$3=no"
2781 fi
2782 rm -f core conftest.err conftest.$ac_objext \
2783     conftest$ac_exeext conftest.$ac_ext
2784 fi
2785 eval ac_res=\$$3
2786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789 
2790 } # ac_fn_cxx_check_func
2791 
2792 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2793 # -------------------------------------------------------
2794 # Tests whether HEADER exists and can be compiled using the include files in
2795 # INCLUDES, setting the cache variable VAR accordingly.
2796 ac_fn_c_check_header_compile ()
2797 {
2798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2800 $as_echo_n "checking for $2... " >&6; }
2801 if eval \${$3+:} false; then :
2802   $as_echo_n "(cached) " >&6
2803 else
2804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2805 /* end confdefs.h.  */
2806 $4
2807 #include <$2>
2808 _ACEOF
2809 if ac_fn_c_try_compile "$LINENO"; then :
2810   eval "$3=yes"
2811 else
2812   eval "$3=no"
2813 fi
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 fi
2816 eval ac_res=\$$3
2817                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2818 $as_echo "$ac_res" >&6; }
2819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2820 
2821 } # ac_fn_c_check_header_compile
2822 cat >config.log <<_ACEOF
2823 This file contains any messages produced by compilers while
2824 running configure, to aid debugging if configure makes a mistake.
2825 
2826 It was created by OpenJDK $as_me jdk9, which was
2827 generated by GNU Autoconf 2.69.  Invocation command line was
2828 
2829   $ $0 $@
2830 
2831 _ACEOF
2832 exec 5>>config.log
2833 {
2834 cat <<_ASUNAME
2835 ## --------- ##
2836 ## Platform. ##
2837 ## --------- ##
2838 
2839 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2840 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2841 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2842 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2843 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2844 
2845 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2846 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2847 
2848 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2849 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2850 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2851 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2852 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2853 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2854 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2855 
2856 _ASUNAME
2857 
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863     $as_echo "PATH: $as_dir"
2864   done
2865 IFS=$as_save_IFS
2866 
2867 } >&5
2868 
2869 cat >&5 <<_ACEOF
2870 
2871 
2872 ## ----------- ##
2873 ## Core tests. ##
2874 ## ----------- ##
2875 
2876 _ACEOF
2877 
2878 
2879 # Keep a trace of the command line.
2880 # Strip out --no-create and --no-recursion so they do not pile up.
2881 # Strip out --silent because we don't want to record it for future runs.
2882 # Also quote any args containing shell meta-characters.
2883 # Make two passes to allow for proper duplicate-argument suppression.
2884 ac_configure_args=
2885 ac_configure_args0=
2886 ac_configure_args1=
2887 ac_must_keep_next=false
2888 for ac_pass in 1 2
2889 do
2890   for ac_arg
2891   do
2892     case $ac_arg in
2893     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2894     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2895     | -silent | --silent | --silen | --sile | --sil)
2896       continue ;;
2897     *\'*)
2898       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2899     esac
2900     case $ac_pass in
2901     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2902     2)
2903       as_fn_append ac_configure_args1 " '$ac_arg'"
2904       if test $ac_must_keep_next = true; then
2905         ac_must_keep_next=false # Got value, back to normal.
2906       else
2907         case $ac_arg in
2908           *=* | --config-cache | -C | -disable-* | --disable-* \
2909           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2910           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2911           | -with-* | --with-* | -without-* | --without-* | --x)
2912             case "$ac_configure_args0 " in
2913               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2914             esac
2915             ;;
2916           -* ) ac_must_keep_next=true ;;
2917         esac
2918       fi
2919       as_fn_append ac_configure_args " '$ac_arg'"
2920       ;;
2921     esac
2922   done
2923 done
2924 { ac_configure_args0=; unset ac_configure_args0;}
2925 { ac_configure_args1=; unset ac_configure_args1;}
2926 
2927 # When interrupted or exit'd, cleanup temporary files, and complete
2928 # config.log.  We remove comments because anyway the quotes in there
2929 # would cause problems or look ugly.
2930 # WARNING: Use '\'' to represent an apostrophe within the trap.
2931 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2932 trap 'exit_status=$?
2933   # Save into config.log some information that might help in debugging.
2934   {
2935     echo
2936 
2937     $as_echo "## ---------------- ##
2938 ## Cache variables. ##
2939 ## ---------------- ##"
2940     echo
2941     # The following way of writing the cache mishandles newlines in values,
2942 (
2943   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2944     eval ac_val=\$$ac_var
2945     case $ac_val in #(
2946     *${as_nl}*)
2947       case $ac_var in #(
2948       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2949 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2950       esac
2951       case $ac_var in #(
2952       _ | IFS | as_nl) ;; #(
2953       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2954       *) { eval $ac_var=; unset $ac_var;} ;;
2955       esac ;;
2956     esac
2957   done
2958   (set) 2>&1 |
2959     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2960     *${as_nl}ac_space=\ *)
2961       sed -n \
2962         "s/'\''/'\''\\\\'\'''\''/g;
2963           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2964       ;; #(
2965     *)
2966       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2967       ;;
2968     esac |
2969     sort
2970 )
2971     echo
2972 
2973     $as_echo "## ----------------- ##
2974 ## Output variables. ##
2975 ## ----------------- ##"
2976     echo
2977     for ac_var in $ac_subst_vars
2978     do
2979       eval ac_val=\$$ac_var
2980       case $ac_val in
2981       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2982       esac
2983       $as_echo "$ac_var='\''$ac_val'\''"
2984     done | sort
2985     echo
2986 
2987     if test -n "$ac_subst_files"; then
2988       $as_echo "## ------------------- ##
2989 ## File substitutions. ##
2990 ## ------------------- ##"
2991       echo
2992       for ac_var in $ac_subst_files
2993       do
2994         eval ac_val=\$$ac_var
2995         case $ac_val in
2996         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2997         esac
2998         $as_echo "$ac_var='\''$ac_val'\''"
2999       done | sort
3000       echo
3001     fi
3002 
3003     if test -s confdefs.h; then
3004       $as_echo "## ----------- ##
3005 ## confdefs.h. ##
3006 ## ----------- ##"
3007       echo
3008       cat confdefs.h
3009       echo
3010     fi
3011     test "$ac_signal" != 0 &&
3012       $as_echo "$as_me: caught signal $ac_signal"
3013     $as_echo "$as_me: exit $exit_status"
3014   } >&5
3015   rm -f core *.core core.conftest.* &&
3016     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3017     exit $exit_status
3018 ' 0
3019 for ac_signal in 1 2 13 15; do
3020   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3021 done
3022 ac_signal=0
3023 
3024 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3025 rm -f -r conftest* confdefs.h
3026 
3027 $as_echo "/* confdefs.h */" > confdefs.h
3028 
3029 # Predefined preprocessor variables.
3030 
3031 cat >>confdefs.h <<_ACEOF
3032 #define PACKAGE_NAME "$PACKAGE_NAME"
3033 _ACEOF
3034 
3035 cat >>confdefs.h <<_ACEOF
3036 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3037 _ACEOF
3038 
3039 cat >>confdefs.h <<_ACEOF
3040 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3041 _ACEOF
3042 
3043 cat >>confdefs.h <<_ACEOF
3044 #define PACKAGE_STRING "$PACKAGE_STRING"
3045 _ACEOF
3046 
3047 cat >>confdefs.h <<_ACEOF
3048 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3049 _ACEOF
3050 
3051 cat >>confdefs.h <<_ACEOF
3052 #define PACKAGE_URL "$PACKAGE_URL"
3053 _ACEOF
3054 
3055 
3056 # Let the site file select an alternate cache file if it wants to.
3057 # Prefer an explicitly selected file to automatically selected ones.
3058 ac_site_file1=NONE
3059 ac_site_file2=NONE
3060 if test -n "$CONFIG_SITE"; then
3061   # We do not want a PATH search for config.site.
3062   case $CONFIG_SITE in #((
3063     -*)  ac_site_file1=./$CONFIG_SITE;;
3064     */*) ac_site_file1=$CONFIG_SITE;;
3065     *)   ac_site_file1=./$CONFIG_SITE;;
3066   esac
3067 elif test "x$prefix" != xNONE; then
3068   ac_site_file1=$prefix/share/config.site
3069   ac_site_file2=$prefix/etc/config.site
3070 else
3071   ac_site_file1=$ac_default_prefix/share/config.site
3072   ac_site_file2=$ac_default_prefix/etc/config.site
3073 fi
3074 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3075 do
3076   test "x$ac_site_file" = xNONE && continue
3077   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3078     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3079 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3080     sed 's/^/| /' "$ac_site_file" >&5
3081     . "$ac_site_file" \
3082       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error $? "failed to load site script $ac_site_file
3085 See \`config.log' for more details" "$LINENO" 5; }
3086   fi
3087 done
3088 
3089 if test -r "$cache_file"; then
3090   # Some versions of bash will fail to source /dev/null (special files
3091   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3092   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3093     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3094 $as_echo "$as_me: loading cache $cache_file" >&6;}
3095     case $cache_file in
3096       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3097       *)                      . "./$cache_file";;
3098     esac
3099   fi
3100 else
3101   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3102 $as_echo "$as_me: creating cache $cache_file" >&6;}
3103   >$cache_file
3104 fi
3105 
3106 # Check that the precious variables saved in the cache have kept the same
3107 # value.
3108 ac_cache_corrupted=false
3109 for ac_var in $ac_precious_vars; do
3110   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3111   eval ac_new_set=\$ac_env_${ac_var}_set
3112   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3113   eval ac_new_val=\$ac_env_${ac_var}_value
3114   case $ac_old_set,$ac_new_set in
3115     set,)
3116       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3117 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3118       ac_cache_corrupted=: ;;
3119     ,set)
3120       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3121 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3122       ac_cache_corrupted=: ;;
3123     ,);;
3124     *)
3125       if test "x$ac_old_val" != "x$ac_new_val"; then
3126         # differences in whitespace do not lead to failure.
3127         ac_old_val_w=`echo x $ac_old_val`
3128         ac_new_val_w=`echo x $ac_new_val`
3129         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3130           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3131 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3132           ac_cache_corrupted=:
3133         else
3134           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3135 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3136           eval $ac_var=\$ac_old_val
3137         fi
3138         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3139 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3140         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3141 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3142       fi;;
3143   esac
3144   # Pass precious variables to config.status.
3145   if test "$ac_new_set" = set; then
3146     case $ac_new_val in
3147     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3148     *) ac_arg=$ac_var=$ac_new_val ;;
3149     esac
3150     case " $ac_configure_args " in
3151       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3152       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3153     esac
3154   fi
3155 done
3156 if $ac_cache_corrupted; then
3157   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3159   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3160 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3161   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3162 fi
3163 ## -------------------- ##
3164 ## Main body of script. ##
3165 ## -------------------- ##
3166 
3167 ac_ext=c
3168 ac_cpp='$CPP $CPPFLAGS'
3169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3172 
3173 
3174 
3175 ac_aux_dir=
3176 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3177   if test -f "$ac_dir/install-sh"; then
3178     ac_aux_dir=$ac_dir
3179     ac_install_sh="$ac_aux_dir/install-sh -c"
3180     break
3181   elif test -f "$ac_dir/install.sh"; then
3182     ac_aux_dir=$ac_dir
3183     ac_install_sh="$ac_aux_dir/install.sh -c"
3184     break
3185   elif test -f "$ac_dir/shtool"; then
3186     ac_aux_dir=$ac_dir
3187     ac_install_sh="$ac_aux_dir/shtool install -c"
3188     break
3189   fi
3190 done
3191 if test -z "$ac_aux_dir"; then
3192   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
3193 fi
3194 
3195 # These three variables are undocumented and unsupported,
3196 # and are intended to be withdrawn in a future Autoconf release.
3197 # They can cause serious problems if a builder's source tree is in a directory
3198 # whose full name contains unusual characters.
3199 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3200 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3201 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3202 
3203 
3204 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3205 
3206 #
3207 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3208 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3209 #
3210 # This code is free software; you can redistribute it and/or modify it
3211 # under the terms of the GNU General Public License version 2 only, as
3212 # published by the Free Software Foundation.  Oracle designates this
3213 # particular file as subject to the "Classpath" exception as provided
3214 # by Oracle in the LICENSE file that accompanied this code.
3215 #
3216 # This code is distributed in the hope that it will be useful, but WITHOUT
3217 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3218 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3219 # version 2 for more details (a copy is included in the LICENSE file that
3220 # accompanied this code).
3221 #
3222 # You should have received a copy of the GNU General Public License version
3223 # 2 along with this work; if not, write to the Free Software Foundation,
3224 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3225 #
3226 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3227 # or visit www.oracle.com if you need additional information or have any
3228 # questions.
3229 #
3230 
3231 #
3232 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3233 #
3234 # This program is free software; you can redistribute it and/or modify
3235 # it under the terms of the GNU General Public License as published by
3236 # the Free Software Foundation; either version 2 of the License, or
3237 # (at your option) any later version.
3238 #
3239 # This program is distributed in the hope that it will be useful, but
3240 # WITHOUT ANY WARRANTY; without even the implied warranty of
3241 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3242 # General Public License for more details.
3243 #
3244 # You should have received a copy of the GNU General Public License
3245 # along with this program; if not, write to the Free Software
3246 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3247 #
3248 # As a special exception to the GNU General Public License, if you
3249 # distribute this file as part of a program that contains a
3250 # configuration script generated by Autoconf, you may include it under
3251 # the same distribution terms that you use for the rest of that program.
3252 
3253 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3254 # ----------------------------------
3255 # PKG_PROG_PKG_CONFIG
3256 
3257 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3258 #
3259 # Check to see whether a particular set of modules exists.  Similar
3260 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3261 #
3262 #
3263 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3264 # this or PKG_CHECK_MODULES is called, or make sure to call
3265 # PKG_CHECK_EXISTS manually
3266 # --------------------------------------------------------------
3267 
3268 
3269 
3270 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3271 # ---------------------------------------------
3272 # _PKG_CONFIG
3273 
3274 # _PKG_SHORT_ERRORS_SUPPORTED
3275 # -----------------------------
3276 # _PKG_SHORT_ERRORS_SUPPORTED
3277 
3278 
3279 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3280 # [ACTION-IF-NOT-FOUND])
3281 #
3282 #
3283 # Note that if there is a possibility the first call to
3284 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3285 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3286 #
3287 #
3288 # --------------------------------------------------------------
3289 # PKG_CHECK_MODULES
3290 
3291 
3292 # Include these first...
3293 #
3294 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3295 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3296 #
3297 # This code is free software; you can redistribute it and/or modify it
3298 # under the terms of the GNU General Public License version 2 only, as
3299 # published by the Free Software Foundation.  Oracle designates this
3300 # particular file as subject to the "Classpath" exception as provided
3301 # by Oracle in the LICENSE file that accompanied this code.
3302 #
3303 # This code is distributed in the hope that it will be useful, but WITHOUT
3304 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3305 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3306 # version 2 for more details (a copy is included in the LICENSE file that
3307 # accompanied this code).
3308 #
3309 # You should have received a copy of the GNU General Public License version
3310 # 2 along with this work; if not, write to the Free Software Foundation,
3311 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3312 #
3313 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3314 # or visit www.oracle.com if you need additional information or have any
3315 # questions.
3316 #
3317 
3318 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3319 # If so, then append $1 to $2 \
3320 # Also set JVM_ARG_OK to true/false depending on outcome.
3321 
3322 
3323 # Appends a string to a path variable, only adding the : when needed.
3324 
3325 
3326 # This will make sure the given variable points to a full and proper
3327 # path. This means:
3328 # 1) There will be no spaces in the path. On posix platforms,
3329 #    spaces in the path will result in an error. On Windows,
3330 #    the path will be rewritten using short-style to be space-free.
3331 # 2) The path will be absolute, and it will be in unix-style (on
3332 #     cygwin).
3333 # $1: The name of the variable to fix
3334 
3335 
3336 # This will make sure the given variable points to a executable
3337 # with a full and proper path. This means:
3338 # 1) There will be no spaces in the path. On posix platforms,
3339 #    spaces in the path will result in an error. On Windows,
3340 #    the path will be rewritten using short-style to be space-free.
3341 # 2) The path will be absolute, and it will be in unix-style (on
3342 #     cygwin).
3343 # Any arguments given to the executable is preserved.
3344 # If the input variable does not have a directory specification, then
3345 # it need to be in the PATH.
3346 # $1: The name of the variable to fix
3347 
3348 
3349 
3350 
3351 # Register a --with argument but mark it as deprecated
3352 # $1: The name of the with argument to deprecate, not including --with-
3353 
3354 
3355 # Register a --enable argument but mark it as deprecated
3356 # $1: The name of the with argument to deprecate, not including --enable-
3357 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3358 
3359 
3360 
3361 
3362 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3363 # $1: variable to check
3364 
3365 
3366 # Check that there are no unprocessed overridden variables left.
3367 # If so, they are an incorrect argument and we will exit with an error.
3368 
3369 
3370 # Setup a tool for the given variable. If correctly specified by the user,
3371 # use that value, otherwise search for the tool using the supplied code snippet.
3372 # $1: variable to set
3373 # $2: code snippet to call to look for the tool
3374 
3375 
3376 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3377 # $1: variable to set
3378 # $2: executable name (or list of names) to look for
3379 
3380 
3381 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3382 # $1: variable to set
3383 # $2: executable name (or list of names) to look for
3384 
3385 
3386 # Like BASIC_PATH_PROGS but fails if no tool was found.
3387 # $1: variable to set
3388 # $2: executable name (or list of names) to look for
3389 
3390 
3391 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3392 # $1: variable to set
3393 # $2: autoconf macro to call to look for the special tool
3394 
3395 
3396 # Setup the most fundamental tools that relies on not much else to set up,
3397 # but is used by much of the early bootstrap code.
3398 
3399 
3400 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3401 
3402 
3403 
3404 
3405 
3406 
3407 
3408 #%%% Simple tools %%%
3409 
3410 # Check if we have found a usable version of make
3411 # $1: the path to a potential make binary (or empty)
3412 # $2: the description on how we found this
3413 
3414 
3415 # Goes looking for a usable version of GNU make.
3416 
3417 
3418 
3419 
3420 
3421 
3422 # Check if build directory is on local disk. If not possible to determine,
3423 # we prefer to claim it's local.
3424 # Argument 1: directory to test
3425 # Argument 2: what to do if it is on local disk
3426 # Argument 3: what to do otherwise (remote disk or failure)
3427 
3428 
3429 # Check that source files have basic read permissions set. This might
3430 # not be the case in cygwin in certain conditions.
3431 
3432 
3433 
3434 
3435 #
3436 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3437 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3438 #
3439 # This code is free software; you can redistribute it and/or modify it
3440 # under the terms of the GNU General Public License version 2 only, as
3441 # published by the Free Software Foundation.  Oracle designates this
3442 # particular file as subject to the "Classpath" exception as provided
3443 # by Oracle in the LICENSE file that accompanied this code.
3444 #
3445 # This code is distributed in the hope that it will be useful, but WITHOUT
3446 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3447 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3448 # version 2 for more details (a copy is included in the LICENSE file that
3449 # accompanied this code).
3450 #
3451 # You should have received a copy of the GNU General Public License version
3452 # 2 along with this work; if not, write to the Free Software Foundation,
3453 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3454 #
3455 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3456 # or visit www.oracle.com if you need additional information or have any
3457 # questions.
3458 #
3459 
3460 
3461 
3462 
3463 
3464 # Helper function which possibly converts a path using DOS-style short mode.
3465 # If so, the updated path is stored in $new_path.
3466 # $1: The path to check
3467 
3468 
3469 # Helper function which possibly converts a path using DOS-style short mode.
3470 # If so, the updated path is stored in $new_path.
3471 # $1: The path to check
3472 
3473 
3474 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3475 # and could probably be heavily simplified. However, all changes in this
3476 # area tend to need lot of testing in different scenarios, and in lack of
3477 # proper unit testing, cleaning this up has not been deemed worth the effort
3478 # at the moment.
3479 
3480 
3481 
3482 
3483 
3484 
3485 
3486 
3487 
3488 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3489 
3490 
3491 
3492 
3493 #
3494 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3495 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3496 #
3497 # This code is free software; you can redistribute it and/or modify it
3498 # under the terms of the GNU General Public License version 2 only, as
3499 # published by the Free Software Foundation.  Oracle designates this
3500 # particular file as subject to the "Classpath" exception as provided
3501 # by Oracle in the LICENSE file that accompanied this code.
3502 #
3503 # This code is distributed in the hope that it will be useful, but WITHOUT
3504 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3505 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3506 # version 2 for more details (a copy is included in the LICENSE file that
3507 # accompanied this code).
3508 #
3509 # You should have received a copy of the GNU General Public License version
3510 # 2 along with this work; if not, write to the Free Software Foundation,
3511 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3512 #
3513 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3514 # or visit www.oracle.com if you need additional information or have any
3515 # questions.
3516 #
3517 
3518 
3519 
3520 
3521 
3522 
3523 
3524 
3525 
3526 
3527 
3528 # ... then the rest
3529 #
3530 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3531 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3532 #
3533 # This code is free software; you can redistribute it and/or modify it
3534 # under the terms of the GNU General Public License version 2 only, as
3535 # published by the Free Software Foundation.  Oracle designates this
3536 # particular file as subject to the "Classpath" exception as provided
3537 # by Oracle in the LICENSE file that accompanied this code.
3538 #
3539 # This code is distributed in the hope that it will be useful, but WITHOUT
3540 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3541 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3542 # version 2 for more details (a copy is included in the LICENSE file that
3543 # accompanied this code).
3544 #
3545 # You should have received a copy of the GNU General Public License version
3546 # 2 along with this work; if not, write to the Free Software Foundation,
3547 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3548 #
3549 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3550 # or visit www.oracle.com if you need additional information or have any
3551 # questions.
3552 #
3553 
3554 ########################################################################
3555 # This file handles detection of the Boot JDK. The Boot JDK detection
3556 # process has been developed as a response to solve a complex real-world
3557 # problem. Initially, it was simple, but it has grown as platform after
3558 # platform, idiosyncracy after idiosyncracy has been supported.
3559 #
3560 # The basic idea is this:
3561 # 1) You need an acceptable *) JDK to use as a Boot JDK
3562 # 2) There are several ways to locate a JDK, that are mostly platform
3563 #    dependent **)
3564 # 3) You can have multiple JDKs installed
3565 # 4) If possible, configure should try to dig out an acceptable JDK
3566 #    automatically, without having to resort to command-line options
3567 #
3568 # *)  acceptable means e.g. JDK7 for building JDK8, a complete JDK (with
3569 #     javac) and not a JRE, etc.
3570 #
3571 # **) On Windows we typically use a well-known path.
3572 #     On MacOSX we typically use the tool java_home.
3573 #     On Linux we typically find javac in the $PATH, and then follow a
3574 #     chain of symlinks that often ends up in a real JDK.
3575 #
3576 # This leads to the code where we check in different ways to locate a
3577 # JDK, and if one is found, check if it is acceptable. If not, we print
3578 # our reasons for rejecting it (useful when debugging non-working
3579 # configure situations) and continue checking the next one.
3580 ########################################################################
3581 
3582 # Execute the check given as argument, and verify the result
3583 # If the Boot JDK was previously found, do nothing
3584 # $1 A command line (typically autoconf macro) to execute
3585 
3586 
3587 # Test: Is bootjdk explicitely set by command line arguments?
3588 
3589 
3590 # Test: Is bootjdk available from builddeps?
3591 
3592 
3593 # Test: Is $JAVA_HOME set?
3594 
3595 
3596 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3597 
3598 
3599 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3600 # $1: Argument to the java_home binary (optional)
3601 
3602 
3603 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
3604 
3605 
3606 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3607 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3608 # $1 = Path to directory containing jdk installations.
3609 # $2 = String to append to the found JDK directory to get the proper JDK home
3610 
3611 
3612 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3613 # environmental variable as base for where to look.
3614 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3615 
3616 
3617 # Test: Is there a JDK installed in default, well-known locations?
3618 
3619 
3620 # Check that a command-line tool in the Boot JDK is correct
3621 # $1 = name of variable to assign
3622 # $2 = name of binary
3623 
3624 
3625 ###############################################################################
3626 #
3627 # We need a Boot JDK to bootstrap the build.
3628 #
3629 
3630 
3631 
3632 
3633 
3634 #
3635 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3636 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3637 #
3638 # This code is free software; you can redistribute it and/or modify it
3639 # under the terms of the GNU General Public License version 2 only, as
3640 # published by the Free Software Foundation.  Oracle designates this
3641 # particular file as subject to the "Classpath" exception as provided
3642 # by Oracle in the LICENSE file that accompanied this code.
3643 #
3644 # This code is distributed in the hope that it will be useful, but WITHOUT
3645 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3646 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3647 # version 2 for more details (a copy is included in the LICENSE file that
3648 # accompanied this code).
3649 #
3650 # You should have received a copy of the GNU General Public License version
3651 # 2 along with this work; if not, write to the Free Software Foundation,
3652 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3653 #
3654 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3655 # or visit www.oracle.com if you need additional information or have any
3656 # questions.
3657 #
3658 
3659 
3660 
3661 
3662 
3663 
3664 
3665 
3666 
3667 
3668 
3669 
3670 
3671 
3672 
3673 
3674 
3675 
3676 
3677 
3678 #
3679 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3680 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3681 #
3682 # This code is free software; you can redistribute it and/or modify it
3683 # under the terms of the GNU General Public License version 2 only, as
3684 # published by the Free Software Foundation.  Oracle designates this
3685 # particular file as subject to the "Classpath" exception as provided
3686 # by Oracle in the LICENSE file that accompanied this code.
3687 #
3688 # This code is distributed in the hope that it will be useful, but WITHOUT
3689 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3690 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3691 # version 2 for more details (a copy is included in the LICENSE file that
3692 # accompanied this code).
3693 #
3694 # You should have received a copy of the GNU General Public License version
3695 # 2 along with this work; if not, write to the Free Software Foundation,
3696 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3697 #
3698 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3699 # or visit www.oracle.com if you need additional information or have any
3700 # questions.
3701 #
3702 
3703 
3704 
3705 
3706 
3707 # Documentation on common flags used for solstudio in HIGHEST.
3708 #
3709 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3710 #          done with care, there are some assumptions below that need to
3711 #          be understood about the use of pointers, and IEEE behavior.
3712 #
3713 # -fns: Use non-standard floating point mode (not IEEE 754)
3714 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3715 # -fsingle: Use single precision floating point with 'float'
3716 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3717 #   (Source with excessing pointer casting and data access with mixed
3718 #    pointer types are not recommended)
3719 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3720 #   (If you expect perfect errno behavior, do not use this)
3721 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3722 # -xrestrict: Pointer parameters to functions do not overlap
3723 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3724 #    If you pass in multiple pointers to the same data, do not use this)
3725 # -xlibmil: Inline some library routines
3726 #   (If you expect perfect errno behavior, do not use this)
3727 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3728 #   (If you expect perfect errno behavior, do not use this)
3729 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3730 
3731     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3732     # Bug?
3733     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3734     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3735     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3736     #fi
3737 
3738 
3739 
3740 
3741 
3742 
3743 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3744 #                                   [RUN-IF-FALSE])
3745 # ------------------------------------------------------------
3746 # Check that the c and c++ compilers support an argument
3747 
3748 
3749 
3750 
3751 #
3752 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3753 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3754 #
3755 # This code is free software; you can redistribute it and/or modify it
3756 # under the terms of the GNU General Public License version 2 only, as
3757 # published by the Free Software Foundation.  Oracle designates this
3758 # particular file as subject to the "Classpath" exception as provided
3759 # by Oracle in the LICENSE file that accompanied this code.
3760 #
3761 # This code is distributed in the hope that it will be useful, but WITHOUT
3762 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3763 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3764 # version 2 for more details (a copy is included in the LICENSE file that
3765 # accompanied this code).
3766 #
3767 # You should have received a copy of the GNU General Public License version
3768 # 2 along with this work; if not, write to the Free Software Foundation,
3769 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3770 #
3771 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3772 # or visit www.oracle.com if you need additional information or have any
3773 # questions.
3774 #
3775 
3776 
3777 
3778 
3779 
3780 cygwin_help() {
3781   case $1 in
3782     unzip)
3783       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3784       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3785       ;;
3786     zip)
3787       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3788       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3789       ;;
3790     make)
3791       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3792       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3793       ;;
3794     freetype)
3795       if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
3796         HELP_MSG="To install freetype, run:
3797 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe
3798 chmod +x /tmp/freetype-setup.exe
3799 /tmp/freetype-setup.exe
3800 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\".
3801 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll."
3802       else
3803         HELP_MSG="You need to build a 64-bit version of freetype.
3804 This is not readily available.
3805 You can find source code and build instructions on
3806 http://www.freetype.org/
3807 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically."
3808       fi
3809       ;;
3810   esac
3811 }
3812 
3813 msys_help() {
3814   PKGHANDLER_COMMAND=""
3815 }
3816 
3817 apt_help() {
3818   case $1 in
3819     devkit)
3820       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3821     openjdk)
3822       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3823     alsa)
3824       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3825     cups)
3826       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3827     freetype)
3828       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3829     pulse)
3830       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3831     x11)
3832       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3833     ccache)
3834       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3835   esac
3836 }
3837 
3838 yum_help() {
3839   case $1 in
3840     devkit)
3841       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3842     openjdk)
3843       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3844     alsa)
3845       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3846     cups)
3847       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3848     freetype)
3849       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3850     pulse)
3851       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3852     x11)
3853       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3854     ccache)
3855       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3856   esac
3857 }
3858 
3859 port_help() {
3860   PKGHANDLER_COMMAND=""
3861 }
3862 
3863 pkgutil_help() {
3864   PKGHANDLER_COMMAND=""
3865 }
3866 
3867 pkgadd_help() {
3868   PKGHANDLER_COMMAND=""
3869 }
3870 
3871 # This function will check if we're called from the "configure" wrapper while
3872 # printing --help. If so, we will print out additional information that can
3873 # only be extracted within the autoconf script, and then exit. This must be
3874 # called at the very beginning in configure.ac.
3875 
3876 
3877 
3878 
3879 #
3880 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3881 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3882 #
3883 # This code is free software; you can redistribute it and/or modify it
3884 # under the terms of the GNU General Public License version 2 only, as
3885 # published by the Free Software Foundation.  Oracle designates this
3886 # particular file as subject to the "Classpath" exception as provided
3887 # by Oracle in the LICENSE file that accompanied this code.
3888 #
3889 # This code is distributed in the hope that it will be useful, but WITHOUT
3890 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3891 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3892 # version 2 for more details (a copy is included in the LICENSE file that
3893 # accompanied this code).
3894 #
3895 # You should have received a copy of the GNU General Public License version
3896 # 2 along with this work; if not, write to the Free Software Foundation,
3897 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3898 #
3899 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3900 # or visit www.oracle.com if you need additional information or have any
3901 # questions.
3902 #
3903 
3904 
3905 
3906 
3907 
3908 
3909 
3910 
3911 
3912 
3913 ###############################################################################
3914 #
3915 # Should we build only OpenJDK even if closed sources are present?
3916 #
3917 
3918 
3919 
3920 
3921 ###############################################################################
3922 #
3923 # Setup version numbers
3924 #
3925 
3926 
3927 
3928 
3929 
3930 
3931 #
3932 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
3933 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3934 #
3935 # This code is free software; you can redistribute it and/or modify it
3936 # under the terms of the GNU General Public License version 2 only, as
3937 # published by the Free Software Foundation.  Oracle designates this
3938 # particular file as subject to the "Classpath" exception as provided
3939 # by Oracle in the LICENSE file that accompanied this code.
3940 #
3941 # This code is distributed in the hope that it will be useful, but WITHOUT
3942 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3943 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3944 # version 2 for more details (a copy is included in the LICENSE file that
3945 # accompanied this code).
3946 #
3947 # You should have received a copy of the GNU General Public License version
3948 # 2 along with this work; if not, write to the Free Software Foundation,
3949 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3950 #
3951 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3952 # or visit www.oracle.com if you need additional information or have any
3953 # questions.
3954 #
3955 
3956 
3957 
3958 
3959 
3960 
3961 
3962 
3963 
3964 
3965 
3966 
3967 
3968 
3969 
3970 
3971 
3972 
3973 
3974 #
3975 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3976 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3977 #
3978 # This code is free software; you can redistribute it and/or modify it
3979 # under the terms of the GNU General Public License version 2 only, as
3980 # published by the Free Software Foundation.  Oracle designates this
3981 # particular file as subject to the "Classpath" exception as provided
3982 # by Oracle in the LICENSE file that accompanied this code.
3983 #
3984 # This code is distributed in the hope that it will be useful, but WITHOUT
3985 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3986 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3987 # version 2 for more details (a copy is included in the LICENSE file that
3988 # accompanied this code).
3989 #
3990 # You should have received a copy of the GNU General Public License version
3991 # 2 along with this work; if not, write to the Free Software Foundation,
3992 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3993 #
3994 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3995 # or visit www.oracle.com if you need additional information or have any
3996 # questions.
3997 #
3998 
3999 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4000 # Converts autoconf style CPU name to OpenJDK style, into
4001 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4002 
4003 
4004 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4005 # Converts autoconf style OS name to OpenJDK style, into
4006 # VAR_OS and VAR_OS_API.
4007 
4008 
4009 # Expects $host_os $host_cpu $build_os and $build_cpu
4010 # and $with_target_bits to have been setup!
4011 #
4012 # Translate the standard triplet(quadruplet) definition
4013 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4014 # OPENJDK_BUILD_OS, etc.
4015 
4016 
4017 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4018 # accordingly. Must be done after setting up build and target system, but before
4019 # doing anything else with these values.
4020 
4021 
4022 # Setup the legacy variables, for controlling the old makefiles.
4023 #
4024 
4025 
4026 
4027 
4028 #%%% Build and target systems %%%
4029 
4030 
4031 
4032 
4033 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4034 # Add -mX to various FLAGS variables.
4035 
4036 
4037 
4038 
4039 
4040 
4041 #
4042 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4043 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4044 #
4045 # This code is free software; you can redistribute it and/or modify it
4046 # under the terms of the GNU General Public License version 2 only, as
4047 # published by the Free Software Foundation.  Oracle designates this
4048 # particular file as subject to the "Classpath" exception as provided
4049 # by Oracle in the LICENSE file that accompanied this code.
4050 #
4051 # This code is distributed in the hope that it will be useful, but WITHOUT
4052 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4053 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4054 # version 2 for more details (a copy is included in the LICENSE file that
4055 # accompanied this code).
4056 #
4057 # You should have received a copy of the GNU General Public License version
4058 # 2 along with this work; if not, write to the Free Software Foundation,
4059 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4060 #
4061 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4062 # or visit www.oracle.com if you need additional information or have any
4063 # questions.
4064 #
4065 
4066 
4067 
4068 
4069 
4070 
4071 
4072 
4073 #
4074 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
4075 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4076 #
4077 # This code is free software; you can redistribute it and/or modify it
4078 # under the terms of the GNU General Public License version 2 only, as
4079 # published by the Free Software Foundation.  Oracle designates this
4080 # particular file as subject to the "Classpath" exception as provided
4081 # by Oracle in the LICENSE file that accompanied this code.
4082 #
4083 # This code is distributed in the hope that it will be useful, but WITHOUT
4084 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4085 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4086 # version 2 for more details (a copy is included in the LICENSE file that
4087 # accompanied this code).
4088 #
4089 # You should have received a copy of the GNU General Public License version
4090 # 2 along with this work; if not, write to the Free Software Foundation,
4091 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4092 #
4093 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4094 # or visit www.oracle.com if you need additional information or have any
4095 # questions.
4096 #
4097 
4098 ########################################################################
4099 # This file is responsible for detecting, verifying and setting up the
4100 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4101 # proper paths to the binaries, but it will not setup any flags.
4102 #
4103 # The binaries used is determined by the toolchain type, which is the family of
4104 # compilers and related tools that are used.
4105 ########################################################################
4106 
4107 
4108 # All valid toolchains, regardless of platform (used by help.m4)
4109 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4110 
4111 # These toolchains are valid on different platforms
4112 VALID_TOOLCHAINS_linux="gcc clang"
4113 VALID_TOOLCHAINS_solaris="solstudio"
4114 VALID_TOOLCHAINS_macosx="gcc clang"
4115 VALID_TOOLCHAINS_aix="xlc"
4116 VALID_TOOLCHAINS_windows="microsoft"
4117 
4118 # Toolchain descriptions
4119 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4120 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4121 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4122 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4123 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4124 
4125 # Setup a number of variables describing how native output files are
4126 # named on this platform/toolchain.
4127 
4128 
4129 # Determine which toolchain type to use, and make sure it is valid for this
4130 # platform. Setup various information about the selected toolchain.
4131 
4132 
4133 # Before we start detecting the toolchain executables, we might need some
4134 # special setup, e.g. additional paths etc.
4135 
4136 
4137 # Restore path, etc
4138 
4139 
4140 # Check if a compiler is of the toolchain type we expect, and save the version
4141 # information from it. If the compiler does not match the expected type,
4142 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4143 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4144 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4145 #
4146 # $1 = compiler to test (CC or CXX)
4147 # $2 = human readable name of compiler (C or C++)
4148 
4149 
4150 # Try to locate the given C or C++ compiler in the path, or otherwise.
4151 #
4152 # $1 = compiler to test (CC or CXX)
4153 # $2 = human readable name of compiler (C or C++)
4154 # $3 = list of compiler names to search for
4155 
4156 
4157 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4158 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4159 # archiver (AR). Verify that the compilers are correct according to the
4160 # toolchain type.
4161 
4162 
4163 # Setup additional tools that is considered a part of the toolchain, but not the
4164 # core part. Many of these are highly platform-specific and do not exist,
4165 # and/or are not needed on all platforms.
4166 
4167 
4168 # Setup the build tools (i.e, the compiler and linker used to build programs
4169 # that should be run on the build platform, not the target platform, as a build
4170 # helper). Since the non-cross-compile case uses the normal, target compilers
4171 # for this, we can only do this after these have been setup.
4172 
4173 
4174 # Setup legacy variables that are still needed as alternative ways to refer to
4175 # parts of the toolchain.
4176 
4177 
4178 # Do some additional checks on the detected tools.
4179 
4180 
4181 # Setup the JTReg Regression Test Harness.
4182 
4183 
4184 #
4185 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4186 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4187 #
4188 # This code is free software; you can redistribute it and/or modify it
4189 # under the terms of the GNU General Public License version 2 only, as
4190 # published by the Free Software Foundation.  Oracle designates this
4191 # particular file as subject to the "Classpath" exception as provided
4192 # by Oracle in the LICENSE file that accompanied this code.
4193 #
4194 # This code is distributed in the hope that it will be useful, but WITHOUT
4195 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4196 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4197 # version 2 for more details (a copy is included in the LICENSE file that
4198 # accompanied this code).
4199 #
4200 # You should have received a copy of the GNU General Public License version
4201 # 2 along with this work; if not, write to the Free Software Foundation,
4202 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4203 #
4204 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4205 # or visit www.oracle.com if you need additional information or have any
4206 # questions.
4207 #
4208 
4209 
4210 
4211 
4212 
4213 
4214 
4215 # Check if the VS env variables were setup prior to running configure.
4216 # If not, then find vcvarsall.bat and run it automatically, and integrate
4217 # the set env variables into the spec file.
4218 
4219 
4220 
4221 
4222 
4223 
4224 
4225 
4226 
4227 
4228 # This line needs to be here, verbatim, after all includes and the dummy hook
4229 # definitions. It is replaced with custom functionality when building
4230 # custom sources.
4231 #CUSTOM_AUTOCONF_INCLUDE
4232 
4233 # Do not change or remove the following line, it is needed for consistency checks:
4234 DATE_WHEN_GENERATED=1394150589
4235 
4236 ###############################################################################
4237 #
4238 # Initialization / Boot-strapping
4239 #
4240 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4241 # thus it jumps back and forth, each time gaining something needed later on.
4242 #
4243 ###############################################################################
4244 
4245 # If we are requested to print additional help, do that and then exit.
4246 # This must be the very first call.
4247 
4248   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4249     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4250     $PRINTF "Which are valid to use depends on the build platform.\n"
4251     for toolchain in $VALID_TOOLCHAINS_all; do
4252       # Use indirect variable referencing
4253       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4254       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4255       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4256     done
4257 
4258     # And now exit directly
4259     exit 0
4260   fi
4261 
4262 
4263 # Basic initialization that must happen first of all in the normal process.
4264 
4265   # Save the original command line. This is passed to us by the wrapper configure script.
4266 
4267   DATE_WHEN_CONFIGURED=`LANG=C date`
4268 
4269   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4270 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4271   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4272 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4273 
4274 
4275   # Start with tools that do not need have cross compilation support
4276   # and can be expected to be found in the default PATH. These tools are
4277   # used by configure. Nor are these tools expected to be found in the
4278   # devkit from the builddeps server either, since they are
4279   # needed to download the devkit.
4280 
4281   # First are all the simple required tools.
4282 
4283 
4284 
4285   # Publish this variable in the help.
4286 
4287 
4288   if test "x$BASENAME" = x; then
4289     # The variable is not set by user, try to locate tool using the code snippet
4290     for ac_prog in basename
4291 do
4292   # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy $ac_prog; ac_word=$2
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 $as_echo_n "checking for $ac_word... " >&6; }
4296 if ${ac_cv_path_BASENAME+:} false; then :
4297   $as_echo_n "(cached) " >&6
4298 else
4299   case $BASENAME in
4300   [\\/]* | ?:[\\/]*)
4301   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4302   ;;
4303   *)
4304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309     for ac_exec_ext in '' $ac_executable_extensions; do
4310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316   done
4317 IFS=$as_save_IFS
4318 
4319   ;;
4320 esac
4321 fi
4322 BASENAME=$ac_cv_path_BASENAME
4323 if test -n "$BASENAME"; then
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4325 $as_echo "$BASENAME" >&6; }
4326 else
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4329 fi
4330 
4331 
4332   test -n "$BASENAME" && break
4333 done
4334 
4335   else
4336     # The variable is set, but is it from the command line or the environment?
4337 
4338     # Try to remove the string !BASENAME! from our list.
4339     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4340     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4341       # If it failed, the variable was not from the command line. Ignore it,
4342       # but warn the user (except for BASH, which is always set by the calling BASH).
4343       if test "xBASENAME" != xBASH; then
4344         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4345 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4346       fi
4347       # Try to locate tool using the code snippet
4348       for ac_prog in basename
4349 do
4350   # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if ${ac_cv_path_BASENAME+:} false; then :
4355   $as_echo_n "(cached) " >&6
4356 else
4357   case $BASENAME in
4358   [\\/]* | ?:[\\/]*)
4359   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4360   ;;
4361   *)
4362   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH
4364 do
4365   IFS=$as_save_IFS
4366   test -z "$as_dir" && as_dir=.
4367     for ac_exec_ext in '' $ac_executable_extensions; do
4368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4369     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4371     break 2
4372   fi
4373 done
4374   done
4375 IFS=$as_save_IFS
4376 
4377   ;;
4378 esac
4379 fi
4380 BASENAME=$ac_cv_path_BASENAME
4381 if test -n "$BASENAME"; then
4382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4383 $as_echo "$BASENAME" >&6; }
4384 else
4385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4387 fi
4388 
4389 
4390   test -n "$BASENAME" && break
4391 done
4392 
4393     else
4394       # If it succeeded, then it was overridden by the user. We will use it
4395       # for the tool.
4396 
4397       # First remove it from the list of overridden variables, so we can test
4398       # for unknown variables in the end.
4399       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4400 
4401       # Check if the provided tool contains a complete path.
4402       tool_specified="$BASENAME"
4403       tool_basename="${tool_specified##*/}"
4404       if test "x$tool_basename" = "x$tool_specified"; then
4405         # A command without a complete path is provided, search $PATH.
4406         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4407 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4408         # Extract the first word of "$tool_basename", so it can be a program name with args.
4409 set dummy $tool_basename; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if ${ac_cv_path_BASENAME+:} false; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   case $BASENAME in
4416   [\\/]* | ?:[\\/]*)
4417   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4418   ;;
4419   *)
4420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425     for ac_exec_ext in '' $ac_executable_extensions; do
4426   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4427     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429     break 2
4430   fi
4431 done
4432   done
4433 IFS=$as_save_IFS
4434 
4435   ;;
4436 esac
4437 fi
4438 BASENAME=$ac_cv_path_BASENAME
4439 if test -n "$BASENAME"; then
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4441 $as_echo "$BASENAME" >&6; }
4442 else
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446 
4447 
4448         if test "x$BASENAME" = x; then
4449           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4450         fi
4451       else
4452         # Otherwise we believe it is a complete path. Use it as it is.
4453         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4454 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4455         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4456 $as_echo_n "checking for BASENAME... " >&6; }
4457         if test ! -x "$tool_specified"; then
4458           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4459 $as_echo "not found" >&6; }
4460           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4461         fi
4462         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4463 $as_echo "$tool_specified" >&6; }
4464       fi
4465     fi
4466   fi
4467 
4468 
4469 
4470   if test "x$BASENAME" = x; then
4471     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4472   fi
4473 
4474 
4475 
4476 
4477 
4478   # Publish this variable in the help.
4479 
4480 
4481   if test "x$BASH" = x; then
4482     # The variable is not set by user, try to locate tool using the code snippet
4483     for ac_prog in bash
4484 do
4485   # Extract the first word of "$ac_prog", so it can be a program name with args.
4486 set dummy $ac_prog; ac_word=$2
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488 $as_echo_n "checking for $ac_word... " >&6; }
4489 if ${ac_cv_path_BASH+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492   case $BASH in
4493   [\\/]* | ?:[\\/]*)
4494   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4495   ;;
4496   *)
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_exec_ext in '' $ac_executable_extensions; do
4503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4504     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4506     break 2
4507   fi
4508 done
4509   done
4510 IFS=$as_save_IFS
4511 
4512   ;;
4513 esac
4514 fi
4515 BASH=$ac_cv_path_BASH
4516 if test -n "$BASH"; then
4517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4518 $as_echo "$BASH" >&6; }
4519 else
4520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4521 $as_echo "no" >&6; }
4522 fi
4523 
4524 
4525   test -n "$BASH" && break
4526 done
4527 
4528   else
4529     # The variable is set, but is it from the command line or the environment?
4530 
4531     # Try to remove the string !BASH! from our list.
4532     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4533     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4534       # If it failed, the variable was not from the command line. Ignore it,
4535       # but warn the user (except for BASH, which is always set by the calling BASH).
4536       if test "xBASH" != xBASH; then
4537         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4538 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4539       fi
4540       # Try to locate tool using the code snippet
4541       for ac_prog in bash
4542 do
4543   # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if ${ac_cv_path_BASH+:} false; then :
4548   $as_echo_n "(cached) " >&6
4549 else
4550   case $BASH in
4551   [\\/]* | ?:[\\/]*)
4552   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4553   ;;
4554   *)
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_exec_ext in '' $ac_executable_extensions; do
4561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4562     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567   done
4568 IFS=$as_save_IFS
4569 
4570   ;;
4571 esac
4572 fi
4573 BASH=$ac_cv_path_BASH
4574 if test -n "$BASH"; then
4575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4576 $as_echo "$BASH" >&6; }
4577 else
4578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4579 $as_echo "no" >&6; }
4580 fi
4581 
4582 
4583   test -n "$BASH" && break
4584 done
4585 
4586     else
4587       # If it succeeded, then it was overridden by the user. We will use it
4588       # for the tool.
4589 
4590       # First remove it from the list of overridden variables, so we can test
4591       # for unknown variables in the end.
4592       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4593 
4594       # Check if the provided tool contains a complete path.
4595       tool_specified="$BASH"
4596       tool_basename="${tool_specified##*/}"
4597       if test "x$tool_basename" = "x$tool_specified"; then
4598         # A command without a complete path is provided, search $PATH.
4599         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4600 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4601         # Extract the first word of "$tool_basename", so it can be a program name with args.
4602 set dummy $tool_basename; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if ${ac_cv_path_BASH+:} false; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   case $BASH in
4609   [\\/]* | ?:[\\/]*)
4610   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4611   ;;
4612   *)
4613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4615 do
4616   IFS=$as_save_IFS
4617   test -z "$as_dir" && as_dir=.
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4620     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622     break 2
4623   fi
4624 done
4625   done
4626 IFS=$as_save_IFS
4627 
4628   ;;
4629 esac
4630 fi
4631 BASH=$ac_cv_path_BASH
4632 if test -n "$BASH"; then
4633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4634 $as_echo "$BASH" >&6; }
4635 else
4636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4637 $as_echo "no" >&6; }
4638 fi
4639 
4640 
4641         if test "x$BASH" = x; then
4642           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4643         fi
4644       else
4645         # Otherwise we believe it is a complete path. Use it as it is.
4646         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4647 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4649 $as_echo_n "checking for BASH... " >&6; }
4650         if test ! -x "$tool_specified"; then
4651           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4652 $as_echo "not found" >&6; }
4653           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4654         fi
4655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4656 $as_echo "$tool_specified" >&6; }
4657       fi
4658     fi
4659   fi
4660 
4661 
4662 
4663   if test "x$BASH" = x; then
4664     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4665   fi
4666 
4667 
4668 
4669 
4670 
4671   # Publish this variable in the help.
4672 
4673 
4674   if test "x$CAT" = x; then
4675     # The variable is not set by user, try to locate tool using the code snippet
4676     for ac_prog in cat
4677 do
4678   # Extract the first word of "$ac_prog", so it can be a program name with args.
4679 set dummy $ac_prog; ac_word=$2
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681 $as_echo_n "checking for $ac_word... " >&6; }
4682 if ${ac_cv_path_CAT+:} false; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685   case $CAT in
4686   [\\/]* | ?:[\\/]*)
4687   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4688   ;;
4689   *)
4690   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693   IFS=$as_save_IFS
4694   test -z "$as_dir" && as_dir=.
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4698     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699     break 2
4700   fi
4701 done
4702   done
4703 IFS=$as_save_IFS
4704 
4705   ;;
4706 esac
4707 fi
4708 CAT=$ac_cv_path_CAT
4709 if test -n "$CAT"; then
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4711 $as_echo "$CAT" >&6; }
4712 else
4713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716 
4717 
4718   test -n "$CAT" && break
4719 done
4720 
4721   else
4722     # The variable is set, but is it from the command line or the environment?
4723 
4724     # Try to remove the string !CAT! from our list.
4725     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4726     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4727       # If it failed, the variable was not from the command line. Ignore it,
4728       # but warn the user (except for BASH, which is always set by the calling BASH).
4729       if test "xCAT" != xBASH; then
4730         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4731 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4732       fi
4733       # Try to locate tool using the code snippet
4734       for ac_prog in cat
4735 do
4736   # Extract the first word of "$ac_prog", so it can be a program name with args.
4737 set dummy $ac_prog; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if ${ac_cv_path_CAT+:} false; then :
4741   $as_echo_n "(cached) " >&6
4742 else
4743   case $CAT in
4744   [\\/]* | ?:[\\/]*)
4745   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4746   ;;
4747   *)
4748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH
4750 do
4751   IFS=$as_save_IFS
4752   test -z "$as_dir" && as_dir=.
4753     for ac_exec_ext in '' $ac_executable_extensions; do
4754   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4756     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4757     break 2
4758   fi
4759 done
4760   done
4761 IFS=$as_save_IFS
4762 
4763   ;;
4764 esac
4765 fi
4766 CAT=$ac_cv_path_CAT
4767 if test -n "$CAT"; then
4768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4769 $as_echo "$CAT" >&6; }
4770 else
4771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4772 $as_echo "no" >&6; }
4773 fi
4774 
4775 
4776   test -n "$CAT" && break
4777 done
4778 
4779     else
4780       # If it succeeded, then it was overridden by the user. We will use it
4781       # for the tool.
4782 
4783       # First remove it from the list of overridden variables, so we can test
4784       # for unknown variables in the end.
4785       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4786 
4787       # Check if the provided tool contains a complete path.
4788       tool_specified="$CAT"
4789       tool_basename="${tool_specified##*/}"
4790       if test "x$tool_basename" = "x$tool_specified"; then
4791         # A command without a complete path is provided, search $PATH.
4792         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4793 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4794         # Extract the first word of "$tool_basename", so it can be a program name with args.
4795 set dummy $tool_basename; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_path_CAT+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   case $CAT in
4802   [\\/]* | ?:[\\/]*)
4803   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4804   ;;
4805   *)
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     for ac_exec_ext in '' $ac_executable_extensions; do
4812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818   done
4819 IFS=$as_save_IFS
4820 
4821   ;;
4822 esac
4823 fi
4824 CAT=$ac_cv_path_CAT
4825 if test -n "$CAT"; then
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4827 $as_echo "$CAT" >&6; }
4828 else
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832 
4833 
4834         if test "x$CAT" = x; then
4835           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4836         fi
4837       else
4838         # Otherwise we believe it is a complete path. Use it as it is.
4839         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4840 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4841         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4842 $as_echo_n "checking for CAT... " >&6; }
4843         if test ! -x "$tool_specified"; then
4844           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4845 $as_echo "not found" >&6; }
4846           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4847         fi
4848         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4849 $as_echo "$tool_specified" >&6; }
4850       fi
4851     fi
4852   fi
4853 
4854 
4855 
4856   if test "x$CAT" = x; then
4857     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
4858   fi
4859 
4860 
4861 
4862 
4863 
4864   # Publish this variable in the help.
4865 
4866 
4867   if test "x$CHMOD" = x; then
4868     # The variable is not set by user, try to locate tool using the code snippet
4869     for ac_prog in chmod
4870 do
4871   # Extract the first word of "$ac_prog", so it can be a program name with args.
4872 set dummy $ac_prog; ac_word=$2
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4874 $as_echo_n "checking for $ac_word... " >&6; }
4875 if ${ac_cv_path_CHMOD+:} false; then :
4876   $as_echo_n "(cached) " >&6
4877 else
4878   case $CHMOD in
4879   [\\/]* | ?:[\\/]*)
4880   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4881   ;;
4882   *)
4883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886   IFS=$as_save_IFS
4887   test -z "$as_dir" && as_dir=.
4888     for ac_exec_ext in '' $ac_executable_extensions; do
4889   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4891     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892     break 2
4893   fi
4894 done
4895   done
4896 IFS=$as_save_IFS
4897 
4898   ;;
4899 esac
4900 fi
4901 CHMOD=$ac_cv_path_CHMOD
4902 if test -n "$CHMOD"; then
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4904 $as_echo "$CHMOD" >&6; }
4905 else
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909 
4910 
4911   test -n "$CHMOD" && break
4912 done
4913 
4914   else
4915     # The variable is set, but is it from the command line or the environment?
4916 
4917     # Try to remove the string !CHMOD! from our list.
4918     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
4919     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4920       # If it failed, the variable was not from the command line. Ignore it,
4921       # but warn the user (except for BASH, which is always set by the calling BASH).
4922       if test "xCHMOD" != xBASH; then
4923         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
4924 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
4925       fi
4926       # Try to locate tool using the code snippet
4927       for ac_prog in chmod
4928 do
4929   # Extract the first word of "$ac_prog", so it can be a program name with args.
4930 set dummy $ac_prog; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if ${ac_cv_path_CHMOD+:} false; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   case $CHMOD in
4937   [\\/]* | ?:[\\/]*)
4938   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4939   ;;
4940   *)
4941   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946     for ac_exec_ext in '' $ac_executable_extensions; do
4947   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4948     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
4949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4950     break 2
4951   fi
4952 done
4953   done
4954 IFS=$as_save_IFS
4955 
4956   ;;
4957 esac
4958 fi
4959 CHMOD=$ac_cv_path_CHMOD
4960 if test -n "$CHMOD"; then
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4962 $as_echo "$CHMOD" >&6; }
4963 else
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 $as_echo "no" >&6; }
4966 fi
4967 
4968 
4969   test -n "$CHMOD" && break
4970 done
4971 
4972     else
4973       # If it succeeded, then it was overridden by the user. We will use it
4974       # for the tool.
4975 
4976       # First remove it from the list of overridden variables, so we can test
4977       # for unknown variables in the end.
4978       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4979 
4980       # Check if the provided tool contains a complete path.
4981       tool_specified="$CHMOD"
4982       tool_basename="${tool_specified##*/}"
4983       if test "x$tool_basename" = "x$tool_specified"; then
4984         # A command without a complete path is provided, search $PATH.
4985         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
4986 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
4987         # Extract the first word of "$tool_basename", so it can be a program name with args.
4988 set dummy $tool_basename; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if ${ac_cv_path_CHMOD+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   case $CHMOD in
4995   [\\/]* | ?:[\\/]*)
4996   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4997   ;;
4998   *)
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011   done
5012 IFS=$as_save_IFS
5013 
5014   ;;
5015 esac
5016 fi
5017 CHMOD=$ac_cv_path_CHMOD
5018 if test -n "$CHMOD"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5020 $as_echo "$CHMOD" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5023 $as_echo "no" >&6; }
5024 fi
5025 
5026 
5027         if test "x$CHMOD" = x; then
5028           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5029         fi
5030       else
5031         # Otherwise we believe it is a complete path. Use it as it is.
5032         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5033 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5034         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5035 $as_echo_n "checking for CHMOD... " >&6; }
5036         if test ! -x "$tool_specified"; then
5037           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5038 $as_echo "not found" >&6; }
5039           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5040         fi
5041         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5042 $as_echo "$tool_specified" >&6; }
5043       fi
5044     fi
5045   fi
5046 
5047 
5048 
5049   if test "x$CHMOD" = x; then
5050     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5051   fi
5052 
5053 
5054 
5055 
5056 
5057   # Publish this variable in the help.
5058 
5059 
5060   if test "x$CMP" = x; then
5061     # The variable is not set by user, try to locate tool using the code snippet
5062     for ac_prog in cmp
5063 do
5064   # Extract the first word of "$ac_prog", so it can be a program name with args.
5065 set dummy $ac_prog; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if ${ac_cv_path_CMP+:} false; then :
5069   $as_echo_n "(cached) " >&6
5070 else
5071   case $CMP in
5072   [\\/]* | ?:[\\/]*)
5073   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5074   ;;
5075   *)
5076   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH
5078 do
5079   IFS=$as_save_IFS
5080   test -z "$as_dir" && as_dir=.
5081     for ac_exec_ext in '' $ac_executable_extensions; do
5082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085     break 2
5086   fi
5087 done
5088   done
5089 IFS=$as_save_IFS
5090 
5091   ;;
5092 esac
5093 fi
5094 CMP=$ac_cv_path_CMP
5095 if test -n "$CMP"; then
5096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5097 $as_echo "$CMP" >&6; }
5098 else
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5100 $as_echo "no" >&6; }
5101 fi
5102 
5103 
5104   test -n "$CMP" && break
5105 done
5106 
5107   else
5108     # The variable is set, but is it from the command line or the environment?
5109 
5110     # Try to remove the string !CMP! from our list.
5111     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5112     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5113       # If it failed, the variable was not from the command line. Ignore it,
5114       # but warn the user (except for BASH, which is always set by the calling BASH).
5115       if test "xCMP" != xBASH; then
5116         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5117 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5118       fi
5119       # Try to locate tool using the code snippet
5120       for ac_prog in cmp
5121 do
5122   # Extract the first word of "$ac_prog", so it can be a program name with args.
5123 set dummy $ac_prog; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_CMP+:} false; then :
5127   $as_echo_n "(cached) " >&6
5128 else
5129   case $CMP in
5130   [\\/]* | ?:[\\/]*)
5131   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5132   ;;
5133   *)
5134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139     for ac_exec_ext in '' $ac_executable_extensions; do
5140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5141     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146   done
5147 IFS=$as_save_IFS
5148 
5149   ;;
5150 esac
5151 fi
5152 CMP=$ac_cv_path_CMP
5153 if test -n "$CMP"; then
5154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5155 $as_echo "$CMP" >&6; }
5156 else
5157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5159 fi
5160 
5161 
5162   test -n "$CMP" && break
5163 done
5164 
5165     else
5166       # If it succeeded, then it was overridden by the user. We will use it
5167       # for the tool.
5168 
5169       # First remove it from the list of overridden variables, so we can test
5170       # for unknown variables in the end.
5171       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5172 
5173       # Check if the provided tool contains a complete path.
5174       tool_specified="$CMP"
5175       tool_basename="${tool_specified##*/}"
5176       if test "x$tool_basename" = "x$tool_specified"; then
5177         # A command without a complete path is provided, search $PATH.
5178         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5179 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5180         # Extract the first word of "$tool_basename", so it can be a program name with args.
5181 set dummy $tool_basename; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_path_CMP+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   case $CMP in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5199     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206 
5207   ;;
5208 esac
5209 fi
5210 CMP=$ac_cv_path_CMP
5211 if test -n "$CMP"; then
5212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5213 $as_echo "$CMP" >&6; }
5214 else
5215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5217 fi
5218 
5219 
5220         if test "x$CMP" = x; then
5221           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5222         fi
5223       else
5224         # Otherwise we believe it is a complete path. Use it as it is.
5225         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5226 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5228 $as_echo_n "checking for CMP... " >&6; }
5229         if test ! -x "$tool_specified"; then
5230           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5231 $as_echo "not found" >&6; }
5232           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5233         fi
5234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5235 $as_echo "$tool_specified" >&6; }
5236       fi
5237     fi
5238   fi
5239 
5240 
5241 
5242   if test "x$CMP" = x; then
5243     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5244   fi
5245 
5246 
5247 
5248 
5249 
5250   # Publish this variable in the help.
5251 
5252 
5253   if test "x$COMM" = x; then
5254     # The variable is not set by user, try to locate tool using the code snippet
5255     for ac_prog in comm
5256 do
5257   # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_path_COMM+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   case $COMM in
5265   [\\/]* | ?:[\\/]*)
5266   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5267   ;;
5268   *)
5269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272   IFS=$as_save_IFS
5273   test -z "$as_dir" && as_dir=.
5274     for ac_exec_ext in '' $ac_executable_extensions; do
5275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278     break 2
5279   fi
5280 done
5281   done
5282 IFS=$as_save_IFS
5283 
5284   ;;
5285 esac
5286 fi
5287 COMM=$ac_cv_path_COMM
5288 if test -n "$COMM"; then
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5290 $as_echo "$COMM" >&6; }
5291 else
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295 
5296 
5297   test -n "$COMM" && break
5298 done
5299 
5300   else
5301     # The variable is set, but is it from the command line or the environment?
5302 
5303     # Try to remove the string !COMM! from our list.
5304     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5305     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5306       # If it failed, the variable was not from the command line. Ignore it,
5307       # but warn the user (except for BASH, which is always set by the calling BASH).
5308       if test "xCOMM" != xBASH; then
5309         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5310 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5311       fi
5312       # Try to locate tool using the code snippet
5313       for ac_prog in comm
5314 do
5315   # Extract the first word of "$ac_prog", so it can be a program name with args.
5316 set dummy $ac_prog; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_path_COMM+:} false; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   case $COMM in
5323   [\\/]* | ?:[\\/]*)
5324   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5325   ;;
5326   *)
5327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339   done
5340 IFS=$as_save_IFS
5341 
5342   ;;
5343 esac
5344 fi
5345 COMM=$ac_cv_path_COMM
5346 if test -n "$COMM"; then
5347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5348 $as_echo "$COMM" >&6; }
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353 
5354 
5355   test -n "$COMM" && break
5356 done
5357 
5358     else
5359       # If it succeeded, then it was overridden by the user. We will use it
5360       # for the tool.
5361 
5362       # First remove it from the list of overridden variables, so we can test
5363       # for unknown variables in the end.
5364       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5365 
5366       # Check if the provided tool contains a complete path.
5367       tool_specified="$COMM"
5368       tool_basename="${tool_specified##*/}"
5369       if test "x$tool_basename" = "x$tool_specified"; then
5370         # A command without a complete path is provided, search $PATH.
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5372 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5373         # Extract the first word of "$tool_basename", so it can be a program name with args.
5374 set dummy $tool_basename; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_path_COMM+:} false; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   case $COMM in
5381   [\\/]* | ?:[\\/]*)
5382   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5383   ;;
5384   *)
5385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388   IFS=$as_save_IFS
5389   test -z "$as_dir" && as_dir=.
5390     for ac_exec_ext in '' $ac_executable_extensions; do
5391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5392     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394     break 2
5395   fi
5396 done
5397   done
5398 IFS=$as_save_IFS
5399 
5400   ;;
5401 esac
5402 fi
5403 COMM=$ac_cv_path_COMM
5404 if test -n "$COMM"; then
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5406 $as_echo "$COMM" >&6; }
5407 else
5408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5410 fi
5411 
5412 
5413         if test "x$COMM" = x; then
5414           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5415         fi
5416       else
5417         # Otherwise we believe it is a complete path. Use it as it is.
5418         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5419 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5421 $as_echo_n "checking for COMM... " >&6; }
5422         if test ! -x "$tool_specified"; then
5423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5424 $as_echo "not found" >&6; }
5425           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5426         fi
5427         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5428 $as_echo "$tool_specified" >&6; }
5429       fi
5430     fi
5431   fi
5432 
5433 
5434 
5435   if test "x$COMM" = x; then
5436     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5437   fi
5438 
5439 
5440 
5441 
5442 
5443   # Publish this variable in the help.
5444 
5445 
5446   if test "x$CP" = x; then
5447     # The variable is not set by user, try to locate tool using the code snippet
5448     for ac_prog in cp
5449 do
5450   # Extract the first word of "$ac_prog", so it can be a program name with args.
5451 set dummy $ac_prog; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_path_CP+:} false; then :
5455   $as_echo_n "(cached) " >&6
5456 else
5457   case $CP in
5458   [\\/]* | ?:[\\/]*)
5459   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5460   ;;
5461   *)
5462   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476 
5477   ;;
5478 esac
5479 fi
5480 CP=$ac_cv_path_CP
5481 if test -n "$CP"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5483 $as_echo "$CP" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488 
5489 
5490   test -n "$CP" && break
5491 done
5492 
5493   else
5494     # The variable is set, but is it from the command line or the environment?
5495 
5496     # Try to remove the string !CP! from our list.
5497     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5498     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5499       # If it failed, the variable was not from the command line. Ignore it,
5500       # but warn the user (except for BASH, which is always set by the calling BASH).
5501       if test "xCP" != xBASH; then
5502         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5503 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5504       fi
5505       # Try to locate tool using the code snippet
5506       for ac_prog in cp
5507 do
5508   # Extract the first word of "$ac_prog", so it can be a program name with args.
5509 set dummy $ac_prog; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_path_CP+:} false; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   case $CP in
5516   [\\/]* | ?:[\\/]*)
5517   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5518   ;;
5519   *)
5520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525     for ac_exec_ext in '' $ac_executable_extensions; do
5526   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5527     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532   done
5533 IFS=$as_save_IFS
5534 
5535   ;;
5536 esac
5537 fi
5538 CP=$ac_cv_path_CP
5539 if test -n "$CP"; then
5540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5541 $as_echo "$CP" >&6; }
5542 else
5543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546 
5547 
5548   test -n "$CP" && break
5549 done
5550 
5551     else
5552       # If it succeeded, then it was overridden by the user. We will use it
5553       # for the tool.
5554 
5555       # First remove it from the list of overridden variables, so we can test
5556       # for unknown variables in the end.
5557       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5558 
5559       # Check if the provided tool contains a complete path.
5560       tool_specified="$CP"
5561       tool_basename="${tool_specified##*/}"
5562       if test "x$tool_basename" = "x$tool_specified"; then
5563         # A command without a complete path is provided, search $PATH.
5564         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5565 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5566         # Extract the first word of "$tool_basename", so it can be a program name with args.
5567 set dummy $tool_basename; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_path_CP+:} false; then :
5571   $as_echo_n "(cached) " >&6
5572 else
5573   case $CP in
5574   [\\/]* | ?:[\\/]*)
5575   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5576   ;;
5577   *)
5578   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5579 for as_dir in $PATH
5580 do
5581   IFS=$as_save_IFS
5582   test -z "$as_dir" && as_dir=.
5583     for ac_exec_ext in '' $ac_executable_extensions; do
5584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5585     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5587     break 2
5588   fi
5589 done
5590   done
5591 IFS=$as_save_IFS
5592 
5593   ;;
5594 esac
5595 fi
5596 CP=$ac_cv_path_CP
5597 if test -n "$CP"; then
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5599 $as_echo "$CP" >&6; }
5600 else
5601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5603 fi
5604 
5605 
5606         if test "x$CP" = x; then
5607           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5608         fi
5609       else
5610         # Otherwise we believe it is a complete path. Use it as it is.
5611         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5612 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5613         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5614 $as_echo_n "checking for CP... " >&6; }
5615         if test ! -x "$tool_specified"; then
5616           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5617 $as_echo "not found" >&6; }
5618           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5619         fi
5620         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5621 $as_echo "$tool_specified" >&6; }
5622       fi
5623     fi
5624   fi
5625 
5626 
5627 
5628   if test "x$CP" = x; then
5629     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5630   fi
5631 
5632 
5633 
5634 
5635 
5636   # Publish this variable in the help.
5637 
5638 
5639   if test "x$CPIO" = x; then
5640     # The variable is not set by user, try to locate tool using the code snippet
5641     for ac_prog in cpio
5642 do
5643   # Extract the first word of "$ac_prog", so it can be a program name with args.
5644 set dummy $ac_prog; ac_word=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_path_CPIO+:} false; then :
5648   $as_echo_n "(cached) " >&6
5649 else
5650   case $CPIO in
5651   [\\/]* | ?:[\\/]*)
5652   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5653   ;;
5654   *)
5655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660     for ac_exec_ext in '' $ac_executable_extensions; do
5661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664     break 2
5665   fi
5666 done
5667   done
5668 IFS=$as_save_IFS
5669 
5670   ;;
5671 esac
5672 fi
5673 CPIO=$ac_cv_path_CPIO
5674 if test -n "$CPIO"; then
5675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5676 $as_echo "$CPIO" >&6; }
5677 else
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5680 fi
5681 
5682 
5683   test -n "$CPIO" && break
5684 done
5685 
5686   else
5687     # The variable is set, but is it from the command line or the environment?
5688 
5689     # Try to remove the string !CPIO! from our list.
5690     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
5691     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5692       # If it failed, the variable was not from the command line. Ignore it,
5693       # but warn the user (except for BASH, which is always set by the calling BASH).
5694       if test "xCPIO" != xBASH; then
5695         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
5696 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
5697       fi
5698       # Try to locate tool using the code snippet
5699       for ac_prog in cpio
5700 do
5701   # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy $ac_prog; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_path_CPIO+:} false; then :
5706   $as_echo_n "(cached) " >&6
5707 else
5708   case $CPIO in
5709   [\\/]* | ?:[\\/]*)
5710   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5711   ;;
5712   *)
5713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727 
5728   ;;
5729 esac
5730 fi
5731 CPIO=$ac_cv_path_CPIO
5732 if test -n "$CPIO"; then
5733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5734 $as_echo "$CPIO" >&6; }
5735 else
5736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737 $as_echo "no" >&6; }
5738 fi
5739 
5740 
5741   test -n "$CPIO" && break
5742 done
5743 
5744     else
5745       # If it succeeded, then it was overridden by the user. We will use it
5746       # for the tool.
5747 
5748       # First remove it from the list of overridden variables, so we can test
5749       # for unknown variables in the end.
5750       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5751 
5752       # Check if the provided tool contains a complete path.
5753       tool_specified="$CPIO"
5754       tool_basename="${tool_specified##*/}"
5755       if test "x$tool_basename" = "x$tool_specified"; then
5756         # A command without a complete path is provided, search $PATH.
5757         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
5758 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
5759         # Extract the first word of "$tool_basename", so it can be a program name with args.
5760 set dummy $tool_basename; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_path_CPIO+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   case $CPIO in
5767   [\\/]* | ?:[\\/]*)
5768   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
5769   ;;
5770   *)
5771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774   IFS=$as_save_IFS
5775   test -z "$as_dir" && as_dir=.
5776     for ac_exec_ext in '' $ac_executable_extensions; do
5777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
5779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780     break 2
5781   fi
5782 done
5783   done
5784 IFS=$as_save_IFS
5785 
5786   ;;
5787 esac
5788 fi
5789 CPIO=$ac_cv_path_CPIO
5790 if test -n "$CPIO"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
5792 $as_echo "$CPIO" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797 
5798 
5799         if test "x$CPIO" = x; then
5800           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5801         fi
5802       else
5803         # Otherwise we believe it is a complete path. Use it as it is.
5804         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
5805 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
5806         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
5807 $as_echo_n "checking for CPIO... " >&6; }
5808         if test ! -x "$tool_specified"; then
5809           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5810 $as_echo "not found" >&6; }
5811           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
5812         fi
5813         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5814 $as_echo "$tool_specified" >&6; }
5815       fi
5816     fi
5817   fi
5818 
5819 
5820 
5821   if test "x$CPIO" = x; then
5822     as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5
5823   fi
5824 
5825 
5826 
5827 
5828 
5829   # Publish this variable in the help.
5830 
5831 
5832   if test "x$CUT" = x; then
5833     # The variable is not set by user, try to locate tool using the code snippet
5834     for ac_prog in cut
5835 do
5836   # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_path_CUT+:} false; then :
5841   $as_echo_n "(cached) " >&6
5842 else
5843   case $CUT in
5844   [\\/]* | ?:[\\/]*)
5845   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5846   ;;
5847   *)
5848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5849 for as_dir in $PATH
5850 do
5851   IFS=$as_save_IFS
5852   test -z "$as_dir" && as_dir=.
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5855     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5856     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5857     break 2
5858   fi
5859 done
5860   done
5861 IFS=$as_save_IFS
5862 
5863   ;;
5864 esac
5865 fi
5866 CUT=$ac_cv_path_CUT
5867 if test -n "$CUT"; then
5868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5869 $as_echo "$CUT" >&6; }
5870 else
5871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5872 $as_echo "no" >&6; }
5873 fi
5874 
5875 
5876   test -n "$CUT" && break
5877 done
5878 
5879   else
5880     # The variable is set, but is it from the command line or the environment?
5881 
5882     # Try to remove the string !CUT! from our list.
5883     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5884     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5885       # If it failed, the variable was not from the command line. Ignore it,
5886       # but warn the user (except for BASH, which is always set by the calling BASH).
5887       if test "xCUT" != xBASH; then
5888         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5889 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5890       fi
5891       # Try to locate tool using the code snippet
5892       for ac_prog in cut
5893 do
5894   # Extract the first word of "$ac_prog", so it can be a program name with args.
5895 set dummy $ac_prog; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if ${ac_cv_path_CUT+:} false; then :
5899   $as_echo_n "(cached) " >&6
5900 else
5901   case $CUT in
5902   [\\/]* | ?:[\\/]*)
5903   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5904   ;;
5905   *)
5906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5907 for as_dir in $PATH
5908 do
5909   IFS=$as_save_IFS
5910   test -z "$as_dir" && as_dir=.
5911     for ac_exec_ext in '' $ac_executable_extensions; do
5912   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5913     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5914     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5915     break 2
5916   fi
5917 done
5918   done
5919 IFS=$as_save_IFS
5920 
5921   ;;
5922 esac
5923 fi
5924 CUT=$ac_cv_path_CUT
5925 if test -n "$CUT"; then
5926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5927 $as_echo "$CUT" >&6; }
5928 else
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5930 $as_echo "no" >&6; }
5931 fi
5932 
5933 
5934   test -n "$CUT" && break
5935 done
5936 
5937     else
5938       # If it succeeded, then it was overridden by the user. We will use it
5939       # for the tool.
5940 
5941       # First remove it from the list of overridden variables, so we can test
5942       # for unknown variables in the end.
5943       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5944 
5945       # Check if the provided tool contains a complete path.
5946       tool_specified="$CUT"
5947       tool_basename="${tool_specified##*/}"
5948       if test "x$tool_basename" = "x$tool_specified"; then
5949         # A command without a complete path is provided, search $PATH.
5950         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5951 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5952         # Extract the first word of "$tool_basename", so it can be a program name with args.
5953 set dummy $tool_basename; ac_word=$2
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5955 $as_echo_n "checking for $ac_word... " >&6; }
5956 if ${ac_cv_path_CUT+:} false; then :
5957   $as_echo_n "(cached) " >&6
5958 else
5959   case $CUT in
5960   [\\/]* | ?:[\\/]*)
5961   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5962   ;;
5963   *)
5964   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5966 do
5967   IFS=$as_save_IFS
5968   test -z "$as_dir" && as_dir=.
5969     for ac_exec_ext in '' $ac_executable_extensions; do
5970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973     break 2
5974   fi
5975 done
5976   done
5977 IFS=$as_save_IFS
5978 
5979   ;;
5980 esac
5981 fi
5982 CUT=$ac_cv_path_CUT
5983 if test -n "$CUT"; then
5984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5985 $as_echo "$CUT" >&6; }
5986 else
5987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988 $as_echo "no" >&6; }
5989 fi
5990 
5991 
5992         if test "x$CUT" = x; then
5993           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5994         fi
5995       else
5996         # Otherwise we believe it is a complete path. Use it as it is.
5997         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5998 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
6000 $as_echo_n "checking for CUT... " >&6; }
6001         if test ! -x "$tool_specified"; then
6002           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6003 $as_echo "not found" >&6; }
6004           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
6005         fi
6006         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6007 $as_echo "$tool_specified" >&6; }
6008       fi
6009     fi
6010   fi
6011 
6012 
6013 
6014   if test "x$CUT" = x; then
6015     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
6016   fi
6017 
6018 
6019 
6020 
6021 
6022   # Publish this variable in the help.
6023 
6024 
6025   if test "x$DATE" = x; then
6026     # The variable is not set by user, try to locate tool using the code snippet
6027     for ac_prog in date
6028 do
6029   # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_path_DATE+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   case $DATE in
6037   [\\/]* | ?:[\\/]*)
6038   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6039   ;;
6040   *)
6041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055 
6056   ;;
6057 esac
6058 fi
6059 DATE=$ac_cv_path_DATE
6060 if test -n "$DATE"; then
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6062 $as_echo "$DATE" >&6; }
6063 else
6064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6065 $as_echo "no" >&6; }
6066 fi
6067 
6068 
6069   test -n "$DATE" && break
6070 done
6071 
6072   else
6073     # The variable is set, but is it from the command line or the environment?
6074 
6075     # Try to remove the string !DATE! from our list.
6076     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6077     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6078       # If it failed, the variable was not from the command line. Ignore it,
6079       # but warn the user (except for BASH, which is always set by the calling BASH).
6080       if test "xDATE" != xBASH; then
6081         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6082 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6083       fi
6084       # Try to locate tool using the code snippet
6085       for ac_prog in date
6086 do
6087   # Extract the first word of "$ac_prog", so it can be a program name with args.
6088 set dummy $ac_prog; ac_word=$2
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090 $as_echo_n "checking for $ac_word... " >&6; }
6091 if ${ac_cv_path_DATE+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094   case $DATE in
6095   [\\/]* | ?:[\\/]*)
6096   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6097   ;;
6098   *)
6099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102   IFS=$as_save_IFS
6103   test -z "$as_dir" && as_dir=.
6104     for ac_exec_ext in '' $ac_executable_extensions; do
6105   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108     break 2
6109   fi
6110 done
6111   done
6112 IFS=$as_save_IFS
6113 
6114   ;;
6115 esac
6116 fi
6117 DATE=$ac_cv_path_DATE
6118 if test -n "$DATE"; then
6119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6120 $as_echo "$DATE" >&6; }
6121 else
6122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6123 $as_echo "no" >&6; }
6124 fi
6125 
6126 
6127   test -n "$DATE" && break
6128 done
6129 
6130     else
6131       # If it succeeded, then it was overridden by the user. We will use it
6132       # for the tool.
6133 
6134       # First remove it from the list of overridden variables, so we can test
6135       # for unknown variables in the end.
6136       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6137 
6138       # Check if the provided tool contains a complete path.
6139       tool_specified="$DATE"
6140       tool_basename="${tool_specified##*/}"
6141       if test "x$tool_basename" = "x$tool_specified"; then
6142         # A command without a complete path is provided, search $PATH.
6143         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6144 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6145         # Extract the first word of "$tool_basename", so it can be a program name with args.
6146 set dummy $tool_basename; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if ${ac_cv_path_DATE+:} false; then :
6150   $as_echo_n "(cached) " >&6
6151 else
6152   case $DATE in
6153   [\\/]* | ?:[\\/]*)
6154   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6155   ;;
6156   *)
6157   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6159 do
6160   IFS=$as_save_IFS
6161   test -z "$as_dir" && as_dir=.
6162     for ac_exec_ext in '' $ac_executable_extensions; do
6163   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6165     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166     break 2
6167   fi
6168 done
6169   done
6170 IFS=$as_save_IFS
6171 
6172   ;;
6173 esac
6174 fi
6175 DATE=$ac_cv_path_DATE
6176 if test -n "$DATE"; then
6177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6178 $as_echo "$DATE" >&6; }
6179 else
6180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6182 fi
6183 
6184 
6185         if test "x$DATE" = x; then
6186           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6187         fi
6188       else
6189         # Otherwise we believe it is a complete path. Use it as it is.
6190         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6191 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6192         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6193 $as_echo_n "checking for DATE... " >&6; }
6194         if test ! -x "$tool_specified"; then
6195           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6196 $as_echo "not found" >&6; }
6197           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6198         fi
6199         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6200 $as_echo "$tool_specified" >&6; }
6201       fi
6202     fi
6203   fi
6204 
6205 
6206 
6207   if test "x$DATE" = x; then
6208     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6209   fi
6210 
6211 
6212 
6213 
6214 
6215   # Publish this variable in the help.
6216 
6217 
6218   if test "x$DIFF" = x; then
6219     # The variable is not set by user, try to locate tool using the code snippet
6220     for ac_prog in gdiff diff
6221 do
6222   # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set dummy $ac_prog; ac_word=$2
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225 $as_echo_n "checking for $ac_word... " >&6; }
6226 if ${ac_cv_path_DIFF+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   case $DIFF in
6230   [\\/]* | ?:[\\/]*)
6231   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6232   ;;
6233   *)
6234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235 for as_dir in $PATH
6236 do
6237   IFS=$as_save_IFS
6238   test -z "$as_dir" && as_dir=.
6239     for ac_exec_ext in '' $ac_executable_extensions; do
6240   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6241     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6242     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6243     break 2
6244   fi
6245 done
6246   done
6247 IFS=$as_save_IFS
6248 
6249   ;;
6250 esac
6251 fi
6252 DIFF=$ac_cv_path_DIFF
6253 if test -n "$DIFF"; then
6254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6255 $as_echo "$DIFF" >&6; }
6256 else
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6258 $as_echo "no" >&6; }
6259 fi
6260 
6261 
6262   test -n "$DIFF" && break
6263 done
6264 
6265   else
6266     # The variable is set, but is it from the command line or the environment?
6267 
6268     # Try to remove the string !DIFF! from our list.
6269     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6270     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6271       # If it failed, the variable was not from the command line. Ignore it,
6272       # but warn the user (except for BASH, which is always set by the calling BASH).
6273       if test "xDIFF" != xBASH; then
6274         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6275 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6276       fi
6277       # Try to locate tool using the code snippet
6278       for ac_prog in gdiff diff
6279 do
6280   # Extract the first word of "$ac_prog", so it can be a program name with args.
6281 set dummy $ac_prog; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_path_DIFF+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   case $DIFF in
6288   [\\/]* | ?:[\\/]*)
6289   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6290   ;;
6291   *)
6292   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6299     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304   done
6305 IFS=$as_save_IFS
6306 
6307   ;;
6308 esac
6309 fi
6310 DIFF=$ac_cv_path_DIFF
6311 if test -n "$DIFF"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6313 $as_echo "$DIFF" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318 
6319 
6320   test -n "$DIFF" && break
6321 done
6322 
6323     else
6324       # If it succeeded, then it was overridden by the user. We will use it
6325       # for the tool.
6326 
6327       # First remove it from the list of overridden variables, so we can test
6328       # for unknown variables in the end.
6329       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6330 
6331       # Check if the provided tool contains a complete path.
6332       tool_specified="$DIFF"
6333       tool_basename="${tool_specified##*/}"
6334       if test "x$tool_basename" = "x$tool_specified"; then
6335         # A command without a complete path is provided, search $PATH.
6336         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6337 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6338         # Extract the first word of "$tool_basename", so it can be a program name with args.
6339 set dummy $tool_basename; ac_word=$2
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6341 $as_echo_n "checking for $ac_word... " >&6; }
6342 if ${ac_cv_path_DIFF+:} false; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345   case $DIFF in
6346   [\\/]* | ?:[\\/]*)
6347   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6348   ;;
6349   *)
6350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351 for as_dir in $PATH
6352 do
6353   IFS=$as_save_IFS
6354   test -z "$as_dir" && as_dir=.
6355     for ac_exec_ext in '' $ac_executable_extensions; do
6356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6357     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359     break 2
6360   fi
6361 done
6362   done
6363 IFS=$as_save_IFS
6364 
6365   ;;
6366 esac
6367 fi
6368 DIFF=$ac_cv_path_DIFF
6369 if test -n "$DIFF"; then
6370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6371 $as_echo "$DIFF" >&6; }
6372 else
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6375 fi
6376 
6377 
6378         if test "x$DIFF" = x; then
6379           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6380         fi
6381       else
6382         # Otherwise we believe it is a complete path. Use it as it is.
6383         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6384 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6385         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6386 $as_echo_n "checking for DIFF... " >&6; }
6387         if test ! -x "$tool_specified"; then
6388           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6389 $as_echo "not found" >&6; }
6390           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6391         fi
6392         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6393 $as_echo "$tool_specified" >&6; }
6394       fi
6395     fi
6396   fi
6397 
6398 
6399 
6400   if test "x$DIFF" = x; then
6401     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6402   fi
6403 
6404 
6405 
6406 
6407 
6408   # Publish this variable in the help.
6409 
6410 
6411   if test "x$DIRNAME" = x; then
6412     # The variable is not set by user, try to locate tool using the code snippet
6413     for ac_prog in dirname
6414 do
6415   # Extract the first word of "$ac_prog", so it can be a program name with args.
6416 set dummy $ac_prog; ac_word=$2
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6418 $as_echo_n "checking for $ac_word... " >&6; }
6419 if ${ac_cv_path_DIRNAME+:} false; then :
6420   $as_echo_n "(cached) " >&6
6421 else
6422   case $DIRNAME in
6423   [\\/]* | ?:[\\/]*)
6424   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6425   ;;
6426   *)
6427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6429 do
6430   IFS=$as_save_IFS
6431   test -z "$as_dir" && as_dir=.
6432     for ac_exec_ext in '' $ac_executable_extensions; do
6433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6434     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436     break 2
6437   fi
6438 done
6439   done
6440 IFS=$as_save_IFS
6441 
6442   ;;
6443 esac
6444 fi
6445 DIRNAME=$ac_cv_path_DIRNAME
6446 if test -n "$DIRNAME"; then
6447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6448 $as_echo "$DIRNAME" >&6; }
6449 else
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6452 fi
6453 
6454 
6455   test -n "$DIRNAME" && break
6456 done
6457 
6458   else
6459     # The variable is set, but is it from the command line or the environment?
6460 
6461     # Try to remove the string !DIRNAME! from our list.
6462     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6463     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6464       # If it failed, the variable was not from the command line. Ignore it,
6465       # but warn the user (except for BASH, which is always set by the calling BASH).
6466       if test "xDIRNAME" != xBASH; then
6467         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6468 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6469       fi
6470       # Try to locate tool using the code snippet
6471       for ac_prog in dirname
6472 do
6473   # Extract the first word of "$ac_prog", so it can be a program name with args.
6474 set dummy $ac_prog; ac_word=$2
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; }
6477 if ${ac_cv_path_DIRNAME+:} false; then :
6478   $as_echo_n "(cached) " >&6
6479 else
6480   case $DIRNAME in
6481   [\\/]* | ?:[\\/]*)
6482   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6483   ;;
6484   *)
6485   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH
6487 do
6488   IFS=$as_save_IFS
6489   test -z "$as_dir" && as_dir=.
6490     for ac_exec_ext in '' $ac_executable_extensions; do
6491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6492     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494     break 2
6495   fi
6496 done
6497   done
6498 IFS=$as_save_IFS
6499 
6500   ;;
6501 esac
6502 fi
6503 DIRNAME=$ac_cv_path_DIRNAME
6504 if test -n "$DIRNAME"; then
6505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6506 $as_echo "$DIRNAME" >&6; }
6507 else
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6510 fi
6511 
6512 
6513   test -n "$DIRNAME" && break
6514 done
6515 
6516     else
6517       # If it succeeded, then it was overridden by the user. We will use it
6518       # for the tool.
6519 
6520       # First remove it from the list of overridden variables, so we can test
6521       # for unknown variables in the end.
6522       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6523 
6524       # Check if the provided tool contains a complete path.
6525       tool_specified="$DIRNAME"
6526       tool_basename="${tool_specified##*/}"
6527       if test "x$tool_basename" = "x$tool_specified"; then
6528         # A command without a complete path is provided, search $PATH.
6529         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6530 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6531         # Extract the first word of "$tool_basename", so it can be a program name with args.
6532 set dummy $tool_basename; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_path_DIRNAME+:} false; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   case $DIRNAME in
6539   [\\/]* | ?:[\\/]*)
6540   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6541   ;;
6542   *)
6543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6545 do
6546   IFS=$as_save_IFS
6547   test -z "$as_dir" && as_dir=.
6548     for ac_exec_ext in '' $ac_executable_extensions; do
6549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552     break 2
6553   fi
6554 done
6555   done
6556 IFS=$as_save_IFS
6557 
6558   ;;
6559 esac
6560 fi
6561 DIRNAME=$ac_cv_path_DIRNAME
6562 if test -n "$DIRNAME"; then
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6564 $as_echo "$DIRNAME" >&6; }
6565 else
6566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6567 $as_echo "no" >&6; }
6568 fi
6569 
6570 
6571         if test "x$DIRNAME" = x; then
6572           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6573         fi
6574       else
6575         # Otherwise we believe it is a complete path. Use it as it is.
6576         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6577 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6578         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6579 $as_echo_n "checking for DIRNAME... " >&6; }
6580         if test ! -x "$tool_specified"; then
6581           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6582 $as_echo "not found" >&6; }
6583           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6584         fi
6585         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6586 $as_echo "$tool_specified" >&6; }
6587       fi
6588     fi
6589   fi
6590 
6591 
6592 
6593   if test "x$DIRNAME" = x; then
6594     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6595   fi
6596 
6597 
6598 
6599 
6600 
6601   # Publish this variable in the help.
6602 
6603 
6604   if test "x$ECHO" = x; then
6605     # The variable is not set by user, try to locate tool using the code snippet
6606     for ac_prog in echo
6607 do
6608   # Extract the first word of "$ac_prog", so it can be a program name with args.
6609 set dummy $ac_prog; ac_word=$2
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611 $as_echo_n "checking for $ac_word... " >&6; }
6612 if ${ac_cv_path_ECHO+:} false; then :
6613   $as_echo_n "(cached) " >&6
6614 else
6615   case $ECHO in
6616   [\\/]* | ?:[\\/]*)
6617   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6618   ;;
6619   *)
6620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634 
6635   ;;
6636 esac
6637 fi
6638 ECHO=$ac_cv_path_ECHO
6639 if test -n "$ECHO"; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6641 $as_echo "$ECHO" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646 
6647 
6648   test -n "$ECHO" && break
6649 done
6650 
6651   else
6652     # The variable is set, but is it from the command line or the environment?
6653 
6654     # Try to remove the string !ECHO! from our list.
6655     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6656     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6657       # If it failed, the variable was not from the command line. Ignore it,
6658       # but warn the user (except for BASH, which is always set by the calling BASH).
6659       if test "xECHO" != xBASH; then
6660         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6661 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6662       fi
6663       # Try to locate tool using the code snippet
6664       for ac_prog in echo
6665 do
6666   # Extract the first word of "$ac_prog", so it can be a program name with args.
6667 set dummy $ac_prog; ac_word=$2
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669 $as_echo_n "checking for $ac_word... " >&6; }
6670 if ${ac_cv_path_ECHO+:} false; then :
6671   $as_echo_n "(cached) " >&6
6672 else
6673   case $ECHO in
6674   [\\/]* | ?:[\\/]*)
6675   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6676   ;;
6677   *)
6678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679 for as_dir in $PATH
6680 do
6681   IFS=$as_save_IFS
6682   test -z "$as_dir" && as_dir=.
6683     for ac_exec_ext in '' $ac_executable_extensions; do
6684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6685     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687     break 2
6688   fi
6689 done
6690   done
6691 IFS=$as_save_IFS
6692 
6693   ;;
6694 esac
6695 fi
6696 ECHO=$ac_cv_path_ECHO
6697 if test -n "$ECHO"; then
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6699 $as_echo "$ECHO" >&6; }
6700 else
6701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6703 fi
6704 
6705 
6706   test -n "$ECHO" && break
6707 done
6708 
6709     else
6710       # If it succeeded, then it was overridden by the user. We will use it
6711       # for the tool.
6712 
6713       # First remove it from the list of overridden variables, so we can test
6714       # for unknown variables in the end.
6715       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6716 
6717       # Check if the provided tool contains a complete path.
6718       tool_specified="$ECHO"
6719       tool_basename="${tool_specified##*/}"
6720       if test "x$tool_basename" = "x$tool_specified"; then
6721         # A command without a complete path is provided, search $PATH.
6722         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6723 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6724         # Extract the first word of "$tool_basename", so it can be a program name with args.
6725 set dummy $tool_basename; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727 $as_echo_n "checking for $ac_word... " >&6; }
6728 if ${ac_cv_path_ECHO+:} false; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731   case $ECHO in
6732   [\\/]* | ?:[\\/]*)
6733   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6734   ;;
6735   *)
6736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6738 do
6739   IFS=$as_save_IFS
6740   test -z "$as_dir" && as_dir=.
6741     for ac_exec_ext in '' $ac_executable_extensions; do
6742   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6743     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6744     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745     break 2
6746   fi
6747 done
6748   done
6749 IFS=$as_save_IFS
6750 
6751   ;;
6752 esac
6753 fi
6754 ECHO=$ac_cv_path_ECHO
6755 if test -n "$ECHO"; then
6756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6757 $as_echo "$ECHO" >&6; }
6758 else
6759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762 
6763 
6764         if test "x$ECHO" = x; then
6765           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6766         fi
6767       else
6768         # Otherwise we believe it is a complete path. Use it as it is.
6769         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6770 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6771         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6772 $as_echo_n "checking for ECHO... " >&6; }
6773         if test ! -x "$tool_specified"; then
6774           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6775 $as_echo "not found" >&6; }
6776           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6777         fi
6778         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6779 $as_echo "$tool_specified" >&6; }
6780       fi
6781     fi
6782   fi
6783 
6784 
6785 
6786   if test "x$ECHO" = x; then
6787     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6788   fi
6789 
6790 
6791 
6792 
6793 
6794   # Publish this variable in the help.
6795 
6796 
6797   if test "x$EXPR" = x; then
6798     # The variable is not set by user, try to locate tool using the code snippet
6799     for ac_prog in expr
6800 do
6801   # Extract the first word of "$ac_prog", so it can be a program name with args.
6802 set dummy $ac_prog; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if ${ac_cv_path_EXPR+:} false; then :
6806   $as_echo_n "(cached) " >&6
6807 else
6808   case $EXPR in
6809   [\\/]* | ?:[\\/]*)
6810   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6811   ;;
6812   *)
6813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816   IFS=$as_save_IFS
6817   test -z "$as_dir" && as_dir=.
6818     for ac_exec_ext in '' $ac_executable_extensions; do
6819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822     break 2
6823   fi
6824 done
6825   done
6826 IFS=$as_save_IFS
6827 
6828   ;;
6829 esac
6830 fi
6831 EXPR=$ac_cv_path_EXPR
6832 if test -n "$EXPR"; then
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6834 $as_echo "$EXPR" >&6; }
6835 else
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6838 fi
6839 
6840 
6841   test -n "$EXPR" && break
6842 done
6843 
6844   else
6845     # The variable is set, but is it from the command line or the environment?
6846 
6847     # Try to remove the string !EXPR! from our list.
6848     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6849     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6850       # If it failed, the variable was not from the command line. Ignore it,
6851       # but warn the user (except for BASH, which is always set by the calling BASH).
6852       if test "xEXPR" != xBASH; then
6853         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6854 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6855       fi
6856       # Try to locate tool using the code snippet
6857       for ac_prog in expr
6858 do
6859   # Extract the first word of "$ac_prog", so it can be a program name with args.
6860 set dummy $ac_prog; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_path_EXPR+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   case $EXPR in
6867   [\\/]* | ?:[\\/]*)
6868   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6869   ;;
6870   *)
6871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885 
6886   ;;
6887 esac
6888 fi
6889 EXPR=$ac_cv_path_EXPR
6890 if test -n "$EXPR"; then
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6892 $as_echo "$EXPR" >&6; }
6893 else
6894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6896 fi
6897 
6898 
6899   test -n "$EXPR" && break
6900 done
6901 
6902     else
6903       # If it succeeded, then it was overridden by the user. We will use it
6904       # for the tool.
6905 
6906       # First remove it from the list of overridden variables, so we can test
6907       # for unknown variables in the end.
6908       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6909 
6910       # Check if the provided tool contains a complete path.
6911       tool_specified="$EXPR"
6912       tool_basename="${tool_specified##*/}"
6913       if test "x$tool_basename" = "x$tool_specified"; then
6914         # A command without a complete path is provided, search $PATH.
6915         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6916 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6917         # Extract the first word of "$tool_basename", so it can be a program name with args.
6918 set dummy $tool_basename; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_path_EXPR+:} false; then :
6922   $as_echo_n "(cached) " >&6
6923 else
6924   case $EXPR in
6925   [\\/]* | ?:[\\/]*)
6926   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6927   ;;
6928   *)
6929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6931 do
6932   IFS=$as_save_IFS
6933   test -z "$as_dir" && as_dir=.
6934     for ac_exec_ext in '' $ac_executable_extensions; do
6935   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6936     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938     break 2
6939   fi
6940 done
6941   done
6942 IFS=$as_save_IFS
6943 
6944   ;;
6945 esac
6946 fi
6947 EXPR=$ac_cv_path_EXPR
6948 if test -n "$EXPR"; then
6949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6950 $as_echo "$EXPR" >&6; }
6951 else
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6953 $as_echo "no" >&6; }
6954 fi
6955 
6956 
6957         if test "x$EXPR" = x; then
6958           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6959         fi
6960       else
6961         # Otherwise we believe it is a complete path. Use it as it is.
6962         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6963 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6964         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6965 $as_echo_n "checking for EXPR... " >&6; }
6966         if test ! -x "$tool_specified"; then
6967           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6968 $as_echo "not found" >&6; }
6969           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6970         fi
6971         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6972 $as_echo "$tool_specified" >&6; }
6973       fi
6974     fi
6975   fi
6976 
6977 
6978 
6979   if test "x$EXPR" = x; then
6980     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6981   fi
6982 
6983 
6984 
6985 
6986 
6987   # Publish this variable in the help.
6988 
6989 
6990   if test "x$FILE" = x; then
6991     # The variable is not set by user, try to locate tool using the code snippet
6992     for ac_prog in file
6993 do
6994   # Extract the first word of "$ac_prog", so it can be a program name with args.
6995 set dummy $ac_prog; ac_word=$2
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997 $as_echo_n "checking for $ac_word... " >&6; }
6998 if ${ac_cv_path_FILE+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 else
7001   case $FILE in
7002   [\\/]* | ?:[\\/]*)
7003   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7004   ;;
7005   *)
7006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_exec_ext in '' $ac_executable_extensions; do
7012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018   done
7019 IFS=$as_save_IFS
7020 
7021   ;;
7022 esac
7023 fi
7024 FILE=$ac_cv_path_FILE
7025 if test -n "$FILE"; then
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7027 $as_echo "$FILE" >&6; }
7028 else
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032 
7033 
7034   test -n "$FILE" && break
7035 done
7036 
7037   else
7038     # The variable is set, but is it from the command line or the environment?
7039 
7040     # Try to remove the string !FILE! from our list.
7041     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
7042     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7043       # If it failed, the variable was not from the command line. Ignore it,
7044       # but warn the user (except for BASH, which is always set by the calling BASH).
7045       if test "xFILE" != xBASH; then
7046         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7047 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7048       fi
7049       # Try to locate tool using the code snippet
7050       for ac_prog in file
7051 do
7052   # Extract the first word of "$ac_prog", so it can be a program name with args.
7053 set dummy $ac_prog; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if ${ac_cv_path_FILE+:} false; then :
7057   $as_echo_n "(cached) " >&6
7058 else
7059   case $FILE in
7060   [\\/]* | ?:[\\/]*)
7061   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7062   ;;
7063   *)
7064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7066 do
7067   IFS=$as_save_IFS
7068   test -z "$as_dir" && as_dir=.
7069     for ac_exec_ext in '' $ac_executable_extensions; do
7070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073     break 2
7074   fi
7075 done
7076   done
7077 IFS=$as_save_IFS
7078 
7079   ;;
7080 esac
7081 fi
7082 FILE=$ac_cv_path_FILE
7083 if test -n "$FILE"; then
7084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7085 $as_echo "$FILE" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090 
7091 
7092   test -n "$FILE" && break
7093 done
7094 
7095     else
7096       # If it succeeded, then it was overridden by the user. We will use it
7097       # for the tool.
7098 
7099       # First remove it from the list of overridden variables, so we can test
7100       # for unknown variables in the end.
7101       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7102 
7103       # Check if the provided tool contains a complete path.
7104       tool_specified="$FILE"
7105       tool_basename="${tool_specified##*/}"
7106       if test "x$tool_basename" = "x$tool_specified"; then
7107         # A command without a complete path is provided, search $PATH.
7108         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7109 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7110         # Extract the first word of "$tool_basename", so it can be a program name with args.
7111 set dummy $tool_basename; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_path_FILE+:} false; then :
7115   $as_echo_n "(cached) " >&6
7116 else
7117   case $FILE in
7118   [\\/]* | ?:[\\/]*)
7119   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7120   ;;
7121   *)
7122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7124 do
7125   IFS=$as_save_IFS
7126   test -z "$as_dir" && as_dir=.
7127     for ac_exec_ext in '' $ac_executable_extensions; do
7128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7129     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131     break 2
7132   fi
7133 done
7134   done
7135 IFS=$as_save_IFS
7136 
7137   ;;
7138 esac
7139 fi
7140 FILE=$ac_cv_path_FILE
7141 if test -n "$FILE"; then
7142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7143 $as_echo "$FILE" >&6; }
7144 else
7145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148 
7149 
7150         if test "x$FILE" = x; then
7151           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7152         fi
7153       else
7154         # Otherwise we believe it is a complete path. Use it as it is.
7155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7156 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7157         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7158 $as_echo_n "checking for FILE... " >&6; }
7159         if test ! -x "$tool_specified"; then
7160           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7161 $as_echo "not found" >&6; }
7162           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7163         fi
7164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7165 $as_echo "$tool_specified" >&6; }
7166       fi
7167     fi
7168   fi
7169 
7170 
7171 
7172   if test "x$FILE" = x; then
7173     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7174   fi
7175 
7176 
7177 
7178 
7179 
7180   # Publish this variable in the help.
7181 
7182 
7183   if test "x$FIND" = x; then
7184     # The variable is not set by user, try to locate tool using the code snippet
7185     for ac_prog in find
7186 do
7187   # Extract the first word of "$ac_prog", so it can be a program name with args.
7188 set dummy $ac_prog; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_path_FIND+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   case $FIND in
7195   [\\/]* | ?:[\\/]*)
7196   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7197   ;;
7198   *)
7199   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202   IFS=$as_save_IFS
7203   test -z "$as_dir" && as_dir=.
7204     for ac_exec_ext in '' $ac_executable_extensions; do
7205   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208     break 2
7209   fi
7210 done
7211   done
7212 IFS=$as_save_IFS
7213 
7214   ;;
7215 esac
7216 fi
7217 FIND=$ac_cv_path_FIND
7218 if test -n "$FIND"; then
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7220 $as_echo "$FIND" >&6; }
7221 else
7222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7224 fi
7225 
7226 
7227   test -n "$FIND" && break
7228 done
7229 
7230   else
7231     # The variable is set, but is it from the command line or the environment?
7232 
7233     # Try to remove the string !FIND! from our list.
7234     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7235     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7236       # If it failed, the variable was not from the command line. Ignore it,
7237       # but warn the user (except for BASH, which is always set by the calling BASH).
7238       if test "xFIND" != xBASH; then
7239         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7240 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7241       fi
7242       # Try to locate tool using the code snippet
7243       for ac_prog in find
7244 do
7245   # Extract the first word of "$ac_prog", so it can be a program name with args.
7246 set dummy $ac_prog; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_path_FIND+:} false; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   case $FIND in
7253   [\\/]* | ?:[\\/]*)
7254   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7255   ;;
7256   *)
7257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271 
7272   ;;
7273 esac
7274 fi
7275 FIND=$ac_cv_path_FIND
7276 if test -n "$FIND"; then
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7278 $as_echo "$FIND" >&6; }
7279 else
7280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7282 fi
7283 
7284 
7285   test -n "$FIND" && break
7286 done
7287 
7288     else
7289       # If it succeeded, then it was overridden by the user. We will use it
7290       # for the tool.
7291 
7292       # First remove it from the list of overridden variables, so we can test
7293       # for unknown variables in the end.
7294       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7295 
7296       # Check if the provided tool contains a complete path.
7297       tool_specified="$FIND"
7298       tool_basename="${tool_specified##*/}"
7299       if test "x$tool_basename" = "x$tool_specified"; then
7300         # A command without a complete path is provided, search $PATH.
7301         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7302 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7303         # Extract the first word of "$tool_basename", so it can be a program name with args.
7304 set dummy $tool_basename; ac_word=$2
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7306 $as_echo_n "checking for $ac_word... " >&6; }
7307 if ${ac_cv_path_FIND+:} false; then :
7308   $as_echo_n "(cached) " >&6
7309 else
7310   case $FIND in
7311   [\\/]* | ?:[\\/]*)
7312   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7313   ;;
7314   *)
7315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320     for ac_exec_ext in '' $ac_executable_extensions; do
7321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327   done
7328 IFS=$as_save_IFS
7329 
7330   ;;
7331 esac
7332 fi
7333 FIND=$ac_cv_path_FIND
7334 if test -n "$FIND"; then
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7336 $as_echo "$FIND" >&6; }
7337 else
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341 
7342 
7343         if test "x$FIND" = x; then
7344           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7345         fi
7346       else
7347         # Otherwise we believe it is a complete path. Use it as it is.
7348         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7349 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7350         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7351 $as_echo_n "checking for FIND... " >&6; }
7352         if test ! -x "$tool_specified"; then
7353           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7354 $as_echo "not found" >&6; }
7355           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7356         fi
7357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7358 $as_echo "$tool_specified" >&6; }
7359       fi
7360     fi
7361   fi
7362 
7363 
7364 
7365   if test "x$FIND" = x; then
7366     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7367   fi
7368 
7369 
7370 
7371 
7372 
7373   # Publish this variable in the help.
7374 
7375 
7376   if test "x$HEAD" = x; then
7377     # The variable is not set by user, try to locate tool using the code snippet
7378     for ac_prog in head
7379 do
7380   # Extract the first word of "$ac_prog", so it can be a program name with args.
7381 set dummy $ac_prog; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_path_HEAD+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   case $HEAD in
7388   [\\/]* | ?:[\\/]*)
7389   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7390   ;;
7391   *)
7392   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397     for ac_exec_ext in '' $ac_executable_extensions; do
7398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404   done
7405 IFS=$as_save_IFS
7406 
7407   ;;
7408 esac
7409 fi
7410 HEAD=$ac_cv_path_HEAD
7411 if test -n "$HEAD"; then
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7413 $as_echo "$HEAD" >&6; }
7414 else
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7417 fi
7418 
7419 
7420   test -n "$HEAD" && break
7421 done
7422 
7423   else
7424     # The variable is set, but is it from the command line or the environment?
7425 
7426     # Try to remove the string !HEAD! from our list.
7427     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7428     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7429       # If it failed, the variable was not from the command line. Ignore it,
7430       # but warn the user (except for BASH, which is always set by the calling BASH).
7431       if test "xHEAD" != xBASH; then
7432         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7433 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7434       fi
7435       # Try to locate tool using the code snippet
7436       for ac_prog in head
7437 do
7438   # Extract the first word of "$ac_prog", so it can be a program name with args.
7439 set dummy $ac_prog; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_path_HEAD+:} false; then :
7443   $as_echo_n "(cached) " >&6
7444 else
7445   case $HEAD in
7446   [\\/]* | ?:[\\/]*)
7447   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7448   ;;
7449   *)
7450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451 for as_dir in $PATH
7452 do
7453   IFS=$as_save_IFS
7454   test -z "$as_dir" && as_dir=.
7455     for ac_exec_ext in '' $ac_executable_extensions; do
7456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459     break 2
7460   fi
7461 done
7462   done
7463 IFS=$as_save_IFS
7464 
7465   ;;
7466 esac
7467 fi
7468 HEAD=$ac_cv_path_HEAD
7469 if test -n "$HEAD"; then
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7471 $as_echo "$HEAD" >&6; }
7472 else
7473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7475 fi
7476 
7477 
7478   test -n "$HEAD" && break
7479 done
7480 
7481     else
7482       # If it succeeded, then it was overridden by the user. We will use it
7483       # for the tool.
7484 
7485       # First remove it from the list of overridden variables, so we can test
7486       # for unknown variables in the end.
7487       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7488 
7489       # Check if the provided tool contains a complete path.
7490       tool_specified="$HEAD"
7491       tool_basename="${tool_specified##*/}"
7492       if test "x$tool_basename" = "x$tool_specified"; then
7493         # A command without a complete path is provided, search $PATH.
7494         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7495 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7496         # Extract the first word of "$tool_basename", so it can be a program name with args.
7497 set dummy $tool_basename; ac_word=$2
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499 $as_echo_n "checking for $ac_word... " >&6; }
7500 if ${ac_cv_path_HEAD+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   case $HEAD in
7504   [\\/]* | ?:[\\/]*)
7505   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7506   ;;
7507   *)
7508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513     for ac_exec_ext in '' $ac_executable_extensions; do
7514   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7515     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7516     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520   done
7521 IFS=$as_save_IFS
7522 
7523   ;;
7524 esac
7525 fi
7526 HEAD=$ac_cv_path_HEAD
7527 if test -n "$HEAD"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7529 $as_echo "$HEAD" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534 
7535 
7536         if test "x$HEAD" = x; then
7537           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7538         fi
7539       else
7540         # Otherwise we believe it is a complete path. Use it as it is.
7541         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7542 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7543         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7544 $as_echo_n "checking for HEAD... " >&6; }
7545         if test ! -x "$tool_specified"; then
7546           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7547 $as_echo "not found" >&6; }
7548           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7549         fi
7550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7551 $as_echo "$tool_specified" >&6; }
7552       fi
7553     fi
7554   fi
7555 
7556 
7557 
7558   if test "x$HEAD" = x; then
7559     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7560   fi
7561 
7562 
7563 
7564 
7565 
7566   # Publish this variable in the help.
7567 
7568 
7569   if test "x$LN" = x; then
7570     # The variable is not set by user, try to locate tool using the code snippet
7571     for ac_prog in ln
7572 do
7573   # Extract the first word of "$ac_prog", so it can be a program name with args.
7574 set dummy $ac_prog; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_path_LN+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   case $LN in
7581   [\\/]* | ?:[\\/]*)
7582   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7583   ;;
7584   *)
7585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586 for as_dir in $PATH
7587 do
7588   IFS=$as_save_IFS
7589   test -z "$as_dir" && as_dir=.
7590     for ac_exec_ext in '' $ac_executable_extensions; do
7591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7592     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7594     break 2
7595   fi
7596 done
7597   done
7598 IFS=$as_save_IFS
7599 
7600   ;;
7601 esac
7602 fi
7603 LN=$ac_cv_path_LN
7604 if test -n "$LN"; then
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7606 $as_echo "$LN" >&6; }
7607 else
7608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611 
7612 
7613   test -n "$LN" && break
7614 done
7615 
7616   else
7617     # The variable is set, but is it from the command line or the environment?
7618 
7619     # Try to remove the string !LN! from our list.
7620     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7621     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7622       # If it failed, the variable was not from the command line. Ignore it,
7623       # but warn the user (except for BASH, which is always set by the calling BASH).
7624       if test "xLN" != xBASH; then
7625         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7626 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7627       fi
7628       # Try to locate tool using the code snippet
7629       for ac_prog in ln
7630 do
7631   # Extract the first word of "$ac_prog", so it can be a program name with args.
7632 set dummy $ac_prog; ac_word=$2
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634 $as_echo_n "checking for $ac_word... " >&6; }
7635 if ${ac_cv_path_LN+:} false; then :
7636   $as_echo_n "(cached) " >&6
7637 else
7638   case $LN in
7639   [\\/]* | ?:[\\/]*)
7640   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7641   ;;
7642   *)
7643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644 for as_dir in $PATH
7645 do
7646   IFS=$as_save_IFS
7647   test -z "$as_dir" && as_dir=.
7648     for ac_exec_ext in '' $ac_executable_extensions; do
7649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7650     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652     break 2
7653   fi
7654 done
7655   done
7656 IFS=$as_save_IFS
7657 
7658   ;;
7659 esac
7660 fi
7661 LN=$ac_cv_path_LN
7662 if test -n "$LN"; then
7663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7664 $as_echo "$LN" >&6; }
7665 else
7666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667 $as_echo "no" >&6; }
7668 fi
7669 
7670 
7671   test -n "$LN" && break
7672 done
7673 
7674     else
7675       # If it succeeded, then it was overridden by the user. We will use it
7676       # for the tool.
7677 
7678       # First remove it from the list of overridden variables, so we can test
7679       # for unknown variables in the end.
7680       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7681 
7682       # Check if the provided tool contains a complete path.
7683       tool_specified="$LN"
7684       tool_basename="${tool_specified##*/}"
7685       if test "x$tool_basename" = "x$tool_specified"; then
7686         # A command without a complete path is provided, search $PATH.
7687         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7688 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7689         # Extract the first word of "$tool_basename", so it can be a program name with args.
7690 set dummy $tool_basename; ac_word=$2
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692 $as_echo_n "checking for $ac_word... " >&6; }
7693 if ${ac_cv_path_LN+:} false; then :
7694   $as_echo_n "(cached) " >&6
7695 else
7696   case $LN in
7697   [\\/]* | ?:[\\/]*)
7698   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7699   ;;
7700   *)
7701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704   IFS=$as_save_IFS
7705   test -z "$as_dir" && as_dir=.
7706     for ac_exec_ext in '' $ac_executable_extensions; do
7707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7708     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710     break 2
7711   fi
7712 done
7713   done
7714 IFS=$as_save_IFS
7715 
7716   ;;
7717 esac
7718 fi
7719 LN=$ac_cv_path_LN
7720 if test -n "$LN"; then
7721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7722 $as_echo "$LN" >&6; }
7723 else
7724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7726 fi
7727 
7728 
7729         if test "x$LN" = x; then
7730           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7731         fi
7732       else
7733         # Otherwise we believe it is a complete path. Use it as it is.
7734         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7735 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7736         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7737 $as_echo_n "checking for LN... " >&6; }
7738         if test ! -x "$tool_specified"; then
7739           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7740 $as_echo "not found" >&6; }
7741           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7742         fi
7743         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7744 $as_echo "$tool_specified" >&6; }
7745       fi
7746     fi
7747   fi
7748 
7749 
7750 
7751   if test "x$LN" = x; then
7752     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7753   fi
7754 
7755 
7756 
7757 
7758 
7759   # Publish this variable in the help.
7760 
7761 
7762   if test "x$LS" = x; then
7763     # The variable is not set by user, try to locate tool using the code snippet
7764     for ac_prog in ls
7765 do
7766   # Extract the first word of "$ac_prog", so it can be a program name with args.
7767 set dummy $ac_prog; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_path_LS+:} false; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773   case $LS in
7774   [\\/]* | ?:[\\/]*)
7775   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7776   ;;
7777   *)
7778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779 for as_dir in $PATH
7780 do
7781   IFS=$as_save_IFS
7782   test -z "$as_dir" && as_dir=.
7783     for ac_exec_ext in '' $ac_executable_extensions; do
7784   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7785     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7787     break 2
7788   fi
7789 done
7790   done
7791 IFS=$as_save_IFS
7792 
7793   ;;
7794 esac
7795 fi
7796 LS=$ac_cv_path_LS
7797 if test -n "$LS"; then
7798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7799 $as_echo "$LS" >&6; }
7800 else
7801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802 $as_echo "no" >&6; }
7803 fi
7804 
7805 
7806   test -n "$LS" && break
7807 done
7808 
7809   else
7810     # The variable is set, but is it from the command line or the environment?
7811 
7812     # Try to remove the string !LS! from our list.
7813     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7814     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7815       # If it failed, the variable was not from the command line. Ignore it,
7816       # but warn the user (except for BASH, which is always set by the calling BASH).
7817       if test "xLS" != xBASH; then
7818         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7819 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7820       fi
7821       # Try to locate tool using the code snippet
7822       for ac_prog in ls
7823 do
7824   # Extract the first word of "$ac_prog", so it can be a program name with args.
7825 set dummy $ac_prog; ac_word=$2
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827 $as_echo_n "checking for $ac_word... " >&6; }
7828 if ${ac_cv_path_LS+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   case $LS in
7832   [\\/]* | ?:[\\/]*)
7833   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7834   ;;
7835   *)
7836   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7837 for as_dir in $PATH
7838 do
7839   IFS=$as_save_IFS
7840   test -z "$as_dir" && as_dir=.
7841     for ac_exec_ext in '' $ac_executable_extensions; do
7842   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7843     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7844     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7845     break 2
7846   fi
7847 done
7848   done
7849 IFS=$as_save_IFS
7850 
7851   ;;
7852 esac
7853 fi
7854 LS=$ac_cv_path_LS
7855 if test -n "$LS"; then
7856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7857 $as_echo "$LS" >&6; }
7858 else
7859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7861 fi
7862 
7863 
7864   test -n "$LS" && break
7865 done
7866 
7867     else
7868       # If it succeeded, then it was overridden by the user. We will use it
7869       # for the tool.
7870 
7871       # First remove it from the list of overridden variables, so we can test
7872       # for unknown variables in the end.
7873       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7874 
7875       # Check if the provided tool contains a complete path.
7876       tool_specified="$LS"
7877       tool_basename="${tool_specified##*/}"
7878       if test "x$tool_basename" = "x$tool_specified"; then
7879         # A command without a complete path is provided, search $PATH.
7880         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7881 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7882         # Extract the first word of "$tool_basename", so it can be a program name with args.
7883 set dummy $tool_basename; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if ${ac_cv_path_LS+:} false; then :
7887   $as_echo_n "(cached) " >&6
7888 else
7889   case $LS in
7890   [\\/]* | ?:[\\/]*)
7891   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7892   ;;
7893   *)
7894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7896 do
7897   IFS=$as_save_IFS
7898   test -z "$as_dir" && as_dir=.
7899     for ac_exec_ext in '' $ac_executable_extensions; do
7900   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7901     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903     break 2
7904   fi
7905 done
7906   done
7907 IFS=$as_save_IFS
7908 
7909   ;;
7910 esac
7911 fi
7912 LS=$ac_cv_path_LS
7913 if test -n "$LS"; then
7914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7915 $as_echo "$LS" >&6; }
7916 else
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7919 fi
7920 
7921 
7922         if test "x$LS" = x; then
7923           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7924         fi
7925       else
7926         # Otherwise we believe it is a complete path. Use it as it is.
7927         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7928 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7929         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7930 $as_echo_n "checking for LS... " >&6; }
7931         if test ! -x "$tool_specified"; then
7932           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7933 $as_echo "not found" >&6; }
7934           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7935         fi
7936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7937 $as_echo "$tool_specified" >&6; }
7938       fi
7939     fi
7940   fi
7941 
7942 
7943 
7944   if test "x$LS" = x; then
7945     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7946   fi
7947 
7948 
7949 
7950 
7951 
7952   # Publish this variable in the help.
7953 
7954 
7955   if test "x$MKDIR" = x; then
7956     # The variable is not set by user, try to locate tool using the code snippet
7957     for ac_prog in mkdir
7958 do
7959   # Extract the first word of "$ac_prog", so it can be a program name with args.
7960 set dummy $ac_prog; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if ${ac_cv_path_MKDIR+:} false; then :
7964   $as_echo_n "(cached) " >&6
7965 else
7966   case $MKDIR in
7967   [\\/]* | ?:[\\/]*)
7968   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7969   ;;
7970   *)
7971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974   IFS=$as_save_IFS
7975   test -z "$as_dir" && as_dir=.
7976     for ac_exec_ext in '' $ac_executable_extensions; do
7977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980     break 2
7981   fi
7982 done
7983   done
7984 IFS=$as_save_IFS
7985 
7986   ;;
7987 esac
7988 fi
7989 MKDIR=$ac_cv_path_MKDIR
7990 if test -n "$MKDIR"; then
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7992 $as_echo "$MKDIR" >&6; }
7993 else
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997 
7998 
7999   test -n "$MKDIR" && break
8000 done
8001 
8002   else
8003     # The variable is set, but is it from the command line or the environment?
8004 
8005     # Try to remove the string !MKDIR! from our list.
8006     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
8007     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8008       # If it failed, the variable was not from the command line. Ignore it,
8009       # but warn the user (except for BASH, which is always set by the calling BASH).
8010       if test "xMKDIR" != xBASH; then
8011         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
8012 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
8013       fi
8014       # Try to locate tool using the code snippet
8015       for ac_prog in mkdir
8016 do
8017   # Extract the first word of "$ac_prog", so it can be a program name with args.
8018 set dummy $ac_prog; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_path_MKDIR+:} false; then :
8022   $as_echo_n "(cached) " >&6
8023 else
8024   case $MKDIR in
8025   [\\/]* | ?:[\\/]*)
8026   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8027   ;;
8028   *)
8029   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 for as_dir in $PATH
8031 do
8032   IFS=$as_save_IFS
8033   test -z "$as_dir" && as_dir=.
8034     for ac_exec_ext in '' $ac_executable_extensions; do
8035   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8036     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8037     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8038     break 2
8039   fi
8040 done
8041   done
8042 IFS=$as_save_IFS
8043 
8044   ;;
8045 esac
8046 fi
8047 MKDIR=$ac_cv_path_MKDIR
8048 if test -n "$MKDIR"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8050 $as_echo "$MKDIR" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055 
8056 
8057   test -n "$MKDIR" && break
8058 done
8059 
8060     else
8061       # If it succeeded, then it was overridden by the user. We will use it
8062       # for the tool.
8063 
8064       # First remove it from the list of overridden variables, so we can test
8065       # for unknown variables in the end.
8066       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8067 
8068       # Check if the provided tool contains a complete path.
8069       tool_specified="$MKDIR"
8070       tool_basename="${tool_specified##*/}"
8071       if test "x$tool_basename" = "x$tool_specified"; then
8072         # A command without a complete path is provided, search $PATH.
8073         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8074 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8075         # Extract the first word of "$tool_basename", so it can be a program name with args.
8076 set dummy $tool_basename; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_path_MKDIR+:} false; then :
8080   $as_echo_n "(cached) " >&6
8081 else
8082   case $MKDIR in
8083   [\\/]* | ?:[\\/]*)
8084   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8085   ;;
8086   *)
8087   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8089 do
8090   IFS=$as_save_IFS
8091   test -z "$as_dir" && as_dir=.
8092     for ac_exec_ext in '' $ac_executable_extensions; do
8093   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096     break 2
8097   fi
8098 done
8099   done
8100 IFS=$as_save_IFS
8101 
8102   ;;
8103 esac
8104 fi
8105 MKDIR=$ac_cv_path_MKDIR
8106 if test -n "$MKDIR"; then
8107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8108 $as_echo "$MKDIR" >&6; }
8109 else
8110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8112 fi
8113 
8114 
8115         if test "x$MKDIR" = x; then
8116           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8117         fi
8118       else
8119         # Otherwise we believe it is a complete path. Use it as it is.
8120         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8121 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8122         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8123 $as_echo_n "checking for MKDIR... " >&6; }
8124         if test ! -x "$tool_specified"; then
8125           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8126 $as_echo "not found" >&6; }
8127           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8128         fi
8129         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8130 $as_echo "$tool_specified" >&6; }
8131       fi
8132     fi
8133   fi
8134 
8135 
8136 
8137   if test "x$MKDIR" = x; then
8138     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8139   fi
8140 
8141 
8142 
8143 
8144 
8145   # Publish this variable in the help.
8146 
8147 
8148   if test "x$MKTEMP" = x; then
8149     # The variable is not set by user, try to locate tool using the code snippet
8150     for ac_prog in mktemp
8151 do
8152   # Extract the first word of "$ac_prog", so it can be a program name with args.
8153 set dummy $ac_prog; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_path_MKTEMP+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   case $MKTEMP in
8160   [\\/]* | ?:[\\/]*)
8161   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8162   ;;
8163   *)
8164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8166 do
8167   IFS=$as_save_IFS
8168   test -z "$as_dir" && as_dir=.
8169     for ac_exec_ext in '' $ac_executable_extensions; do
8170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173     break 2
8174   fi
8175 done
8176   done
8177 IFS=$as_save_IFS
8178 
8179   ;;
8180 esac
8181 fi
8182 MKTEMP=$ac_cv_path_MKTEMP
8183 if test -n "$MKTEMP"; then
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8185 $as_echo "$MKTEMP" >&6; }
8186 else
8187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8189 fi
8190 
8191 
8192   test -n "$MKTEMP" && break
8193 done
8194 
8195   else
8196     # The variable is set, but is it from the command line or the environment?
8197 
8198     # Try to remove the string !MKTEMP! from our list.
8199     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8200     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8201       # If it failed, the variable was not from the command line. Ignore it,
8202       # but warn the user (except for BASH, which is always set by the calling BASH).
8203       if test "xMKTEMP" != xBASH; then
8204         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8205 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8206       fi
8207       # Try to locate tool using the code snippet
8208       for ac_prog in mktemp
8209 do
8210   # Extract the first word of "$ac_prog", so it can be a program name with args.
8211 set dummy $ac_prog; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_path_MKTEMP+:} false; then :
8215   $as_echo_n "(cached) " >&6
8216 else
8217   case $MKTEMP in
8218   [\\/]* | ?:[\\/]*)
8219   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8220   ;;
8221   *)
8222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8224 do
8225   IFS=$as_save_IFS
8226   test -z "$as_dir" && as_dir=.
8227     for ac_exec_ext in '' $ac_executable_extensions; do
8228   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231     break 2
8232   fi
8233 done
8234   done
8235 IFS=$as_save_IFS
8236 
8237   ;;
8238 esac
8239 fi
8240 MKTEMP=$ac_cv_path_MKTEMP
8241 if test -n "$MKTEMP"; then
8242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8243 $as_echo "$MKTEMP" >&6; }
8244 else
8245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8247 fi
8248 
8249 
8250   test -n "$MKTEMP" && break
8251 done
8252 
8253     else
8254       # If it succeeded, then it was overridden by the user. We will use it
8255       # for the tool.
8256 
8257       # First remove it from the list of overridden variables, so we can test
8258       # for unknown variables in the end.
8259       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8260 
8261       # Check if the provided tool contains a complete path.
8262       tool_specified="$MKTEMP"
8263       tool_basename="${tool_specified##*/}"
8264       if test "x$tool_basename" = "x$tool_specified"; then
8265         # A command without a complete path is provided, search $PATH.
8266         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8267 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8268         # Extract the first word of "$tool_basename", so it can be a program name with args.
8269 set dummy $tool_basename; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if ${ac_cv_path_MKTEMP+:} false; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   case $MKTEMP in
8276   [\\/]* | ?:[\\/]*)
8277   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8278   ;;
8279   *)
8280   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 for as_dir in $PATH
8282 do
8283   IFS=$as_save_IFS
8284   test -z "$as_dir" && as_dir=.
8285     for ac_exec_ext in '' $ac_executable_extensions; do
8286   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8287     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8288     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289     break 2
8290   fi
8291 done
8292   done
8293 IFS=$as_save_IFS
8294 
8295   ;;
8296 esac
8297 fi
8298 MKTEMP=$ac_cv_path_MKTEMP
8299 if test -n "$MKTEMP"; then
8300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8301 $as_echo "$MKTEMP" >&6; }
8302 else
8303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8304 $as_echo "no" >&6; }
8305 fi
8306 
8307 
8308         if test "x$MKTEMP" = x; then
8309           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8310         fi
8311       else
8312         # Otherwise we believe it is a complete path. Use it as it is.
8313         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8314 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8315         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8316 $as_echo_n "checking for MKTEMP... " >&6; }
8317         if test ! -x "$tool_specified"; then
8318           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8319 $as_echo "not found" >&6; }
8320           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8321         fi
8322         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8323 $as_echo "$tool_specified" >&6; }
8324       fi
8325     fi
8326   fi
8327 
8328 
8329 
8330   if test "x$MKTEMP" = x; then
8331     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8332   fi
8333 
8334 
8335 
8336 
8337 
8338   # Publish this variable in the help.
8339 
8340 
8341   if test "x$MV" = x; then
8342     # The variable is not set by user, try to locate tool using the code snippet
8343     for ac_prog in mv
8344 do
8345   # Extract the first word of "$ac_prog", so it can be a program name with args.
8346 set dummy $ac_prog; ac_word=$2
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8348 $as_echo_n "checking for $ac_word... " >&6; }
8349 if ${ac_cv_path_MV+:} false; then :
8350   $as_echo_n "(cached) " >&6
8351 else
8352   case $MV in
8353   [\\/]* | ?:[\\/]*)
8354   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8355   ;;
8356   *)
8357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 for as_dir in $PATH
8359 do
8360   IFS=$as_save_IFS
8361   test -z "$as_dir" && as_dir=.
8362     for ac_exec_ext in '' $ac_executable_extensions; do
8363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8364     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8366     break 2
8367   fi
8368 done
8369   done
8370 IFS=$as_save_IFS
8371 
8372   ;;
8373 esac
8374 fi
8375 MV=$ac_cv_path_MV
8376 if test -n "$MV"; then
8377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8378 $as_echo "$MV" >&6; }
8379 else
8380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381 $as_echo "no" >&6; }
8382 fi
8383 
8384 
8385   test -n "$MV" && break
8386 done
8387 
8388   else
8389     # The variable is set, but is it from the command line or the environment?
8390 
8391     # Try to remove the string !MV! from our list.
8392     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8393     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8394       # If it failed, the variable was not from the command line. Ignore it,
8395       # but warn the user (except for BASH, which is always set by the calling BASH).
8396       if test "xMV" != xBASH; then
8397         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8398 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8399       fi
8400       # Try to locate tool using the code snippet
8401       for ac_prog in mv
8402 do
8403   # Extract the first word of "$ac_prog", so it can be a program name with args.
8404 set dummy $ac_prog; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if ${ac_cv_path_MV+:} false; then :
8408   $as_echo_n "(cached) " >&6
8409 else
8410   case $MV in
8411   [\\/]* | ?:[\\/]*)
8412   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8413   ;;
8414   *)
8415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8417 do
8418   IFS=$as_save_IFS
8419   test -z "$as_dir" && as_dir=.
8420     for ac_exec_ext in '' $ac_executable_extensions; do
8421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8422     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424     break 2
8425   fi
8426 done
8427   done
8428 IFS=$as_save_IFS
8429 
8430   ;;
8431 esac
8432 fi
8433 MV=$ac_cv_path_MV
8434 if test -n "$MV"; then
8435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8436 $as_echo "$MV" >&6; }
8437 else
8438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8440 fi
8441 
8442 
8443   test -n "$MV" && break
8444 done
8445 
8446     else
8447       # If it succeeded, then it was overridden by the user. We will use it
8448       # for the tool.
8449 
8450       # First remove it from the list of overridden variables, so we can test
8451       # for unknown variables in the end.
8452       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8453 
8454       # Check if the provided tool contains a complete path.
8455       tool_specified="$MV"
8456       tool_basename="${tool_specified##*/}"
8457       if test "x$tool_basename" = "x$tool_specified"; then
8458         # A command without a complete path is provided, search $PATH.
8459         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8460 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8461         # Extract the first word of "$tool_basename", so it can be a program name with args.
8462 set dummy $tool_basename; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if ${ac_cv_path_MV+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   case $MV in
8469   [\\/]* | ?:[\\/]*)
8470   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8471   ;;
8472   *)
8473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 for as_dir in $PATH
8475 do
8476   IFS=$as_save_IFS
8477   test -z "$as_dir" && as_dir=.
8478     for ac_exec_ext in '' $ac_executable_extensions; do
8479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8480     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482     break 2
8483   fi
8484 done
8485   done
8486 IFS=$as_save_IFS
8487 
8488   ;;
8489 esac
8490 fi
8491 MV=$ac_cv_path_MV
8492 if test -n "$MV"; then
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8494 $as_echo "$MV" >&6; }
8495 else
8496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8498 fi
8499 
8500 
8501         if test "x$MV" = x; then
8502           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8503         fi
8504       else
8505         # Otherwise we believe it is a complete path. Use it as it is.
8506         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8507 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8508         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8509 $as_echo_n "checking for MV... " >&6; }
8510         if test ! -x "$tool_specified"; then
8511           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8512 $as_echo "not found" >&6; }
8513           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8514         fi
8515         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8516 $as_echo "$tool_specified" >&6; }
8517       fi
8518     fi
8519   fi
8520 
8521 
8522 
8523   if test "x$MV" = x; then
8524     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8525   fi
8526 
8527 
8528 
8529 
8530 
8531   # Publish this variable in the help.
8532 
8533 
8534   if test "x$NAWK" = x; then
8535     # The variable is not set by user, try to locate tool using the code snippet
8536     for ac_prog in nawk gawk awk
8537 do
8538   # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy $ac_prog; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_path_NAWK+:} false; then :
8543   $as_echo_n "(cached) " >&6
8544 else
8545   case $NAWK in
8546   [\\/]* | ?:[\\/]*)
8547   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8548   ;;
8549   *)
8550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553   IFS=$as_save_IFS
8554   test -z "$as_dir" && as_dir=.
8555     for ac_exec_ext in '' $ac_executable_extensions; do
8556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559     break 2
8560   fi
8561 done
8562   done
8563 IFS=$as_save_IFS
8564 
8565   ;;
8566 esac
8567 fi
8568 NAWK=$ac_cv_path_NAWK
8569 if test -n "$NAWK"; then
8570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8571 $as_echo "$NAWK" >&6; }
8572 else
8573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8575 fi
8576 
8577 
8578   test -n "$NAWK" && break
8579 done
8580 
8581   else
8582     # The variable is set, but is it from the command line or the environment?
8583 
8584     # Try to remove the string !NAWK! from our list.
8585     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8586     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8587       # If it failed, the variable was not from the command line. Ignore it,
8588       # but warn the user (except for BASH, which is always set by the calling BASH).
8589       if test "xNAWK" != xBASH; then
8590         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8591 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8592       fi
8593       # Try to locate tool using the code snippet
8594       for ac_prog in nawk gawk awk
8595 do
8596   # Extract the first word of "$ac_prog", so it can be a program name with args.
8597 set dummy $ac_prog; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_path_NAWK+:} false; then :
8601   $as_echo_n "(cached) " >&6
8602 else
8603   case $NAWK in
8604   [\\/]* | ?:[\\/]*)
8605   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8606   ;;
8607   *)
8608   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611   IFS=$as_save_IFS
8612   test -z "$as_dir" && as_dir=.
8613     for ac_exec_ext in '' $ac_executable_extensions; do
8614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617     break 2
8618   fi
8619 done
8620   done
8621 IFS=$as_save_IFS
8622 
8623   ;;
8624 esac
8625 fi
8626 NAWK=$ac_cv_path_NAWK
8627 if test -n "$NAWK"; then
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8629 $as_echo "$NAWK" >&6; }
8630 else
8631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8633 fi
8634 
8635 
8636   test -n "$NAWK" && break
8637 done
8638 
8639     else
8640       # If it succeeded, then it was overridden by the user. We will use it
8641       # for the tool.
8642 
8643       # First remove it from the list of overridden variables, so we can test
8644       # for unknown variables in the end.
8645       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8646 
8647       # Check if the provided tool contains a complete path.
8648       tool_specified="$NAWK"
8649       tool_basename="${tool_specified##*/}"
8650       if test "x$tool_basename" = "x$tool_specified"; then
8651         # A command without a complete path is provided, search $PATH.
8652         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8653 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8654         # Extract the first word of "$tool_basename", so it can be a program name with args.
8655 set dummy $tool_basename; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_path_NAWK+:} false; then :
8659   $as_echo_n "(cached) " >&6
8660 else
8661   case $NAWK in
8662   [\\/]* | ?:[\\/]*)
8663   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8664   ;;
8665   *)
8666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH
8668 do
8669   IFS=$as_save_IFS
8670   test -z "$as_dir" && as_dir=.
8671     for ac_exec_ext in '' $ac_executable_extensions; do
8672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8673     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675     break 2
8676   fi
8677 done
8678   done
8679 IFS=$as_save_IFS
8680 
8681   ;;
8682 esac
8683 fi
8684 NAWK=$ac_cv_path_NAWK
8685 if test -n "$NAWK"; then
8686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8687 $as_echo "$NAWK" >&6; }
8688 else
8689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690 $as_echo "no" >&6; }
8691 fi
8692 
8693 
8694         if test "x$NAWK" = x; then
8695           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8696         fi
8697       else
8698         # Otherwise we believe it is a complete path. Use it as it is.
8699         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8700 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8701         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8702 $as_echo_n "checking for NAWK... " >&6; }
8703         if test ! -x "$tool_specified"; then
8704           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8705 $as_echo "not found" >&6; }
8706           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8707         fi
8708         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8709 $as_echo "$tool_specified" >&6; }
8710       fi
8711     fi
8712   fi
8713 
8714 
8715 
8716   if test "x$NAWK" = x; then
8717     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8718   fi
8719 
8720 
8721 
8722 
8723 
8724   # Publish this variable in the help.
8725 
8726 
8727   if test "x$PRINTF" = x; then
8728     # The variable is not set by user, try to locate tool using the code snippet
8729     for ac_prog in printf
8730 do
8731   # Extract the first word of "$ac_prog", so it can be a program name with args.
8732 set dummy $ac_prog; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_path_PRINTF+:} false; then :
8736   $as_echo_n "(cached) " >&6
8737 else
8738   case $PRINTF in
8739   [\\/]* | ?:[\\/]*)
8740   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8741   ;;
8742   *)
8743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in $PATH
8745 do
8746   IFS=$as_save_IFS
8747   test -z "$as_dir" && as_dir=.
8748     for ac_exec_ext in '' $ac_executable_extensions; do
8749   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8750     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752     break 2
8753   fi
8754 done
8755   done
8756 IFS=$as_save_IFS
8757 
8758   ;;
8759 esac
8760 fi
8761 PRINTF=$ac_cv_path_PRINTF
8762 if test -n "$PRINTF"; then
8763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8764 $as_echo "$PRINTF" >&6; }
8765 else
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8768 fi
8769 
8770 
8771   test -n "$PRINTF" && break
8772 done
8773 
8774   else
8775     # The variable is set, but is it from the command line or the environment?
8776 
8777     # Try to remove the string !PRINTF! from our list.
8778     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8779     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8780       # If it failed, the variable was not from the command line. Ignore it,
8781       # but warn the user (except for BASH, which is always set by the calling BASH).
8782       if test "xPRINTF" != xBASH; then
8783         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8784 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8785       fi
8786       # Try to locate tool using the code snippet
8787       for ac_prog in printf
8788 do
8789   # Extract the first word of "$ac_prog", so it can be a program name with args.
8790 set dummy $ac_prog; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_path_PRINTF+:} false; then :
8794   $as_echo_n "(cached) " >&6
8795 else
8796   case $PRINTF in
8797   [\\/]* | ?:[\\/]*)
8798   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8799   ;;
8800   *)
8801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8802 for as_dir in $PATH
8803 do
8804   IFS=$as_save_IFS
8805   test -z "$as_dir" && as_dir=.
8806     for ac_exec_ext in '' $ac_executable_extensions; do
8807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8808     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8810     break 2
8811   fi
8812 done
8813   done
8814 IFS=$as_save_IFS
8815 
8816   ;;
8817 esac
8818 fi
8819 PRINTF=$ac_cv_path_PRINTF
8820 if test -n "$PRINTF"; then
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8822 $as_echo "$PRINTF" >&6; }
8823 else
8824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825 $as_echo "no" >&6; }
8826 fi
8827 
8828 
8829   test -n "$PRINTF" && break
8830 done
8831 
8832     else
8833       # If it succeeded, then it was overridden by the user. We will use it
8834       # for the tool.
8835 
8836       # First remove it from the list of overridden variables, so we can test
8837       # for unknown variables in the end.
8838       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8839 
8840       # Check if the provided tool contains a complete path.
8841       tool_specified="$PRINTF"
8842       tool_basename="${tool_specified##*/}"
8843       if test "x$tool_basename" = "x$tool_specified"; then
8844         # A command without a complete path is provided, search $PATH.
8845         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8846 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8847         # Extract the first word of "$tool_basename", so it can be a program name with args.
8848 set dummy $tool_basename; ac_word=$2
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8850 $as_echo_n "checking for $ac_word... " >&6; }
8851 if ${ac_cv_path_PRINTF+:} false; then :
8852   $as_echo_n "(cached) " >&6
8853 else
8854   case $PRINTF in
8855   [\\/]* | ?:[\\/]*)
8856   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8857   ;;
8858   *)
8859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8860 for as_dir in $PATH
8861 do
8862   IFS=$as_save_IFS
8863   test -z "$as_dir" && as_dir=.
8864     for ac_exec_ext in '' $ac_executable_extensions; do
8865   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8866     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8867     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8868     break 2
8869   fi
8870 done
8871   done
8872 IFS=$as_save_IFS
8873 
8874   ;;
8875 esac
8876 fi
8877 PRINTF=$ac_cv_path_PRINTF
8878 if test -n "$PRINTF"; then
8879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8880 $as_echo "$PRINTF" >&6; }
8881 else
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8883 $as_echo "no" >&6; }
8884 fi
8885 
8886 
8887         if test "x$PRINTF" = x; then
8888           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8889         fi
8890       else
8891         # Otherwise we believe it is a complete path. Use it as it is.
8892         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8893 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8894         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8895 $as_echo_n "checking for PRINTF... " >&6; }
8896         if test ! -x "$tool_specified"; then
8897           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8898 $as_echo "not found" >&6; }
8899           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8900         fi
8901         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8902 $as_echo "$tool_specified" >&6; }
8903       fi
8904     fi
8905   fi
8906 
8907 
8908 
8909   if test "x$PRINTF" = x; then
8910     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8911   fi
8912 
8913 
8914 
8915 
8916 
8917   # Publish this variable in the help.
8918 
8919 
8920   if test "x$RM" = x; then
8921     # The variable is not set by user, try to locate tool using the code snippet
8922     for ac_prog in rm
8923 do
8924   # Extract the first word of "$ac_prog", so it can be a program name with args.
8925 set dummy $ac_prog; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if ${ac_cv_path_RM+:} false; then :
8929   $as_echo_n "(cached) " >&6
8930 else
8931   case $RM in
8932   [\\/]* | ?:[\\/]*)
8933   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8934   ;;
8935   *)
8936   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8938 do
8939   IFS=$as_save_IFS
8940   test -z "$as_dir" && as_dir=.
8941     for ac_exec_ext in '' $ac_executable_extensions; do
8942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945     break 2
8946   fi
8947 done
8948   done
8949 IFS=$as_save_IFS
8950 
8951   ;;
8952 esac
8953 fi
8954 RM=$ac_cv_path_RM
8955 if test -n "$RM"; then
8956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8957 $as_echo "$RM" >&6; }
8958 else
8959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8961 fi
8962 
8963 
8964   test -n "$RM" && break
8965 done
8966 
8967   else
8968     # The variable is set, but is it from the command line or the environment?
8969 
8970     # Try to remove the string !RM! from our list.
8971     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8972     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8973       # If it failed, the variable was not from the command line. Ignore it,
8974       # but warn the user (except for BASH, which is always set by the calling BASH).
8975       if test "xRM" != xBASH; then
8976         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8977 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8978       fi
8979       # Try to locate tool using the code snippet
8980       for ac_prog in rm
8981 do
8982   # Extract the first word of "$ac_prog", so it can be a program name with args.
8983 set dummy $ac_prog; ac_word=$2
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8985 $as_echo_n "checking for $ac_word... " >&6; }
8986 if ${ac_cv_path_RM+:} false; then :
8987   $as_echo_n "(cached) " >&6
8988 else
8989   case $RM in
8990   [\\/]* | ?:[\\/]*)
8991   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8992   ;;
8993   *)
8994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 for as_dir in $PATH
8996 do
8997   IFS=$as_save_IFS
8998   test -z "$as_dir" && as_dir=.
8999     for ac_exec_ext in '' $ac_executable_extensions; do
9000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9001     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003     break 2
9004   fi
9005 done
9006   done
9007 IFS=$as_save_IFS
9008 
9009   ;;
9010 esac
9011 fi
9012 RM=$ac_cv_path_RM
9013 if test -n "$RM"; then
9014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9015 $as_echo "$RM" >&6; }
9016 else
9017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 $as_echo "no" >&6; }
9019 fi
9020 
9021 
9022   test -n "$RM" && break
9023 done
9024 
9025     else
9026       # If it succeeded, then it was overridden by the user. We will use it
9027       # for the tool.
9028 
9029       # First remove it from the list of overridden variables, so we can test
9030       # for unknown variables in the end.
9031       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9032 
9033       # Check if the provided tool contains a complete path.
9034       tool_specified="$RM"
9035       tool_basename="${tool_specified##*/}"
9036       if test "x$tool_basename" = "x$tool_specified"; then
9037         # A command without a complete path is provided, search $PATH.
9038         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
9039 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
9040         # Extract the first word of "$tool_basename", so it can be a program name with args.
9041 set dummy $tool_basename; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if ${ac_cv_path_RM+:} false; then :
9045   $as_echo_n "(cached) " >&6
9046 else
9047   case $RM in
9048   [\\/]* | ?:[\\/]*)
9049   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9050   ;;
9051   *)
9052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9054 do
9055   IFS=$as_save_IFS
9056   test -z "$as_dir" && as_dir=.
9057     for ac_exec_ext in '' $ac_executable_extensions; do
9058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9059     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061     break 2
9062   fi
9063 done
9064   done
9065 IFS=$as_save_IFS
9066 
9067   ;;
9068 esac
9069 fi
9070 RM=$ac_cv_path_RM
9071 if test -n "$RM"; then
9072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9073 $as_echo "$RM" >&6; }
9074 else
9075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9077 fi
9078 
9079 
9080         if test "x$RM" = x; then
9081           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9082         fi
9083       else
9084         # Otherwise we believe it is a complete path. Use it as it is.
9085         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9086 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9087         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9088 $as_echo_n "checking for RM... " >&6; }
9089         if test ! -x "$tool_specified"; then
9090           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9091 $as_echo "not found" >&6; }
9092           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9093         fi
9094         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9095 $as_echo "$tool_specified" >&6; }
9096       fi
9097     fi
9098   fi
9099 
9100 
9101 
9102   if test "x$RM" = x; then
9103     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9104   fi
9105 
9106 
9107 
9108 
9109 
9110   # Publish this variable in the help.
9111 
9112 
9113   if test "x$SH" = x; then
9114     # The variable is not set by user, try to locate tool using the code snippet
9115     for ac_prog in sh
9116 do
9117   # Extract the first word of "$ac_prog", so it can be a program name with args.
9118 set dummy $ac_prog; ac_word=$2
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9120 $as_echo_n "checking for $ac_word... " >&6; }
9121 if ${ac_cv_path_SH+:} false; then :
9122   $as_echo_n "(cached) " >&6
9123 else
9124   case $SH in
9125   [\\/]* | ?:[\\/]*)
9126   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9127   ;;
9128   *)
9129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9130 for as_dir in $PATH
9131 do
9132   IFS=$as_save_IFS
9133   test -z "$as_dir" && as_dir=.
9134     for ac_exec_ext in '' $ac_executable_extensions; do
9135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9136     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9138     break 2
9139   fi
9140 done
9141   done
9142 IFS=$as_save_IFS
9143 
9144   ;;
9145 esac
9146 fi
9147 SH=$ac_cv_path_SH
9148 if test -n "$SH"; then
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9150 $as_echo "$SH" >&6; }
9151 else
9152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9153 $as_echo "no" >&6; }
9154 fi
9155 
9156 
9157   test -n "$SH" && break
9158 done
9159 
9160   else
9161     # The variable is set, but is it from the command line or the environment?
9162 
9163     # Try to remove the string !SH! from our list.
9164     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9165     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9166       # If it failed, the variable was not from the command line. Ignore it,
9167       # but warn the user (except for BASH, which is always set by the calling BASH).
9168       if test "xSH" != xBASH; then
9169         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9170 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9171       fi
9172       # Try to locate tool using the code snippet
9173       for ac_prog in sh
9174 do
9175   # Extract the first word of "$ac_prog", so it can be a program name with args.
9176 set dummy $ac_prog; ac_word=$2
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178 $as_echo_n "checking for $ac_word... " >&6; }
9179 if ${ac_cv_path_SH+:} false; then :
9180   $as_echo_n "(cached) " >&6
9181 else
9182   case $SH in
9183   [\\/]* | ?:[\\/]*)
9184   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9185   ;;
9186   *)
9187   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9188 for as_dir in $PATH
9189 do
9190   IFS=$as_save_IFS
9191   test -z "$as_dir" && as_dir=.
9192     for ac_exec_ext in '' $ac_executable_extensions; do
9193   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9194     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9196     break 2
9197   fi
9198 done
9199   done
9200 IFS=$as_save_IFS
9201 
9202   ;;
9203 esac
9204 fi
9205 SH=$ac_cv_path_SH
9206 if test -n "$SH"; then
9207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9208 $as_echo "$SH" >&6; }
9209 else
9210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213 
9214 
9215   test -n "$SH" && break
9216 done
9217 
9218     else
9219       # If it succeeded, then it was overridden by the user. We will use it
9220       # for the tool.
9221 
9222       # First remove it from the list of overridden variables, so we can test
9223       # for unknown variables in the end.
9224       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9225 
9226       # Check if the provided tool contains a complete path.
9227       tool_specified="$SH"
9228       tool_basename="${tool_specified##*/}"
9229       if test "x$tool_basename" = "x$tool_specified"; then
9230         # A command without a complete path is provided, search $PATH.
9231         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9232 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9233         # Extract the first word of "$tool_basename", so it can be a program name with args.
9234 set dummy $tool_basename; ac_word=$2
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9236 $as_echo_n "checking for $ac_word... " >&6; }
9237 if ${ac_cv_path_SH+:} false; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   case $SH in
9241   [\\/]* | ?:[\\/]*)
9242   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9243   ;;
9244   *)
9245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9247 do
9248   IFS=$as_save_IFS
9249   test -z "$as_dir" && as_dir=.
9250     for ac_exec_ext in '' $ac_executable_extensions; do
9251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254     break 2
9255   fi
9256 done
9257   done
9258 IFS=$as_save_IFS
9259 
9260   ;;
9261 esac
9262 fi
9263 SH=$ac_cv_path_SH
9264 if test -n "$SH"; then
9265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9266 $as_echo "$SH" >&6; }
9267 else
9268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269 $as_echo "no" >&6; }
9270 fi
9271 
9272 
9273         if test "x$SH" = x; then
9274           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9275         fi
9276       else
9277         # Otherwise we believe it is a complete path. Use it as it is.
9278         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9279 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9280         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9281 $as_echo_n "checking for SH... " >&6; }
9282         if test ! -x "$tool_specified"; then
9283           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9284 $as_echo "not found" >&6; }
9285           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9286         fi
9287         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9288 $as_echo "$tool_specified" >&6; }
9289       fi
9290     fi
9291   fi
9292 
9293 
9294 
9295   if test "x$SH" = x; then
9296     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9297   fi
9298 
9299 
9300 
9301 
9302 
9303   # Publish this variable in the help.
9304 
9305 
9306   if test "x$SORT" = x; then
9307     # The variable is not set by user, try to locate tool using the code snippet
9308     for ac_prog in sort
9309 do
9310   # Extract the first word of "$ac_prog", so it can be a program name with args.
9311 set dummy $ac_prog; ac_word=$2
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313 $as_echo_n "checking for $ac_word... " >&6; }
9314 if ${ac_cv_path_SORT+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   case $SORT in
9318   [\\/]* | ?:[\\/]*)
9319   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9320   ;;
9321   *)
9322   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9323 for as_dir in $PATH
9324 do
9325   IFS=$as_save_IFS
9326   test -z "$as_dir" && as_dir=.
9327     for ac_exec_ext in '' $ac_executable_extensions; do
9328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9329     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9331     break 2
9332   fi
9333 done
9334   done
9335 IFS=$as_save_IFS
9336 
9337   ;;
9338 esac
9339 fi
9340 SORT=$ac_cv_path_SORT
9341 if test -n "$SORT"; then
9342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9343 $as_echo "$SORT" >&6; }
9344 else
9345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9346 $as_echo "no" >&6; }
9347 fi
9348 
9349 
9350   test -n "$SORT" && break
9351 done
9352 
9353   else
9354     # The variable is set, but is it from the command line or the environment?
9355 
9356     # Try to remove the string !SORT! from our list.
9357     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9358     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9359       # If it failed, the variable was not from the command line. Ignore it,
9360       # but warn the user (except for BASH, which is always set by the calling BASH).
9361       if test "xSORT" != xBASH; then
9362         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9363 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9364       fi
9365       # Try to locate tool using the code snippet
9366       for ac_prog in sort
9367 do
9368   # Extract the first word of "$ac_prog", so it can be a program name with args.
9369 set dummy $ac_prog; ac_word=$2
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371 $as_echo_n "checking for $ac_word... " >&6; }
9372 if ${ac_cv_path_SORT+:} false; then :
9373   $as_echo_n "(cached) " >&6
9374 else
9375   case $SORT in
9376   [\\/]* | ?:[\\/]*)
9377   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9378   ;;
9379   *)
9380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9381 for as_dir in $PATH
9382 do
9383   IFS=$as_save_IFS
9384   test -z "$as_dir" && as_dir=.
9385     for ac_exec_ext in '' $ac_executable_extensions; do
9386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9387     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9389     break 2
9390   fi
9391 done
9392   done
9393 IFS=$as_save_IFS
9394 
9395   ;;
9396 esac
9397 fi
9398 SORT=$ac_cv_path_SORT
9399 if test -n "$SORT"; then
9400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9401 $as_echo "$SORT" >&6; }
9402 else
9403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9404 $as_echo "no" >&6; }
9405 fi
9406 
9407 
9408   test -n "$SORT" && break
9409 done
9410 
9411     else
9412       # If it succeeded, then it was overridden by the user. We will use it
9413       # for the tool.
9414 
9415       # First remove it from the list of overridden variables, so we can test
9416       # for unknown variables in the end.
9417       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9418 
9419       # Check if the provided tool contains a complete path.
9420       tool_specified="$SORT"
9421       tool_basename="${tool_specified##*/}"
9422       if test "x$tool_basename" = "x$tool_specified"; then
9423         # A command without a complete path is provided, search $PATH.
9424         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9425 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9426         # Extract the first word of "$tool_basename", so it can be a program name with args.
9427 set dummy $tool_basename; ac_word=$2
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9429 $as_echo_n "checking for $ac_word... " >&6; }
9430 if ${ac_cv_path_SORT+:} false; then :
9431   $as_echo_n "(cached) " >&6
9432 else
9433   case $SORT in
9434   [\\/]* | ?:[\\/]*)
9435   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9436   ;;
9437   *)
9438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9439 for as_dir in $PATH
9440 do
9441   IFS=$as_save_IFS
9442   test -z "$as_dir" && as_dir=.
9443     for ac_exec_ext in '' $ac_executable_extensions; do
9444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9445     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9447     break 2
9448   fi
9449 done
9450   done
9451 IFS=$as_save_IFS
9452 
9453   ;;
9454 esac
9455 fi
9456 SORT=$ac_cv_path_SORT
9457 if test -n "$SORT"; then
9458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9459 $as_echo "$SORT" >&6; }
9460 else
9461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9462 $as_echo "no" >&6; }
9463 fi
9464 
9465 
9466         if test "x$SORT" = x; then
9467           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9468         fi
9469       else
9470         # Otherwise we believe it is a complete path. Use it as it is.
9471         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9472 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9473         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9474 $as_echo_n "checking for SORT... " >&6; }
9475         if test ! -x "$tool_specified"; then
9476           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9477 $as_echo "not found" >&6; }
9478           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9479         fi
9480         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9481 $as_echo "$tool_specified" >&6; }
9482       fi
9483     fi
9484   fi
9485 
9486 
9487 
9488   if test "x$SORT" = x; then
9489     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9490   fi
9491 
9492 
9493 
9494 
9495 
9496   # Publish this variable in the help.
9497 
9498 
9499   if test "x$TAIL" = x; then
9500     # The variable is not set by user, try to locate tool using the code snippet
9501     for ac_prog in tail
9502 do
9503   # Extract the first word of "$ac_prog", so it can be a program name with args.
9504 set dummy $ac_prog; ac_word=$2
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9506 $as_echo_n "checking for $ac_word... " >&6; }
9507 if ${ac_cv_path_TAIL+:} false; then :
9508   $as_echo_n "(cached) " >&6
9509 else
9510   case $TAIL in
9511   [\\/]* | ?:[\\/]*)
9512   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9513   ;;
9514   *)
9515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 for as_dir in $PATH
9517 do
9518   IFS=$as_save_IFS
9519   test -z "$as_dir" && as_dir=.
9520     for ac_exec_ext in '' $ac_executable_extensions; do
9521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9522     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9524     break 2
9525   fi
9526 done
9527   done
9528 IFS=$as_save_IFS
9529 
9530   ;;
9531 esac
9532 fi
9533 TAIL=$ac_cv_path_TAIL
9534 if test -n "$TAIL"; then
9535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9536 $as_echo "$TAIL" >&6; }
9537 else
9538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9539 $as_echo "no" >&6; }
9540 fi
9541 
9542 
9543   test -n "$TAIL" && break
9544 done
9545 
9546   else
9547     # The variable is set, but is it from the command line or the environment?
9548 
9549     # Try to remove the string !TAIL! from our list.
9550     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9551     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9552       # If it failed, the variable was not from the command line. Ignore it,
9553       # but warn the user (except for BASH, which is always set by the calling BASH).
9554       if test "xTAIL" != xBASH; then
9555         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9556 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9557       fi
9558       # Try to locate tool using the code snippet
9559       for ac_prog in tail
9560 do
9561   # Extract the first word of "$ac_prog", so it can be a program name with args.
9562 set dummy $ac_prog; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if ${ac_cv_path_TAIL+:} false; then :
9566   $as_echo_n "(cached) " >&6
9567 else
9568   case $TAIL in
9569   [\\/]* | ?:[\\/]*)
9570   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9571   ;;
9572   *)
9573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9575 do
9576   IFS=$as_save_IFS
9577   test -z "$as_dir" && as_dir=.
9578     for ac_exec_ext in '' $ac_executable_extensions; do
9579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9580     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582     break 2
9583   fi
9584 done
9585   done
9586 IFS=$as_save_IFS
9587 
9588   ;;
9589 esac
9590 fi
9591 TAIL=$ac_cv_path_TAIL
9592 if test -n "$TAIL"; then
9593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9594 $as_echo "$TAIL" >&6; }
9595 else
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9598 fi
9599 
9600 
9601   test -n "$TAIL" && break
9602 done
9603 
9604     else
9605       # If it succeeded, then it was overridden by the user. We will use it
9606       # for the tool.
9607 
9608       # First remove it from the list of overridden variables, so we can test
9609       # for unknown variables in the end.
9610       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9611 
9612       # Check if the provided tool contains a complete path.
9613       tool_specified="$TAIL"
9614       tool_basename="${tool_specified##*/}"
9615       if test "x$tool_basename" = "x$tool_specified"; then
9616         # A command without a complete path is provided, search $PATH.
9617         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9618 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9619         # Extract the first word of "$tool_basename", so it can be a program name with args.
9620 set dummy $tool_basename; ac_word=$2
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9622 $as_echo_n "checking for $ac_word... " >&6; }
9623 if ${ac_cv_path_TAIL+:} false; then :
9624   $as_echo_n "(cached) " >&6
9625 else
9626   case $TAIL in
9627   [\\/]* | ?:[\\/]*)
9628   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9629   ;;
9630   *)
9631   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9632 for as_dir in $PATH
9633 do
9634   IFS=$as_save_IFS
9635   test -z "$as_dir" && as_dir=.
9636     for ac_exec_ext in '' $ac_executable_extensions; do
9637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9640     break 2
9641   fi
9642 done
9643   done
9644 IFS=$as_save_IFS
9645 
9646   ;;
9647 esac
9648 fi
9649 TAIL=$ac_cv_path_TAIL
9650 if test -n "$TAIL"; then
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9652 $as_echo "$TAIL" >&6; }
9653 else
9654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9655 $as_echo "no" >&6; }
9656 fi
9657 
9658 
9659         if test "x$TAIL" = x; then
9660           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9661         fi
9662       else
9663         # Otherwise we believe it is a complete path. Use it as it is.
9664         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9665 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9667 $as_echo_n "checking for TAIL... " >&6; }
9668         if test ! -x "$tool_specified"; then
9669           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9670 $as_echo "not found" >&6; }
9671           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9672         fi
9673         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9674 $as_echo "$tool_specified" >&6; }
9675       fi
9676     fi
9677   fi
9678 
9679 
9680 
9681   if test "x$TAIL" = x; then
9682     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9683   fi
9684 
9685 
9686 
9687 
9688 
9689   # Publish this variable in the help.
9690 
9691 
9692   if test "x$TAR" = x; then
9693     # The variable is not set by user, try to locate tool using the code snippet
9694     for ac_prog in tar
9695 do
9696   # Extract the first word of "$ac_prog", so it can be a program name with args.
9697 set dummy $ac_prog; ac_word=$2
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9699 $as_echo_n "checking for $ac_word... " >&6; }
9700 if ${ac_cv_path_TAR+:} false; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   case $TAR in
9704   [\\/]* | ?:[\\/]*)
9705   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9706   ;;
9707   *)
9708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9709 for as_dir in $PATH
9710 do
9711   IFS=$as_save_IFS
9712   test -z "$as_dir" && as_dir=.
9713     for ac_exec_ext in '' $ac_executable_extensions; do
9714   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9715     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9717     break 2
9718   fi
9719 done
9720   done
9721 IFS=$as_save_IFS
9722 
9723   ;;
9724 esac
9725 fi
9726 TAR=$ac_cv_path_TAR
9727 if test -n "$TAR"; then
9728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9729 $as_echo "$TAR" >&6; }
9730 else
9731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9732 $as_echo "no" >&6; }
9733 fi
9734 
9735 
9736   test -n "$TAR" && break
9737 done
9738 
9739   else
9740     # The variable is set, but is it from the command line or the environment?
9741 
9742     # Try to remove the string !TAR! from our list.
9743     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9744     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9745       # If it failed, the variable was not from the command line. Ignore it,
9746       # but warn the user (except for BASH, which is always set by the calling BASH).
9747       if test "xTAR" != xBASH; then
9748         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9749 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9750       fi
9751       # Try to locate tool using the code snippet
9752       for ac_prog in tar
9753 do
9754   # Extract the first word of "$ac_prog", so it can be a program name with args.
9755 set dummy $ac_prog; ac_word=$2
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9757 $as_echo_n "checking for $ac_word... " >&6; }
9758 if ${ac_cv_path_TAR+:} false; then :
9759   $as_echo_n "(cached) " >&6
9760 else
9761   case $TAR in
9762   [\\/]* | ?:[\\/]*)
9763   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9764   ;;
9765   *)
9766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9767 for as_dir in $PATH
9768 do
9769   IFS=$as_save_IFS
9770   test -z "$as_dir" && as_dir=.
9771     for ac_exec_ext in '' $ac_executable_extensions; do
9772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9773     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9775     break 2
9776   fi
9777 done
9778   done
9779 IFS=$as_save_IFS
9780 
9781   ;;
9782 esac
9783 fi
9784 TAR=$ac_cv_path_TAR
9785 if test -n "$TAR"; then
9786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9787 $as_echo "$TAR" >&6; }
9788 else
9789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9790 $as_echo "no" >&6; }
9791 fi
9792 
9793 
9794   test -n "$TAR" && break
9795 done
9796 
9797     else
9798       # If it succeeded, then it was overridden by the user. We will use it
9799       # for the tool.
9800 
9801       # First remove it from the list of overridden variables, so we can test
9802       # for unknown variables in the end.
9803       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9804 
9805       # Check if the provided tool contains a complete path.
9806       tool_specified="$TAR"
9807       tool_basename="${tool_specified##*/}"
9808       if test "x$tool_basename" = "x$tool_specified"; then
9809         # A command without a complete path is provided, search $PATH.
9810         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9811 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9812         # Extract the first word of "$tool_basename", so it can be a program name with args.
9813 set dummy $tool_basename; ac_word=$2
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815 $as_echo_n "checking for $ac_word... " >&6; }
9816 if ${ac_cv_path_TAR+:} false; then :
9817   $as_echo_n "(cached) " >&6
9818 else
9819   case $TAR in
9820   [\\/]* | ?:[\\/]*)
9821   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9822   ;;
9823   *)
9824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9825 for as_dir in $PATH
9826 do
9827   IFS=$as_save_IFS
9828   test -z "$as_dir" && as_dir=.
9829     for ac_exec_ext in '' $ac_executable_extensions; do
9830   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9831     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833     break 2
9834   fi
9835 done
9836   done
9837 IFS=$as_save_IFS
9838 
9839   ;;
9840 esac
9841 fi
9842 TAR=$ac_cv_path_TAR
9843 if test -n "$TAR"; then
9844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9845 $as_echo "$TAR" >&6; }
9846 else
9847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848 $as_echo "no" >&6; }
9849 fi
9850 
9851 
9852         if test "x$TAR" = x; then
9853           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9854         fi
9855       else
9856         # Otherwise we believe it is a complete path. Use it as it is.
9857         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9858 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9860 $as_echo_n "checking for TAR... " >&6; }
9861         if test ! -x "$tool_specified"; then
9862           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9863 $as_echo "not found" >&6; }
9864           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9865         fi
9866         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9867 $as_echo "$tool_specified" >&6; }
9868       fi
9869     fi
9870   fi
9871 
9872 
9873 
9874   if test "x$TAR" = x; then
9875     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9876   fi
9877 
9878 
9879 
9880 
9881 
9882   # Publish this variable in the help.
9883 
9884 
9885   if test "x$TEE" = x; then
9886     # The variable is not set by user, try to locate tool using the code snippet
9887     for ac_prog in tee
9888 do
9889   # Extract the first word of "$ac_prog", so it can be a program name with args.
9890 set dummy $ac_prog; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_TEE+:} false; then :
9894   $as_echo_n "(cached) " >&6
9895 else
9896   case $TEE in
9897   [\\/]* | ?:[\\/]*)
9898   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9899   ;;
9900   *)
9901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9903 do
9904   IFS=$as_save_IFS
9905   test -z "$as_dir" && as_dir=.
9906     for ac_exec_ext in '' $ac_executable_extensions; do
9907   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9908     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910     break 2
9911   fi
9912 done
9913   done
9914 IFS=$as_save_IFS
9915 
9916   ;;
9917 esac
9918 fi
9919 TEE=$ac_cv_path_TEE
9920 if test -n "$TEE"; then
9921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9922 $as_echo "$TEE" >&6; }
9923 else
9924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9926 fi
9927 
9928 
9929   test -n "$TEE" && break
9930 done
9931 
9932   else
9933     # The variable is set, but is it from the command line or the environment?
9934 
9935     # Try to remove the string !TEE! from our list.
9936     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9937     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9938       # If it failed, the variable was not from the command line. Ignore it,
9939       # but warn the user (except for BASH, which is always set by the calling BASH).
9940       if test "xTEE" != xBASH; then
9941         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9942 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9943       fi
9944       # Try to locate tool using the code snippet
9945       for ac_prog in tee
9946 do
9947   # Extract the first word of "$ac_prog", so it can be a program name with args.
9948 set dummy $ac_prog; ac_word=$2
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9950 $as_echo_n "checking for $ac_word... " >&6; }
9951 if ${ac_cv_path_TEE+:} false; then :
9952   $as_echo_n "(cached) " >&6
9953 else
9954   case $TEE in
9955   [\\/]* | ?:[\\/]*)
9956   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9957   ;;
9958   *)
9959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9960 for as_dir in $PATH
9961 do
9962   IFS=$as_save_IFS
9963   test -z "$as_dir" && as_dir=.
9964     for ac_exec_ext in '' $ac_executable_extensions; do
9965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9966     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9968     break 2
9969   fi
9970 done
9971   done
9972 IFS=$as_save_IFS
9973 
9974   ;;
9975 esac
9976 fi
9977 TEE=$ac_cv_path_TEE
9978 if test -n "$TEE"; then
9979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9980 $as_echo "$TEE" >&6; }
9981 else
9982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9984 fi
9985 
9986 
9987   test -n "$TEE" && break
9988 done
9989 
9990     else
9991       # If it succeeded, then it was overridden by the user. We will use it
9992       # for the tool.
9993 
9994       # First remove it from the list of overridden variables, so we can test
9995       # for unknown variables in the end.
9996       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9997 
9998       # Check if the provided tool contains a complete path.
9999       tool_specified="$TEE"
10000       tool_basename="${tool_specified##*/}"
10001       if test "x$tool_basename" = "x$tool_specified"; then
10002         # A command without a complete path is provided, search $PATH.
10003         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
10004 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
10005         # Extract the first word of "$tool_basename", so it can be a program name with args.
10006 set dummy $tool_basename; ac_word=$2
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008 $as_echo_n "checking for $ac_word... " >&6; }
10009 if ${ac_cv_path_TEE+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   case $TEE in
10013   [\\/]* | ?:[\\/]*)
10014   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
10015   ;;
10016   *)
10017   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10019 do
10020   IFS=$as_save_IFS
10021   test -z "$as_dir" && as_dir=.
10022     for ac_exec_ext in '' $ac_executable_extensions; do
10023   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10024     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
10025     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10026     break 2
10027   fi
10028 done
10029   done
10030 IFS=$as_save_IFS
10031 
10032   ;;
10033 esac
10034 fi
10035 TEE=$ac_cv_path_TEE
10036 if test -n "$TEE"; then
10037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
10038 $as_echo "$TEE" >&6; }
10039 else
10040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10042 fi
10043 
10044 
10045         if test "x$TEE" = x; then
10046           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10047         fi
10048       else
10049         # Otherwise we believe it is a complete path. Use it as it is.
10050         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10051 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10052         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10053 $as_echo_n "checking for TEE... " >&6; }
10054         if test ! -x "$tool_specified"; then
10055           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10056 $as_echo "not found" >&6; }
10057           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10058         fi
10059         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10060 $as_echo "$tool_specified" >&6; }
10061       fi
10062     fi
10063   fi
10064 
10065 
10066 
10067   if test "x$TEE" = x; then
10068     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10069   fi
10070 
10071 
10072 
10073 
10074 
10075   # Publish this variable in the help.
10076 
10077 
10078   if test "x$TOUCH" = x; then
10079     # The variable is not set by user, try to locate tool using the code snippet
10080     for ac_prog in touch
10081 do
10082   # Extract the first word of "$ac_prog", so it can be a program name with args.
10083 set dummy $ac_prog; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_TOUCH+:} false; then :
10087   $as_echo_n "(cached) " >&6
10088 else
10089   case $TOUCH in
10090   [\\/]* | ?:[\\/]*)
10091   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10092   ;;
10093   *)
10094   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10096 do
10097   IFS=$as_save_IFS
10098   test -z "$as_dir" && as_dir=.
10099     for ac_exec_ext in '' $ac_executable_extensions; do
10100   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10101     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103     break 2
10104   fi
10105 done
10106   done
10107 IFS=$as_save_IFS
10108 
10109   ;;
10110 esac
10111 fi
10112 TOUCH=$ac_cv_path_TOUCH
10113 if test -n "$TOUCH"; then
10114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10115 $as_echo "$TOUCH" >&6; }
10116 else
10117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10119 fi
10120 
10121 
10122   test -n "$TOUCH" && break
10123 done
10124 
10125   else
10126     # The variable is set, but is it from the command line or the environment?
10127 
10128     # Try to remove the string !TOUCH! from our list.
10129     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10130     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10131       # If it failed, the variable was not from the command line. Ignore it,
10132       # but warn the user (except for BASH, which is always set by the calling BASH).
10133       if test "xTOUCH" != xBASH; then
10134         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10135 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10136       fi
10137       # Try to locate tool using the code snippet
10138       for ac_prog in touch
10139 do
10140   # Extract the first word of "$ac_prog", so it can be a program name with args.
10141 set dummy $ac_prog; ac_word=$2
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143 $as_echo_n "checking for $ac_word... " >&6; }
10144 if ${ac_cv_path_TOUCH+:} false; then :
10145   $as_echo_n "(cached) " >&6
10146 else
10147   case $TOUCH in
10148   [\\/]* | ?:[\\/]*)
10149   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10150   ;;
10151   *)
10152   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153 for as_dir in $PATH
10154 do
10155   IFS=$as_save_IFS
10156   test -z "$as_dir" && as_dir=.
10157     for ac_exec_ext in '' $ac_executable_extensions; do
10158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10159     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161     break 2
10162   fi
10163 done
10164   done
10165 IFS=$as_save_IFS
10166 
10167   ;;
10168 esac
10169 fi
10170 TOUCH=$ac_cv_path_TOUCH
10171 if test -n "$TOUCH"; then
10172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10173 $as_echo "$TOUCH" >&6; }
10174 else
10175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }
10177 fi
10178 
10179 
10180   test -n "$TOUCH" && break
10181 done
10182 
10183     else
10184       # If it succeeded, then it was overridden by the user. We will use it
10185       # for the tool.
10186 
10187       # First remove it from the list of overridden variables, so we can test
10188       # for unknown variables in the end.
10189       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10190 
10191       # Check if the provided tool contains a complete path.
10192       tool_specified="$TOUCH"
10193       tool_basename="${tool_specified##*/}"
10194       if test "x$tool_basename" = "x$tool_specified"; then
10195         # A command without a complete path is provided, search $PATH.
10196         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10197 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10198         # Extract the first word of "$tool_basename", so it can be a program name with args.
10199 set dummy $tool_basename; ac_word=$2
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10201 $as_echo_n "checking for $ac_word... " >&6; }
10202 if ${ac_cv_path_TOUCH+:} false; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   case $TOUCH in
10206   [\\/]* | ?:[\\/]*)
10207   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10208   ;;
10209   *)
10210   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10211 for as_dir in $PATH
10212 do
10213   IFS=$as_save_IFS
10214   test -z "$as_dir" && as_dir=.
10215     for ac_exec_ext in '' $ac_executable_extensions; do
10216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10217     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219     break 2
10220   fi
10221 done
10222   done
10223 IFS=$as_save_IFS
10224 
10225   ;;
10226 esac
10227 fi
10228 TOUCH=$ac_cv_path_TOUCH
10229 if test -n "$TOUCH"; then
10230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10231 $as_echo "$TOUCH" >&6; }
10232 else
10233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10234 $as_echo "no" >&6; }
10235 fi
10236 
10237 
10238         if test "x$TOUCH" = x; then
10239           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10240         fi
10241       else
10242         # Otherwise we believe it is a complete path. Use it as it is.
10243         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10244 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10245         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10246 $as_echo_n "checking for TOUCH... " >&6; }
10247         if test ! -x "$tool_specified"; then
10248           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10249 $as_echo "not found" >&6; }
10250           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10251         fi
10252         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10253 $as_echo "$tool_specified" >&6; }
10254       fi
10255     fi
10256   fi
10257 
10258 
10259 
10260   if test "x$TOUCH" = x; then
10261     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10262   fi
10263 
10264 
10265 
10266 
10267 
10268   # Publish this variable in the help.
10269 
10270 
10271   if test "x$TR" = x; then
10272     # The variable is not set by user, try to locate tool using the code snippet
10273     for ac_prog in tr
10274 do
10275   # Extract the first word of "$ac_prog", so it can be a program name with args.
10276 set dummy $ac_prog; ac_word=$2
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10278 $as_echo_n "checking for $ac_word... " >&6; }
10279 if ${ac_cv_path_TR+:} false; then :
10280   $as_echo_n "(cached) " >&6
10281 else
10282   case $TR in
10283   [\\/]* | ?:[\\/]*)
10284   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10285   ;;
10286   *)
10287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10289 do
10290   IFS=$as_save_IFS
10291   test -z "$as_dir" && as_dir=.
10292     for ac_exec_ext in '' $ac_executable_extensions; do
10293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10294     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10296     break 2
10297   fi
10298 done
10299   done
10300 IFS=$as_save_IFS
10301 
10302   ;;
10303 esac
10304 fi
10305 TR=$ac_cv_path_TR
10306 if test -n "$TR"; then
10307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10308 $as_echo "$TR" >&6; }
10309 else
10310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10311 $as_echo "no" >&6; }
10312 fi
10313 
10314 
10315   test -n "$TR" && break
10316 done
10317 
10318   else
10319     # The variable is set, but is it from the command line or the environment?
10320 
10321     # Try to remove the string !TR! from our list.
10322     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10323     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10324       # If it failed, the variable was not from the command line. Ignore it,
10325       # but warn the user (except for BASH, which is always set by the calling BASH).
10326       if test "xTR" != xBASH; then
10327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10328 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10329       fi
10330       # Try to locate tool using the code snippet
10331       for ac_prog in tr
10332 do
10333   # Extract the first word of "$ac_prog", so it can be a program name with args.
10334 set dummy $ac_prog; ac_word=$2
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10336 $as_echo_n "checking for $ac_word... " >&6; }
10337 if ${ac_cv_path_TR+:} false; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   case $TR in
10341   [\\/]* | ?:[\\/]*)
10342   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10343   ;;
10344   *)
10345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10347 do
10348   IFS=$as_save_IFS
10349   test -z "$as_dir" && as_dir=.
10350     for ac_exec_ext in '' $ac_executable_extensions; do
10351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354     break 2
10355   fi
10356 done
10357   done
10358 IFS=$as_save_IFS
10359 
10360   ;;
10361 esac
10362 fi
10363 TR=$ac_cv_path_TR
10364 if test -n "$TR"; then
10365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10366 $as_echo "$TR" >&6; }
10367 else
10368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10370 fi
10371 
10372 
10373   test -n "$TR" && break
10374 done
10375 
10376     else
10377       # If it succeeded, then it was overridden by the user. We will use it
10378       # for the tool.
10379 
10380       # First remove it from the list of overridden variables, so we can test
10381       # for unknown variables in the end.
10382       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10383 
10384       # Check if the provided tool contains a complete path.
10385       tool_specified="$TR"
10386       tool_basename="${tool_specified##*/}"
10387       if test "x$tool_basename" = "x$tool_specified"; then
10388         # A command without a complete path is provided, search $PATH.
10389         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10390 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10391         # Extract the first word of "$tool_basename", so it can be a program name with args.
10392 set dummy $tool_basename; ac_word=$2
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394 $as_echo_n "checking for $ac_word... " >&6; }
10395 if ${ac_cv_path_TR+:} false; then :
10396   $as_echo_n "(cached) " >&6
10397 else
10398   case $TR in
10399   [\\/]* | ?:[\\/]*)
10400   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10401   ;;
10402   *)
10403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10405 do
10406   IFS=$as_save_IFS
10407   test -z "$as_dir" && as_dir=.
10408     for ac_exec_ext in '' $ac_executable_extensions; do
10409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10410     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10412     break 2
10413   fi
10414 done
10415   done
10416 IFS=$as_save_IFS
10417 
10418   ;;
10419 esac
10420 fi
10421 TR=$ac_cv_path_TR
10422 if test -n "$TR"; then
10423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10424 $as_echo "$TR" >&6; }
10425 else
10426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10427 $as_echo "no" >&6; }
10428 fi
10429 
10430 
10431         if test "x$TR" = x; then
10432           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10433         fi
10434       else
10435         # Otherwise we believe it is a complete path. Use it as it is.
10436         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10437 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10439 $as_echo_n "checking for TR... " >&6; }
10440         if test ! -x "$tool_specified"; then
10441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10442 $as_echo "not found" >&6; }
10443           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10444         fi
10445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10446 $as_echo "$tool_specified" >&6; }
10447       fi
10448     fi
10449   fi
10450 
10451 
10452 
10453   if test "x$TR" = x; then
10454     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10455   fi
10456 
10457 
10458 
10459 
10460 
10461   # Publish this variable in the help.
10462 
10463 
10464   if test "x$UNAME" = x; then
10465     # The variable is not set by user, try to locate tool using the code snippet
10466     for ac_prog in uname
10467 do
10468   # Extract the first word of "$ac_prog", so it can be a program name with args.
10469 set dummy $ac_prog; ac_word=$2
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10471 $as_echo_n "checking for $ac_word... " >&6; }
10472 if ${ac_cv_path_UNAME+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   case $UNAME in
10476   [\\/]* | ?:[\\/]*)
10477   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10478   ;;
10479   *)
10480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10482 do
10483   IFS=$as_save_IFS
10484   test -z "$as_dir" && as_dir=.
10485     for ac_exec_ext in '' $ac_executable_extensions; do
10486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10489     break 2
10490   fi
10491 done
10492   done
10493 IFS=$as_save_IFS
10494 
10495   ;;
10496 esac
10497 fi
10498 UNAME=$ac_cv_path_UNAME
10499 if test -n "$UNAME"; then
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10501 $as_echo "$UNAME" >&6; }
10502 else
10503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10504 $as_echo "no" >&6; }
10505 fi
10506 
10507 
10508   test -n "$UNAME" && break
10509 done
10510 
10511   else
10512     # The variable is set, but is it from the command line or the environment?
10513 
10514     # Try to remove the string !UNAME! from our list.
10515     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10516     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10517       # If it failed, the variable was not from the command line. Ignore it,
10518       # but warn the user (except for BASH, which is always set by the calling BASH).
10519       if test "xUNAME" != xBASH; then
10520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10521 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10522       fi
10523       # Try to locate tool using the code snippet
10524       for ac_prog in uname
10525 do
10526   # Extract the first word of "$ac_prog", so it can be a program name with args.
10527 set dummy $ac_prog; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if ${ac_cv_path_UNAME+:} false; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   case $UNAME in
10534   [\\/]* | ?:[\\/]*)
10535   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10536   ;;
10537   *)
10538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10539 for as_dir in $PATH
10540 do
10541   IFS=$as_save_IFS
10542   test -z "$as_dir" && as_dir=.
10543     for ac_exec_ext in '' $ac_executable_extensions; do
10544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10545     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547     break 2
10548   fi
10549 done
10550   done
10551 IFS=$as_save_IFS
10552 
10553   ;;
10554 esac
10555 fi
10556 UNAME=$ac_cv_path_UNAME
10557 if test -n "$UNAME"; then
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10559 $as_echo "$UNAME" >&6; }
10560 else
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564 
10565 
10566   test -n "$UNAME" && break
10567 done
10568 
10569     else
10570       # If it succeeded, then it was overridden by the user. We will use it
10571       # for the tool.
10572 
10573       # First remove it from the list of overridden variables, so we can test
10574       # for unknown variables in the end.
10575       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10576 
10577       # Check if the provided tool contains a complete path.
10578       tool_specified="$UNAME"
10579       tool_basename="${tool_specified##*/}"
10580       if test "x$tool_basename" = "x$tool_specified"; then
10581         # A command without a complete path is provided, search $PATH.
10582         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10583 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10584         # Extract the first word of "$tool_basename", so it can be a program name with args.
10585 set dummy $tool_basename; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_path_UNAME+:} false; then :
10589   $as_echo_n "(cached) " >&6
10590 else
10591   case $UNAME in
10592   [\\/]* | ?:[\\/]*)
10593   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10594   ;;
10595   *)
10596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10597 for as_dir in $PATH
10598 do
10599   IFS=$as_save_IFS
10600   test -z "$as_dir" && as_dir=.
10601     for ac_exec_ext in '' $ac_executable_extensions; do
10602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10603     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10605     break 2
10606   fi
10607 done
10608   done
10609 IFS=$as_save_IFS
10610 
10611   ;;
10612 esac
10613 fi
10614 UNAME=$ac_cv_path_UNAME
10615 if test -n "$UNAME"; then
10616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10617 $as_echo "$UNAME" >&6; }
10618 else
10619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620 $as_echo "no" >&6; }
10621 fi
10622 
10623 
10624         if test "x$UNAME" = x; then
10625           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10626         fi
10627       else
10628         # Otherwise we believe it is a complete path. Use it as it is.
10629         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10630 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10632 $as_echo_n "checking for UNAME... " >&6; }
10633         if test ! -x "$tool_specified"; then
10634           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10635 $as_echo "not found" >&6; }
10636           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10637         fi
10638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10639 $as_echo "$tool_specified" >&6; }
10640       fi
10641     fi
10642   fi
10643 
10644 
10645 
10646   if test "x$UNAME" = x; then
10647     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10648   fi
10649 
10650 
10651 
10652 
10653 
10654   # Publish this variable in the help.
10655 
10656 
10657   if test "x$UNIQ" = x; then
10658     # The variable is not set by user, try to locate tool using the code snippet
10659     for ac_prog in uniq
10660 do
10661   # Extract the first word of "$ac_prog", so it can be a program name with args.
10662 set dummy $ac_prog; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if ${ac_cv_path_UNIQ+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   case $UNIQ in
10669   [\\/]* | ?:[\\/]*)
10670   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10671   ;;
10672   *)
10673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in $PATH
10675 do
10676   IFS=$as_save_IFS
10677   test -z "$as_dir" && as_dir=.
10678     for ac_exec_ext in '' $ac_executable_extensions; do
10679   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10680     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10682     break 2
10683   fi
10684 done
10685   done
10686 IFS=$as_save_IFS
10687 
10688   ;;
10689 esac
10690 fi
10691 UNIQ=$ac_cv_path_UNIQ
10692 if test -n "$UNIQ"; then
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10694 $as_echo "$UNIQ" >&6; }
10695 else
10696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10697 $as_echo "no" >&6; }
10698 fi
10699 
10700 
10701   test -n "$UNIQ" && break
10702 done
10703 
10704   else
10705     # The variable is set, but is it from the command line or the environment?
10706 
10707     # Try to remove the string !UNIQ! from our list.
10708     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10709     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10710       # If it failed, the variable was not from the command line. Ignore it,
10711       # but warn the user (except for BASH, which is always set by the calling BASH).
10712       if test "xUNIQ" != xBASH; then
10713         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10714 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10715       fi
10716       # Try to locate tool using the code snippet
10717       for ac_prog in uniq
10718 do
10719   # Extract the first word of "$ac_prog", so it can be a program name with args.
10720 set dummy $ac_prog; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_path_UNIQ+:} false; then :
10724   $as_echo_n "(cached) " >&6
10725 else
10726   case $UNIQ in
10727   [\\/]* | ?:[\\/]*)
10728   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10729   ;;
10730   *)
10731   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734   IFS=$as_save_IFS
10735   test -z "$as_dir" && as_dir=.
10736     for ac_exec_ext in '' $ac_executable_extensions; do
10737   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740     break 2
10741   fi
10742 done
10743   done
10744 IFS=$as_save_IFS
10745 
10746   ;;
10747 esac
10748 fi
10749 UNIQ=$ac_cv_path_UNIQ
10750 if test -n "$UNIQ"; then
10751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10752 $as_echo "$UNIQ" >&6; }
10753 else
10754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10756 fi
10757 
10758 
10759   test -n "$UNIQ" && break
10760 done
10761 
10762     else
10763       # If it succeeded, then it was overridden by the user. We will use it
10764       # for the tool.
10765 
10766       # First remove it from the list of overridden variables, so we can test
10767       # for unknown variables in the end.
10768       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10769 
10770       # Check if the provided tool contains a complete path.
10771       tool_specified="$UNIQ"
10772       tool_basename="${tool_specified##*/}"
10773       if test "x$tool_basename" = "x$tool_specified"; then
10774         # A command without a complete path is provided, search $PATH.
10775         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10776 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10777         # Extract the first word of "$tool_basename", so it can be a program name with args.
10778 set dummy $tool_basename; ac_word=$2
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10780 $as_echo_n "checking for $ac_word... " >&6; }
10781 if ${ac_cv_path_UNIQ+:} false; then :
10782   $as_echo_n "(cached) " >&6
10783 else
10784   case $UNIQ in
10785   [\\/]* | ?:[\\/]*)
10786   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10787   ;;
10788   *)
10789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790 for as_dir in $PATH
10791 do
10792   IFS=$as_save_IFS
10793   test -z "$as_dir" && as_dir=.
10794     for ac_exec_ext in '' $ac_executable_extensions; do
10795   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10796     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10798     break 2
10799   fi
10800 done
10801   done
10802 IFS=$as_save_IFS
10803 
10804   ;;
10805 esac
10806 fi
10807 UNIQ=$ac_cv_path_UNIQ
10808 if test -n "$UNIQ"; then
10809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10810 $as_echo "$UNIQ" >&6; }
10811 else
10812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813 $as_echo "no" >&6; }
10814 fi
10815 
10816 
10817         if test "x$UNIQ" = x; then
10818           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10819         fi
10820       else
10821         # Otherwise we believe it is a complete path. Use it as it is.
10822         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10823 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10824         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10825 $as_echo_n "checking for UNIQ... " >&6; }
10826         if test ! -x "$tool_specified"; then
10827           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10828 $as_echo "not found" >&6; }
10829           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10830         fi
10831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10832 $as_echo "$tool_specified" >&6; }
10833       fi
10834     fi
10835   fi
10836 
10837 
10838 
10839   if test "x$UNIQ" = x; then
10840     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10841   fi
10842 
10843 
10844 
10845 
10846 
10847   # Publish this variable in the help.
10848 
10849 
10850   if test "x$WC" = x; then
10851     # The variable is not set by user, try to locate tool using the code snippet
10852     for ac_prog in wc
10853 do
10854   # Extract the first word of "$ac_prog", so it can be a program name with args.
10855 set dummy $ac_prog; ac_word=$2
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10857 $as_echo_n "checking for $ac_word... " >&6; }
10858 if ${ac_cv_path_WC+:} false; then :
10859   $as_echo_n "(cached) " >&6
10860 else
10861   case $WC in
10862   [\\/]* | ?:[\\/]*)
10863   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10864   ;;
10865   *)
10866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10867 for as_dir in $PATH
10868 do
10869   IFS=$as_save_IFS
10870   test -z "$as_dir" && as_dir=.
10871     for ac_exec_ext in '' $ac_executable_extensions; do
10872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10873     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10875     break 2
10876   fi
10877 done
10878   done
10879 IFS=$as_save_IFS
10880 
10881   ;;
10882 esac
10883 fi
10884 WC=$ac_cv_path_WC
10885 if test -n "$WC"; then
10886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10887 $as_echo "$WC" >&6; }
10888 else
10889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10890 $as_echo "no" >&6; }
10891 fi
10892 
10893 
10894   test -n "$WC" && break
10895 done
10896 
10897   else
10898     # The variable is set, but is it from the command line or the environment?
10899 
10900     # Try to remove the string !WC! from our list.
10901     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10902     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10903       # If it failed, the variable was not from the command line. Ignore it,
10904       # but warn the user (except for BASH, which is always set by the calling BASH).
10905       if test "xWC" != xBASH; then
10906         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10907 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10908       fi
10909       # Try to locate tool using the code snippet
10910       for ac_prog in wc
10911 do
10912   # Extract the first word of "$ac_prog", so it can be a program name with args.
10913 set dummy $ac_prog; ac_word=$2
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915 $as_echo_n "checking for $ac_word... " >&6; }
10916 if ${ac_cv_path_WC+:} false; then :
10917   $as_echo_n "(cached) " >&6
10918 else
10919   case $WC in
10920   [\\/]* | ?:[\\/]*)
10921   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10922   ;;
10923   *)
10924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10926 do
10927   IFS=$as_save_IFS
10928   test -z "$as_dir" && as_dir=.
10929     for ac_exec_ext in '' $ac_executable_extensions; do
10930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10931     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10933     break 2
10934   fi
10935 done
10936   done
10937 IFS=$as_save_IFS
10938 
10939   ;;
10940 esac
10941 fi
10942 WC=$ac_cv_path_WC
10943 if test -n "$WC"; then
10944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10945 $as_echo "$WC" >&6; }
10946 else
10947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10948 $as_echo "no" >&6; }
10949 fi
10950 
10951 
10952   test -n "$WC" && break
10953 done
10954 
10955     else
10956       # If it succeeded, then it was overridden by the user. We will use it
10957       # for the tool.
10958 
10959       # First remove it from the list of overridden variables, so we can test
10960       # for unknown variables in the end.
10961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10962 
10963       # Check if the provided tool contains a complete path.
10964       tool_specified="$WC"
10965       tool_basename="${tool_specified##*/}"
10966       if test "x$tool_basename" = "x$tool_specified"; then
10967         # A command without a complete path is provided, search $PATH.
10968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10969 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10970         # Extract the first word of "$tool_basename", so it can be a program name with args.
10971 set dummy $tool_basename; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_path_WC+:} false; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977   case $WC in
10978   [\\/]* | ?:[\\/]*)
10979   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10980   ;;
10981   *)
10982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10984 do
10985   IFS=$as_save_IFS
10986   test -z "$as_dir" && as_dir=.
10987     for ac_exec_ext in '' $ac_executable_extensions; do
10988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10991     break 2
10992   fi
10993 done
10994   done
10995 IFS=$as_save_IFS
10996 
10997   ;;
10998 esac
10999 fi
11000 WC=$ac_cv_path_WC
11001 if test -n "$WC"; then
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
11003 $as_echo "$WC" >&6; }
11004 else
11005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11007 fi
11008 
11009 
11010         if test "x$WC" = x; then
11011           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11012         fi
11013       else
11014         # Otherwise we believe it is a complete path. Use it as it is.
11015         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
11016 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
11017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
11018 $as_echo_n "checking for WC... " >&6; }
11019         if test ! -x "$tool_specified"; then
11020           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11021 $as_echo "not found" >&6; }
11022           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
11023         fi
11024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11025 $as_echo "$tool_specified" >&6; }
11026       fi
11027     fi
11028   fi
11029 
11030 
11031 
11032   if test "x$WC" = x; then
11033     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
11034   fi
11035 
11036 
11037 
11038 
11039 
11040   # Publish this variable in the help.
11041 
11042 
11043   if test "x$WHICH" = x; then
11044     # The variable is not set by user, try to locate tool using the code snippet
11045     for ac_prog in which
11046 do
11047   # Extract the first word of "$ac_prog", so it can be a program name with args.
11048 set dummy $ac_prog; ac_word=$2
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11050 $as_echo_n "checking for $ac_word... " >&6; }
11051 if ${ac_cv_path_WHICH+:} false; then :
11052   $as_echo_n "(cached) " >&6
11053 else
11054   case $WHICH in
11055   [\\/]* | ?:[\\/]*)
11056   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11057   ;;
11058   *)
11059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11060 for as_dir in $PATH
11061 do
11062   IFS=$as_save_IFS
11063   test -z "$as_dir" && as_dir=.
11064     for ac_exec_ext in '' $ac_executable_extensions; do
11065   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11066     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11067     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11068     break 2
11069   fi
11070 done
11071   done
11072 IFS=$as_save_IFS
11073 
11074   ;;
11075 esac
11076 fi
11077 WHICH=$ac_cv_path_WHICH
11078 if test -n "$WHICH"; then
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11080 $as_echo "$WHICH" >&6; }
11081 else
11082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083 $as_echo "no" >&6; }
11084 fi
11085 
11086 
11087   test -n "$WHICH" && break
11088 done
11089 
11090   else
11091     # The variable is set, but is it from the command line or the environment?
11092 
11093     # Try to remove the string !WHICH! from our list.
11094     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11095     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11096       # If it failed, the variable was not from the command line. Ignore it,
11097       # but warn the user (except for BASH, which is always set by the calling BASH).
11098       if test "xWHICH" != xBASH; then
11099         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11100 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11101       fi
11102       # Try to locate tool using the code snippet
11103       for ac_prog in which
11104 do
11105   # Extract the first word of "$ac_prog", so it can be a program name with args.
11106 set dummy $ac_prog; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11108 $as_echo_n "checking for $ac_word... " >&6; }
11109 if ${ac_cv_path_WHICH+:} false; then :
11110   $as_echo_n "(cached) " >&6
11111 else
11112   case $WHICH in
11113   [\\/]* | ?:[\\/]*)
11114   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11115   ;;
11116   *)
11117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11118 for as_dir in $PATH
11119 do
11120   IFS=$as_save_IFS
11121   test -z "$as_dir" && as_dir=.
11122     for ac_exec_ext in '' $ac_executable_extensions; do
11123   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11124     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11126     break 2
11127   fi
11128 done
11129   done
11130 IFS=$as_save_IFS
11131 
11132   ;;
11133 esac
11134 fi
11135 WHICH=$ac_cv_path_WHICH
11136 if test -n "$WHICH"; then
11137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11138 $as_echo "$WHICH" >&6; }
11139 else
11140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11141 $as_echo "no" >&6; }
11142 fi
11143 
11144 
11145   test -n "$WHICH" && break
11146 done
11147 
11148     else
11149       # If it succeeded, then it was overridden by the user. We will use it
11150       # for the tool.
11151 
11152       # First remove it from the list of overridden variables, so we can test
11153       # for unknown variables in the end.
11154       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11155 
11156       # Check if the provided tool contains a complete path.
11157       tool_specified="$WHICH"
11158       tool_basename="${tool_specified##*/}"
11159       if test "x$tool_basename" = "x$tool_specified"; then
11160         # A command without a complete path is provided, search $PATH.
11161         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11162 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11163         # Extract the first word of "$tool_basename", so it can be a program name with args.
11164 set dummy $tool_basename; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11166 $as_echo_n "checking for $ac_word... " >&6; }
11167 if ${ac_cv_path_WHICH+:} false; then :
11168   $as_echo_n "(cached) " >&6
11169 else
11170   case $WHICH in
11171   [\\/]* | ?:[\\/]*)
11172   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11173   ;;
11174   *)
11175   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176 for as_dir in $PATH
11177 do
11178   IFS=$as_save_IFS
11179   test -z "$as_dir" && as_dir=.
11180     for ac_exec_ext in '' $ac_executable_extensions; do
11181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11182     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11184     break 2
11185   fi
11186 done
11187   done
11188 IFS=$as_save_IFS
11189 
11190   ;;
11191 esac
11192 fi
11193 WHICH=$ac_cv_path_WHICH
11194 if test -n "$WHICH"; then
11195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11196 $as_echo "$WHICH" >&6; }
11197 else
11198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11199 $as_echo "no" >&6; }
11200 fi
11201 
11202 
11203         if test "x$WHICH" = x; then
11204           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11205         fi
11206       else
11207         # Otherwise we believe it is a complete path. Use it as it is.
11208         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11209 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11210         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11211 $as_echo_n "checking for WHICH... " >&6; }
11212         if test ! -x "$tool_specified"; then
11213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11214 $as_echo "not found" >&6; }
11215           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11216         fi
11217         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11218 $as_echo "$tool_specified" >&6; }
11219       fi
11220     fi
11221   fi
11222 
11223 
11224 
11225   if test "x$WHICH" = x; then
11226     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11227   fi
11228 
11229 
11230 
11231 
11232 
11233   # Publish this variable in the help.
11234 
11235 
11236   if test "x$XARGS" = x; then
11237     # The variable is not set by user, try to locate tool using the code snippet
11238     for ac_prog in xargs
11239 do
11240   # Extract the first word of "$ac_prog", so it can be a program name with args.
11241 set dummy $ac_prog; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243 $as_echo_n "checking for $ac_word... " >&6; }
11244 if ${ac_cv_path_XARGS+:} false; then :
11245   $as_echo_n "(cached) " >&6
11246 else
11247   case $XARGS in
11248   [\\/]* | ?:[\\/]*)
11249   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11250   ;;
11251   *)
11252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11253 for as_dir in $PATH
11254 do
11255   IFS=$as_save_IFS
11256   test -z "$as_dir" && as_dir=.
11257     for ac_exec_ext in '' $ac_executable_extensions; do
11258   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11259     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11261     break 2
11262   fi
11263 done
11264   done
11265 IFS=$as_save_IFS
11266 
11267   ;;
11268 esac
11269 fi
11270 XARGS=$ac_cv_path_XARGS
11271 if test -n "$XARGS"; then
11272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11273 $as_echo "$XARGS" >&6; }
11274 else
11275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276 $as_echo "no" >&6; }
11277 fi
11278 
11279 
11280   test -n "$XARGS" && break
11281 done
11282 
11283   else
11284     # The variable is set, but is it from the command line or the environment?
11285 
11286     # Try to remove the string !XARGS! from our list.
11287     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11288     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11289       # If it failed, the variable was not from the command line. Ignore it,
11290       # but warn the user (except for BASH, which is always set by the calling BASH).
11291       if test "xXARGS" != xBASH; then
11292         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11293 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11294       fi
11295       # Try to locate tool using the code snippet
11296       for ac_prog in xargs
11297 do
11298   # Extract the first word of "$ac_prog", so it can be a program name with args.
11299 set dummy $ac_prog; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11301 $as_echo_n "checking for $ac_word... " >&6; }
11302 if ${ac_cv_path_XARGS+:} false; then :
11303   $as_echo_n "(cached) " >&6
11304 else
11305   case $XARGS in
11306   [\\/]* | ?:[\\/]*)
11307   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11308   ;;
11309   *)
11310   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11312 do
11313   IFS=$as_save_IFS
11314   test -z "$as_dir" && as_dir=.
11315     for ac_exec_ext in '' $ac_executable_extensions; do
11316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11317     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11319     break 2
11320   fi
11321 done
11322   done
11323 IFS=$as_save_IFS
11324 
11325   ;;
11326 esac
11327 fi
11328 XARGS=$ac_cv_path_XARGS
11329 if test -n "$XARGS"; then
11330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11331 $as_echo "$XARGS" >&6; }
11332 else
11333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11334 $as_echo "no" >&6; }
11335 fi
11336 
11337 
11338   test -n "$XARGS" && break
11339 done
11340 
11341     else
11342       # If it succeeded, then it was overridden by the user. We will use it
11343       # for the tool.
11344 
11345       # First remove it from the list of overridden variables, so we can test
11346       # for unknown variables in the end.
11347       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11348 
11349       # Check if the provided tool contains a complete path.
11350       tool_specified="$XARGS"
11351       tool_basename="${tool_specified##*/}"
11352       if test "x$tool_basename" = "x$tool_specified"; then
11353         # A command without a complete path is provided, search $PATH.
11354         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11355 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11356         # Extract the first word of "$tool_basename", so it can be a program name with args.
11357 set dummy $tool_basename; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359 $as_echo_n "checking for $ac_word... " >&6; }
11360 if ${ac_cv_path_XARGS+:} false; then :
11361   $as_echo_n "(cached) " >&6
11362 else
11363   case $XARGS in
11364   [\\/]* | ?:[\\/]*)
11365   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11366   ;;
11367   *)
11368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11369 for as_dir in $PATH
11370 do
11371   IFS=$as_save_IFS
11372   test -z "$as_dir" && as_dir=.
11373     for ac_exec_ext in '' $ac_executable_extensions; do
11374   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11375     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11377     break 2
11378   fi
11379 done
11380   done
11381 IFS=$as_save_IFS
11382 
11383   ;;
11384 esac
11385 fi
11386 XARGS=$ac_cv_path_XARGS
11387 if test -n "$XARGS"; then
11388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11389 $as_echo "$XARGS" >&6; }
11390 else
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11392 $as_echo "no" >&6; }
11393 fi
11394 
11395 
11396         if test "x$XARGS" = x; then
11397           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11398         fi
11399       else
11400         # Otherwise we believe it is a complete path. Use it as it is.
11401         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11402 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11403         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11404 $as_echo_n "checking for XARGS... " >&6; }
11405         if test ! -x "$tool_specified"; then
11406           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11407 $as_echo "not found" >&6; }
11408           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11409         fi
11410         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11411 $as_echo "$tool_specified" >&6; }
11412       fi
11413     fi
11414   fi
11415 
11416 
11417 
11418   if test "x$XARGS" = x; then
11419     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11420   fi
11421 
11422 
11423 
11424   # Then required tools that require some special treatment.
11425 
11426 
11427   # Publish this variable in the help.
11428 
11429 
11430   if test "x$AWK" = x; then
11431     # The variable is not set by user, try to locate tool using the code snippet
11432     for ac_prog in gawk mawk nawk awk
11433 do
11434   # Extract the first word of "$ac_prog", so it can be a program name with args.
11435 set dummy $ac_prog; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_prog_AWK+:} false; then :
11439   $as_echo_n "(cached) " >&6
11440 else
11441   if test -n "$AWK"; then
11442   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11443 else
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11446 do
11447   IFS=$as_save_IFS
11448   test -z "$as_dir" && as_dir=.
11449     for ac_exec_ext in '' $ac_executable_extensions; do
11450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451     ac_cv_prog_AWK="$ac_prog"
11452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11453     break 2
11454   fi
11455 done
11456   done
11457 IFS=$as_save_IFS
11458 
11459 fi
11460 fi
11461 AWK=$ac_cv_prog_AWK
11462 if test -n "$AWK"; then
11463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11464 $as_echo "$AWK" >&6; }
11465 else
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11468 fi
11469 
11470 
11471   test -n "$AWK" && break
11472 done
11473 
11474   else
11475     # The variable is set, but is it from the command line or the environment?
11476 
11477     # Try to remove the string !AWK! from our list.
11478     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11479     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11480       # If it failed, the variable was not from the command line. Ignore it,
11481       # but warn the user (except for BASH, which is always set by the calling BASH).
11482       if test "xAWK" != xBASH; then
11483         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11484 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11485       fi
11486       # Try to locate tool using the code snippet
11487       for ac_prog in gawk mawk nawk awk
11488 do
11489   # Extract the first word of "$ac_prog", so it can be a program name with args.
11490 set dummy $ac_prog; ac_word=$2
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11492 $as_echo_n "checking for $ac_word... " >&6; }
11493 if ${ac_cv_prog_AWK+:} false; then :
11494   $as_echo_n "(cached) " >&6
11495 else
11496   if test -n "$AWK"; then
11497   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11498 else
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH
11501 do
11502   IFS=$as_save_IFS
11503   test -z "$as_dir" && as_dir=.
11504     for ac_exec_ext in '' $ac_executable_extensions; do
11505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11506     ac_cv_prog_AWK="$ac_prog"
11507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508     break 2
11509   fi
11510 done
11511   done
11512 IFS=$as_save_IFS
11513 
11514 fi
11515 fi
11516 AWK=$ac_cv_prog_AWK
11517 if test -n "$AWK"; then
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11519 $as_echo "$AWK" >&6; }
11520 else
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11522 $as_echo "no" >&6; }
11523 fi
11524 
11525 
11526   test -n "$AWK" && break
11527 done
11528 
11529     else
11530       # If it succeeded, then it was overridden by the user. We will use it
11531       # for the tool.
11532 
11533       # First remove it from the list of overridden variables, so we can test
11534       # for unknown variables in the end.
11535       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11536 
11537       # Check if the provided tool contains a complete path.
11538       tool_specified="$AWK"
11539       tool_basename="${tool_specified##*/}"
11540       if test "x$tool_basename" = "x$tool_specified"; then
11541         # A command without a complete path is provided, search $PATH.
11542         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11543 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11544         # Extract the first word of "$tool_basename", so it can be a program name with args.
11545 set dummy $tool_basename; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11547 $as_echo_n "checking for $ac_word... " >&6; }
11548 if ${ac_cv_path_AWK+:} false; then :
11549   $as_echo_n "(cached) " >&6
11550 else
11551   case $AWK in
11552   [\\/]* | ?:[\\/]*)
11553   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11554   ;;
11555   *)
11556   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11557 for as_dir in $PATH
11558 do
11559   IFS=$as_save_IFS
11560   test -z "$as_dir" && as_dir=.
11561     for ac_exec_ext in '' $ac_executable_extensions; do
11562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11563     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11565     break 2
11566   fi
11567 done
11568   done
11569 IFS=$as_save_IFS
11570 
11571   ;;
11572 esac
11573 fi
11574 AWK=$ac_cv_path_AWK
11575 if test -n "$AWK"; then
11576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11577 $as_echo "$AWK" >&6; }
11578 else
11579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11580 $as_echo "no" >&6; }
11581 fi
11582 
11583 
11584         if test "x$AWK" = x; then
11585           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11586         fi
11587       else
11588         # Otherwise we believe it is a complete path. Use it as it is.
11589         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11590 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11591         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11592 $as_echo_n "checking for AWK... " >&6; }
11593         if test ! -x "$tool_specified"; then
11594           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11595 $as_echo "not found" >&6; }
11596           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11597         fi
11598         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11599 $as_echo "$tool_specified" >&6; }
11600       fi
11601     fi
11602   fi
11603 
11604 
11605   if test "x$AWK" = x; then
11606     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11607   fi
11608 
11609 
11610 
11611 
11612   # Publish this variable in the help.
11613 
11614 
11615   if test "x$GREP" = x; then
11616     # The variable is not set by user, try to locate tool using the code snippet
11617     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11618 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11619 if ${ac_cv_path_GREP+:} false; then :
11620   $as_echo_n "(cached) " >&6
11621 else
11622   if test -z "$GREP"; then
11623   ac_path_GREP_found=false
11624   # Loop through the user's path and test for each of PROGNAME-LIST
11625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11627 do
11628   IFS=$as_save_IFS
11629   test -z "$as_dir" && as_dir=.
11630     for ac_prog in grep ggrep; do
11631     for ac_exec_ext in '' $ac_executable_extensions; do
11632       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11633       as_fn_executable_p "$ac_path_GREP" || continue
11634 # Check for GNU ac_path_GREP and select it if it is found.
11635   # Check for GNU $ac_path_GREP
11636 case `"$ac_path_GREP" --version 2>&1` in
11637 *GNU*)
11638   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11639 *)
11640   ac_count=0
11641   $as_echo_n 0123456789 >"conftest.in"
11642   while :
11643   do
11644     cat "conftest.in" "conftest.in" >"conftest.tmp"
11645     mv "conftest.tmp" "conftest.in"
11646     cp "conftest.in" "conftest.nl"
11647     $as_echo 'GREP' >> "conftest.nl"
11648     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11649     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11650     as_fn_arith $ac_count + 1 && ac_count=$as_val
11651     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11652       # Best one so far, save it but keep looking for a better one
11653       ac_cv_path_GREP="$ac_path_GREP"
11654       ac_path_GREP_max=$ac_count
11655     fi
11656     # 10*(2^10) chars as input seems more than enough
11657     test $ac_count -gt 10 && break
11658   done
11659   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11660 esac
11661 
11662       $ac_path_GREP_found && break 3
11663     done
11664   done
11665   done
11666 IFS=$as_save_IFS
11667   if test -z "$ac_cv_path_GREP"; then
11668     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11669   fi
11670 else
11671   ac_cv_path_GREP=$GREP
11672 fi
11673 
11674 fi
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11676 $as_echo "$ac_cv_path_GREP" >&6; }
11677  GREP="$ac_cv_path_GREP"
11678 
11679 
11680   else
11681     # The variable is set, but is it from the command line or the environment?
11682 
11683     # Try to remove the string !GREP! from our list.
11684     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11685     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11686       # If it failed, the variable was not from the command line. Ignore it,
11687       # but warn the user (except for BASH, which is always set by the calling BASH).
11688       if test "xGREP" != xBASH; then
11689         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11690 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11691       fi
11692       # Try to locate tool using the code snippet
11693       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11694 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11695 if ${ac_cv_path_GREP+:} false; then :
11696   $as_echo_n "(cached) " >&6
11697 else
11698   if test -z "$GREP"; then
11699   ac_path_GREP_found=false
11700   # Loop through the user's path and test for each of PROGNAME-LIST
11701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11703 do
11704   IFS=$as_save_IFS
11705   test -z "$as_dir" && as_dir=.
11706     for ac_prog in grep ggrep; do
11707     for ac_exec_ext in '' $ac_executable_extensions; do
11708       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11709       as_fn_executable_p "$ac_path_GREP" || continue
11710 # Check for GNU ac_path_GREP and select it if it is found.
11711   # Check for GNU $ac_path_GREP
11712 case `"$ac_path_GREP" --version 2>&1` in
11713 *GNU*)
11714   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11715 *)
11716   ac_count=0
11717   $as_echo_n 0123456789 >"conftest.in"
11718   while :
11719   do
11720     cat "conftest.in" "conftest.in" >"conftest.tmp"
11721     mv "conftest.tmp" "conftest.in"
11722     cp "conftest.in" "conftest.nl"
11723     $as_echo 'GREP' >> "conftest.nl"
11724     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11726     as_fn_arith $ac_count + 1 && ac_count=$as_val
11727     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11728       # Best one so far, save it but keep looking for a better one
11729       ac_cv_path_GREP="$ac_path_GREP"
11730       ac_path_GREP_max=$ac_count
11731     fi
11732     # 10*(2^10) chars as input seems more than enough
11733     test $ac_count -gt 10 && break
11734   done
11735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11736 esac
11737 
11738       $ac_path_GREP_found && break 3
11739     done
11740   done
11741   done
11742 IFS=$as_save_IFS
11743   if test -z "$ac_cv_path_GREP"; then
11744     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11745   fi
11746 else
11747   ac_cv_path_GREP=$GREP
11748 fi
11749 
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11752 $as_echo "$ac_cv_path_GREP" >&6; }
11753  GREP="$ac_cv_path_GREP"
11754 
11755 
11756     else
11757       # If it succeeded, then it was overridden by the user. We will use it
11758       # for the tool.
11759 
11760       # First remove it from the list of overridden variables, so we can test
11761       # for unknown variables in the end.
11762       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11763 
11764       # Check if the provided tool contains a complete path.
11765       tool_specified="$GREP"
11766       tool_basename="${tool_specified##*/}"
11767       if test "x$tool_basename" = "x$tool_specified"; then
11768         # A command without a complete path is provided, search $PATH.
11769         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11770 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11771         # Extract the first word of "$tool_basename", so it can be a program name with args.
11772 set dummy $tool_basename; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if ${ac_cv_path_GREP+:} false; then :
11776   $as_echo_n "(cached) " >&6
11777 else
11778   case $GREP in
11779   [\\/]* | ?:[\\/]*)
11780   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11781   ;;
11782   *)
11783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11785 do
11786   IFS=$as_save_IFS
11787   test -z "$as_dir" && as_dir=.
11788     for ac_exec_ext in '' $ac_executable_extensions; do
11789   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11790     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11792     break 2
11793   fi
11794 done
11795   done
11796 IFS=$as_save_IFS
11797 
11798   ;;
11799 esac
11800 fi
11801 GREP=$ac_cv_path_GREP
11802 if test -n "$GREP"; then
11803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11804 $as_echo "$GREP" >&6; }
11805 else
11806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807 $as_echo "no" >&6; }
11808 fi
11809 
11810 
11811         if test "x$GREP" = x; then
11812           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11813         fi
11814       else
11815         # Otherwise we believe it is a complete path. Use it as it is.
11816         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11817 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11818         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11819 $as_echo_n "checking for GREP... " >&6; }
11820         if test ! -x "$tool_specified"; then
11821           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11822 $as_echo "not found" >&6; }
11823           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11824         fi
11825         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11826 $as_echo "$tool_specified" >&6; }
11827       fi
11828     fi
11829   fi
11830 
11831 
11832   if test "x$GREP" = x; then
11833     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11834   fi
11835 
11836 
11837 
11838 
11839   # Publish this variable in the help.
11840 
11841 
11842   if test "x$EGREP" = x; then
11843     # The variable is not set by user, try to locate tool using the code snippet
11844     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11845 $as_echo_n "checking for egrep... " >&6; }
11846 if ${ac_cv_path_EGREP+:} false; then :
11847   $as_echo_n "(cached) " >&6
11848 else
11849   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11850    then ac_cv_path_EGREP="$GREP -E"
11851    else
11852      if test -z "$EGREP"; then
11853   ac_path_EGREP_found=false
11854   # Loop through the user's path and test for each of PROGNAME-LIST
11855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11857 do
11858   IFS=$as_save_IFS
11859   test -z "$as_dir" && as_dir=.
11860     for ac_prog in egrep; do
11861     for ac_exec_ext in '' $ac_executable_extensions; do
11862       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11863       as_fn_executable_p "$ac_path_EGREP" || continue
11864 # Check for GNU ac_path_EGREP and select it if it is found.
11865   # Check for GNU $ac_path_EGREP
11866 case `"$ac_path_EGREP" --version 2>&1` in
11867 *GNU*)
11868   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11869 *)
11870   ac_count=0
11871   $as_echo_n 0123456789 >"conftest.in"
11872   while :
11873   do
11874     cat "conftest.in" "conftest.in" >"conftest.tmp"
11875     mv "conftest.tmp" "conftest.in"
11876     cp "conftest.in" "conftest.nl"
11877     $as_echo 'EGREP' >> "conftest.nl"
11878     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11880     as_fn_arith $ac_count + 1 && ac_count=$as_val
11881     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11882       # Best one so far, save it but keep looking for a better one
11883       ac_cv_path_EGREP="$ac_path_EGREP"
11884       ac_path_EGREP_max=$ac_count
11885     fi
11886     # 10*(2^10) chars as input seems more than enough
11887     test $ac_count -gt 10 && break
11888   done
11889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11890 esac
11891 
11892       $ac_path_EGREP_found && break 3
11893     done
11894   done
11895   done
11896 IFS=$as_save_IFS
11897   if test -z "$ac_cv_path_EGREP"; then
11898     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11899   fi
11900 else
11901   ac_cv_path_EGREP=$EGREP
11902 fi
11903 
11904    fi
11905 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11907 $as_echo "$ac_cv_path_EGREP" >&6; }
11908  EGREP="$ac_cv_path_EGREP"
11909 
11910 
11911   else
11912     # The variable is set, but is it from the command line or the environment?
11913 
11914     # Try to remove the string !EGREP! from our list.
11915     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11916     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11917       # If it failed, the variable was not from the command line. Ignore it,
11918       # but warn the user (except for BASH, which is always set by the calling BASH).
11919       if test "xEGREP" != xBASH; then
11920         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11921 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11922       fi
11923       # Try to locate tool using the code snippet
11924       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11925 $as_echo_n "checking for egrep... " >&6; }
11926 if ${ac_cv_path_EGREP+:} false; then :
11927   $as_echo_n "(cached) " >&6
11928 else
11929   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11930    then ac_cv_path_EGREP="$GREP -E"
11931    else
11932      if test -z "$EGREP"; then
11933   ac_path_EGREP_found=false
11934   # Loop through the user's path and test for each of PROGNAME-LIST
11935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11937 do
11938   IFS=$as_save_IFS
11939   test -z "$as_dir" && as_dir=.
11940     for ac_prog in egrep; do
11941     for ac_exec_ext in '' $ac_executable_extensions; do
11942       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11943       as_fn_executable_p "$ac_path_EGREP" || continue
11944 # Check for GNU ac_path_EGREP and select it if it is found.
11945   # Check for GNU $ac_path_EGREP
11946 case `"$ac_path_EGREP" --version 2>&1` in
11947 *GNU*)
11948   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11949 *)
11950   ac_count=0
11951   $as_echo_n 0123456789 >"conftest.in"
11952   while :
11953   do
11954     cat "conftest.in" "conftest.in" >"conftest.tmp"
11955     mv "conftest.tmp" "conftest.in"
11956     cp "conftest.in" "conftest.nl"
11957     $as_echo 'EGREP' >> "conftest.nl"
11958     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11959     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11960     as_fn_arith $ac_count + 1 && ac_count=$as_val
11961     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11962       # Best one so far, save it but keep looking for a better one
11963       ac_cv_path_EGREP="$ac_path_EGREP"
11964       ac_path_EGREP_max=$ac_count
11965     fi
11966     # 10*(2^10) chars as input seems more than enough
11967     test $ac_count -gt 10 && break
11968   done
11969   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11970 esac
11971 
11972       $ac_path_EGREP_found && break 3
11973     done
11974   done
11975   done
11976 IFS=$as_save_IFS
11977   if test -z "$ac_cv_path_EGREP"; then
11978     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11979   fi
11980 else
11981   ac_cv_path_EGREP=$EGREP
11982 fi
11983 
11984    fi
11985 fi
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11987 $as_echo "$ac_cv_path_EGREP" >&6; }
11988  EGREP="$ac_cv_path_EGREP"
11989 
11990 
11991     else
11992       # If it succeeded, then it was overridden by the user. We will use it
11993       # for the tool.
11994 
11995       # First remove it from the list of overridden variables, so we can test
11996       # for unknown variables in the end.
11997       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11998 
11999       # Check if the provided tool contains a complete path.
12000       tool_specified="$EGREP"
12001       tool_basename="${tool_specified##*/}"
12002       if test "x$tool_basename" = "x$tool_specified"; then
12003         # A command without a complete path is provided, search $PATH.
12004         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
12005 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
12006         # Extract the first word of "$tool_basename", so it can be a program name with args.
12007 set dummy $tool_basename; ac_word=$2
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12009 $as_echo_n "checking for $ac_word... " >&6; }
12010 if ${ac_cv_path_EGREP+:} false; then :
12011   $as_echo_n "(cached) " >&6
12012 else
12013   case $EGREP in
12014   [\\/]* | ?:[\\/]*)
12015   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
12016   ;;
12017   *)
12018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12020 do
12021   IFS=$as_save_IFS
12022   test -z "$as_dir" && as_dir=.
12023     for ac_exec_ext in '' $ac_executable_extensions; do
12024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
12026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12027     break 2
12028   fi
12029 done
12030   done
12031 IFS=$as_save_IFS
12032 
12033   ;;
12034 esac
12035 fi
12036 EGREP=$ac_cv_path_EGREP
12037 if test -n "$EGREP"; then
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
12039 $as_echo "$EGREP" >&6; }
12040 else
12041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043 fi
12044 
12045 
12046         if test "x$EGREP" = x; then
12047           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12048         fi
12049       else
12050         # Otherwise we believe it is a complete path. Use it as it is.
12051         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12052 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12053         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12054 $as_echo_n "checking for EGREP... " >&6; }
12055         if test ! -x "$tool_specified"; then
12056           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12057 $as_echo "not found" >&6; }
12058           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12059         fi
12060         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12061 $as_echo "$tool_specified" >&6; }
12062       fi
12063     fi
12064   fi
12065 
12066 
12067   if test "x$EGREP" = x; then
12068     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12069   fi
12070 
12071 
12072 
12073 
12074   # Publish this variable in the help.
12075 
12076 
12077   if test "x$FGREP" = x; then
12078     # The variable is not set by user, try to locate tool using the code snippet
12079     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12080 $as_echo_n "checking for fgrep... " >&6; }
12081 if ${ac_cv_path_FGREP+:} false; then :
12082   $as_echo_n "(cached) " >&6
12083 else
12084   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12085    then ac_cv_path_FGREP="$GREP -F"
12086    else
12087      if test -z "$FGREP"; then
12088   ac_path_FGREP_found=false
12089   # Loop through the user's path and test for each of PROGNAME-LIST
12090   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12091 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12092 do
12093   IFS=$as_save_IFS
12094   test -z "$as_dir" && as_dir=.
12095     for ac_prog in fgrep; do
12096     for ac_exec_ext in '' $ac_executable_extensions; do
12097       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12098       as_fn_executable_p "$ac_path_FGREP" || continue
12099 # Check for GNU ac_path_FGREP and select it if it is found.
12100   # Check for GNU $ac_path_FGREP
12101 case `"$ac_path_FGREP" --version 2>&1` in
12102 *GNU*)
12103   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12104 *)
12105   ac_count=0
12106   $as_echo_n 0123456789 >"conftest.in"
12107   while :
12108   do
12109     cat "conftest.in" "conftest.in" >"conftest.tmp"
12110     mv "conftest.tmp" "conftest.in"
12111     cp "conftest.in" "conftest.nl"
12112     $as_echo 'FGREP' >> "conftest.nl"
12113     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12114     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12115     as_fn_arith $ac_count + 1 && ac_count=$as_val
12116     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12117       # Best one so far, save it but keep looking for a better one
12118       ac_cv_path_FGREP="$ac_path_FGREP"
12119       ac_path_FGREP_max=$ac_count
12120     fi
12121     # 10*(2^10) chars as input seems more than enough
12122     test $ac_count -gt 10 && break
12123   done
12124   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12125 esac
12126 
12127       $ac_path_FGREP_found && break 3
12128     done
12129   done
12130   done
12131 IFS=$as_save_IFS
12132   if test -z "$ac_cv_path_FGREP"; then
12133     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12134   fi
12135 else
12136   ac_cv_path_FGREP=$FGREP
12137 fi
12138 
12139    fi
12140 fi
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12142 $as_echo "$ac_cv_path_FGREP" >&6; }
12143  FGREP="$ac_cv_path_FGREP"
12144 
12145 
12146   else
12147     # The variable is set, but is it from the command line or the environment?
12148 
12149     # Try to remove the string !FGREP! from our list.
12150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12152       # If it failed, the variable was not from the command line. Ignore it,
12153       # but warn the user (except for BASH, which is always set by the calling BASH).
12154       if test "xFGREP" != xBASH; then
12155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12156 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12157       fi
12158       # Try to locate tool using the code snippet
12159       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12160 $as_echo_n "checking for fgrep... " >&6; }
12161 if ${ac_cv_path_FGREP+:} false; then :
12162   $as_echo_n "(cached) " >&6
12163 else
12164   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12165    then ac_cv_path_FGREP="$GREP -F"
12166    else
12167      if test -z "$FGREP"; then
12168   ac_path_FGREP_found=false
12169   # Loop through the user's path and test for each of PROGNAME-LIST
12170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12172 do
12173   IFS=$as_save_IFS
12174   test -z "$as_dir" && as_dir=.
12175     for ac_prog in fgrep; do
12176     for ac_exec_ext in '' $ac_executable_extensions; do
12177       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12178       as_fn_executable_p "$ac_path_FGREP" || continue
12179 # Check for GNU ac_path_FGREP and select it if it is found.
12180   # Check for GNU $ac_path_FGREP
12181 case `"$ac_path_FGREP" --version 2>&1` in
12182 *GNU*)
12183   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12184 *)
12185   ac_count=0
12186   $as_echo_n 0123456789 >"conftest.in"
12187   while :
12188   do
12189     cat "conftest.in" "conftest.in" >"conftest.tmp"
12190     mv "conftest.tmp" "conftest.in"
12191     cp "conftest.in" "conftest.nl"
12192     $as_echo 'FGREP' >> "conftest.nl"
12193     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12195     as_fn_arith $ac_count + 1 && ac_count=$as_val
12196     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12197       # Best one so far, save it but keep looking for a better one
12198       ac_cv_path_FGREP="$ac_path_FGREP"
12199       ac_path_FGREP_max=$ac_count
12200     fi
12201     # 10*(2^10) chars as input seems more than enough
12202     test $ac_count -gt 10 && break
12203   done
12204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12205 esac
12206 
12207       $ac_path_FGREP_found && break 3
12208     done
12209   done
12210   done
12211 IFS=$as_save_IFS
12212   if test -z "$ac_cv_path_FGREP"; then
12213     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12214   fi
12215 else
12216   ac_cv_path_FGREP=$FGREP
12217 fi
12218 
12219    fi
12220 fi
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12222 $as_echo "$ac_cv_path_FGREP" >&6; }
12223  FGREP="$ac_cv_path_FGREP"
12224 
12225 
12226     else
12227       # If it succeeded, then it was overridden by the user. We will use it
12228       # for the tool.
12229 
12230       # First remove it from the list of overridden variables, so we can test
12231       # for unknown variables in the end.
12232       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12233 
12234       # Check if the provided tool contains a complete path.
12235       tool_specified="$FGREP"
12236       tool_basename="${tool_specified##*/}"
12237       if test "x$tool_basename" = "x$tool_specified"; then
12238         # A command without a complete path is provided, search $PATH.
12239         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12240 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12241         # Extract the first word of "$tool_basename", so it can be a program name with args.
12242 set dummy $tool_basename; ac_word=$2
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244 $as_echo_n "checking for $ac_word... " >&6; }
12245 if ${ac_cv_path_FGREP+:} false; then :
12246   $as_echo_n "(cached) " >&6
12247 else
12248   case $FGREP in
12249   [\\/]* | ?:[\\/]*)
12250   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12251   ;;
12252   *)
12253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12254 for as_dir in $PATH
12255 do
12256   IFS=$as_save_IFS
12257   test -z "$as_dir" && as_dir=.
12258     for ac_exec_ext in '' $ac_executable_extensions; do
12259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12260     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12262     break 2
12263   fi
12264 done
12265   done
12266 IFS=$as_save_IFS
12267 
12268   ;;
12269 esac
12270 fi
12271 FGREP=$ac_cv_path_FGREP
12272 if test -n "$FGREP"; then
12273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12274 $as_echo "$FGREP" >&6; }
12275 else
12276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12277 $as_echo "no" >&6; }
12278 fi
12279 
12280 
12281         if test "x$FGREP" = x; then
12282           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12283         fi
12284       else
12285         # Otherwise we believe it is a complete path. Use it as it is.
12286         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12287 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12289 $as_echo_n "checking for FGREP... " >&6; }
12290         if test ! -x "$tool_specified"; then
12291           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12292 $as_echo "not found" >&6; }
12293           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12294         fi
12295         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12296 $as_echo "$tool_specified" >&6; }
12297       fi
12298     fi
12299   fi
12300 
12301 
12302   if test "x$FGREP" = x; then
12303     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12304   fi
12305 
12306 
12307 
12308 
12309   # Publish this variable in the help.
12310 
12311 
12312   if test "x$SED" = x; then
12313     # The variable is not set by user, try to locate tool using the code snippet
12314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12315 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12316 if ${ac_cv_path_SED+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12320      for ac_i in 1 2 3 4 5 6 7; do
12321        ac_script="$ac_script$as_nl$ac_script"
12322      done
12323      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12324      { ac_script=; unset ac_script;}
12325      if test -z "$SED"; then
12326   ac_path_SED_found=false
12327   # Loop through the user's path and test for each of PROGNAME-LIST
12328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12329 for as_dir in $PATH
12330 do
12331   IFS=$as_save_IFS
12332   test -z "$as_dir" && as_dir=.
12333     for ac_prog in sed gsed; do
12334     for ac_exec_ext in '' $ac_executable_extensions; do
12335       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12336       as_fn_executable_p "$ac_path_SED" || continue
12337 # Check for GNU ac_path_SED and select it if it is found.
12338   # Check for GNU $ac_path_SED
12339 case `"$ac_path_SED" --version 2>&1` in
12340 *GNU*)
12341   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12342 *)
12343   ac_count=0
12344   $as_echo_n 0123456789 >"conftest.in"
12345   while :
12346   do
12347     cat "conftest.in" "conftest.in" >"conftest.tmp"
12348     mv "conftest.tmp" "conftest.in"
12349     cp "conftest.in" "conftest.nl"
12350     $as_echo '' >> "conftest.nl"
12351     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12352     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12353     as_fn_arith $ac_count + 1 && ac_count=$as_val
12354     if test $ac_count -gt ${ac_path_SED_max-0}; then
12355       # Best one so far, save it but keep looking for a better one
12356       ac_cv_path_SED="$ac_path_SED"
12357       ac_path_SED_max=$ac_count
12358     fi
12359     # 10*(2^10) chars as input seems more than enough
12360     test $ac_count -gt 10 && break
12361   done
12362   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12363 esac
12364 
12365       $ac_path_SED_found && break 3
12366     done
12367   done
12368   done
12369 IFS=$as_save_IFS
12370   if test -z "$ac_cv_path_SED"; then
12371     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12372   fi
12373 else
12374   ac_cv_path_SED=$SED
12375 fi
12376 
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12379 $as_echo "$ac_cv_path_SED" >&6; }
12380  SED="$ac_cv_path_SED"
12381   rm -f conftest.sed
12382 
12383   else
12384     # The variable is set, but is it from the command line or the environment?
12385 
12386     # Try to remove the string !SED! from our list.
12387     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12388     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12389       # If it failed, the variable was not from the command line. Ignore it,
12390       # but warn the user (except for BASH, which is always set by the calling BASH).
12391       if test "xSED" != xBASH; then
12392         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12393 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12394       fi
12395       # Try to locate tool using the code snippet
12396       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12397 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12398 if ${ac_cv_path_SED+:} false; then :
12399   $as_echo_n "(cached) " >&6
12400 else
12401             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12402      for ac_i in 1 2 3 4 5 6 7; do
12403        ac_script="$ac_script$as_nl$ac_script"
12404      done
12405      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12406      { ac_script=; unset ac_script;}
12407      if test -z "$SED"; then
12408   ac_path_SED_found=false
12409   # Loop through the user's path and test for each of PROGNAME-LIST
12410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12412 do
12413   IFS=$as_save_IFS
12414   test -z "$as_dir" && as_dir=.
12415     for ac_prog in sed gsed; do
12416     for ac_exec_ext in '' $ac_executable_extensions; do
12417       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12418       as_fn_executable_p "$ac_path_SED" || continue
12419 # Check for GNU ac_path_SED and select it if it is found.
12420   # Check for GNU $ac_path_SED
12421 case `"$ac_path_SED" --version 2>&1` in
12422 *GNU*)
12423   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12424 *)
12425   ac_count=0
12426   $as_echo_n 0123456789 >"conftest.in"
12427   while :
12428   do
12429     cat "conftest.in" "conftest.in" >"conftest.tmp"
12430     mv "conftest.tmp" "conftest.in"
12431     cp "conftest.in" "conftest.nl"
12432     $as_echo '' >> "conftest.nl"
12433     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12434     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12435     as_fn_arith $ac_count + 1 && ac_count=$as_val
12436     if test $ac_count -gt ${ac_path_SED_max-0}; then
12437       # Best one so far, save it but keep looking for a better one
12438       ac_cv_path_SED="$ac_path_SED"
12439       ac_path_SED_max=$ac_count
12440     fi
12441     # 10*(2^10) chars as input seems more than enough
12442     test $ac_count -gt 10 && break
12443   done
12444   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12445 esac
12446 
12447       $ac_path_SED_found && break 3
12448     done
12449   done
12450   done
12451 IFS=$as_save_IFS
12452   if test -z "$ac_cv_path_SED"; then
12453     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12454   fi
12455 else
12456   ac_cv_path_SED=$SED
12457 fi
12458 
12459 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12461 $as_echo "$ac_cv_path_SED" >&6; }
12462  SED="$ac_cv_path_SED"
12463   rm -f conftest.sed
12464 
12465     else
12466       # If it succeeded, then it was overridden by the user. We will use it
12467       # for the tool.
12468 
12469       # First remove it from the list of overridden variables, so we can test
12470       # for unknown variables in the end.
12471       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12472 
12473       # Check if the provided tool contains a complete path.
12474       tool_specified="$SED"
12475       tool_basename="${tool_specified##*/}"
12476       if test "x$tool_basename" = "x$tool_specified"; then
12477         # A command without a complete path is provided, search $PATH.
12478         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12479 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12480         # Extract the first word of "$tool_basename", so it can be a program name with args.
12481 set dummy $tool_basename; ac_word=$2
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if ${ac_cv_path_SED+:} false; then :
12485   $as_echo_n "(cached) " >&6
12486 else
12487   case $SED in
12488   [\\/]* | ?:[\\/]*)
12489   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12490   ;;
12491   *)
12492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12493 for as_dir in $PATH
12494 do
12495   IFS=$as_save_IFS
12496   test -z "$as_dir" && as_dir=.
12497     for ac_exec_ext in '' $ac_executable_extensions; do
12498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12499     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12501     break 2
12502   fi
12503 done
12504   done
12505 IFS=$as_save_IFS
12506 
12507   ;;
12508 esac
12509 fi
12510 SED=$ac_cv_path_SED
12511 if test -n "$SED"; then
12512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12513 $as_echo "$SED" >&6; }
12514 else
12515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12516 $as_echo "no" >&6; }
12517 fi
12518 
12519 
12520         if test "x$SED" = x; then
12521           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12522         fi
12523       else
12524         # Otherwise we believe it is a complete path. Use it as it is.
12525         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12526 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12527         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12528 $as_echo_n "checking for SED... " >&6; }
12529         if test ! -x "$tool_specified"; then
12530           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12531 $as_echo "not found" >&6; }
12532           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12533         fi
12534         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12535 $as_echo "$tool_specified" >&6; }
12536       fi
12537     fi
12538   fi
12539 
12540 
12541   if test "x$SED" = x; then
12542     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12543   fi
12544 
12545 
12546 
12547   # Always force rm.
12548   RM="$RM -f"
12549 
12550   # pwd behaves differently on various platforms and some don't support the -L flag.
12551   # Always use the bash builtin pwd to get uniform behavior.
12552   THEPWDCMD=pwd
12553 
12554   # These are not required on all platforms
12555 
12556 
12557   # Publish this variable in the help.
12558 
12559 
12560   if test "x$CYGPATH" = x; then
12561     # The variable is not set by user, try to locate tool using the code snippet
12562     for ac_prog in cygpath
12563 do
12564   # Extract the first word of "$ac_prog", so it can be a program name with args.
12565 set dummy $ac_prog; ac_word=$2
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12567 $as_echo_n "checking for $ac_word... " >&6; }
12568 if ${ac_cv_path_CYGPATH+:} false; then :
12569   $as_echo_n "(cached) " >&6
12570 else
12571   case $CYGPATH in
12572   [\\/]* | ?:[\\/]*)
12573   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12574   ;;
12575   *)
12576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12577 for as_dir in $PATH
12578 do
12579   IFS=$as_save_IFS
12580   test -z "$as_dir" && as_dir=.
12581     for ac_exec_ext in '' $ac_executable_extensions; do
12582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12583     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12585     break 2
12586   fi
12587 done
12588   done
12589 IFS=$as_save_IFS
12590 
12591   ;;
12592 esac
12593 fi
12594 CYGPATH=$ac_cv_path_CYGPATH
12595 if test -n "$CYGPATH"; then
12596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12597 $as_echo "$CYGPATH" >&6; }
12598 else
12599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602 
12603 
12604   test -n "$CYGPATH" && break
12605 done
12606 
12607   else
12608     # The variable is set, but is it from the command line or the environment?
12609 
12610     # Try to remove the string !CYGPATH! from our list.
12611     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12612     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12613       # If it failed, the variable was not from the command line. Ignore it,
12614       # but warn the user (except for BASH, which is always set by the calling BASH).
12615       if test "xCYGPATH" != xBASH; then
12616         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12617 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12618       fi
12619       # Try to locate tool using the code snippet
12620       for ac_prog in cygpath
12621 do
12622   # Extract the first word of "$ac_prog", so it can be a program name with args.
12623 set dummy $ac_prog; ac_word=$2
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12625 $as_echo_n "checking for $ac_word... " >&6; }
12626 if ${ac_cv_path_CYGPATH+:} false; then :
12627   $as_echo_n "(cached) " >&6
12628 else
12629   case $CYGPATH in
12630   [\\/]* | ?:[\\/]*)
12631   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12632   ;;
12633   *)
12634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12635 for as_dir in $PATH
12636 do
12637   IFS=$as_save_IFS
12638   test -z "$as_dir" && as_dir=.
12639     for ac_exec_ext in '' $ac_executable_extensions; do
12640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12641     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12643     break 2
12644   fi
12645 done
12646   done
12647 IFS=$as_save_IFS
12648 
12649   ;;
12650 esac
12651 fi
12652 CYGPATH=$ac_cv_path_CYGPATH
12653 if test -n "$CYGPATH"; then
12654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12655 $as_echo "$CYGPATH" >&6; }
12656 else
12657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658 $as_echo "no" >&6; }
12659 fi
12660 
12661 
12662   test -n "$CYGPATH" && break
12663 done
12664 
12665     else
12666       # If it succeeded, then it was overridden by the user. We will use it
12667       # for the tool.
12668 
12669       # First remove it from the list of overridden variables, so we can test
12670       # for unknown variables in the end.
12671       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12672 
12673       # Check if the provided tool contains a complete path.
12674       tool_specified="$CYGPATH"
12675       tool_basename="${tool_specified##*/}"
12676       if test "x$tool_basename" = "x$tool_specified"; then
12677         # A command without a complete path is provided, search $PATH.
12678         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12679 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12680         # Extract the first word of "$tool_basename", so it can be a program name with args.
12681 set dummy $tool_basename; ac_word=$2
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12683 $as_echo_n "checking for $ac_word... " >&6; }
12684 if ${ac_cv_path_CYGPATH+:} false; then :
12685   $as_echo_n "(cached) " >&6
12686 else
12687   case $CYGPATH in
12688   [\\/]* | ?:[\\/]*)
12689   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12690   ;;
12691   *)
12692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12694 do
12695   IFS=$as_save_IFS
12696   test -z "$as_dir" && as_dir=.
12697     for ac_exec_ext in '' $ac_executable_extensions; do
12698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12699     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12701     break 2
12702   fi
12703 done
12704   done
12705 IFS=$as_save_IFS
12706 
12707   ;;
12708 esac
12709 fi
12710 CYGPATH=$ac_cv_path_CYGPATH
12711 if test -n "$CYGPATH"; then
12712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12713 $as_echo "$CYGPATH" >&6; }
12714 else
12715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12716 $as_echo "no" >&6; }
12717 fi
12718 
12719 
12720         if test "x$CYGPATH" = x; then
12721           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12722         fi
12723       else
12724         # Otherwise we believe it is a complete path. Use it as it is.
12725         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12726 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12728 $as_echo_n "checking for CYGPATH... " >&6; }
12729         if test ! -x "$tool_specified"; then
12730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12731 $as_echo "not found" >&6; }
12732           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12733         fi
12734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12735 $as_echo "$tool_specified" >&6; }
12736       fi
12737     fi
12738   fi
12739 
12740 
12741 
12742 
12743   # Publish this variable in the help.
12744 
12745 
12746   if test "x$READLINK" = x; then
12747     # The variable is not set by user, try to locate tool using the code snippet
12748     for ac_prog in greadlink readlink
12749 do
12750   # Extract the first word of "$ac_prog", so it can be a program name with args.
12751 set dummy $ac_prog; ac_word=$2
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12753 $as_echo_n "checking for $ac_word... " >&6; }
12754 if ${ac_cv_path_READLINK+:} false; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757   case $READLINK in
12758   [\\/]* | ?:[\\/]*)
12759   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12760   ;;
12761   *)
12762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12764 do
12765   IFS=$as_save_IFS
12766   test -z "$as_dir" && as_dir=.
12767     for ac_exec_ext in '' $ac_executable_extensions; do
12768   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12769     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12770     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12771     break 2
12772   fi
12773 done
12774   done
12775 IFS=$as_save_IFS
12776 
12777   ;;
12778 esac
12779 fi
12780 READLINK=$ac_cv_path_READLINK
12781 if test -n "$READLINK"; then
12782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12783 $as_echo "$READLINK" >&6; }
12784 else
12785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12786 $as_echo "no" >&6; }
12787 fi
12788 
12789 
12790   test -n "$READLINK" && break
12791 done
12792 
12793   else
12794     # The variable is set, but is it from the command line or the environment?
12795 
12796     # Try to remove the string !READLINK! from our list.
12797     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12798     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12799       # If it failed, the variable was not from the command line. Ignore it,
12800       # but warn the user (except for BASH, which is always set by the calling BASH).
12801       if test "xREADLINK" != xBASH; then
12802         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12803 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12804       fi
12805       # Try to locate tool using the code snippet
12806       for ac_prog in greadlink readlink
12807 do
12808   # Extract the first word of "$ac_prog", so it can be a program name with args.
12809 set dummy $ac_prog; ac_word=$2
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811 $as_echo_n "checking for $ac_word... " >&6; }
12812 if ${ac_cv_path_READLINK+:} false; then :
12813   $as_echo_n "(cached) " >&6
12814 else
12815   case $READLINK in
12816   [\\/]* | ?:[\\/]*)
12817   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12818   ;;
12819   *)
12820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821 for as_dir in $PATH
12822 do
12823   IFS=$as_save_IFS
12824   test -z "$as_dir" && as_dir=.
12825     for ac_exec_ext in '' $ac_executable_extensions; do
12826   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12827     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12828     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829     break 2
12830   fi
12831 done
12832   done
12833 IFS=$as_save_IFS
12834 
12835   ;;
12836 esac
12837 fi
12838 READLINK=$ac_cv_path_READLINK
12839 if test -n "$READLINK"; then
12840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12841 $as_echo "$READLINK" >&6; }
12842 else
12843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844 $as_echo "no" >&6; }
12845 fi
12846 
12847 
12848   test -n "$READLINK" && break
12849 done
12850 
12851     else
12852       # If it succeeded, then it was overridden by the user. We will use it
12853       # for the tool.
12854 
12855       # First remove it from the list of overridden variables, so we can test
12856       # for unknown variables in the end.
12857       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12858 
12859       # Check if the provided tool contains a complete path.
12860       tool_specified="$READLINK"
12861       tool_basename="${tool_specified##*/}"
12862       if test "x$tool_basename" = "x$tool_specified"; then
12863         # A command without a complete path is provided, search $PATH.
12864         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12865 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12866         # Extract the first word of "$tool_basename", so it can be a program name with args.
12867 set dummy $tool_basename; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12869 $as_echo_n "checking for $ac_word... " >&6; }
12870 if ${ac_cv_path_READLINK+:} false; then :
12871   $as_echo_n "(cached) " >&6
12872 else
12873   case $READLINK in
12874   [\\/]* | ?:[\\/]*)
12875   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12876   ;;
12877   *)
12878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12879 for as_dir in $PATH
12880 do
12881   IFS=$as_save_IFS
12882   test -z "$as_dir" && as_dir=.
12883     for ac_exec_ext in '' $ac_executable_extensions; do
12884   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12885     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12887     break 2
12888   fi
12889 done
12890   done
12891 IFS=$as_save_IFS
12892 
12893   ;;
12894 esac
12895 fi
12896 READLINK=$ac_cv_path_READLINK
12897 if test -n "$READLINK"; then
12898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12899 $as_echo "$READLINK" >&6; }
12900 else
12901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12902 $as_echo "no" >&6; }
12903 fi
12904 
12905 
12906         if test "x$READLINK" = x; then
12907           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12908         fi
12909       else
12910         # Otherwise we believe it is a complete path. Use it as it is.
12911         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12912 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12913         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12914 $as_echo_n "checking for READLINK... " >&6; }
12915         if test ! -x "$tool_specified"; then
12916           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12917 $as_echo "not found" >&6; }
12918           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12919         fi
12920         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12921 $as_echo "$tool_specified" >&6; }
12922       fi
12923     fi
12924   fi
12925 
12926 
12927 
12928 
12929   # Publish this variable in the help.
12930 
12931 
12932   if test "x$DF" = x; then
12933     # The variable is not set by user, try to locate tool using the code snippet
12934     for ac_prog in df
12935 do
12936   # Extract the first word of "$ac_prog", so it can be a program name with args.
12937 set dummy $ac_prog; ac_word=$2
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12939 $as_echo_n "checking for $ac_word... " >&6; }
12940 if ${ac_cv_path_DF+:} false; then :
12941   $as_echo_n "(cached) " >&6
12942 else
12943   case $DF in
12944   [\\/]* | ?:[\\/]*)
12945   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12946   ;;
12947   *)
12948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12949 for as_dir in $PATH
12950 do
12951   IFS=$as_save_IFS
12952   test -z "$as_dir" && as_dir=.
12953     for ac_exec_ext in '' $ac_executable_extensions; do
12954   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12955     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12957     break 2
12958   fi
12959 done
12960   done
12961 IFS=$as_save_IFS
12962 
12963   ;;
12964 esac
12965 fi
12966 DF=$ac_cv_path_DF
12967 if test -n "$DF"; then
12968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12969 $as_echo "$DF" >&6; }
12970 else
12971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12972 $as_echo "no" >&6; }
12973 fi
12974 
12975 
12976   test -n "$DF" && break
12977 done
12978 
12979   else
12980     # The variable is set, but is it from the command line or the environment?
12981 
12982     # Try to remove the string !DF! from our list.
12983     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12984     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12985       # If it failed, the variable was not from the command line. Ignore it,
12986       # but warn the user (except for BASH, which is always set by the calling BASH).
12987       if test "xDF" != xBASH; then
12988         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12989 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12990       fi
12991       # Try to locate tool using the code snippet
12992       for ac_prog in df
12993 do
12994   # Extract the first word of "$ac_prog", so it can be a program name with args.
12995 set dummy $ac_prog; ac_word=$2
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12997 $as_echo_n "checking for $ac_word... " >&6; }
12998 if ${ac_cv_path_DF+:} false; then :
12999   $as_echo_n "(cached) " >&6
13000 else
13001   case $DF in
13002   [\\/]* | ?:[\\/]*)
13003   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13004   ;;
13005   *)
13006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13007 for as_dir in $PATH
13008 do
13009   IFS=$as_save_IFS
13010   test -z "$as_dir" && as_dir=.
13011     for ac_exec_ext in '' $ac_executable_extensions; do
13012   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13013     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13015     break 2
13016   fi
13017 done
13018   done
13019 IFS=$as_save_IFS
13020 
13021   ;;
13022 esac
13023 fi
13024 DF=$ac_cv_path_DF
13025 if test -n "$DF"; then
13026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13027 $as_echo "$DF" >&6; }
13028 else
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13030 $as_echo "no" >&6; }
13031 fi
13032 
13033 
13034   test -n "$DF" && break
13035 done
13036 
13037     else
13038       # If it succeeded, then it was overridden by the user. We will use it
13039       # for the tool.
13040 
13041       # First remove it from the list of overridden variables, so we can test
13042       # for unknown variables in the end.
13043       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13044 
13045       # Check if the provided tool contains a complete path.
13046       tool_specified="$DF"
13047       tool_basename="${tool_specified##*/}"
13048       if test "x$tool_basename" = "x$tool_specified"; then
13049         # A command without a complete path is provided, search $PATH.
13050         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13051 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13052         # Extract the first word of "$tool_basename", so it can be a program name with args.
13053 set dummy $tool_basename; ac_word=$2
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13055 $as_echo_n "checking for $ac_word... " >&6; }
13056 if ${ac_cv_path_DF+:} false; then :
13057   $as_echo_n "(cached) " >&6
13058 else
13059   case $DF in
13060   [\\/]* | ?:[\\/]*)
13061   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13062   ;;
13063   *)
13064   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065 for as_dir in $PATH
13066 do
13067   IFS=$as_save_IFS
13068   test -z "$as_dir" && as_dir=.
13069     for ac_exec_ext in '' $ac_executable_extensions; do
13070   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13071     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13072     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13073     break 2
13074   fi
13075 done
13076   done
13077 IFS=$as_save_IFS
13078 
13079   ;;
13080 esac
13081 fi
13082 DF=$ac_cv_path_DF
13083 if test -n "$DF"; then
13084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13085 $as_echo "$DF" >&6; }
13086 else
13087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13088 $as_echo "no" >&6; }
13089 fi
13090 
13091 
13092         if test "x$DF" = x; then
13093           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13094         fi
13095       else
13096         # Otherwise we believe it is a complete path. Use it as it is.
13097         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13098 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13099         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13100 $as_echo_n "checking for DF... " >&6; }
13101         if test ! -x "$tool_specified"; then
13102           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13103 $as_echo "not found" >&6; }
13104           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13105         fi
13106         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13107 $as_echo "$tool_specified" >&6; }
13108       fi
13109     fi
13110   fi
13111 
13112 
13113 
13114 
13115   # Publish this variable in the help.
13116 
13117 
13118   if test "x$SETFILE" = x; then
13119     # The variable is not set by user, try to locate tool using the code snippet
13120     for ac_prog in SetFile
13121 do
13122   # Extract the first word of "$ac_prog", so it can be a program name with args.
13123 set dummy $ac_prog; ac_word=$2
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13125 $as_echo_n "checking for $ac_word... " >&6; }
13126 if ${ac_cv_path_SETFILE+:} false; then :
13127   $as_echo_n "(cached) " >&6
13128 else
13129   case $SETFILE in
13130   [\\/]* | ?:[\\/]*)
13131   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13132   ;;
13133   *)
13134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137   IFS=$as_save_IFS
13138   test -z "$as_dir" && as_dir=.
13139     for ac_exec_ext in '' $ac_executable_extensions; do
13140   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13142     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13143     break 2
13144   fi
13145 done
13146   done
13147 IFS=$as_save_IFS
13148 
13149   ;;
13150 esac
13151 fi
13152 SETFILE=$ac_cv_path_SETFILE
13153 if test -n "$SETFILE"; then
13154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13155 $as_echo "$SETFILE" >&6; }
13156 else
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13158 $as_echo "no" >&6; }
13159 fi
13160 
13161 
13162   test -n "$SETFILE" && break
13163 done
13164 
13165   else
13166     # The variable is set, but is it from the command line or the environment?
13167 
13168     # Try to remove the string !SETFILE! from our list.
13169     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13170     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13171       # If it failed, the variable was not from the command line. Ignore it,
13172       # but warn the user (except for BASH, which is always set by the calling BASH).
13173       if test "xSETFILE" != xBASH; then
13174         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13175 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13176       fi
13177       # Try to locate tool using the code snippet
13178       for ac_prog in SetFile
13179 do
13180   # Extract the first word of "$ac_prog", so it can be a program name with args.
13181 set dummy $ac_prog; ac_word=$2
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13183 $as_echo_n "checking for $ac_word... " >&6; }
13184 if ${ac_cv_path_SETFILE+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   case $SETFILE in
13188   [\\/]* | ?:[\\/]*)
13189   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13190   ;;
13191   *)
13192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13193 for as_dir in $PATH
13194 do
13195   IFS=$as_save_IFS
13196   test -z "$as_dir" && as_dir=.
13197     for ac_exec_ext in '' $ac_executable_extensions; do
13198   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13199     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13201     break 2
13202   fi
13203 done
13204   done
13205 IFS=$as_save_IFS
13206 
13207   ;;
13208 esac
13209 fi
13210 SETFILE=$ac_cv_path_SETFILE
13211 if test -n "$SETFILE"; then
13212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13213 $as_echo "$SETFILE" >&6; }
13214 else
13215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13216 $as_echo "no" >&6; }
13217 fi
13218 
13219 
13220   test -n "$SETFILE" && break
13221 done
13222 
13223     else
13224       # If it succeeded, then it was overridden by the user. We will use it
13225       # for the tool.
13226 
13227       # First remove it from the list of overridden variables, so we can test
13228       # for unknown variables in the end.
13229       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13230 
13231       # Check if the provided tool contains a complete path.
13232       tool_specified="$SETFILE"
13233       tool_basename="${tool_specified##*/}"
13234       if test "x$tool_basename" = "x$tool_specified"; then
13235         # A command without a complete path is provided, search $PATH.
13236         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13237 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13238         # Extract the first word of "$tool_basename", so it can be a program name with args.
13239 set dummy $tool_basename; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 $as_echo_n "checking for $ac_word... " >&6; }
13242 if ${ac_cv_path_SETFILE+:} false; then :
13243   $as_echo_n "(cached) " >&6
13244 else
13245   case $SETFILE in
13246   [\\/]* | ?:[\\/]*)
13247   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13248   ;;
13249   *)
13250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251 for as_dir in $PATH
13252 do
13253   IFS=$as_save_IFS
13254   test -z "$as_dir" && as_dir=.
13255     for ac_exec_ext in '' $ac_executable_extensions; do
13256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13257     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259     break 2
13260   fi
13261 done
13262   done
13263 IFS=$as_save_IFS
13264 
13265   ;;
13266 esac
13267 fi
13268 SETFILE=$ac_cv_path_SETFILE
13269 if test -n "$SETFILE"; then
13270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13271 $as_echo "$SETFILE" >&6; }
13272 else
13273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13274 $as_echo "no" >&6; }
13275 fi
13276 
13277 
13278         if test "x$SETFILE" = x; then
13279           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13280         fi
13281       else
13282         # Otherwise we believe it is a complete path. Use it as it is.
13283         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13284 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13285         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13286 $as_echo_n "checking for SETFILE... " >&6; }
13287         if test ! -x "$tool_specified"; then
13288           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13289 $as_echo "not found" >&6; }
13290           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13291         fi
13292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13293 $as_echo "$tool_specified" >&6; }
13294       fi
13295     fi
13296   fi
13297 
13298 
13299 
13300 
13301 # Now we can determine OpenJDK build and target platforms. This is required to
13302 # have early on.
13303 # Make sure we can run config.sub.
13304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13305   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13306 
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13308 $as_echo_n "checking build system type... " >&6; }
13309 if ${ac_cv_build+:} false; then :
13310   $as_echo_n "(cached) " >&6
13311 else
13312   ac_build_alias=$build_alias
13313 test "x$ac_build_alias" = x &&
13314   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13315 test "x$ac_build_alias" = x &&
13316   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13317 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13318   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13319 
13320 fi
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13322 $as_echo "$ac_cv_build" >&6; }
13323 case $ac_cv_build in
13324 *-*-*) ;;
13325 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13326 esac
13327 build=$ac_cv_build
13328 ac_save_IFS=$IFS; IFS='-'
13329 set x $ac_cv_build
13330 shift
13331 build_cpu=$1
13332 build_vendor=$2
13333 shift; shift
13334 # Remember, the first character of IFS is used to create $*,
13335 # except with old shells:
13336 build_os=$*
13337 IFS=$ac_save_IFS
13338 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13339 
13340 
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13342 $as_echo_n "checking host system type... " >&6; }
13343 if ${ac_cv_host+:} false; then :
13344   $as_echo_n "(cached) " >&6
13345 else
13346   if test "x$host_alias" = x; then
13347   ac_cv_host=$ac_cv_build
13348 else
13349   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13350     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13351 fi
13352 
13353 fi
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13355 $as_echo "$ac_cv_host" >&6; }
13356 case $ac_cv_host in
13357 *-*-*) ;;
13358 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13359 esac
13360 host=$ac_cv_host
13361 ac_save_IFS=$IFS; IFS='-'
13362 set x $ac_cv_host
13363 shift
13364 host_cpu=$1
13365 host_vendor=$2
13366 shift; shift
13367 # Remember, the first character of IFS is used to create $*,
13368 # except with old shells:
13369 host_os=$*
13370 IFS=$ac_save_IFS
13371 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13372 
13373 
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13375 $as_echo_n "checking target system type... " >&6; }
13376 if ${ac_cv_target+:} false; then :
13377   $as_echo_n "(cached) " >&6
13378 else
13379   if test "x$target_alias" = x; then
13380   ac_cv_target=$ac_cv_host
13381 else
13382   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13383     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13384 fi
13385 
13386 fi
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13388 $as_echo "$ac_cv_target" >&6; }
13389 case $ac_cv_target in
13390 *-*-*) ;;
13391 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13392 esac
13393 target=$ac_cv_target
13394 ac_save_IFS=$IFS; IFS='-'
13395 set x $ac_cv_target
13396 shift
13397 target_cpu=$1
13398 target_vendor=$2
13399 shift; shift
13400 # Remember, the first character of IFS is used to create $*,
13401 # except with old shells:
13402 target_os=$*
13403 IFS=$ac_save_IFS
13404 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13405 
13406 
13407 # The aliases save the names the user supplied, while $host etc.
13408 # will get canonicalized.
13409 test -n "$target_alias" &&
13410   test "$program_prefix$program_suffix$program_transform_name" = \
13411     NONENONEs,x,x, &&
13412   program_prefix=${target_alias}-
13413 
13414   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13415   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13416   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13417   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13418   # to use the configure naming style.
13419 
13420 
13421 
13422 
13423 
13424   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13425   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13426   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13427   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13428   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13429   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13430 
13431 
13432 
13433   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13434 
13435   case "$build_os" in
13436     *linux*)
13437       VAR_OS=linux
13438       VAR_OS_API=posix
13439       VAR_OS_ENV=linux
13440       ;;
13441     *solaris*)
13442       VAR_OS=solaris
13443       VAR_OS_API=posix
13444       VAR_OS_ENV=solaris
13445       ;;
13446     *darwin*)
13447       VAR_OS=macosx
13448       VAR_OS_API=posix
13449       VAR_OS_ENV=macosx
13450       ;;
13451     *bsd*)
13452       VAR_OS=bsd
13453       VAR_OS_API=posix
13454       VAR_OS_ENV=bsd
13455       ;;
13456     *cygwin*)
13457       VAR_OS=windows
13458       VAR_OS_API=winapi
13459       VAR_OS_ENV=windows.cygwin
13460       ;;
13461     *mingw*)
13462       VAR_OS=windows
13463       VAR_OS_API=winapi
13464       VAR_OS_ENV=windows.msys
13465       ;;
13466     *aix*)
13467       VAR_OS=aix
13468       VAR_OS_API=posix
13469       VAR_OS_ENV=aix
13470       ;;
13471     *)
13472       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13473       ;;
13474   esac
13475 
13476 
13477   # First argument is the cpu name from the trip/quad
13478   case "$build_cpu" in
13479     x86_64)
13480       VAR_CPU=x86_64
13481       VAR_CPU_ARCH=x86
13482       VAR_CPU_BITS=64
13483       VAR_CPU_ENDIAN=little
13484       ;;
13485     i?86)
13486       VAR_CPU=x86
13487       VAR_CPU_ARCH=x86
13488       VAR_CPU_BITS=32
13489       VAR_CPU_ENDIAN=little
13490       ;;
13491     arm*)
13492       VAR_CPU=arm
13493       VAR_CPU_ARCH=arm
13494       VAR_CPU_BITS=32
13495       VAR_CPU_ENDIAN=little
13496       ;;
13497     powerpc)
13498       VAR_CPU=ppc
13499       VAR_CPU_ARCH=ppc
13500       VAR_CPU_BITS=32
13501       VAR_CPU_ENDIAN=big
13502       ;;
13503     powerpc64)
13504       VAR_CPU=ppc64
13505       VAR_CPU_ARCH=ppc
13506       VAR_CPU_BITS=64
13507       VAR_CPU_ENDIAN=big
13508       ;;
13509     s390)
13510       VAR_CPU=s390
13511       VAR_CPU_ARCH=s390
13512       VAR_CPU_BITS=32
13513       VAR_CPU_ENDIAN=big
13514       ;;
13515     s390x)
13516       VAR_CPU=s390x
13517       VAR_CPU_ARCH=s390
13518       VAR_CPU_BITS=64
13519       VAR_CPU_ENDIAN=big
13520       ;;
13521     sparc)
13522       VAR_CPU=sparc
13523       VAR_CPU_ARCH=sparc
13524       VAR_CPU_BITS=32
13525       VAR_CPU_ENDIAN=big
13526       ;;
13527     sparcv9)
13528       VAR_CPU=sparcv9
13529       VAR_CPU_ARCH=sparc
13530       VAR_CPU_BITS=64
13531       VAR_CPU_ENDIAN=big
13532       ;;
13533     *)
13534       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13535       ;;
13536   esac
13537 
13538   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13539   OPENJDK_BUILD_OS="$VAR_OS"
13540   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13541   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13542   OPENJDK_BUILD_CPU="$VAR_CPU"
13543   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13544   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13545   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13546 
13547 
13548 
13549 
13550 
13551 
13552 
13553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13554 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13556 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13557 
13558   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13559 
13560   case "$host_os" in
13561     *linux*)
13562       VAR_OS=linux
13563       VAR_OS_API=posix
13564       VAR_OS_ENV=linux
13565       ;;
13566     *solaris*)
13567       VAR_OS=solaris
13568       VAR_OS_API=posix
13569       VAR_OS_ENV=solaris
13570       ;;
13571     *darwin*)
13572       VAR_OS=macosx
13573       VAR_OS_API=posix
13574       VAR_OS_ENV=macosx
13575       ;;
13576     *bsd*)
13577       VAR_OS=bsd
13578       VAR_OS_API=posix
13579       VAR_OS_ENV=bsd
13580       ;;
13581     *cygwin*)
13582       VAR_OS=windows
13583       VAR_OS_API=winapi
13584       VAR_OS_ENV=windows.cygwin
13585       ;;
13586     *mingw*)
13587       VAR_OS=windows
13588       VAR_OS_API=winapi
13589       VAR_OS_ENV=windows.msys
13590       ;;
13591     *aix*)
13592       VAR_OS=aix
13593       VAR_OS_API=posix
13594       VAR_OS_ENV=aix
13595       ;;
13596     *)
13597       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13598       ;;
13599   esac
13600 
13601 
13602   # First argument is the cpu name from the trip/quad
13603   case "$host_cpu" in
13604     x86_64)
13605       VAR_CPU=x86_64
13606       VAR_CPU_ARCH=x86
13607       VAR_CPU_BITS=64
13608       VAR_CPU_ENDIAN=little
13609       ;;
13610     i?86)
13611       VAR_CPU=x86
13612       VAR_CPU_ARCH=x86
13613       VAR_CPU_BITS=32
13614       VAR_CPU_ENDIAN=little
13615       ;;
13616     arm*)
13617       VAR_CPU=arm
13618       VAR_CPU_ARCH=arm
13619       VAR_CPU_BITS=32
13620       VAR_CPU_ENDIAN=little
13621       ;;
13622     powerpc)
13623       VAR_CPU=ppc
13624       VAR_CPU_ARCH=ppc
13625       VAR_CPU_BITS=32
13626       VAR_CPU_ENDIAN=big
13627       ;;
13628     powerpc64)
13629       VAR_CPU=ppc64
13630       VAR_CPU_ARCH=ppc
13631       VAR_CPU_BITS=64
13632       VAR_CPU_ENDIAN=big
13633       ;;
13634     s390)
13635       VAR_CPU=s390
13636       VAR_CPU_ARCH=s390
13637       VAR_CPU_BITS=32
13638       VAR_CPU_ENDIAN=big
13639       ;;
13640     s390x)
13641       VAR_CPU=s390x
13642       VAR_CPU_ARCH=s390
13643       VAR_CPU_BITS=64
13644       VAR_CPU_ENDIAN=big
13645       ;;
13646     sparc)
13647       VAR_CPU=sparc
13648       VAR_CPU_ARCH=sparc
13649       VAR_CPU_BITS=32
13650       VAR_CPU_ENDIAN=big
13651       ;;
13652     sparcv9)
13653       VAR_CPU=sparcv9
13654       VAR_CPU_ARCH=sparc
13655       VAR_CPU_BITS=64
13656       VAR_CPU_ENDIAN=big
13657       ;;
13658     *)
13659       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13660       ;;
13661   esac
13662 
13663   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13664   OPENJDK_TARGET_OS="$VAR_OS"
13665   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13666   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13667   OPENJDK_TARGET_CPU="$VAR_CPU"
13668   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13669   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13670   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13671 
13672 
13673 
13674 
13675 
13676 
13677 
13678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13679 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13681 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13682 
13683 
13684 
13685 # Check whether --with-target-bits was given.
13686 if test "${with_target_bits+set}" = set; then :
13687   withval=$with_target_bits;
13688 fi
13689 
13690 
13691   # We have three types of compiles:
13692   # native  == normal compilation, target system == build system
13693   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13694   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13695   #
13696   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13697     # We're doing a proper cross-compilation
13698     COMPILE_TYPE="cross"
13699   else
13700     COMPILE_TYPE="native"
13701   fi
13702 
13703   if test "x$with_target_bits" != x; then
13704     if test "x$COMPILE_TYPE" = "xcross"; then
13705       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13706     fi
13707 
13708     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13709       # A reduced build is requested
13710       COMPILE_TYPE="reduced"
13711       OPENJDK_TARGET_CPU_BITS=32
13712       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13713         OPENJDK_TARGET_CPU=x86
13714       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13715         OPENJDK_TARGET_CPU=sparc
13716       else
13717         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13718       fi
13719     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13720       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
13721     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13722       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13723 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13724     else
13725       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13726     fi
13727   fi
13728 
13729 
13730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13731 $as_echo_n "checking compilation type... " >&6; }
13732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13733 $as_echo "$COMPILE_TYPE" >&6; }
13734 
13735 
13736   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13737     REQUIRED_OS_NAME=SunOS
13738     REQUIRED_OS_VERSION=5.10
13739   fi
13740   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13741     REQUIRED_OS_NAME=Linux
13742     REQUIRED_OS_VERSION=2.6
13743   fi
13744   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13745     REQUIRED_OS_NAME=Windows
13746     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13747       REQUIRED_OS_VERSION=5.2
13748     else
13749       REQUIRED_OS_VERSION=5.1
13750     fi
13751   fi
13752   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13753     REQUIRED_OS_NAME=Darwin
13754     REQUIRED_OS_VERSION=11.2
13755   fi
13756 
13757 
13758 
13759 
13760 
13761   # Also store the legacy naming of the cpu.
13762   # Ie i586 and amd64 instead of x86 and x86_64
13763   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13764   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13765     OPENJDK_TARGET_CPU_LEGACY="i586"
13766   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13767     # On all platforms except MacOSX replace x86_64 with amd64.
13768     OPENJDK_TARGET_CPU_LEGACY="amd64"
13769   fi
13770 
13771 
13772   # And the second legacy naming of the cpu.
13773   # Ie i386 and amd64 instead of x86 and x86_64.
13774   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13775   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13776     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13777   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13778     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13779   fi
13780 
13781 
13782   # This is the name of the cpu (but using i386 and amd64 instead of
13783   # x86 and x86_64, respectively), preceeded by a /, to be used when
13784   # locating libraries. On macosx, it's empty, though.
13785   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13786   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13787     OPENJDK_TARGET_CPU_LIBDIR=""
13788   fi
13789 
13790 
13791   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13792   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13793   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13794   OPENJDK_TARGET_CPU_ISADIR=""
13795   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13796     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13797       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13798     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13799       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13800     fi
13801   fi
13802 
13803 
13804   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13805   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13806   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13807     # On linux only, we replace x86 with i386.
13808     OPENJDK_TARGET_CPU_OSARCH="i386"
13809   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13810     # On all platforms except macosx, we replace x86_64 with amd64.
13811     OPENJDK_TARGET_CPU_OSARCH="amd64"
13812   fi
13813 
13814 
13815   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13816   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13817     OPENJDK_TARGET_CPU_JLI="i386"
13818   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13819     # On all platforms except macosx, we replace x86_64 with amd64.
13820     OPENJDK_TARGET_CPU_JLI="amd64"
13821   fi
13822   # Now setup the -D flags for building libjli.
13823   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13824   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13825     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13826       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13827     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13828       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13829     fi
13830   fi
13831 
13832 
13833   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13834   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13835     OPENJDK_TARGET_OS_API_DIR="solaris"
13836   fi
13837   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
13838     OPENJDK_TARGET_OS_API_DIR="windows"
13839   fi
13840 
13841 
13842   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13843       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
13844   else
13845       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
13846   fi
13847 
13848 
13849   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13850     A_LP64="LP64:="
13851     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
13852     # unpack200.exe
13853     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
13854       ADD_LP64="-D_LP64=1"
13855     fi
13856   fi
13857   LP64=$A_LP64
13858 
13859 
13860   if test "x$COMPILE_TYPE" = "xcross"; then
13861     # FIXME: ... or should this include reduced builds..?
13862     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
13863   else
13864     DEFINE_CROSS_COMPILE_ARCH=""
13865   fi
13866 
13867 
13868   # ZERO_ARCHDEF is used to enable architecture-specific code
13869   case "${OPENJDK_TARGET_CPU}" in
13870     ppc*)    ZERO_ARCHDEF=PPC   ;;
13871     s390*)   ZERO_ARCHDEF=S390  ;;
13872     sparc*)  ZERO_ARCHDEF=SPARC ;;
13873     x86_64*) ZERO_ARCHDEF=AMD64 ;;
13874     x86)     ZERO_ARCHDEF=IA32  ;;
13875     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
13876   esac
13877 
13878 
13879 
13880 
13881 # Continue setting up basic stuff. Most remaining code require fundamental tools.
13882 
13883   # Save the current directory this script was started from
13884   CURDIR="$PWD"
13885 
13886   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13887     PATH_SEP=";"
13888 
13889   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
13890   if test $SRC_ROOT_LENGTH -gt 100; then
13891     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
13892   fi
13893 
13894   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
13896 $as_echo_n "checking cygwin release... " >&6; }
13897     CYGWIN_VERSION=`$UNAME -r`
13898     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
13899 $as_echo "$CYGWIN_VERSION" >&6; }
13900     WINDOWS_ENV_VENDOR='cygwin'
13901     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
13902 
13903     CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.`
13904     if test "x$CYGWIN_VERSION_OK" = x; then
13905       { $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
13906 $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;}
13907       as_fn_error $? "Cannot continue" "$LINENO" 5
13908     fi
13909     if test "x$CYGPATH" = x; then
13910       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
13911     fi
13912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
13913 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
13914     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13915     cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"`
13916     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
13917     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
13918     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
13919 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
13920     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
13921     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
13922     if test "x$test_cygdrive_prefix" = x; then
13923       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
13924     fi
13925   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13926     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
13927 $as_echo_n "checking msys release... " >&6; }
13928     MSYS_VERSION=`$UNAME -r`
13929     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
13930 $as_echo "$MSYS_VERSION" >&6; }
13931 
13932     WINDOWS_ENV_VENDOR='msys'
13933     WINDOWS_ENV_VERSION="$MSYS_VERSION"
13934 
13935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
13936 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
13937     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
13938     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
13939 
13940   windows_path="$MSYS_ROOT_PATH"
13941   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13942     unix_path=`$CYGPATH -u "$windows_path"`
13943     MSYS_ROOT_PATH="$unix_path"
13944   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
13945     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
13946     MSYS_ROOT_PATH="$unix_path"
13947   fi
13948 
13949     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
13950 $as_echo "$MSYS_ROOT_PATH" >&6; }
13951     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
13952   else
13953     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
13954   fi
13955 
13956   # Test if windows or unix (cygwin/msys) find is first in path.
13957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
13958 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
13959   FIND_BINARY_OUTPUT=`find --version 2>&1`
13960   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
13961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
13962 $as_echo "unix style" >&6; }
13963   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
13964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
13965 $as_echo "Windows" >&6; }
13966     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
13967 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
13968     { $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
13969 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
13970     as_fn_error $? "Cannot continue" "$LINENO" 5
13971   else
13972     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
13973 $as_echo "unknown" >&6; }
13974     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
13975 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
13976   fi
13977 
13978   else
13979     PATH_SEP=":"
13980   fi
13981 
13982 
13983   # We get the top-level directory from the supporting wrappers.
13984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
13985 $as_echo_n "checking for top-level directory... " >&6; }
13986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
13987 $as_echo "$TOPDIR" >&6; }
13988 
13989 
13990   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
13991 
13992   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
13993 
13994   # Input might be given as Windows format, start by converting to
13995   # unix format.
13996   path="$CURDIR"
13997   new_path=`$CYGPATH -u "$path"`
13998 
13999   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14000   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14001   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14002   # "foo.exe" is OK but "foo" is an error.
14003   #
14004   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14005   # It is also a way to make sure we got the proper file name for the real test later on.
14006   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14007   if test "x$test_shortpath" = x; then
14008     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14009 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14010     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14011   fi
14012 
14013   # Call helper function which possibly converts this using DOS-style short mode.
14014   # If so, the updated path is stored in $new_path.
14015 
14016   input_path="$new_path"
14017   # Check if we need to convert this using DOS-style short mode. If the path
14018   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14019   # take no chances and rewrite it.
14020   # Note: m4 eats our [], so we need to use [ and ] instead.
14021   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14022   if test "x$has_forbidden_chars" != x; then
14023     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14024     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14025     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14026     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14027       # Going to short mode and back again did indeed matter. Since short mode is
14028       # case insensitive, let's make it lowercase to improve readability.
14029       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14030       # Now convert it back to Unix-stile (cygpath)
14031       input_path=`$CYGPATH -u "$shortmode_path"`
14032       new_path="$input_path"
14033     fi
14034   fi
14035 
14036   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14037   if test "x$test_cygdrive_prefix" = x; then
14038     # As a simple fix, exclude /usr/bin since it's not a real path.
14039     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14040       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14041       # a path prefixed by /cygdrive for fixpath to work.
14042       new_path="$CYGWIN_ROOT_PATH$input_path"
14043     fi
14044   fi
14045 
14046 
14047   if test "x$path" != "x$new_path"; then
14048     CURDIR="$new_path"
14049     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14050 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14051   fi
14052 
14053   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14054 
14055   path="$CURDIR"
14056   has_colon=`$ECHO $path | $GREP ^.:`
14057   new_path="$path"
14058   if test "x$has_colon" = x; then
14059     # Not in mixed or Windows style, start by that.
14060     new_path=`cmd //c echo $path`
14061   fi
14062 
14063 
14064   input_path="$new_path"
14065   # Check if we need to convert this using DOS-style short mode. If the path
14066   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14067   # take no chances and rewrite it.
14068   # Note: m4 eats our [], so we need to use [ and ] instead.
14069   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14070   if test "x$has_forbidden_chars" != x; then
14071     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14072     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14073   fi
14074 
14075 
14076   windows_path="$new_path"
14077   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14078     unix_path=`$CYGPATH -u "$windows_path"`
14079     new_path="$unix_path"
14080   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14081     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14082     new_path="$unix_path"
14083   fi
14084 
14085   if test "x$path" != "x$new_path"; then
14086     CURDIR="$new_path"
14087     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14088 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14089   fi
14090 
14091   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14092   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14093 
14094   else
14095     # We're on a posix platform. Hooray! :)
14096     path="$CURDIR"
14097     has_space=`$ECHO "$path" | $GREP " "`
14098     if test "x$has_space" != x; then
14099       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14100 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14101       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14102     fi
14103 
14104     # Use eval to expand a potential ~
14105     eval path="$path"
14106     if test ! -f "$path" && test ! -d "$path"; then
14107       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14108     fi
14109 
14110     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14111   fi
14112 
14113 
14114   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14115 
14116   # Input might be given as Windows format, start by converting to
14117   # unix format.
14118   path="$TOPDIR"
14119   new_path=`$CYGPATH -u "$path"`
14120 
14121   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14122   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14123   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14124   # "foo.exe" is OK but "foo" is an error.
14125   #
14126   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14127   # It is also a way to make sure we got the proper file name for the real test later on.
14128   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14129   if test "x$test_shortpath" = x; then
14130     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14131 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14132     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14133   fi
14134 
14135   # Call helper function which possibly converts this using DOS-style short mode.
14136   # If so, the updated path is stored in $new_path.
14137 
14138   input_path="$new_path"
14139   # Check if we need to convert this using DOS-style short mode. If the path
14140   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14141   # take no chances and rewrite it.
14142   # Note: m4 eats our [], so we need to use [ and ] instead.
14143   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14144   if test "x$has_forbidden_chars" != x; then
14145     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14146     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14147     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14148     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14149       # Going to short mode and back again did indeed matter. Since short mode is
14150       # case insensitive, let's make it lowercase to improve readability.
14151       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14152       # Now convert it back to Unix-stile (cygpath)
14153       input_path=`$CYGPATH -u "$shortmode_path"`
14154       new_path="$input_path"
14155     fi
14156   fi
14157 
14158   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14159   if test "x$test_cygdrive_prefix" = x; then
14160     # As a simple fix, exclude /usr/bin since it's not a real path.
14161     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14162       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14163       # a path prefixed by /cygdrive for fixpath to work.
14164       new_path="$CYGWIN_ROOT_PATH$input_path"
14165     fi
14166   fi
14167 
14168 
14169   if test "x$path" != "x$new_path"; then
14170     TOPDIR="$new_path"
14171     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14172 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14173   fi
14174 
14175   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14176 
14177   path="$TOPDIR"
14178   has_colon=`$ECHO $path | $GREP ^.:`
14179   new_path="$path"
14180   if test "x$has_colon" = x; then
14181     # Not in mixed or Windows style, start by that.
14182     new_path=`cmd //c echo $path`
14183   fi
14184 
14185 
14186   input_path="$new_path"
14187   # Check if we need to convert this using DOS-style short mode. If the path
14188   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14189   # take no chances and rewrite it.
14190   # Note: m4 eats our [], so we need to use [ and ] instead.
14191   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14192   if test "x$has_forbidden_chars" != x; then
14193     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14194     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14195   fi
14196 
14197 
14198   windows_path="$new_path"
14199   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14200     unix_path=`$CYGPATH -u "$windows_path"`
14201     new_path="$unix_path"
14202   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14203     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14204     new_path="$unix_path"
14205   fi
14206 
14207   if test "x$path" != "x$new_path"; then
14208     TOPDIR="$new_path"
14209     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14210 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14211   fi
14212 
14213   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14214   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14215 
14216   else
14217     # We're on a posix platform. Hooray! :)
14218     path="$TOPDIR"
14219     has_space=`$ECHO "$path" | $GREP " "`
14220     if test "x$has_space" != x; then
14221       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14222 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14223       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14224     fi
14225 
14226     # Use eval to expand a potential ~
14227     eval path="$path"
14228     if test ! -f "$path" && test ! -d "$path"; then
14229       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14230     fi
14231 
14232     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14233   fi
14234 
14235   # SRC_ROOT is a traditional alias for TOPDIR.
14236   SRC_ROOT=$TOPDIR
14237 
14238   # Locate the directory of this script.
14239   AUTOCONF_DIR=$TOPDIR/common/autoconf
14240 
14241   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
14242     # Add extra search paths on solaris for utilities like ar and as etc...
14243     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
14244   fi
14245 
14246   # You can force the sys-root if the sys-root encoded into the cross compiler tools
14247   # is not correct.
14248 
14249 # Check whether --with-sys-root was given.
14250 if test "${with_sys_root+set}" = set; then :
14251   withval=$with_sys_root;
14252 fi
14253 
14254 
14255   if test "x$with_sys_root" != x; then
14256     SYS_ROOT=$with_sys_root
14257   else
14258     SYS_ROOT=/
14259   fi
14260 
14261 
14262 
14263 # Check whether --with-tools-dir was given.
14264 if test "${with_tools_dir+set}" = set; then :
14265   withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir
14266 
14267 fi
14268 
14269 
14270 
14271 # Check whether --with-devkit was given.
14272 if test "${with_devkit+set}" = set; then :
14273   withval=$with_devkit;
14274         if test "x$with_sys_root" != x; then
14275           as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5
14276         fi
14277 
14278   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14279 
14280   # Input might be given as Windows format, start by converting to
14281   # unix format.
14282   path="$with_devkit"
14283   new_path=`$CYGPATH -u "$path"`
14284 
14285   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14286   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14287   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14288   # "foo.exe" is OK but "foo" is an error.
14289   #
14290   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14291   # It is also a way to make sure we got the proper file name for the real test later on.
14292   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14293   if test "x$test_shortpath" = x; then
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14295 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14296     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14297   fi
14298 
14299   # Call helper function which possibly converts this using DOS-style short mode.
14300   # If so, the updated path is stored in $new_path.
14301 
14302   input_path="$new_path"
14303   # Check if we need to convert this using DOS-style short mode. If the path
14304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14305   # take no chances and rewrite it.
14306   # Note: m4 eats our [], so we need to use [ and ] instead.
14307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14308   if test "x$has_forbidden_chars" != x; then
14309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14310     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14311     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14312     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14313       # Going to short mode and back again did indeed matter. Since short mode is
14314       # case insensitive, let's make it lowercase to improve readability.
14315       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14316       # Now convert it back to Unix-stile (cygpath)
14317       input_path=`$CYGPATH -u "$shortmode_path"`
14318       new_path="$input_path"
14319     fi
14320   fi
14321 
14322   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14323   if test "x$test_cygdrive_prefix" = x; then
14324     # As a simple fix, exclude /usr/bin since it's not a real path.
14325     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14326       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14327       # a path prefixed by /cygdrive for fixpath to work.
14328       new_path="$CYGWIN_ROOT_PATH$input_path"
14329     fi
14330   fi
14331 
14332 
14333   if test "x$path" != "x$new_path"; then
14334     with_devkit="$new_path"
14335     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14336 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14337   fi
14338 
14339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14340 
14341   path="$with_devkit"
14342   has_colon=`$ECHO $path | $GREP ^.:`
14343   new_path="$path"
14344   if test "x$has_colon" = x; then
14345     # Not in mixed or Windows style, start by that.
14346     new_path=`cmd //c echo $path`
14347   fi
14348 
14349 
14350   input_path="$new_path"
14351   # Check if we need to convert this using DOS-style short mode. If the path
14352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14353   # take no chances and rewrite it.
14354   # Note: m4 eats our [], so we need to use [ and ] instead.
14355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14356   if test "x$has_forbidden_chars" != x; then
14357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14358     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14359   fi
14360 
14361 
14362   windows_path="$new_path"
14363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14364     unix_path=`$CYGPATH -u "$windows_path"`
14365     new_path="$unix_path"
14366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14368     new_path="$unix_path"
14369   fi
14370 
14371   if test "x$path" != "x$new_path"; then
14372     with_devkit="$new_path"
14373     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14374 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14375   fi
14376 
14377   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14378   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14379 
14380   else
14381     # We're on a posix platform. Hooray! :)
14382     path="$with_devkit"
14383     has_space=`$ECHO "$path" | $GREP " "`
14384     if test "x$has_space" != x; then
14385       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14386 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14387       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14388     fi
14389 
14390     # Use eval to expand a potential ~
14391     eval path="$path"
14392     if test ! -f "$path" && test ! -d "$path"; then
14393       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14394     fi
14395 
14396     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14397   fi
14398 
14399 
14400   if test "x$TOOLS_DIR" = x; then
14401     TOOLS_DIR="$with_devkit/bin"
14402   else
14403     TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin"
14404   fi
14405 
14406         if test -d "$with_devkit/$host_alias/libc"; then
14407           SYS_ROOT=$with_devkit/$host_alias/libc
14408         elif test -d "$with_devkit/$host/sys-root"; then
14409           SYS_ROOT=$with_devkit/$host/sys-root
14410         fi
14411 
14412 fi
14413 
14414 
14415 
14416   # Setup default logging of stdout and stderr to build.log in the output root.
14417   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14418   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14419   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14420 
14421 
14422 
14423 
14424 
14425 # Check if it's a pure open build or if custom sources are to be used.
14426 
14427   # Check whether --enable-openjdk-only was given.
14428 if test "${enable_openjdk_only+set}" = set; then :
14429   enableval=$enable_openjdk_only;
14430 else
14431   enable_openjdk_only="no"
14432 fi
14433 
14434 
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14436 $as_echo_n "checking for presence of closed sources... " >&6; }
14437   if test -d "$SRC_ROOT/jdk/src/closed"; then
14438     CLOSED_SOURCE_PRESENT=yes
14439   else
14440     CLOSED_SOURCE_PRESENT=no
14441   fi
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14443 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14444 
14445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14446 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14447   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14449 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14450 
14451   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14452     OPENJDK=true
14453     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14454       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14455 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14456     fi
14457   else
14458     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14459       OPENJDK=true
14460     else
14461       OPENJDK=false
14462     fi
14463   fi
14464 
14465   if test "x$OPENJDK" = "xtrue"; then
14466     SET_OPENJDK="OPENJDK=true"
14467   fi
14468 
14469 
14470 
14471   # custom-make-dir is deprecated. Please use your custom-hook.m4 to override
14472   # the IncludeCustomExtension macro.
14473 
14474 
14475 # Check whether --with-custom-make-dir was given.
14476 if test "${with_custom_make_dir+set}" = set; then :
14477   withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5
14478 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;}
14479 fi
14480 
14481 
14482 
14483 
14484 # These are needed to be able to create a configuration name (and thus the output directory)
14485 
14486   ###############################################################################
14487   #
14488   # Check which variant of the JDK that we want to build.
14489   # Currently we have:
14490   #    normal:   standard edition
14491   # but the custom make system may add other variants
14492   #
14493   # Effectively the JDK variant gives a name to a specific set of
14494   # modules to compile into the JDK. In the future, these modules
14495   # might even be Jigsaw modules.
14496   #
14497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14498 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14499 
14500 # Check whether --with-jdk-variant was given.
14501 if test "${with_jdk_variant+set}" = set; then :
14502   withval=$with_jdk_variant;
14503 fi
14504 
14505 
14506   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14507     JDK_VARIANT="normal"
14508   else
14509     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14510   fi
14511 
14512 
14513 
14514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14515 $as_echo "$JDK_VARIANT" >&6; }
14516 
14517 
14518 ###############################################################################
14519 #
14520 # Check which interpreter of the JVM we want to build.
14521 # Currently we have:
14522 #    template: Template interpreter (the default)
14523 #    cpp     : C++ interpreter
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14525 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14526 
14527 # Check whether --with-jvm-interpreter was given.
14528 if test "${with_jvm_interpreter+set}" = set; then :
14529   withval=$with_jvm_interpreter;
14530 fi
14531 
14532 
14533 if test "x$with_jvm_interpreter" = x; then
14534      with_jvm_interpreter="template"
14535 fi
14536 
14537 JVM_INTERPRETER="$with_jvm_interpreter"
14538 
14539 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14540    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14541 fi
14542 
14543 
14544 
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14546 $as_echo "$with_jvm_interpreter" >&6; }
14547 
14548 
14549 
14550   ###############################################################################
14551   #
14552   # Check which variants of the JVM that we want to build.
14553   # Currently we have:
14554   #    server: normal interpreter and a tiered C1/C2 compiler
14555   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14556   #    minimal1: reduced form of client with optional VM services and features stripped out
14557   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14558   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14559   #    zero: no machine code interpreter, no compiler
14560   #    zeroshark: zero interpreter and shark/llvm compiler backend
14561 #    core: interpreter only, no compiler (only works on some platforms)
14562   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14563 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14564 
14565 # Check whether --with-jvm-variants was given.
14566 if test "${with_jvm_variants+set}" = set; then :
14567   withval=$with_jvm_variants;
14568 fi
14569 
14570 
14571   if test "x$with_jvm_variants" = x; then
14572     with_jvm_variants="server"
14573   fi
14574 
14575   JVM_VARIANTS=",$with_jvm_variants,"
14576   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,//'`
14577 
14578   if test "x$TEST_VARIANTS" != "x,"; then
14579      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14580   fi
14581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14582 $as_echo "$with_jvm_variants" >&6; }
14583 
14584   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14585   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14586   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14587   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14588   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14589   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14590   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14591 
14592   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14593     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14594       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14595     fi
14596   fi
14597   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14598     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14599       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14600     fi
14601   fi
14602   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14603     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14604       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14605     fi
14606   fi
14607 
14608   # Replace the commas with AND for use in the build directory name.
14609   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14610   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/'`
14611   if test "x$COUNT_VARIANTS" != "x,1"; then
14612     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14613   else
14614     BUILDING_MULTIPLE_JVM_VARIANTS=no
14615   fi
14616 
14617 
14618 
14619 
14620 
14621 
14622 
14623 
14624 
14625 
14626   INCLUDE_SA=true
14627   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14628     INCLUDE_SA=false
14629   fi
14630   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14631     INCLUDE_SA=false
14632   fi
14633   if test "x$VAR_CPU" = xppc64 ; then
14634     INCLUDE_SA=false
14635   fi
14636 
14637 
14638   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14639     MACOSX_UNIVERSAL="true"
14640   fi
14641 
14642 
14643 
14644 
14645   ###############################################################################
14646   #
14647   # Set the debug level
14648   #    release: no debug information, all optimizations, no asserts.
14649   #    fastdebug: debug information (-g), all optimizations, all asserts
14650   #    slowdebug: debug information (-g), no optimizations, all asserts
14651   #
14652   DEBUG_LEVEL="release"
14653   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14654 $as_echo_n "checking which debug level to use... " >&6; }
14655   # Check whether --enable-debug was given.
14656 if test "${enable_debug+set}" = set; then :
14657   enableval=$enable_debug;
14658         ENABLE_DEBUG="${enableval}"
14659         DEBUG_LEVEL="fastdebug"
14660 
14661 else
14662   ENABLE_DEBUG="no"
14663 fi
14664 
14665 
14666 
14667 # Check whether --with-debug-level was given.
14668 if test "${with_debug_level+set}" = set; then :
14669   withval=$with_debug_level;
14670         DEBUG_LEVEL="${withval}"
14671         if test "x$ENABLE_DEBUG" = xyes; then
14672           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14673         fi
14674 
14675 fi
14676 
14677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14678 $as_echo "$DEBUG_LEVEL" >&6; }
14679 
14680   if test "x$DEBUG_LEVEL" != xrelease && \
14681       test "x$DEBUG_LEVEL" != xfastdebug && \
14682       test "x$DEBUG_LEVEL" != xslowdebug; then
14683     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14684   fi
14685 
14686 
14687   ###############################################################################
14688   #
14689   # Setup legacy vars/targets and new vars to deal with different debug levels.
14690   #
14691 
14692   case $DEBUG_LEVEL in
14693     release )
14694       VARIANT="OPT"
14695       FASTDEBUG="false"
14696       DEBUG_CLASSFILES="false"
14697       BUILD_VARIANT_RELEASE=""
14698       HOTSPOT_DEBUG_LEVEL="product"
14699       HOTSPOT_EXPORT="product"
14700       ;;
14701     fastdebug )
14702       VARIANT="DBG"
14703       FASTDEBUG="true"
14704       DEBUG_CLASSFILES="true"
14705       BUILD_VARIANT_RELEASE="-fastdebug"
14706       HOTSPOT_DEBUG_LEVEL="fastdebug"
14707       HOTSPOT_EXPORT="fastdebug"
14708       ;;
14709     slowdebug )
14710       VARIANT="DBG"
14711       FASTDEBUG="false"
14712       DEBUG_CLASSFILES="true"
14713       BUILD_VARIANT_RELEASE="-debug"
14714       HOTSPOT_DEBUG_LEVEL="jvmg"
14715       HOTSPOT_EXPORT="debug"
14716       ;;
14717   esac
14718 
14719   #####
14720   # Generate the legacy makefile targets for hotspot.
14721   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14722   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14723   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14724   # But until then ...
14725   HOTSPOT_TARGET=""
14726 
14727   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14728     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14729   fi
14730 
14731   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14732     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14733   fi
14734 
14735   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14736     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14737   fi
14738 
14739   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14740     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14741   fi
14742 
14743   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14744     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14745   fi
14746 
14747   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14748     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14749   fi
14750 
14751   if test "x$JVM_VARIANT_CORE" = xtrue; then
14752     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14753   fi
14754 
14755   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14756 
14757   # On Macosx universal binaries are produced, but they only contain
14758   # 64 bit intel. This invalidates control of which jvms are built
14759   # from configure, but only server is valid anyway. Fix this
14760   # when hotspot makefiles are rewritten.
14761   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14762     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14763   fi
14764 
14765   #####
14766 
14767 
14768 
14769 
14770 
14771 
14772 
14773 
14774 # With basic setup done, call the custom early hook.
14775 
14776 
14777 # To properly create a configuration name, we need to have the OpenJDK target
14778 # and options (variants and debug level) parsed.
14779 
14780 
14781 
14782 # Check whether --with-conf-name was given.
14783 if test "${with_conf_name+set}" = set; then :
14784   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
14785 fi
14786 
14787 
14788   # Test from where we are running configure, in or outside of src root.
14789   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
14790 $as_echo_n "checking where to store configuration... " >&6; }
14791   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
14792       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
14793       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
14794     # We are running configure from the src root.
14795     # Create a default ./build/target-variant-debuglevel output root.
14796     if test "x${CONF_NAME}" = x; then
14797       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
14798 $as_echo "in default location" >&6; }
14799       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
14800     else
14801       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
14802 $as_echo "in build directory with custom name" >&6; }
14803     fi
14804     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
14805     $MKDIR -p "$OUTPUT_ROOT"
14806     if test ! -d "$OUTPUT_ROOT"; then
14807       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
14808     fi
14809   else
14810     # We are running configure from outside of the src dir.
14811     # Then use the current directory as output dir!
14812     # If configuration is situated in normal build directory, just use the build
14813     # directory name as configuration name, otherwise use the complete path.
14814     if test "x${CONF_NAME}" = x; then
14815       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
14816     fi
14817     OUTPUT_ROOT="$CURDIR"
14818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
14819 $as_echo "in current directory" >&6; }
14820 
14821     # WARNING: This might be a bad thing to do. You need to be sure you want to
14822     # have a configuration in this directory. Do some sanity checks!
14823 
14824     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
14825       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
14826       # other files
14827       files_present=`$LS $OUTPUT_ROOT`
14828       # Configure has already touched config.log and confdefs.h in the current dir when this check
14829       # is performed.
14830       filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \
14831       | $TR -d '\n'`
14832       if test "x$filtered_files" != x; then
14833         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
14834 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
14835         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
14836 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
14837         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
14838 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
14839         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
14840 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
14841         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
14842 $as_echo "$as_me: seriously mess up just about everything." >&6;}
14843         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
14844 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
14845         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
14846 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
14847         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
14848       fi
14849     fi
14850   fi
14851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
14852 $as_echo_n "checking what configuration name to use... " >&6; }
14853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
14854 $as_echo "$CONF_NAME" >&6; }
14855 
14856 
14857   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14858 
14859   # Input might be given as Windows format, start by converting to
14860   # unix format.
14861   path="$OUTPUT_ROOT"
14862   new_path=`$CYGPATH -u "$path"`
14863 
14864   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14865   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14866   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14867   # "foo.exe" is OK but "foo" is an error.
14868   #
14869   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14870   # It is also a way to make sure we got the proper file name for the real test later on.
14871   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14872   if test "x$test_shortpath" = x; then
14873     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14874 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14875     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
14876   fi
14877 
14878   # Call helper function which possibly converts this using DOS-style short mode.
14879   # If so, the updated path is stored in $new_path.
14880 
14881   input_path="$new_path"
14882   # Check if we need to convert this using DOS-style short mode. If the path
14883   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14884   # take no chances and rewrite it.
14885   # Note: m4 eats our [], so we need to use [ and ] instead.
14886   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14887   if test "x$has_forbidden_chars" != x; then
14888     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14889     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14890     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14891     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14892       # Going to short mode and back again did indeed matter. Since short mode is
14893       # case insensitive, let's make it lowercase to improve readability.
14894       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14895       # Now convert it back to Unix-stile (cygpath)
14896       input_path=`$CYGPATH -u "$shortmode_path"`
14897       new_path="$input_path"
14898     fi
14899   fi
14900 
14901   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14902   if test "x$test_cygdrive_prefix" = x; then
14903     # As a simple fix, exclude /usr/bin since it's not a real path.
14904     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14905       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14906       # a path prefixed by /cygdrive for fixpath to work.
14907       new_path="$CYGWIN_ROOT_PATH$input_path"
14908     fi
14909   fi
14910 
14911 
14912   if test "x$path" != "x$new_path"; then
14913     OUTPUT_ROOT="$new_path"
14914     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14915 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14916   fi
14917 
14918   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14919 
14920   path="$OUTPUT_ROOT"
14921   has_colon=`$ECHO $path | $GREP ^.:`
14922   new_path="$path"
14923   if test "x$has_colon" = x; then
14924     # Not in mixed or Windows style, start by that.
14925     new_path=`cmd //c echo $path`
14926   fi
14927 
14928 
14929   input_path="$new_path"
14930   # Check if we need to convert this using DOS-style short mode. If the path
14931   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14932   # take no chances and rewrite it.
14933   # Note: m4 eats our [], so we need to use [ and ] instead.
14934   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14935   if test "x$has_forbidden_chars" != x; then
14936     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14937     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14938   fi
14939 
14940 
14941   windows_path="$new_path"
14942   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14943     unix_path=`$CYGPATH -u "$windows_path"`
14944     new_path="$unix_path"
14945   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14946     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14947     new_path="$unix_path"
14948   fi
14949 
14950   if test "x$path" != "x$new_path"; then
14951     OUTPUT_ROOT="$new_path"
14952     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
14953 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
14954   fi
14955 
14956   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14957   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14958 
14959   else
14960     # We're on a posix platform. Hooray! :)
14961     path="$OUTPUT_ROOT"
14962     has_space=`$ECHO "$path" | $GREP " "`
14963     if test "x$has_space" != x; then
14964       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
14965 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
14966       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14967     fi
14968 
14969     # Use eval to expand a potential ~
14970     eval path="$path"
14971     if test ! -f "$path" && test ! -d "$path"; then
14972       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
14973     fi
14974 
14975     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
14976   fi
14977 
14978 
14979   SPEC=$OUTPUT_ROOT/spec.gmk
14980 
14981   CONF_NAME=$CONF_NAME
14982 
14983   OUTPUT_ROOT=$OUTPUT_ROOT
14984 
14985 
14986   # Most of the probed defines are put into config.h
14987   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
14988 
14989   # The spec.gmk file contains all variables for the make system.
14990   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
14991 
14992   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
14993   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
14994 
14995   # The bootcycle-spec.gmk file contains support for boot cycle builds.
14996   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
14997 
14998   # The compare.sh is used to compare the build output to other builds.
14999   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15000 
15001   # Spec.sh is currently used by compare-objects.sh
15002   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15003 
15004   # The generated Makefile knows where the spec.gmk is and where the source is.
15005   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15006   # which will look for generated configurations
15007   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15008 
15009 
15010 
15011 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15012 
15013   for ac_prog in apt-get yum port pkgutil pkgadd
15014 do
15015   # Extract the first word of "$ac_prog", so it can be a program name with args.
15016 set dummy $ac_prog; ac_word=$2
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15018 $as_echo_n "checking for $ac_word... " >&6; }
15019 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15020   $as_echo_n "(cached) " >&6
15021 else
15022   if test -n "$PKGHANDLER"; then
15023   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15024 else
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15027 do
15028   IFS=$as_save_IFS
15029   test -z "$as_dir" && as_dir=.
15030     for ac_exec_ext in '' $ac_executable_extensions; do
15031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032     ac_cv_prog_PKGHANDLER="$ac_prog"
15033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15034     break 2
15035   fi
15036 done
15037   done
15038 IFS=$as_save_IFS
15039 
15040 fi
15041 fi
15042 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15043 if test -n "$PKGHANDLER"; then
15044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15045 $as_echo "$PKGHANDLER" >&6; }
15046 else
15047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15048 $as_echo "no" >&6; }
15049 fi
15050 
15051 
15052   test -n "$PKGHANDLER" && break
15053 done
15054 
15055 
15056 
15057 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15058 
15059 
15060   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15061   if test "x$MAKE" != x; then
15062     # User has supplied a make, test it.
15063     if test ! -f "$MAKE"; then
15064       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15065     fi
15066 
15067   MAKE_CANDIDATE=""$MAKE""
15068   DESCRIPTION="user supplied MAKE=$MAKE"
15069   if test "x$MAKE_CANDIDATE" != x; then
15070     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15071 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15072     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15073     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15074     if test "x$IS_GNU_MAKE" = x; then
15075       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15076 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15077     else
15078       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15079       if test "x$IS_MODERN_MAKE" = x; then
15080         { $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
15081 $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;}
15082       else
15083         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15084           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15085             MAKE_EXPECTED_ENV='cygwin'
15086           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15087             MAKE_EXPECTED_ENV='msys'
15088           else
15089             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15090           fi
15091           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15092           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15093         else
15094           # Not relevant for non-Windows
15095           IS_MAKE_CORRECT_ENV=true
15096         fi
15097         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15098           { $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
15099 $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;}
15100         else
15101           FOUND_MAKE=$MAKE_CANDIDATE
15102 
15103   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15104 
15105   # First separate the path from the arguments. This will split at the first
15106   # space.
15107   complete="$FOUND_MAKE"
15108   path="${complete%% *}"
15109   tmp="$complete EOL"
15110   arguments="${tmp#* }"
15111 
15112   # Input might be given as Windows format, start by converting to
15113   # unix format.
15114   new_path=`$CYGPATH -u "$path"`
15115 
15116   # Now try to locate executable using which
15117   new_path=`$WHICH "$new_path" 2> /dev/null`
15118   # bat and cmd files are not always considered executable in cygwin causing which
15119   # to not find them
15120   if test "x$new_path" = x \
15121       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15122       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15123     new_path=`$CYGPATH -u "$path"`
15124   fi
15125   if test "x$new_path" = x; then
15126     # Oops. Which didn't find the executable.
15127     # The splitting of arguments from the executable at a space might have been incorrect,
15128     # since paths with space are more likely in Windows. Give it another try with the whole
15129     # argument.
15130     path="$complete"
15131     arguments="EOL"
15132     new_path=`$CYGPATH -u "$path"`
15133     new_path=`$WHICH "$new_path" 2> /dev/null`
15134     # bat and cmd files are not always considered executable in cygwin causing which
15135     # to not find them
15136     if test "x$new_path" = x \
15137         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15138         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15139       new_path=`$CYGPATH -u "$path"`
15140     fi
15141     if test "x$new_path" = x; then
15142       # It's still not found. Now this is an unrecoverable error.
15143       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15144 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15145       has_space=`$ECHO "$complete" | $GREP " "`
15146       if test "x$has_space" != x; then
15147         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15148 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15149       fi
15150       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15151     fi
15152   fi
15153 
15154   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15155   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15156   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15157   # "foo.exe" is OK but "foo" is an error.
15158   #
15159   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15160   # It is also a way to make sure we got the proper file name for the real test later on.
15161   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15162   if test "x$test_shortpath" = x; then
15163     # Short path failed, file does not exist as specified.
15164     # Try adding .exe or .cmd
15165     if test -f "${new_path}.exe"; then
15166       input_to_shortpath="${new_path}.exe"
15167     elif test -f "${new_path}.cmd"; then
15168       input_to_shortpath="${new_path}.cmd"
15169     else
15170       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15171 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15172       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15173 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15174       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15175     fi
15176   else
15177     input_to_shortpath="$new_path"
15178   fi
15179 
15180   # Call helper function which possibly converts this using DOS-style short mode.
15181   # If so, the updated path is stored in $new_path.
15182   new_path="$input_to_shortpath"
15183 
15184   input_path="$input_to_shortpath"
15185   # Check if we need to convert this using DOS-style short mode. If the path
15186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15187   # take no chances and rewrite it.
15188   # Note: m4 eats our [], so we need to use [ and ] instead.
15189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15190   if test "x$has_forbidden_chars" != x; then
15191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15192     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15193     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15194     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15195       # Going to short mode and back again did indeed matter. Since short mode is
15196       # case insensitive, let's make it lowercase to improve readability.
15197       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15198       # Now convert it back to Unix-stile (cygpath)
15199       input_path=`$CYGPATH -u "$shortmode_path"`
15200       new_path="$input_path"
15201     fi
15202   fi
15203 
15204   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15205   if test "x$test_cygdrive_prefix" = x; then
15206     # As a simple fix, exclude /usr/bin since it's not a real path.
15207     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15208       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15209       # a path prefixed by /cygdrive for fixpath to work.
15210       new_path="$CYGWIN_ROOT_PATH$input_path"
15211     fi
15212   fi
15213 
15214   # remove trailing .exe if any
15215   new_path="${new_path/%.exe/}"
15216 
15217   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15218 
15219   # First separate the path from the arguments. This will split at the first
15220   # space.
15221   complete="$FOUND_MAKE"
15222   path="${complete%% *}"
15223   tmp="$complete EOL"
15224   arguments="${tmp#* }"
15225 
15226   # Input might be given as Windows format, start by converting to
15227   # unix format.
15228   new_path="$path"
15229 
15230   windows_path="$new_path"
15231   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15232     unix_path=`$CYGPATH -u "$windows_path"`
15233     new_path="$unix_path"
15234   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15235     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15236     new_path="$unix_path"
15237   fi
15238 
15239 
15240   # Now try to locate executable using which
15241   new_path=`$WHICH "$new_path" 2> /dev/null`
15242 
15243   if test "x$new_path" = x; then
15244     # Oops. Which didn't find the executable.
15245     # The splitting of arguments from the executable at a space might have been incorrect,
15246     # since paths with space are more likely in Windows. Give it another try with the whole
15247     # argument.
15248     path="$complete"
15249     arguments="EOL"
15250     new_path="$path"
15251 
15252   windows_path="$new_path"
15253   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15254     unix_path=`$CYGPATH -u "$windows_path"`
15255     new_path="$unix_path"
15256   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15257     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15258     new_path="$unix_path"
15259   fi
15260 
15261 
15262     new_path=`$WHICH "$new_path" 2> /dev/null`
15263 
15264     if test "x$new_path" = x; then
15265       # It's still not found. Now this is an unrecoverable error.
15266       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15267 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15268       has_space=`$ECHO "$complete" | $GREP " "`
15269       if test "x$has_space" != x; then
15270         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15271 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15272       fi
15273       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15274     fi
15275   fi
15276 
15277   # Now new_path has a complete unix path to the binary
15278   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15279     # Keep paths in /bin as-is, but remove trailing .exe if any
15280     new_path="${new_path/%.exe/}"
15281     # Do not save /bin paths to all_fixpath_prefixes!
15282   else
15283     # Not in mixed or Windows style, start by that.
15284     new_path=`cmd //c echo $new_path`
15285 
15286   input_path="$new_path"
15287   # Check if we need to convert this using DOS-style short mode. If the path
15288   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15289   # take no chances and rewrite it.
15290   # Note: m4 eats our [], so we need to use [ and ] instead.
15291   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15292   if test "x$has_forbidden_chars" != x; then
15293     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15294     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15295   fi
15296 
15297     # Output is in $new_path
15298 
15299   windows_path="$new_path"
15300   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15301     unix_path=`$CYGPATH -u "$windows_path"`
15302     new_path="$unix_path"
15303   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15304     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15305     new_path="$unix_path"
15306   fi
15307 
15308     # remove trailing .exe if any
15309     new_path="${new_path/%.exe/}"
15310 
15311     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15312     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15313   fi
15314 
15315   else
15316     # We're on a posix platform. Hooray! :)
15317     # First separate the path from the arguments. This will split at the first
15318     # space.
15319     complete="$FOUND_MAKE"
15320     path="${complete%% *}"
15321     tmp="$complete EOL"
15322     arguments="${tmp#* }"
15323 
15324     # Cannot rely on the command "which" here since it doesn't always work.
15325     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15326     if test -z "$is_absolute_path"; then
15327       # Path to executable is not absolute. Find it.
15328       IFS_save="$IFS"
15329       IFS=:
15330       for p in $PATH; do
15331         if test -f "$p/$path" && test -x "$p/$path"; then
15332           new_path="$p/$path"
15333           break
15334         fi
15335       done
15336       IFS="$IFS_save"
15337     else
15338       # This is an absolute path, we can use it without further modifications.
15339       new_path="$path"
15340     fi
15341 
15342     if test "x$new_path" = x; then
15343       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15344 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15345       has_space=`$ECHO "$complete" | $GREP " "`
15346       if test "x$has_space" != x; then
15347         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15348 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15349       fi
15350       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15351     fi
15352   fi
15353 
15354   # Now join together the path and the arguments once again
15355   if test "x$arguments" != xEOL; then
15356     new_complete="$new_path ${arguments% *}"
15357   else
15358     new_complete="$new_path"
15359   fi
15360 
15361   if test "x$complete" != "x$new_complete"; then
15362     FOUND_MAKE="$new_complete"
15363     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15364 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15365   fi
15366 
15367         fi
15368       fi
15369     fi
15370   fi
15371 
15372     if test "x$FOUND_MAKE" = x; then
15373       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15374     fi
15375   else
15376     # Try our hardest to locate a correct version of GNU make
15377     for ac_prog in gmake
15378 do
15379   # Extract the first word of "$ac_prog", so it can be a program name with args.
15380 set dummy $ac_prog; ac_word=$2
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15382 $as_echo_n "checking for $ac_word... " >&6; }
15383 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15384   $as_echo_n "(cached) " >&6
15385 else
15386   case $CHECK_GMAKE in
15387   [\\/]* | ?:[\\/]*)
15388   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15389   ;;
15390   *)
15391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15392 for as_dir in $PATH
15393 do
15394   IFS=$as_save_IFS
15395   test -z "$as_dir" && as_dir=.
15396     for ac_exec_ext in '' $ac_executable_extensions; do
15397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15398     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15400     break 2
15401   fi
15402 done
15403   done
15404 IFS=$as_save_IFS
15405 
15406   ;;
15407 esac
15408 fi
15409 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15410 if test -n "$CHECK_GMAKE"; then
15411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15412 $as_echo "$CHECK_GMAKE" >&6; }
15413 else
15414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 $as_echo "no" >&6; }
15416 fi
15417 
15418 
15419   test -n "$CHECK_GMAKE" && break
15420 done
15421 
15422 
15423   MAKE_CANDIDATE=""$CHECK_GMAKE""
15424   DESCRIPTION="gmake in PATH"
15425   if test "x$MAKE_CANDIDATE" != x; then
15426     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15427 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15428     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15429     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15430     if test "x$IS_GNU_MAKE" = x; then
15431       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15432 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15433     else
15434       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15435       if test "x$IS_MODERN_MAKE" = x; then
15436         { $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
15437 $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;}
15438       else
15439         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15440           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15441             MAKE_EXPECTED_ENV='cygwin'
15442           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15443             MAKE_EXPECTED_ENV='msys'
15444           else
15445             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15446           fi
15447           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15448           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15449         else
15450           # Not relevant for non-Windows
15451           IS_MAKE_CORRECT_ENV=true
15452         fi
15453         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15454           { $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
15455 $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;}
15456         else
15457           FOUND_MAKE=$MAKE_CANDIDATE
15458 
15459   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15460 
15461   # First separate the path from the arguments. This will split at the first
15462   # space.
15463   complete="$FOUND_MAKE"
15464   path="${complete%% *}"
15465   tmp="$complete EOL"
15466   arguments="${tmp#* }"
15467 
15468   # Input might be given as Windows format, start by converting to
15469   # unix format.
15470   new_path=`$CYGPATH -u "$path"`
15471 
15472   # Now try to locate executable using which
15473   new_path=`$WHICH "$new_path" 2> /dev/null`
15474   # bat and cmd files are not always considered executable in cygwin causing which
15475   # to not find them
15476   if test "x$new_path" = x \
15477       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15478       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15479     new_path=`$CYGPATH -u "$path"`
15480   fi
15481   if test "x$new_path" = x; then
15482     # Oops. Which didn't find the executable.
15483     # The splitting of arguments from the executable at a space might have been incorrect,
15484     # since paths with space are more likely in Windows. Give it another try with the whole
15485     # argument.
15486     path="$complete"
15487     arguments="EOL"
15488     new_path=`$CYGPATH -u "$path"`
15489     new_path=`$WHICH "$new_path" 2> /dev/null`
15490     # bat and cmd files are not always considered executable in cygwin causing which
15491     # to not find them
15492     if test "x$new_path" = x \
15493         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15494         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15495       new_path=`$CYGPATH -u "$path"`
15496     fi
15497     if test "x$new_path" = x; then
15498       # It's still not found. Now this is an unrecoverable error.
15499       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15500 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15501       has_space=`$ECHO "$complete" | $GREP " "`
15502       if test "x$has_space" != x; then
15503         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15504 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15505       fi
15506       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15507     fi
15508   fi
15509 
15510   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15511   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15512   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15513   # "foo.exe" is OK but "foo" is an error.
15514   #
15515   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15516   # It is also a way to make sure we got the proper file name for the real test later on.
15517   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15518   if test "x$test_shortpath" = x; then
15519     # Short path failed, file does not exist as specified.
15520     # Try adding .exe or .cmd
15521     if test -f "${new_path}.exe"; then
15522       input_to_shortpath="${new_path}.exe"
15523     elif test -f "${new_path}.cmd"; then
15524       input_to_shortpath="${new_path}.cmd"
15525     else
15526       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15527 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15528       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15529 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15530       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15531     fi
15532   else
15533     input_to_shortpath="$new_path"
15534   fi
15535 
15536   # Call helper function which possibly converts this using DOS-style short mode.
15537   # If so, the updated path is stored in $new_path.
15538   new_path="$input_to_shortpath"
15539 
15540   input_path="$input_to_shortpath"
15541   # Check if we need to convert this using DOS-style short mode. If the path
15542   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15543   # take no chances and rewrite it.
15544   # Note: m4 eats our [], so we need to use [ and ] instead.
15545   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15546   if test "x$has_forbidden_chars" != x; then
15547     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15548     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15549     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15550     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15551       # Going to short mode and back again did indeed matter. Since short mode is
15552       # case insensitive, let's make it lowercase to improve readability.
15553       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15554       # Now convert it back to Unix-stile (cygpath)
15555       input_path=`$CYGPATH -u "$shortmode_path"`
15556       new_path="$input_path"
15557     fi
15558   fi
15559 
15560   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15561   if test "x$test_cygdrive_prefix" = x; then
15562     # As a simple fix, exclude /usr/bin since it's not a real path.
15563     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15564       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15565       # a path prefixed by /cygdrive for fixpath to work.
15566       new_path="$CYGWIN_ROOT_PATH$input_path"
15567     fi
15568   fi
15569 
15570   # remove trailing .exe if any
15571   new_path="${new_path/%.exe/}"
15572 
15573   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15574 
15575   # First separate the path from the arguments. This will split at the first
15576   # space.
15577   complete="$FOUND_MAKE"
15578   path="${complete%% *}"
15579   tmp="$complete EOL"
15580   arguments="${tmp#* }"
15581 
15582   # Input might be given as Windows format, start by converting to
15583   # unix format.
15584   new_path="$path"
15585 
15586   windows_path="$new_path"
15587   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15588     unix_path=`$CYGPATH -u "$windows_path"`
15589     new_path="$unix_path"
15590   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15591     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15592     new_path="$unix_path"
15593   fi
15594 
15595 
15596   # Now try to locate executable using which
15597   new_path=`$WHICH "$new_path" 2> /dev/null`
15598 
15599   if test "x$new_path" = x; then
15600     # Oops. Which didn't find the executable.
15601     # The splitting of arguments from the executable at a space might have been incorrect,
15602     # since paths with space are more likely in Windows. Give it another try with the whole
15603     # argument.
15604     path="$complete"
15605     arguments="EOL"
15606     new_path="$path"
15607 
15608   windows_path="$new_path"
15609   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15610     unix_path=`$CYGPATH -u "$windows_path"`
15611     new_path="$unix_path"
15612   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15613     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15614     new_path="$unix_path"
15615   fi
15616 
15617 
15618     new_path=`$WHICH "$new_path" 2> /dev/null`
15619 
15620     if test "x$new_path" = x; then
15621       # It's still not found. Now this is an unrecoverable error.
15622       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15623 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15624       has_space=`$ECHO "$complete" | $GREP " "`
15625       if test "x$has_space" != x; then
15626         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15628       fi
15629       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15630     fi
15631   fi
15632 
15633   # Now new_path has a complete unix path to the binary
15634   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15635     # Keep paths in /bin as-is, but remove trailing .exe if any
15636     new_path="${new_path/%.exe/}"
15637     # Do not save /bin paths to all_fixpath_prefixes!
15638   else
15639     # Not in mixed or Windows style, start by that.
15640     new_path=`cmd //c echo $new_path`
15641 
15642   input_path="$new_path"
15643   # Check if we need to convert this using DOS-style short mode. If the path
15644   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15645   # take no chances and rewrite it.
15646   # Note: m4 eats our [], so we need to use [ and ] instead.
15647   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15648   if test "x$has_forbidden_chars" != x; then
15649     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15650     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15651   fi
15652 
15653     # Output is in $new_path
15654 
15655   windows_path="$new_path"
15656   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15657     unix_path=`$CYGPATH -u "$windows_path"`
15658     new_path="$unix_path"
15659   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15660     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15661     new_path="$unix_path"
15662   fi
15663 
15664     # remove trailing .exe if any
15665     new_path="${new_path/%.exe/}"
15666 
15667     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15668     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15669   fi
15670 
15671   else
15672     # We're on a posix platform. Hooray! :)
15673     # First separate the path from the arguments. This will split at the first
15674     # space.
15675     complete="$FOUND_MAKE"
15676     path="${complete%% *}"
15677     tmp="$complete EOL"
15678     arguments="${tmp#* }"
15679 
15680     # Cannot rely on the command "which" here since it doesn't always work.
15681     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15682     if test -z "$is_absolute_path"; then
15683       # Path to executable is not absolute. Find it.
15684       IFS_save="$IFS"
15685       IFS=:
15686       for p in $PATH; do
15687         if test -f "$p/$path" && test -x "$p/$path"; then
15688           new_path="$p/$path"
15689           break
15690         fi
15691       done
15692       IFS="$IFS_save"
15693     else
15694       # This is an absolute path, we can use it without further modifications.
15695       new_path="$path"
15696     fi
15697 
15698     if test "x$new_path" = x; then
15699       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15700 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15701       has_space=`$ECHO "$complete" | $GREP " "`
15702       if test "x$has_space" != x; then
15703         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15704 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15705       fi
15706       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15707     fi
15708   fi
15709 
15710   # Now join together the path and the arguments once again
15711   if test "x$arguments" != xEOL; then
15712     new_complete="$new_path ${arguments% *}"
15713   else
15714     new_complete="$new_path"
15715   fi
15716 
15717   if test "x$complete" != "x$new_complete"; then
15718     FOUND_MAKE="$new_complete"
15719     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15720 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15721   fi
15722 
15723         fi
15724       fi
15725     fi
15726   fi
15727 
15728 
15729     if test "x$FOUND_MAKE" = x; then
15730       for ac_prog in make
15731 do
15732   # Extract the first word of "$ac_prog", so it can be a program name with args.
15733 set dummy $ac_prog; ac_word=$2
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15735 $as_echo_n "checking for $ac_word... " >&6; }
15736 if ${ac_cv_path_CHECK_MAKE+:} false; then :
15737   $as_echo_n "(cached) " >&6
15738 else
15739   case $CHECK_MAKE in
15740   [\\/]* | ?:[\\/]*)
15741   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
15742   ;;
15743   *)
15744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15745 for as_dir in $PATH
15746 do
15747   IFS=$as_save_IFS
15748   test -z "$as_dir" && as_dir=.
15749     for ac_exec_ext in '' $ac_executable_extensions; do
15750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15751     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
15752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15753     break 2
15754   fi
15755 done
15756   done
15757 IFS=$as_save_IFS
15758 
15759   ;;
15760 esac
15761 fi
15762 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
15763 if test -n "$CHECK_MAKE"; then
15764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
15765 $as_echo "$CHECK_MAKE" >&6; }
15766 else
15767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15768 $as_echo "no" >&6; }
15769 fi
15770 
15771 
15772   test -n "$CHECK_MAKE" && break
15773 done
15774 
15775 
15776   MAKE_CANDIDATE=""$CHECK_MAKE""
15777   DESCRIPTION="make in PATH"
15778   if test "x$MAKE_CANDIDATE" != x; then
15779     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15780 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15781     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15782     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15783     if test "x$IS_GNU_MAKE" = x; then
15784       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15785 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15786     else
15787       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15788       if test "x$IS_MODERN_MAKE" = x; then
15789         { $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
15790 $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;}
15791       else
15792         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15793           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15794             MAKE_EXPECTED_ENV='cygwin'
15795           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15796             MAKE_EXPECTED_ENV='msys'
15797           else
15798             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15799           fi
15800           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15801           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15802         else
15803           # Not relevant for non-Windows
15804           IS_MAKE_CORRECT_ENV=true
15805         fi
15806         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15807           { $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
15808 $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;}
15809         else
15810           FOUND_MAKE=$MAKE_CANDIDATE
15811 
15812   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15813 
15814   # First separate the path from the arguments. This will split at the first
15815   # space.
15816   complete="$FOUND_MAKE"
15817   path="${complete%% *}"
15818   tmp="$complete EOL"
15819   arguments="${tmp#* }"
15820 
15821   # Input might be given as Windows format, start by converting to
15822   # unix format.
15823   new_path=`$CYGPATH -u "$path"`
15824 
15825   # Now try to locate executable using which
15826   new_path=`$WHICH "$new_path" 2> /dev/null`
15827   # bat and cmd files are not always considered executable in cygwin causing which
15828   # to not find them
15829   if test "x$new_path" = x \
15830       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15831       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15832     new_path=`$CYGPATH -u "$path"`
15833   fi
15834   if test "x$new_path" = x; then
15835     # Oops. Which didn't find the executable.
15836     # The splitting of arguments from the executable at a space might have been incorrect,
15837     # since paths with space are more likely in Windows. Give it another try with the whole
15838     # argument.
15839     path="$complete"
15840     arguments="EOL"
15841     new_path=`$CYGPATH -u "$path"`
15842     new_path=`$WHICH "$new_path" 2> /dev/null`
15843     # bat and cmd files are not always considered executable in cygwin causing which
15844     # to not find them
15845     if test "x$new_path" = x \
15846         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15847         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15848       new_path=`$CYGPATH -u "$path"`
15849     fi
15850     if test "x$new_path" = x; then
15851       # It's still not found. Now this is an unrecoverable error.
15852       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15853 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15854       has_space=`$ECHO "$complete" | $GREP " "`
15855       if test "x$has_space" != x; then
15856         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15857 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15858       fi
15859       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15860     fi
15861   fi
15862 
15863   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15864   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15865   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15866   # "foo.exe" is OK but "foo" is an error.
15867   #
15868   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15869   # It is also a way to make sure we got the proper file name for the real test later on.
15870   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15871   if test "x$test_shortpath" = x; then
15872     # Short path failed, file does not exist as specified.
15873     # Try adding .exe or .cmd
15874     if test -f "${new_path}.exe"; then
15875       input_to_shortpath="${new_path}.exe"
15876     elif test -f "${new_path}.cmd"; then
15877       input_to_shortpath="${new_path}.cmd"
15878     else
15879       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15880 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15881       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15882 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15883       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15884     fi
15885   else
15886     input_to_shortpath="$new_path"
15887   fi
15888 
15889   # Call helper function which possibly converts this using DOS-style short mode.
15890   # If so, the updated path is stored in $new_path.
15891   new_path="$input_to_shortpath"
15892 
15893   input_path="$input_to_shortpath"
15894   # Check if we need to convert this using DOS-style short mode. If the path
15895   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15896   # take no chances and rewrite it.
15897   # Note: m4 eats our [], so we need to use [ and ] instead.
15898   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15899   if test "x$has_forbidden_chars" != x; then
15900     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15901     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15902     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15903     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15904       # Going to short mode and back again did indeed matter. Since short mode is
15905       # case insensitive, let's make it lowercase to improve readability.
15906       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15907       # Now convert it back to Unix-stile (cygpath)
15908       input_path=`$CYGPATH -u "$shortmode_path"`
15909       new_path="$input_path"
15910     fi
15911   fi
15912 
15913   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15914   if test "x$test_cygdrive_prefix" = x; then
15915     # As a simple fix, exclude /usr/bin since it's not a real path.
15916     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15917       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15918       # a path prefixed by /cygdrive for fixpath to work.
15919       new_path="$CYGWIN_ROOT_PATH$input_path"
15920     fi
15921   fi
15922 
15923   # remove trailing .exe if any
15924   new_path="${new_path/%.exe/}"
15925 
15926   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15927 
15928   # First separate the path from the arguments. This will split at the first
15929   # space.
15930   complete="$FOUND_MAKE"
15931   path="${complete%% *}"
15932   tmp="$complete EOL"
15933   arguments="${tmp#* }"
15934 
15935   # Input might be given as Windows format, start by converting to
15936   # unix format.
15937   new_path="$path"
15938 
15939   windows_path="$new_path"
15940   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15941     unix_path=`$CYGPATH -u "$windows_path"`
15942     new_path="$unix_path"
15943   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15944     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15945     new_path="$unix_path"
15946   fi
15947 
15948 
15949   # Now try to locate executable using which
15950   new_path=`$WHICH "$new_path" 2> /dev/null`
15951 
15952   if test "x$new_path" = x; then
15953     # Oops. Which didn't find the executable.
15954     # The splitting of arguments from the executable at a space might have been incorrect,
15955     # since paths with space are more likely in Windows. Give it another try with the whole
15956     # argument.
15957     path="$complete"
15958     arguments="EOL"
15959     new_path="$path"
15960 
15961   windows_path="$new_path"
15962   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15963     unix_path=`$CYGPATH -u "$windows_path"`
15964     new_path="$unix_path"
15965   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15966     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15967     new_path="$unix_path"
15968   fi
15969 
15970 
15971     new_path=`$WHICH "$new_path" 2> /dev/null`
15972 
15973     if test "x$new_path" = x; then
15974       # It's still not found. Now this is an unrecoverable error.
15975       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15976 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15977       has_space=`$ECHO "$complete" | $GREP " "`
15978       if test "x$has_space" != x; then
15979         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15981       fi
15982       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15983     fi
15984   fi
15985 
15986   # Now new_path has a complete unix path to the binary
15987   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15988     # Keep paths in /bin as-is, but remove trailing .exe if any
15989     new_path="${new_path/%.exe/}"
15990     # Do not save /bin paths to all_fixpath_prefixes!
15991   else
15992     # Not in mixed or Windows style, start by that.
15993     new_path=`cmd //c echo $new_path`
15994 
15995   input_path="$new_path"
15996   # Check if we need to convert this using DOS-style short mode. If the path
15997   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15998   # take no chances and rewrite it.
15999   # Note: m4 eats our [], so we need to use [ and ] instead.
16000   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16001   if test "x$has_forbidden_chars" != x; then
16002     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16003     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16004   fi
16005 
16006     # Output is in $new_path
16007 
16008   windows_path="$new_path"
16009   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16010     unix_path=`$CYGPATH -u "$windows_path"`
16011     new_path="$unix_path"
16012   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16013     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16014     new_path="$unix_path"
16015   fi
16016 
16017     # remove trailing .exe if any
16018     new_path="${new_path/%.exe/}"
16019 
16020     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16021     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16022   fi
16023 
16024   else
16025     # We're on a posix platform. Hooray! :)
16026     # First separate the path from the arguments. This will split at the first
16027     # space.
16028     complete="$FOUND_MAKE"
16029     path="${complete%% *}"
16030     tmp="$complete EOL"
16031     arguments="${tmp#* }"
16032 
16033     # Cannot rely on the command "which" here since it doesn't always work.
16034     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16035     if test -z "$is_absolute_path"; then
16036       # Path to executable is not absolute. Find it.
16037       IFS_save="$IFS"
16038       IFS=:
16039       for p in $PATH; do
16040         if test -f "$p/$path" && test -x "$p/$path"; then
16041           new_path="$p/$path"
16042           break
16043         fi
16044       done
16045       IFS="$IFS_save"
16046     else
16047       # This is an absolute path, we can use it without further modifications.
16048       new_path="$path"
16049     fi
16050 
16051     if test "x$new_path" = x; then
16052       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16053 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16054       has_space=`$ECHO "$complete" | $GREP " "`
16055       if test "x$has_space" != x; then
16056         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16057 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16058       fi
16059       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16060     fi
16061   fi
16062 
16063   # Now join together the path and the arguments once again
16064   if test "x$arguments" != xEOL; then
16065     new_complete="$new_path ${arguments% *}"
16066   else
16067     new_complete="$new_path"
16068   fi
16069 
16070   if test "x$complete" != "x$new_complete"; then
16071     FOUND_MAKE="$new_complete"
16072     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16073 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16074   fi
16075 
16076         fi
16077       fi
16078     fi
16079   fi
16080 
16081     fi
16082 
16083     if test "x$FOUND_MAKE" = x; then
16084       if test "x$TOOLS_DIR" != x; then
16085         # We have a tools-dir, check that as well before giving up.
16086         OLD_PATH=$PATH
16087         PATH=$TOOLS_DIR:$PATH
16088         for ac_prog in gmake
16089 do
16090   # Extract the first word of "$ac_prog", so it can be a program name with args.
16091 set dummy $ac_prog; ac_word=$2
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16093 $as_echo_n "checking for $ac_word... " >&6; }
16094 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16095   $as_echo_n "(cached) " >&6
16096 else
16097   case $CHECK_TOOLSDIR_GMAKE in
16098   [\\/]* | ?:[\\/]*)
16099   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16100   ;;
16101   *)
16102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16103 for as_dir in $PATH
16104 do
16105   IFS=$as_save_IFS
16106   test -z "$as_dir" && as_dir=.
16107     for ac_exec_ext in '' $ac_executable_extensions; do
16108   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16109     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16110     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16111     break 2
16112   fi
16113 done
16114   done
16115 IFS=$as_save_IFS
16116 
16117   ;;
16118 esac
16119 fi
16120 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16121 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16123 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16124 else
16125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16127 fi
16128 
16129 
16130   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16131 done
16132 
16133 
16134   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16135   DESCRIPTION="gmake in tools-dir"
16136   if test "x$MAKE_CANDIDATE" != x; then
16137     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16138 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16139     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16140     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16141     if test "x$IS_GNU_MAKE" = x; then
16142       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16143 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16144     else
16145       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16146       if test "x$IS_MODERN_MAKE" = x; then
16147         { $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
16148 $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;}
16149       else
16150         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16151           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16152             MAKE_EXPECTED_ENV='cygwin'
16153           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16154             MAKE_EXPECTED_ENV='msys'
16155           else
16156             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16157           fi
16158           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16159           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16160         else
16161           # Not relevant for non-Windows
16162           IS_MAKE_CORRECT_ENV=true
16163         fi
16164         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16165           { $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
16166 $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;}
16167         else
16168           FOUND_MAKE=$MAKE_CANDIDATE
16169 
16170   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16171 
16172   # First separate the path from the arguments. This will split at the first
16173   # space.
16174   complete="$FOUND_MAKE"
16175   path="${complete%% *}"
16176   tmp="$complete EOL"
16177   arguments="${tmp#* }"
16178 
16179   # Input might be given as Windows format, start by converting to
16180   # unix format.
16181   new_path=`$CYGPATH -u "$path"`
16182 
16183   # Now try to locate executable using which
16184   new_path=`$WHICH "$new_path" 2> /dev/null`
16185   # bat and cmd files are not always considered executable in cygwin causing which
16186   # to not find them
16187   if test "x$new_path" = x \
16188       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16189       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16190     new_path=`$CYGPATH -u "$path"`
16191   fi
16192   if test "x$new_path" = x; then
16193     # Oops. Which didn't find the executable.
16194     # The splitting of arguments from the executable at a space might have been incorrect,
16195     # since paths with space are more likely in Windows. Give it another try with the whole
16196     # argument.
16197     path="$complete"
16198     arguments="EOL"
16199     new_path=`$CYGPATH -u "$path"`
16200     new_path=`$WHICH "$new_path" 2> /dev/null`
16201     # bat and cmd files are not always considered executable in cygwin causing which
16202     # to not find them
16203     if test "x$new_path" = x \
16204         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16205         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16206       new_path=`$CYGPATH -u "$path"`
16207     fi
16208     if test "x$new_path" = x; then
16209       # It's still not found. Now this is an unrecoverable error.
16210       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16211 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16212       has_space=`$ECHO "$complete" | $GREP " "`
16213       if test "x$has_space" != x; then
16214         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16215 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16216       fi
16217       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16218     fi
16219   fi
16220 
16221   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16222   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16223   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16224   # "foo.exe" is OK but "foo" is an error.
16225   #
16226   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16227   # It is also a way to make sure we got the proper file name for the real test later on.
16228   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16229   if test "x$test_shortpath" = x; then
16230     # Short path failed, file does not exist as specified.
16231     # Try adding .exe or .cmd
16232     if test -f "${new_path}.exe"; then
16233       input_to_shortpath="${new_path}.exe"
16234     elif test -f "${new_path}.cmd"; then
16235       input_to_shortpath="${new_path}.cmd"
16236     else
16237       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16238 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16239       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16240 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16241       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16242     fi
16243   else
16244     input_to_shortpath="$new_path"
16245   fi
16246 
16247   # Call helper function which possibly converts this using DOS-style short mode.
16248   # If so, the updated path is stored in $new_path.
16249   new_path="$input_to_shortpath"
16250 
16251   input_path="$input_to_shortpath"
16252   # Check if we need to convert this using DOS-style short mode. If the path
16253   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16254   # take no chances and rewrite it.
16255   # Note: m4 eats our [], so we need to use [ and ] instead.
16256   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16257   if test "x$has_forbidden_chars" != x; then
16258     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16259     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16260     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16261     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16262       # Going to short mode and back again did indeed matter. Since short mode is
16263       # case insensitive, let's make it lowercase to improve readability.
16264       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16265       # Now convert it back to Unix-stile (cygpath)
16266       input_path=`$CYGPATH -u "$shortmode_path"`
16267       new_path="$input_path"
16268     fi
16269   fi
16270 
16271   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16272   if test "x$test_cygdrive_prefix" = x; then
16273     # As a simple fix, exclude /usr/bin since it's not a real path.
16274     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16275       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16276       # a path prefixed by /cygdrive for fixpath to work.
16277       new_path="$CYGWIN_ROOT_PATH$input_path"
16278     fi
16279   fi
16280 
16281   # remove trailing .exe if any
16282   new_path="${new_path/%.exe/}"
16283 
16284   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16285 
16286   # First separate the path from the arguments. This will split at the first
16287   # space.
16288   complete="$FOUND_MAKE"
16289   path="${complete%% *}"
16290   tmp="$complete EOL"
16291   arguments="${tmp#* }"
16292 
16293   # Input might be given as Windows format, start by converting to
16294   # unix format.
16295   new_path="$path"
16296 
16297   windows_path="$new_path"
16298   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16299     unix_path=`$CYGPATH -u "$windows_path"`
16300     new_path="$unix_path"
16301   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16302     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16303     new_path="$unix_path"
16304   fi
16305 
16306 
16307   # Now try to locate executable using which
16308   new_path=`$WHICH "$new_path" 2> /dev/null`
16309 
16310   if test "x$new_path" = x; then
16311     # Oops. Which didn't find the executable.
16312     # The splitting of arguments from the executable at a space might have been incorrect,
16313     # since paths with space are more likely in Windows. Give it another try with the whole
16314     # argument.
16315     path="$complete"
16316     arguments="EOL"
16317     new_path="$path"
16318 
16319   windows_path="$new_path"
16320   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16321     unix_path=`$CYGPATH -u "$windows_path"`
16322     new_path="$unix_path"
16323   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16324     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16325     new_path="$unix_path"
16326   fi
16327 
16328 
16329     new_path=`$WHICH "$new_path" 2> /dev/null`
16330 
16331     if test "x$new_path" = x; then
16332       # It's still not found. Now this is an unrecoverable error.
16333       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16334 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16335       has_space=`$ECHO "$complete" | $GREP " "`
16336       if test "x$has_space" != x; then
16337         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16338 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16339       fi
16340       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16341     fi
16342   fi
16343 
16344   # Now new_path has a complete unix path to the binary
16345   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16346     # Keep paths in /bin as-is, but remove trailing .exe if any
16347     new_path="${new_path/%.exe/}"
16348     # Do not save /bin paths to all_fixpath_prefixes!
16349   else
16350     # Not in mixed or Windows style, start by that.
16351     new_path=`cmd //c echo $new_path`
16352 
16353   input_path="$new_path"
16354   # Check if we need to convert this using DOS-style short mode. If the path
16355   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16356   # take no chances and rewrite it.
16357   # Note: m4 eats our [], so we need to use [ and ] instead.
16358   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16359   if test "x$has_forbidden_chars" != x; then
16360     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16361     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16362   fi
16363 
16364     # Output is in $new_path
16365 
16366   windows_path="$new_path"
16367   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16368     unix_path=`$CYGPATH -u "$windows_path"`
16369     new_path="$unix_path"
16370   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16371     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16372     new_path="$unix_path"
16373   fi
16374 
16375     # remove trailing .exe if any
16376     new_path="${new_path/%.exe/}"
16377 
16378     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16379     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16380   fi
16381 
16382   else
16383     # We're on a posix platform. Hooray! :)
16384     # First separate the path from the arguments. This will split at the first
16385     # space.
16386     complete="$FOUND_MAKE"
16387     path="${complete%% *}"
16388     tmp="$complete EOL"
16389     arguments="${tmp#* }"
16390 
16391     # Cannot rely on the command "which" here since it doesn't always work.
16392     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16393     if test -z "$is_absolute_path"; then
16394       # Path to executable is not absolute. Find it.
16395       IFS_save="$IFS"
16396       IFS=:
16397       for p in $PATH; do
16398         if test -f "$p/$path" && test -x "$p/$path"; then
16399           new_path="$p/$path"
16400           break
16401         fi
16402       done
16403       IFS="$IFS_save"
16404     else
16405       # This is an absolute path, we can use it without further modifications.
16406       new_path="$path"
16407     fi
16408 
16409     if test "x$new_path" = x; then
16410       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16411 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16412       has_space=`$ECHO "$complete" | $GREP " "`
16413       if test "x$has_space" != x; then
16414         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16415 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16416       fi
16417       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16418     fi
16419   fi
16420 
16421   # Now join together the path and the arguments once again
16422   if test "x$arguments" != xEOL; then
16423     new_complete="$new_path ${arguments% *}"
16424   else
16425     new_complete="$new_path"
16426   fi
16427 
16428   if test "x$complete" != "x$new_complete"; then
16429     FOUND_MAKE="$new_complete"
16430     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16431 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16432   fi
16433 
16434         fi
16435       fi
16436     fi
16437   fi
16438 
16439         if test "x$FOUND_MAKE" = x; then
16440           for ac_prog in make
16441 do
16442   # Extract the first word of "$ac_prog", so it can be a program name with args.
16443 set dummy $ac_prog; ac_word=$2
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16445 $as_echo_n "checking for $ac_word... " >&6; }
16446 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16447   $as_echo_n "(cached) " >&6
16448 else
16449   case $CHECK_TOOLSDIR_MAKE in
16450   [\\/]* | ?:[\\/]*)
16451   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16452   ;;
16453   *)
16454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16456 do
16457   IFS=$as_save_IFS
16458   test -z "$as_dir" && as_dir=.
16459     for ac_exec_ext in '' $ac_executable_extensions; do
16460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16461     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463     break 2
16464   fi
16465 done
16466   done
16467 IFS=$as_save_IFS
16468 
16469   ;;
16470 esac
16471 fi
16472 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16473 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16475 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16476 else
16477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16479 fi
16480 
16481 
16482   test -n "$CHECK_TOOLSDIR_MAKE" && break
16483 done
16484 
16485 
16486   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16487   DESCRIPTION="make in tools-dir"
16488   if test "x$MAKE_CANDIDATE" != x; then
16489     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16490 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16491     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16492     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16493     if test "x$IS_GNU_MAKE" = x; then
16494       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16495 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16496     else
16497       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16498       if test "x$IS_MODERN_MAKE" = x; then
16499         { $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
16500 $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;}
16501       else
16502         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16503           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16504             MAKE_EXPECTED_ENV='cygwin'
16505           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16506             MAKE_EXPECTED_ENV='msys'
16507           else
16508             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16509           fi
16510           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16511           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16512         else
16513           # Not relevant for non-Windows
16514           IS_MAKE_CORRECT_ENV=true
16515         fi
16516         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16517           { $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
16518 $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;}
16519         else
16520           FOUND_MAKE=$MAKE_CANDIDATE
16521 
16522   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16523 
16524   # First separate the path from the arguments. This will split at the first
16525   # space.
16526   complete="$FOUND_MAKE"
16527   path="${complete%% *}"
16528   tmp="$complete EOL"
16529   arguments="${tmp#* }"
16530 
16531   # Input might be given as Windows format, start by converting to
16532   # unix format.
16533   new_path=`$CYGPATH -u "$path"`
16534 
16535   # Now try to locate executable using which
16536   new_path=`$WHICH "$new_path" 2> /dev/null`
16537   # bat and cmd files are not always considered executable in cygwin causing which
16538   # to not find them
16539   if test "x$new_path" = x \
16540       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16541       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16542     new_path=`$CYGPATH -u "$path"`
16543   fi
16544   if test "x$new_path" = x; then
16545     # Oops. Which didn't find the executable.
16546     # The splitting of arguments from the executable at a space might have been incorrect,
16547     # since paths with space are more likely in Windows. Give it another try with the whole
16548     # argument.
16549     path="$complete"
16550     arguments="EOL"
16551     new_path=`$CYGPATH -u "$path"`
16552     new_path=`$WHICH "$new_path" 2> /dev/null`
16553     # bat and cmd files are not always considered executable in cygwin causing which
16554     # to not find them
16555     if test "x$new_path" = x \
16556         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16557         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16558       new_path=`$CYGPATH -u "$path"`
16559     fi
16560     if test "x$new_path" = x; then
16561       # It's still not found. Now this is an unrecoverable error.
16562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16563 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16564       has_space=`$ECHO "$complete" | $GREP " "`
16565       if test "x$has_space" != x; then
16566         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16567 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16568       fi
16569       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16570     fi
16571   fi
16572 
16573   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16574   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16575   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16576   # "foo.exe" is OK but "foo" is an error.
16577   #
16578   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16579   # It is also a way to make sure we got the proper file name for the real test later on.
16580   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16581   if test "x$test_shortpath" = x; then
16582     # Short path failed, file does not exist as specified.
16583     # Try adding .exe or .cmd
16584     if test -f "${new_path}.exe"; then
16585       input_to_shortpath="${new_path}.exe"
16586     elif test -f "${new_path}.cmd"; then
16587       input_to_shortpath="${new_path}.cmd"
16588     else
16589       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16590 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16591       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16592 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16593       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16594     fi
16595   else
16596     input_to_shortpath="$new_path"
16597   fi
16598 
16599   # Call helper function which possibly converts this using DOS-style short mode.
16600   # If so, the updated path is stored in $new_path.
16601   new_path="$input_to_shortpath"
16602 
16603   input_path="$input_to_shortpath"
16604   # Check if we need to convert this using DOS-style short mode. If the path
16605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16606   # take no chances and rewrite it.
16607   # Note: m4 eats our [], so we need to use [ and ] instead.
16608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16609   if test "x$has_forbidden_chars" != x; then
16610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16611     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16612     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16613     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16614       # Going to short mode and back again did indeed matter. Since short mode is
16615       # case insensitive, let's make it lowercase to improve readability.
16616       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16617       # Now convert it back to Unix-stile (cygpath)
16618       input_path=`$CYGPATH -u "$shortmode_path"`
16619       new_path="$input_path"
16620     fi
16621   fi
16622 
16623   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16624   if test "x$test_cygdrive_prefix" = x; then
16625     # As a simple fix, exclude /usr/bin since it's not a real path.
16626     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16627       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16628       # a path prefixed by /cygdrive for fixpath to work.
16629       new_path="$CYGWIN_ROOT_PATH$input_path"
16630     fi
16631   fi
16632 
16633   # remove trailing .exe if any
16634   new_path="${new_path/%.exe/}"
16635 
16636   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16637 
16638   # First separate the path from the arguments. This will split at the first
16639   # space.
16640   complete="$FOUND_MAKE"
16641   path="${complete%% *}"
16642   tmp="$complete EOL"
16643   arguments="${tmp#* }"
16644 
16645   # Input might be given as Windows format, start by converting to
16646   # unix format.
16647   new_path="$path"
16648 
16649   windows_path="$new_path"
16650   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16651     unix_path=`$CYGPATH -u "$windows_path"`
16652     new_path="$unix_path"
16653   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16654     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16655     new_path="$unix_path"
16656   fi
16657 
16658 
16659   # Now try to locate executable using which
16660   new_path=`$WHICH "$new_path" 2> /dev/null`
16661 
16662   if test "x$new_path" = x; then
16663     # Oops. Which didn't find the executable.
16664     # The splitting of arguments from the executable at a space might have been incorrect,
16665     # since paths with space are more likely in Windows. Give it another try with the whole
16666     # argument.
16667     path="$complete"
16668     arguments="EOL"
16669     new_path="$path"
16670 
16671   windows_path="$new_path"
16672   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16673     unix_path=`$CYGPATH -u "$windows_path"`
16674     new_path="$unix_path"
16675   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16676     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16677     new_path="$unix_path"
16678   fi
16679 
16680 
16681     new_path=`$WHICH "$new_path" 2> /dev/null`
16682 
16683     if test "x$new_path" = x; then
16684       # It's still not found. Now this is an unrecoverable error.
16685       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16686 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16687       has_space=`$ECHO "$complete" | $GREP " "`
16688       if test "x$has_space" != x; then
16689         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16691       fi
16692       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16693     fi
16694   fi
16695 
16696   # Now new_path has a complete unix path to the binary
16697   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16698     # Keep paths in /bin as-is, but remove trailing .exe if any
16699     new_path="${new_path/%.exe/}"
16700     # Do not save /bin paths to all_fixpath_prefixes!
16701   else
16702     # Not in mixed or Windows style, start by that.
16703     new_path=`cmd //c echo $new_path`
16704 
16705   input_path="$new_path"
16706   # Check if we need to convert this using DOS-style short mode. If the path
16707   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16708   # take no chances and rewrite it.
16709   # Note: m4 eats our [], so we need to use [ and ] instead.
16710   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16711   if test "x$has_forbidden_chars" != x; then
16712     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16713     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16714   fi
16715 
16716     # Output is in $new_path
16717 
16718   windows_path="$new_path"
16719   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16720     unix_path=`$CYGPATH -u "$windows_path"`
16721     new_path="$unix_path"
16722   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16723     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16724     new_path="$unix_path"
16725   fi
16726 
16727     # remove trailing .exe if any
16728     new_path="${new_path/%.exe/}"
16729 
16730     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16731     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16732   fi
16733 
16734   else
16735     # We're on a posix platform. Hooray! :)
16736     # First separate the path from the arguments. This will split at the first
16737     # space.
16738     complete="$FOUND_MAKE"
16739     path="${complete%% *}"
16740     tmp="$complete EOL"
16741     arguments="${tmp#* }"
16742 
16743     # Cannot rely on the command "which" here since it doesn't always work.
16744     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16745     if test -z "$is_absolute_path"; then
16746       # Path to executable is not absolute. Find it.
16747       IFS_save="$IFS"
16748       IFS=:
16749       for p in $PATH; do
16750         if test -f "$p/$path" && test -x "$p/$path"; then
16751           new_path="$p/$path"
16752           break
16753         fi
16754       done
16755       IFS="$IFS_save"
16756     else
16757       # This is an absolute path, we can use it without further modifications.
16758       new_path="$path"
16759     fi
16760 
16761     if test "x$new_path" = x; then
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}: This might be caused by spaces in the path, which is not allowed." >&5
16767 $as_echo "$as_me: This might be caused by spaces in the path, 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 join together the path and the arguments once again
16774   if test "x$arguments" != xEOL; then
16775     new_complete="$new_path ${arguments% *}"
16776   else
16777     new_complete="$new_path"
16778   fi
16779 
16780   if test "x$complete" != "x$new_complete"; then
16781     FOUND_MAKE="$new_complete"
16782     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16783 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16784   fi
16785 
16786         fi
16787       fi
16788     fi
16789   fi
16790 
16791         fi
16792         PATH=$OLD_PATH
16793       fi
16794     fi
16795 
16796     if test "x$FOUND_MAKE" = x; then
16797       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
16798     fi
16799   fi
16800 
16801   MAKE=$FOUND_MAKE
16802 
16803   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
16804 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
16805 
16806 
16807 
16808   # Test if find supports -delete
16809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
16810 $as_echo_n "checking if find supports -delete... " >&6; }
16811   FIND_DELETE="-delete"
16812 
16813   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
16814 
16815   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
16816 
16817   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
16818   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
16819     # No, it does not.
16820     rm $DELETEDIR/TestIfFindSupportsDelete
16821     FIND_DELETE="-exec rm \{\} \+"
16822     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16824   else
16825     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16826 $as_echo "yes" >&6; }
16827   fi
16828   rmdir $DELETEDIR
16829 
16830 
16831 
16832   # These tools might not be installed by default,
16833   # need hint on how to install them.
16834 
16835 
16836 
16837   # Publish this variable in the help.
16838 
16839 
16840   if test "x$UNZIP" = x; then
16841     # The variable is not set by user, try to locate tool using the code snippet
16842     for ac_prog in unzip
16843 do
16844   # Extract the first word of "$ac_prog", so it can be a program name with args.
16845 set dummy $ac_prog; ac_word=$2
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16847 $as_echo_n "checking for $ac_word... " >&6; }
16848 if ${ac_cv_path_UNZIP+:} false; then :
16849   $as_echo_n "(cached) " >&6
16850 else
16851   case $UNZIP in
16852   [\\/]* | ?:[\\/]*)
16853   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16854   ;;
16855   *)
16856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16857 for as_dir in $PATH
16858 do
16859   IFS=$as_save_IFS
16860   test -z "$as_dir" && as_dir=.
16861     for ac_exec_ext in '' $ac_executable_extensions; do
16862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16863     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16865     break 2
16866   fi
16867 done
16868   done
16869 IFS=$as_save_IFS
16870 
16871   ;;
16872 esac
16873 fi
16874 UNZIP=$ac_cv_path_UNZIP
16875 if test -n "$UNZIP"; then
16876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16877 $as_echo "$UNZIP" >&6; }
16878 else
16879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16880 $as_echo "no" >&6; }
16881 fi
16882 
16883 
16884   test -n "$UNZIP" && break
16885 done
16886 
16887   else
16888     # The variable is set, but is it from the command line or the environment?
16889 
16890     # Try to remove the string !UNZIP! from our list.
16891     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
16892     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
16893       # If it failed, the variable was not from the command line. Ignore it,
16894       # but warn the user (except for BASH, which is always set by the calling BASH).
16895       if test "xUNZIP" != xBASH; then
16896         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
16897 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
16898       fi
16899       # Try to locate tool using the code snippet
16900       for ac_prog in unzip
16901 do
16902   # Extract the first word of "$ac_prog", so it can be a program name with args.
16903 set dummy $ac_prog; ac_word=$2
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16905 $as_echo_n "checking for $ac_word... " >&6; }
16906 if ${ac_cv_path_UNZIP+:} false; then :
16907   $as_echo_n "(cached) " >&6
16908 else
16909   case $UNZIP in
16910   [\\/]* | ?:[\\/]*)
16911   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16912   ;;
16913   *)
16914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915 for as_dir in $PATH
16916 do
16917   IFS=$as_save_IFS
16918   test -z "$as_dir" && as_dir=.
16919     for ac_exec_ext in '' $ac_executable_extensions; do
16920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16921     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16923     break 2
16924   fi
16925 done
16926   done
16927 IFS=$as_save_IFS
16928 
16929   ;;
16930 esac
16931 fi
16932 UNZIP=$ac_cv_path_UNZIP
16933 if test -n "$UNZIP"; then
16934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16935 $as_echo "$UNZIP" >&6; }
16936 else
16937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16938 $as_echo "no" >&6; }
16939 fi
16940 
16941 
16942   test -n "$UNZIP" && break
16943 done
16944 
16945     else
16946       # If it succeeded, then it was overridden by the user. We will use it
16947       # for the tool.
16948 
16949       # First remove it from the list of overridden variables, so we can test
16950       # for unknown variables in the end.
16951       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
16952 
16953       # Check if the provided tool contains a complete path.
16954       tool_specified="$UNZIP"
16955       tool_basename="${tool_specified##*/}"
16956       if test "x$tool_basename" = "x$tool_specified"; then
16957         # A command without a complete path is provided, search $PATH.
16958         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
16959 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
16960         # Extract the first word of "$tool_basename", so it can be a program name with args.
16961 set dummy $tool_basename; ac_word=$2
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16963 $as_echo_n "checking for $ac_word... " >&6; }
16964 if ${ac_cv_path_UNZIP+:} false; then :
16965   $as_echo_n "(cached) " >&6
16966 else
16967   case $UNZIP in
16968   [\\/]* | ?:[\\/]*)
16969   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
16970   ;;
16971   *)
16972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973 for as_dir in $PATH
16974 do
16975   IFS=$as_save_IFS
16976   test -z "$as_dir" && as_dir=.
16977     for ac_exec_ext in '' $ac_executable_extensions; do
16978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16979     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
16980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16981     break 2
16982   fi
16983 done
16984   done
16985 IFS=$as_save_IFS
16986 
16987   ;;
16988 esac
16989 fi
16990 UNZIP=$ac_cv_path_UNZIP
16991 if test -n "$UNZIP"; then
16992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
16993 $as_echo "$UNZIP" >&6; }
16994 else
16995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16996 $as_echo "no" >&6; }
16997 fi
16998 
16999 
17000         if test "x$UNZIP" = x; then
17001           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17002         fi
17003       else
17004         # Otherwise we believe it is a complete path. Use it as it is.
17005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17006 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17007         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17008 $as_echo_n "checking for UNZIP... " >&6; }
17009         if test ! -x "$tool_specified"; then
17010           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17011 $as_echo "not found" >&6; }
17012           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17013         fi
17014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17015 $as_echo "$tool_specified" >&6; }
17016       fi
17017     fi
17018   fi
17019 
17020 
17021 
17022   if test "x$UNZIP" = x; then
17023     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17024   fi
17025 
17026 
17027 
17028 
17029 
17030   # Publish this variable in the help.
17031 
17032 
17033   if test "x$ZIP" = x; then
17034     # The variable is not set by user, try to locate tool using the code snippet
17035     for ac_prog in zip
17036 do
17037   # Extract the first word of "$ac_prog", so it can be a program name with args.
17038 set dummy $ac_prog; ac_word=$2
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17040 $as_echo_n "checking for $ac_word... " >&6; }
17041 if ${ac_cv_path_ZIP+:} false; then :
17042   $as_echo_n "(cached) " >&6
17043 else
17044   case $ZIP in
17045   [\\/]* | ?:[\\/]*)
17046   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17047   ;;
17048   *)
17049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17051 do
17052   IFS=$as_save_IFS
17053   test -z "$as_dir" && as_dir=.
17054     for ac_exec_ext in '' $ac_executable_extensions; do
17055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17058     break 2
17059   fi
17060 done
17061   done
17062 IFS=$as_save_IFS
17063 
17064   ;;
17065 esac
17066 fi
17067 ZIP=$ac_cv_path_ZIP
17068 if test -n "$ZIP"; then
17069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17070 $as_echo "$ZIP" >&6; }
17071 else
17072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073 $as_echo "no" >&6; }
17074 fi
17075 
17076 
17077   test -n "$ZIP" && break
17078 done
17079 
17080   else
17081     # The variable is set, but is it from the command line or the environment?
17082 
17083     # Try to remove the string !ZIP! from our list.
17084     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17085     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17086       # If it failed, the variable was not from the command line. Ignore it,
17087       # but warn the user (except for BASH, which is always set by the calling BASH).
17088       if test "xZIP" != xBASH; then
17089         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17090 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17091       fi
17092       # Try to locate tool using the code snippet
17093       for ac_prog in zip
17094 do
17095   # Extract the first word of "$ac_prog", so it can be a program name with args.
17096 set dummy $ac_prog; ac_word=$2
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17098 $as_echo_n "checking for $ac_word... " >&6; }
17099 if ${ac_cv_path_ZIP+:} false; then :
17100   $as_echo_n "(cached) " >&6
17101 else
17102   case $ZIP in
17103   [\\/]* | ?:[\\/]*)
17104   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17105   ;;
17106   *)
17107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in $PATH
17109 do
17110   IFS=$as_save_IFS
17111   test -z "$as_dir" && as_dir=.
17112     for ac_exec_ext in '' $ac_executable_extensions; do
17113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17114     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17116     break 2
17117   fi
17118 done
17119   done
17120 IFS=$as_save_IFS
17121 
17122   ;;
17123 esac
17124 fi
17125 ZIP=$ac_cv_path_ZIP
17126 if test -n "$ZIP"; then
17127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17128 $as_echo "$ZIP" >&6; }
17129 else
17130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17132 fi
17133 
17134 
17135   test -n "$ZIP" && break
17136 done
17137 
17138     else
17139       # If it succeeded, then it was overridden by the user. We will use it
17140       # for the tool.
17141 
17142       # First remove it from the list of overridden variables, so we can test
17143       # for unknown variables in the end.
17144       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17145 
17146       # Check if the provided tool contains a complete path.
17147       tool_specified="$ZIP"
17148       tool_basename="${tool_specified##*/}"
17149       if test "x$tool_basename" = "x$tool_specified"; then
17150         # A command without a complete path is provided, search $PATH.
17151         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17152 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17153         # Extract the first word of "$tool_basename", so it can be a program name with args.
17154 set dummy $tool_basename; ac_word=$2
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17156 $as_echo_n "checking for $ac_word... " >&6; }
17157 if ${ac_cv_path_ZIP+:} false; then :
17158   $as_echo_n "(cached) " >&6
17159 else
17160   case $ZIP in
17161   [\\/]* | ?:[\\/]*)
17162   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17163   ;;
17164   *)
17165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17166 for as_dir in $PATH
17167 do
17168   IFS=$as_save_IFS
17169   test -z "$as_dir" && as_dir=.
17170     for ac_exec_ext in '' $ac_executable_extensions; do
17171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17172     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17174     break 2
17175   fi
17176 done
17177   done
17178 IFS=$as_save_IFS
17179 
17180   ;;
17181 esac
17182 fi
17183 ZIP=$ac_cv_path_ZIP
17184 if test -n "$ZIP"; then
17185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17186 $as_echo "$ZIP" >&6; }
17187 else
17188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17189 $as_echo "no" >&6; }
17190 fi
17191 
17192 
17193         if test "x$ZIP" = x; then
17194           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17195         fi
17196       else
17197         # Otherwise we believe it is a complete path. Use it as it is.
17198         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17199 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17201 $as_echo_n "checking for ZIP... " >&6; }
17202         if test ! -x "$tool_specified"; then
17203           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17204 $as_echo "not found" >&6; }
17205           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17206         fi
17207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17208 $as_echo "$tool_specified" >&6; }
17209       fi
17210     fi
17211   fi
17212 
17213 
17214 
17215   if test "x$ZIP" = x; then
17216     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17217   fi
17218 
17219 
17220 
17221   # Non-required basic tools
17222 
17223 
17224 
17225   # Publish this variable in the help.
17226 
17227 
17228   if test "x$LDD" = x; then
17229     # The variable is not set by user, try to locate tool using the code snippet
17230     for ac_prog in ldd
17231 do
17232   # Extract the first word of "$ac_prog", so it can be a program name with args.
17233 set dummy $ac_prog; ac_word=$2
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17235 $as_echo_n "checking for $ac_word... " >&6; }
17236 if ${ac_cv_path_LDD+:} false; then :
17237   $as_echo_n "(cached) " >&6
17238 else
17239   case $LDD in
17240   [\\/]* | ?:[\\/]*)
17241   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17242   ;;
17243   *)
17244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17245 for as_dir in $PATH
17246 do
17247   IFS=$as_save_IFS
17248   test -z "$as_dir" && as_dir=.
17249     for ac_exec_ext in '' $ac_executable_extensions; do
17250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17251     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17253     break 2
17254   fi
17255 done
17256   done
17257 IFS=$as_save_IFS
17258 
17259   ;;
17260 esac
17261 fi
17262 LDD=$ac_cv_path_LDD
17263 if test -n "$LDD"; then
17264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17265 $as_echo "$LDD" >&6; }
17266 else
17267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269 fi
17270 
17271 
17272   test -n "$LDD" && break
17273 done
17274 
17275   else
17276     # The variable is set, but is it from the command line or the environment?
17277 
17278     # Try to remove the string !LDD! from our list.
17279     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17280     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17281       # If it failed, the variable was not from the command line. Ignore it,
17282       # but warn the user (except for BASH, which is always set by the calling BASH).
17283       if test "xLDD" != xBASH; then
17284         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17285 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17286       fi
17287       # Try to locate tool using the code snippet
17288       for ac_prog in ldd
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_LDD+:} false; then :
17295   $as_echo_n "(cached) " >&6
17296 else
17297   case $LDD in
17298   [\\/]* | ?:[\\/]*)
17299   ac_cv_path_LDD="$LDD" # 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_LDD="$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 LDD=$ac_cv_path_LDD
17321 if test -n "$LDD"; then
17322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17323 $as_echo "$LDD" >&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 "$LDD" && break
17331 done
17332 
17333     else
17334       # If it succeeded, then it was overridden by the user. We will use it
17335       # for the tool.
17336 
17337       # First remove it from the list of overridden variables, so we can test
17338       # for unknown variables in the end.
17339       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17340 
17341       # Check if the provided tool contains a complete path.
17342       tool_specified="$LDD"
17343       tool_basename="${tool_specified##*/}"
17344       if test "x$tool_basename" = "x$tool_specified"; then
17345         # A command without a complete path is provided, search $PATH.
17346         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17347 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17348         # Extract the first word of "$tool_basename", so it can be a program name with args.
17349 set dummy $tool_basename; 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_LDD+:} false; then :
17353   $as_echo_n "(cached) " >&6
17354 else
17355   case $LDD in
17356   [\\/]* | ?:[\\/]*)
17357   ac_cv_path_LDD="$LDD" # 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_LDD="$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 LDD=$ac_cv_path_LDD
17379 if test -n "$LDD"; then
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17381 $as_echo "$LDD" >&6; }
17382 else
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386 
17387 
17388         if test "x$LDD" = x; then
17389           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17390         fi
17391       else
17392         # Otherwise we believe it is a complete path. Use it as it is.
17393         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17394 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17395         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17396 $as_echo_n "checking for LDD... " >&6; }
17397         if test ! -x "$tool_specified"; then
17398           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17399 $as_echo "not found" >&6; }
17400           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17401         fi
17402         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17403 $as_echo "$tool_specified" >&6; }
17404       fi
17405     fi
17406   fi
17407 
17408 
17409   if test "x$LDD" = "x"; then
17410     # List shared lib dependencies is used for
17411     # debug output and checking for forbidden dependencies.
17412     # We can build without it.
17413     LDD="true"
17414   fi
17415 
17416 
17417   # Publish this variable in the help.
17418 
17419 
17420   if test "x$OTOOL" = x; then
17421     # The variable is not set by user, try to locate tool using the code snippet
17422     for ac_prog in otool
17423 do
17424   # Extract the first word of "$ac_prog", so it can be a program name with args.
17425 set dummy $ac_prog; ac_word=$2
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17427 $as_echo_n "checking for $ac_word... " >&6; }
17428 if ${ac_cv_path_OTOOL+:} false; then :
17429   $as_echo_n "(cached) " >&6
17430 else
17431   case $OTOOL in
17432   [\\/]* | ?:[\\/]*)
17433   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17434   ;;
17435   *)
17436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17437 for as_dir in $PATH
17438 do
17439   IFS=$as_save_IFS
17440   test -z "$as_dir" && as_dir=.
17441     for ac_exec_ext in '' $ac_executable_extensions; do
17442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17443     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17445     break 2
17446   fi
17447 done
17448   done
17449 IFS=$as_save_IFS
17450 
17451   ;;
17452 esac
17453 fi
17454 OTOOL=$ac_cv_path_OTOOL
17455 if test -n "$OTOOL"; then
17456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17457 $as_echo "$OTOOL" >&6; }
17458 else
17459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17460 $as_echo "no" >&6; }
17461 fi
17462 
17463 
17464   test -n "$OTOOL" && break
17465 done
17466 
17467   else
17468     # The variable is set, but is it from the command line or the environment?
17469 
17470     # Try to remove the string !OTOOL! from our list.
17471     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/}
17472     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17473       # If it failed, the variable was not from the command line. Ignore it,
17474       # but warn the user (except for BASH, which is always set by the calling BASH).
17475       if test "xOTOOL" != xBASH; then
17476         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5
17477 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;}
17478       fi
17479       # Try to locate tool using the code snippet
17480       for ac_prog in otool
17481 do
17482   # Extract the first word of "$ac_prog", so it can be a program name with args.
17483 set dummy $ac_prog; ac_word=$2
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17485 $as_echo_n "checking for $ac_word... " >&6; }
17486 if ${ac_cv_path_OTOOL+:} false; then :
17487   $as_echo_n "(cached) " >&6
17488 else
17489   case $OTOOL in
17490   [\\/]* | ?:[\\/]*)
17491   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17492   ;;
17493   *)
17494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17495 for as_dir in $PATH
17496 do
17497   IFS=$as_save_IFS
17498   test -z "$as_dir" && as_dir=.
17499     for ac_exec_ext in '' $ac_executable_extensions; do
17500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17501     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17503     break 2
17504   fi
17505 done
17506   done
17507 IFS=$as_save_IFS
17508 
17509   ;;
17510 esac
17511 fi
17512 OTOOL=$ac_cv_path_OTOOL
17513 if test -n "$OTOOL"; then
17514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17515 $as_echo "$OTOOL" >&6; }
17516 else
17517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17518 $as_echo "no" >&6; }
17519 fi
17520 
17521 
17522   test -n "$OTOOL" && break
17523 done
17524 
17525     else
17526       # If it succeeded, then it was overridden by the user. We will use it
17527       # for the tool.
17528 
17529       # First remove it from the list of overridden variables, so we can test
17530       # for unknown variables in the end.
17531       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17532 
17533       # Check if the provided tool contains a complete path.
17534       tool_specified="$OTOOL"
17535       tool_basename="${tool_specified##*/}"
17536       if test "x$tool_basename" = "x$tool_specified"; then
17537         # A command without a complete path is provided, search $PATH.
17538         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5
17539 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;}
17540         # Extract the first word of "$tool_basename", so it can be a program name with args.
17541 set dummy $tool_basename; ac_word=$2
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17543 $as_echo_n "checking for $ac_word... " >&6; }
17544 if ${ac_cv_path_OTOOL+:} false; then :
17545   $as_echo_n "(cached) " >&6
17546 else
17547   case $OTOOL in
17548   [\\/]* | ?:[\\/]*)
17549   ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
17550   ;;
17551   *)
17552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17553 for as_dir in $PATH
17554 do
17555   IFS=$as_save_IFS
17556   test -z "$as_dir" && as_dir=.
17557     for ac_exec_ext in '' $ac_executable_extensions; do
17558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17559     ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
17560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17561     break 2
17562   fi
17563 done
17564   done
17565 IFS=$as_save_IFS
17566 
17567   ;;
17568 esac
17569 fi
17570 OTOOL=$ac_cv_path_OTOOL
17571 if test -n "$OTOOL"; then
17572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
17573 $as_echo "$OTOOL" >&6; }
17574 else
17575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17576 $as_echo "no" >&6; }
17577 fi
17578 
17579 
17580         if test "x$OTOOL" = x; then
17581           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17582         fi
17583       else
17584         # Otherwise we believe it is a complete path. Use it as it is.
17585         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5
17586 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;}
17587         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5
17588 $as_echo_n "checking for OTOOL... " >&6; }
17589         if test ! -x "$tool_specified"; then
17590           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17591 $as_echo "not found" >&6; }
17592           as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5
17593         fi
17594         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17595 $as_echo "$tool_specified" >&6; }
17596       fi
17597     fi
17598   fi
17599 
17600 
17601   if test "x$OTOOL" = "x"; then
17602     OTOOL="true"
17603   fi
17604 
17605 
17606   # Publish this variable in the help.
17607 
17608 
17609   if test "x$READELF" = x; then
17610     # The variable is not set by user, try to locate tool using the code snippet
17611     for ac_prog in greadelf readelf
17612 do
17613   # Extract the first word of "$ac_prog", so it can be a program name with args.
17614 set dummy $ac_prog; ac_word=$2
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17616 $as_echo_n "checking for $ac_word... " >&6; }
17617 if ${ac_cv_path_READELF+:} false; then :
17618   $as_echo_n "(cached) " >&6
17619 else
17620   case $READELF in
17621   [\\/]* | ?:[\\/]*)
17622   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17623   ;;
17624   *)
17625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17626 for as_dir in $PATH
17627 do
17628   IFS=$as_save_IFS
17629   test -z "$as_dir" && as_dir=.
17630     for ac_exec_ext in '' $ac_executable_extensions; do
17631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17632     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17634     break 2
17635   fi
17636 done
17637   done
17638 IFS=$as_save_IFS
17639 
17640   ;;
17641 esac
17642 fi
17643 READELF=$ac_cv_path_READELF
17644 if test -n "$READELF"; then
17645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17646 $as_echo "$READELF" >&6; }
17647 else
17648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17649 $as_echo "no" >&6; }
17650 fi
17651 
17652 
17653   test -n "$READELF" && break
17654 done
17655 
17656   else
17657     # The variable is set, but is it from the command line or the environment?
17658 
17659     # Try to remove the string !READELF! from our list.
17660     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17661     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17662       # If it failed, the variable was not from the command line. Ignore it,
17663       # but warn the user (except for BASH, which is always set by the calling BASH).
17664       if test "xREADELF" != xBASH; then
17665         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17666 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17667       fi
17668       # Try to locate tool using the code snippet
17669       for ac_prog in greadelf readelf
17670 do
17671   # Extract the first word of "$ac_prog", so it can be a program name with args.
17672 set dummy $ac_prog; ac_word=$2
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17674 $as_echo_n "checking for $ac_word... " >&6; }
17675 if ${ac_cv_path_READELF+:} false; then :
17676   $as_echo_n "(cached) " >&6
17677 else
17678   case $READELF in
17679   [\\/]* | ?:[\\/]*)
17680   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17681   ;;
17682   *)
17683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17684 for as_dir in $PATH
17685 do
17686   IFS=$as_save_IFS
17687   test -z "$as_dir" && as_dir=.
17688     for ac_exec_ext in '' $ac_executable_extensions; do
17689   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17690     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17691     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17692     break 2
17693   fi
17694 done
17695   done
17696 IFS=$as_save_IFS
17697 
17698   ;;
17699 esac
17700 fi
17701 READELF=$ac_cv_path_READELF
17702 if test -n "$READELF"; then
17703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17704 $as_echo "$READELF" >&6; }
17705 else
17706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17707 $as_echo "no" >&6; }
17708 fi
17709 
17710 
17711   test -n "$READELF" && break
17712 done
17713 
17714     else
17715       # If it succeeded, then it was overridden by the user. We will use it
17716       # for the tool.
17717 
17718       # First remove it from the list of overridden variables, so we can test
17719       # for unknown variables in the end.
17720       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17721 
17722       # Check if the provided tool contains a complete path.
17723       tool_specified="$READELF"
17724       tool_basename="${tool_specified##*/}"
17725       if test "x$tool_basename" = "x$tool_specified"; then
17726         # A command without a complete path is provided, search $PATH.
17727         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17728 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17729         # Extract the first word of "$tool_basename", so it can be a program name with args.
17730 set dummy $tool_basename; ac_word=$2
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17732 $as_echo_n "checking for $ac_word... " >&6; }
17733 if ${ac_cv_path_READELF+:} false; then :
17734   $as_echo_n "(cached) " >&6
17735 else
17736   case $READELF in
17737   [\\/]* | ?:[\\/]*)
17738   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17739   ;;
17740   *)
17741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $PATH
17743 do
17744   IFS=$as_save_IFS
17745   test -z "$as_dir" && as_dir=.
17746     for ac_exec_ext in '' $ac_executable_extensions; do
17747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17750     break 2
17751   fi
17752 done
17753   done
17754 IFS=$as_save_IFS
17755 
17756   ;;
17757 esac
17758 fi
17759 READELF=$ac_cv_path_READELF
17760 if test -n "$READELF"; then
17761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17762 $as_echo "$READELF" >&6; }
17763 else
17764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17765 $as_echo "no" >&6; }
17766 fi
17767 
17768 
17769         if test "x$READELF" = x; then
17770           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17771         fi
17772       else
17773         # Otherwise we believe it is a complete path. Use it as it is.
17774         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
17775 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
17776         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
17777 $as_echo_n "checking for READELF... " >&6; }
17778         if test ! -x "$tool_specified"; then
17779           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17780 $as_echo "not found" >&6; }
17781           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
17782         fi
17783         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17784 $as_echo "$tool_specified" >&6; }
17785       fi
17786     fi
17787   fi
17788 
17789 
17790 
17791 
17792   # Publish this variable in the help.
17793 
17794 
17795   if test "x$HG" = x; then
17796     # The variable is not set by user, try to locate tool using the code snippet
17797     for ac_prog in hg
17798 do
17799   # Extract the first word of "$ac_prog", so it can be a program name with args.
17800 set dummy $ac_prog; ac_word=$2
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17802 $as_echo_n "checking for $ac_word... " >&6; }
17803 if ${ac_cv_path_HG+:} false; then :
17804   $as_echo_n "(cached) " >&6
17805 else
17806   case $HG in
17807   [\\/]* | ?:[\\/]*)
17808   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17809   ;;
17810   *)
17811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17812 for as_dir in $PATH
17813 do
17814   IFS=$as_save_IFS
17815   test -z "$as_dir" && as_dir=.
17816     for ac_exec_ext in '' $ac_executable_extensions; do
17817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17818     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17820     break 2
17821   fi
17822 done
17823   done
17824 IFS=$as_save_IFS
17825 
17826   ;;
17827 esac
17828 fi
17829 HG=$ac_cv_path_HG
17830 if test -n "$HG"; then
17831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17832 $as_echo "$HG" >&6; }
17833 else
17834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17835 $as_echo "no" >&6; }
17836 fi
17837 
17838 
17839   test -n "$HG" && break
17840 done
17841 
17842   else
17843     # The variable is set, but is it from the command line or the environment?
17844 
17845     # Try to remove the string !HG! from our list.
17846     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
17847     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17848       # If it failed, the variable was not from the command line. Ignore it,
17849       # but warn the user (except for BASH, which is always set by the calling BASH).
17850       if test "xHG" != xBASH; then
17851         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
17852 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
17853       fi
17854       # Try to locate tool using the code snippet
17855       for ac_prog in hg
17856 do
17857   # Extract the first word of "$ac_prog", so it can be a program name with args.
17858 set dummy $ac_prog; ac_word=$2
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17860 $as_echo_n "checking for $ac_word... " >&6; }
17861 if ${ac_cv_path_HG+:} false; then :
17862   $as_echo_n "(cached) " >&6
17863 else
17864   case $HG in
17865   [\\/]* | ?:[\\/]*)
17866   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17867   ;;
17868   *)
17869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17870 for as_dir in $PATH
17871 do
17872   IFS=$as_save_IFS
17873   test -z "$as_dir" && as_dir=.
17874     for ac_exec_ext in '' $ac_executable_extensions; do
17875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17876     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17878     break 2
17879   fi
17880 done
17881   done
17882 IFS=$as_save_IFS
17883 
17884   ;;
17885 esac
17886 fi
17887 HG=$ac_cv_path_HG
17888 if test -n "$HG"; then
17889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17890 $as_echo "$HG" >&6; }
17891 else
17892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17893 $as_echo "no" >&6; }
17894 fi
17895 
17896 
17897   test -n "$HG" && break
17898 done
17899 
17900     else
17901       # If it succeeded, then it was overridden by the user. We will use it
17902       # for the tool.
17903 
17904       # First remove it from the list of overridden variables, so we can test
17905       # for unknown variables in the end.
17906       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17907 
17908       # Check if the provided tool contains a complete path.
17909       tool_specified="$HG"
17910       tool_basename="${tool_specified##*/}"
17911       if test "x$tool_basename" = "x$tool_specified"; then
17912         # A command without a complete path is provided, search $PATH.
17913         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
17914 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
17915         # Extract the first word of "$tool_basename", so it can be a program name with args.
17916 set dummy $tool_basename; ac_word=$2
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17918 $as_echo_n "checking for $ac_word... " >&6; }
17919 if ${ac_cv_path_HG+:} false; then :
17920   $as_echo_n "(cached) " >&6
17921 else
17922   case $HG in
17923   [\\/]* | ?:[\\/]*)
17924   ac_cv_path_HG="$HG" # Let the user override the test with a path.
17925   ;;
17926   *)
17927   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17928 for as_dir in $PATH
17929 do
17930   IFS=$as_save_IFS
17931   test -z "$as_dir" && as_dir=.
17932     for ac_exec_ext in '' $ac_executable_extensions; do
17933   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17934     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
17935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17936     break 2
17937   fi
17938 done
17939   done
17940 IFS=$as_save_IFS
17941 
17942   ;;
17943 esac
17944 fi
17945 HG=$ac_cv_path_HG
17946 if test -n "$HG"; then
17947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
17948 $as_echo "$HG" >&6; }
17949 else
17950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17951 $as_echo "no" >&6; }
17952 fi
17953 
17954 
17955         if test "x$HG" = x; then
17956           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17957         fi
17958       else
17959         # Otherwise we believe it is a complete path. Use it as it is.
17960         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
17961 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
17962         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
17963 $as_echo_n "checking for HG... " >&6; }
17964         if test ! -x "$tool_specified"; then
17965           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17966 $as_echo "not found" >&6; }
17967           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
17968         fi
17969         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17970 $as_echo "$tool_specified" >&6; }
17971       fi
17972     fi
17973   fi
17974 
17975 
17976 
17977 
17978   # Publish this variable in the help.
17979 
17980 
17981   if test "x$STAT" = x; then
17982     # The variable is not set by user, try to locate tool using the code snippet
17983     for ac_prog in stat
17984 do
17985   # Extract the first word of "$ac_prog", so it can be a program name with args.
17986 set dummy $ac_prog; ac_word=$2
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17988 $as_echo_n "checking for $ac_word... " >&6; }
17989 if ${ac_cv_path_STAT+:} false; then :
17990   $as_echo_n "(cached) " >&6
17991 else
17992   case $STAT in
17993   [\\/]* | ?:[\\/]*)
17994   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
17995   ;;
17996   *)
17997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17998 for as_dir in $PATH
17999 do
18000   IFS=$as_save_IFS
18001   test -z "$as_dir" && as_dir=.
18002     for ac_exec_ext in '' $ac_executable_extensions; do
18003   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18004     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18005     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18006     break 2
18007   fi
18008 done
18009   done
18010 IFS=$as_save_IFS
18011 
18012   ;;
18013 esac
18014 fi
18015 STAT=$ac_cv_path_STAT
18016 if test -n "$STAT"; then
18017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18018 $as_echo "$STAT" >&6; }
18019 else
18020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18021 $as_echo "no" >&6; }
18022 fi
18023 
18024 
18025   test -n "$STAT" && break
18026 done
18027 
18028   else
18029     # The variable is set, but is it from the command line or the environment?
18030 
18031     # Try to remove the string !STAT! from our list.
18032     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18033     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18034       # If it failed, the variable was not from the command line. Ignore it,
18035       # but warn the user (except for BASH, which is always set by the calling BASH).
18036       if test "xSTAT" != xBASH; then
18037         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18038 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18039       fi
18040       # Try to locate tool using the code snippet
18041       for ac_prog in stat
18042 do
18043   # Extract the first word of "$ac_prog", so it can be a program name with args.
18044 set dummy $ac_prog; ac_word=$2
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18046 $as_echo_n "checking for $ac_word... " >&6; }
18047 if ${ac_cv_path_STAT+:} false; then :
18048   $as_echo_n "(cached) " >&6
18049 else
18050   case $STAT in
18051   [\\/]* | ?:[\\/]*)
18052   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18053   ;;
18054   *)
18055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18056 for as_dir in $PATH
18057 do
18058   IFS=$as_save_IFS
18059   test -z "$as_dir" && as_dir=.
18060     for ac_exec_ext in '' $ac_executable_extensions; do
18061   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18062     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18064     break 2
18065   fi
18066 done
18067   done
18068 IFS=$as_save_IFS
18069 
18070   ;;
18071 esac
18072 fi
18073 STAT=$ac_cv_path_STAT
18074 if test -n "$STAT"; then
18075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18076 $as_echo "$STAT" >&6; }
18077 else
18078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18079 $as_echo "no" >&6; }
18080 fi
18081 
18082 
18083   test -n "$STAT" && break
18084 done
18085 
18086     else
18087       # If it succeeded, then it was overridden by the user. We will use it
18088       # for the tool.
18089 
18090       # First remove it from the list of overridden variables, so we can test
18091       # for unknown variables in the end.
18092       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18093 
18094       # Check if the provided tool contains a complete path.
18095       tool_specified="$STAT"
18096       tool_basename="${tool_specified##*/}"
18097       if test "x$tool_basename" = "x$tool_specified"; then
18098         # A command without a complete path is provided, search $PATH.
18099         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18100 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18101         # Extract the first word of "$tool_basename", so it can be a program name with args.
18102 set dummy $tool_basename; ac_word=$2
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18104 $as_echo_n "checking for $ac_word... " >&6; }
18105 if ${ac_cv_path_STAT+:} false; then :
18106   $as_echo_n "(cached) " >&6
18107 else
18108   case $STAT in
18109   [\\/]* | ?:[\\/]*)
18110   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18111   ;;
18112   *)
18113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18115 do
18116   IFS=$as_save_IFS
18117   test -z "$as_dir" && as_dir=.
18118     for ac_exec_ext in '' $ac_executable_extensions; do
18119   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18120     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18122     break 2
18123   fi
18124 done
18125   done
18126 IFS=$as_save_IFS
18127 
18128   ;;
18129 esac
18130 fi
18131 STAT=$ac_cv_path_STAT
18132 if test -n "$STAT"; then
18133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18134 $as_echo "$STAT" >&6; }
18135 else
18136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18137 $as_echo "no" >&6; }
18138 fi
18139 
18140 
18141         if test "x$STAT" = x; then
18142           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18143         fi
18144       else
18145         # Otherwise we believe it is a complete path. Use it as it is.
18146         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18147 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18149 $as_echo_n "checking for STAT... " >&6; }
18150         if test ! -x "$tool_specified"; then
18151           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18152 $as_echo "not found" >&6; }
18153           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18154         fi
18155         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18156 $as_echo "$tool_specified" >&6; }
18157       fi
18158     fi
18159   fi
18160 
18161 
18162 
18163 
18164   # Publish this variable in the help.
18165 
18166 
18167   if test "x$TIME" = x; then
18168     # The variable is not set by user, try to locate tool using the code snippet
18169     for ac_prog in time
18170 do
18171   # Extract the first word of "$ac_prog", so it can be a program name with args.
18172 set dummy $ac_prog; ac_word=$2
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18174 $as_echo_n "checking for $ac_word... " >&6; }
18175 if ${ac_cv_path_TIME+:} false; then :
18176   $as_echo_n "(cached) " >&6
18177 else
18178   case $TIME in
18179   [\\/]* | ?:[\\/]*)
18180   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18181   ;;
18182   *)
18183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18184 for as_dir in $PATH
18185 do
18186   IFS=$as_save_IFS
18187   test -z "$as_dir" && as_dir=.
18188     for ac_exec_ext in '' $ac_executable_extensions; do
18189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18190     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18192     break 2
18193   fi
18194 done
18195   done
18196 IFS=$as_save_IFS
18197 
18198   ;;
18199 esac
18200 fi
18201 TIME=$ac_cv_path_TIME
18202 if test -n "$TIME"; then
18203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18204 $as_echo "$TIME" >&6; }
18205 else
18206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18207 $as_echo "no" >&6; }
18208 fi
18209 
18210 
18211   test -n "$TIME" && break
18212 done
18213 
18214   else
18215     # The variable is set, but is it from the command line or the environment?
18216 
18217     # Try to remove the string !TIME! from our list.
18218     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18219     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18220       # If it failed, the variable was not from the command line. Ignore it,
18221       # but warn the user (except for BASH, which is always set by the calling BASH).
18222       if test "xTIME" != xBASH; then
18223         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18224 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18225       fi
18226       # Try to locate tool using the code snippet
18227       for ac_prog in time
18228 do
18229   # Extract the first word of "$ac_prog", so it can be a program name with args.
18230 set dummy $ac_prog; ac_word=$2
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18232 $as_echo_n "checking for $ac_word... " >&6; }
18233 if ${ac_cv_path_TIME+:} false; then :
18234   $as_echo_n "(cached) " >&6
18235 else
18236   case $TIME in
18237   [\\/]* | ?:[\\/]*)
18238   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18239   ;;
18240   *)
18241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18242 for as_dir in $PATH
18243 do
18244   IFS=$as_save_IFS
18245   test -z "$as_dir" && as_dir=.
18246     for ac_exec_ext in '' $ac_executable_extensions; do
18247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18248     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18250     break 2
18251   fi
18252 done
18253   done
18254 IFS=$as_save_IFS
18255 
18256   ;;
18257 esac
18258 fi
18259 TIME=$ac_cv_path_TIME
18260 if test -n "$TIME"; then
18261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18262 $as_echo "$TIME" >&6; }
18263 else
18264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265 $as_echo "no" >&6; }
18266 fi
18267 
18268 
18269   test -n "$TIME" && break
18270 done
18271 
18272     else
18273       # If it succeeded, then it was overridden by the user. We will use it
18274       # for the tool.
18275 
18276       # First remove it from the list of overridden variables, so we can test
18277       # for unknown variables in the end.
18278       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18279 
18280       # Check if the provided tool contains a complete path.
18281       tool_specified="$TIME"
18282       tool_basename="${tool_specified##*/}"
18283       if test "x$tool_basename" = "x$tool_specified"; then
18284         # A command without a complete path is provided, search $PATH.
18285         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18286 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18287         # Extract the first word of "$tool_basename", so it can be a program name with args.
18288 set dummy $tool_basename; ac_word=$2
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18290 $as_echo_n "checking for $ac_word... " >&6; }
18291 if ${ac_cv_path_TIME+:} false; then :
18292   $as_echo_n "(cached) " >&6
18293 else
18294   case $TIME in
18295   [\\/]* | ?:[\\/]*)
18296   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18297   ;;
18298   *)
18299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18300 for as_dir in $PATH
18301 do
18302   IFS=$as_save_IFS
18303   test -z "$as_dir" && as_dir=.
18304     for ac_exec_ext in '' $ac_executable_extensions; do
18305   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18306     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18307     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18308     break 2
18309   fi
18310 done
18311   done
18312 IFS=$as_save_IFS
18313 
18314   ;;
18315 esac
18316 fi
18317 TIME=$ac_cv_path_TIME
18318 if test -n "$TIME"; then
18319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18320 $as_echo "$TIME" >&6; }
18321 else
18322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18323 $as_echo "no" >&6; }
18324 fi
18325 
18326 
18327         if test "x$TIME" = x; then
18328           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18329         fi
18330       else
18331         # Otherwise we believe it is a complete path. Use it as it is.
18332         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18333 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18334         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18335 $as_echo_n "checking for TIME... " >&6; }
18336         if test ! -x "$tool_specified"; then
18337           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18338 $as_echo "not found" >&6; }
18339           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18340         fi
18341         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18342 $as_echo "$tool_specified" >&6; }
18343       fi
18344     fi
18345   fi
18346 
18347 
18348   # Check if it's GNU time
18349   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18350   if test "x$IS_GNU_TIME" != x; then
18351     IS_GNU_TIME=yes
18352   else
18353     IS_GNU_TIME=no
18354   fi
18355 
18356 
18357   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18358 
18359 
18360 
18361   # Publish this variable in the help.
18362 
18363 
18364   if test "x$COMM" = x; then
18365     # The variable is not set by user, try to locate tool using the code snippet
18366     for ac_prog in comm
18367 do
18368   # Extract the first word of "$ac_prog", so it can be a program name with args.
18369 set dummy $ac_prog; ac_word=$2
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18371 $as_echo_n "checking for $ac_word... " >&6; }
18372 if ${ac_cv_path_COMM+:} false; then :
18373   $as_echo_n "(cached) " >&6
18374 else
18375   case $COMM in
18376   [\\/]* | ?:[\\/]*)
18377   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18378   ;;
18379   *)
18380   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18381 for as_dir in $PATH
18382 do
18383   IFS=$as_save_IFS
18384   test -z "$as_dir" && as_dir=.
18385     for ac_exec_ext in '' $ac_executable_extensions; do
18386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18387     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18389     break 2
18390   fi
18391 done
18392   done
18393 IFS=$as_save_IFS
18394 
18395   ;;
18396 esac
18397 fi
18398 COMM=$ac_cv_path_COMM
18399 if test -n "$COMM"; then
18400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18401 $as_echo "$COMM" >&6; }
18402 else
18403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404 $as_echo "no" >&6; }
18405 fi
18406 
18407 
18408   test -n "$COMM" && break
18409 done
18410 
18411   else
18412     # The variable is set, but is it from the command line or the environment?
18413 
18414     # Try to remove the string !COMM! from our list.
18415     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18416     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18417       # If it failed, the variable was not from the command line. Ignore it,
18418       # but warn the user (except for BASH, which is always set by the calling BASH).
18419       if test "xCOMM" != xBASH; then
18420         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18421 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18422       fi
18423       # Try to locate tool using the code snippet
18424       for ac_prog in comm
18425 do
18426   # Extract the first word of "$ac_prog", so it can be a program name with args.
18427 set dummy $ac_prog; ac_word=$2
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18429 $as_echo_n "checking for $ac_word... " >&6; }
18430 if ${ac_cv_path_COMM+:} false; then :
18431   $as_echo_n "(cached) " >&6
18432 else
18433   case $COMM in
18434   [\\/]* | ?:[\\/]*)
18435   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18436   ;;
18437   *)
18438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18439 for as_dir in $PATH
18440 do
18441   IFS=$as_save_IFS
18442   test -z "$as_dir" && as_dir=.
18443     for ac_exec_ext in '' $ac_executable_extensions; do
18444   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18445     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18447     break 2
18448   fi
18449 done
18450   done
18451 IFS=$as_save_IFS
18452 
18453   ;;
18454 esac
18455 fi
18456 COMM=$ac_cv_path_COMM
18457 if test -n "$COMM"; then
18458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18459 $as_echo "$COMM" >&6; }
18460 else
18461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18462 $as_echo "no" >&6; }
18463 fi
18464 
18465 
18466   test -n "$COMM" && break
18467 done
18468 
18469     else
18470       # If it succeeded, then it was overridden by the user. We will use it
18471       # for the tool.
18472 
18473       # First remove it from the list of overridden variables, so we can test
18474       # for unknown variables in the end.
18475       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18476 
18477       # Check if the provided tool contains a complete path.
18478       tool_specified="$COMM"
18479       tool_basename="${tool_specified##*/}"
18480       if test "x$tool_basename" = "x$tool_specified"; then
18481         # A command without a complete path is provided, search $PATH.
18482         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18483 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18484         # Extract the first word of "$tool_basename", so it can be a program name with args.
18485 set dummy $tool_basename; ac_word=$2
18486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18487 $as_echo_n "checking for $ac_word... " >&6; }
18488 if ${ac_cv_path_COMM+:} false; then :
18489   $as_echo_n "(cached) " >&6
18490 else
18491   case $COMM in
18492   [\\/]* | ?:[\\/]*)
18493   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18494   ;;
18495   *)
18496   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 for as_dir in $PATH
18498 do
18499   IFS=$as_save_IFS
18500   test -z "$as_dir" && as_dir=.
18501     for ac_exec_ext in '' $ac_executable_extensions; do
18502   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18503     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18504     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18505     break 2
18506   fi
18507 done
18508   done
18509 IFS=$as_save_IFS
18510 
18511   ;;
18512 esac
18513 fi
18514 COMM=$ac_cv_path_COMM
18515 if test -n "$COMM"; then
18516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18517 $as_echo "$COMM" >&6; }
18518 else
18519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520 $as_echo "no" >&6; }
18521 fi
18522 
18523 
18524         if test "x$COMM" = x; then
18525           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18526         fi
18527       else
18528         # Otherwise we believe it is a complete path. Use it as it is.
18529         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18530 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18531         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18532 $as_echo_n "checking for COMM... " >&6; }
18533         if test ! -x "$tool_specified"; then
18534           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18535 $as_echo "not found" >&6; }
18536           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18537         fi
18538         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18539 $as_echo "$tool_specified" >&6; }
18540       fi
18541     fi
18542   fi
18543 
18544 
18545 
18546   if test "x$COMM" = x; then
18547     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18548   fi
18549 
18550 
18551   fi
18552 
18553   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18554 
18555 
18556 
18557   # Publish this variable in the help.
18558 
18559 
18560   if test "x$DSYMUTIL" = x; then
18561     # The variable is not set by user, try to locate tool using the code snippet
18562     for ac_prog in dsymutil
18563 do
18564   # Extract the first word of "$ac_prog", so it can be a program name with args.
18565 set dummy $ac_prog; ac_word=$2
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18567 $as_echo_n "checking for $ac_word... " >&6; }
18568 if ${ac_cv_path_DSYMUTIL+:} false; then :
18569   $as_echo_n "(cached) " >&6
18570 else
18571   case $DSYMUTIL in
18572   [\\/]* | ?:[\\/]*)
18573   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18574   ;;
18575   *)
18576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18577 for as_dir in $PATH
18578 do
18579   IFS=$as_save_IFS
18580   test -z "$as_dir" && as_dir=.
18581     for ac_exec_ext in '' $ac_executable_extensions; do
18582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18583     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18585     break 2
18586   fi
18587 done
18588   done
18589 IFS=$as_save_IFS
18590 
18591   ;;
18592 esac
18593 fi
18594 DSYMUTIL=$ac_cv_path_DSYMUTIL
18595 if test -n "$DSYMUTIL"; then
18596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18597 $as_echo "$DSYMUTIL" >&6; }
18598 else
18599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18600 $as_echo "no" >&6; }
18601 fi
18602 
18603 
18604   test -n "$DSYMUTIL" && break
18605 done
18606 
18607   else
18608     # The variable is set, but is it from the command line or the environment?
18609 
18610     # Try to remove the string !DSYMUTIL! from our list.
18611     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18612     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18613       # If it failed, the variable was not from the command line. Ignore it,
18614       # but warn the user (except for BASH, which is always set by the calling BASH).
18615       if test "xDSYMUTIL" != xBASH; then
18616         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18617 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18618       fi
18619       # Try to locate tool using the code snippet
18620       for ac_prog in dsymutil
18621 do
18622   # Extract the first word of "$ac_prog", so it can be a program name with args.
18623 set dummy $ac_prog; ac_word=$2
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18625 $as_echo_n "checking for $ac_word... " >&6; }
18626 if ${ac_cv_path_DSYMUTIL+:} false; then :
18627   $as_echo_n "(cached) " >&6
18628 else
18629   case $DSYMUTIL in
18630   [\\/]* | ?:[\\/]*)
18631   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18632   ;;
18633   *)
18634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18635 for as_dir in $PATH
18636 do
18637   IFS=$as_save_IFS
18638   test -z "$as_dir" && as_dir=.
18639     for ac_exec_ext in '' $ac_executable_extensions; do
18640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18641     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18643     break 2
18644   fi
18645 done
18646   done
18647 IFS=$as_save_IFS
18648 
18649   ;;
18650 esac
18651 fi
18652 DSYMUTIL=$ac_cv_path_DSYMUTIL
18653 if test -n "$DSYMUTIL"; then
18654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18655 $as_echo "$DSYMUTIL" >&6; }
18656 else
18657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18658 $as_echo "no" >&6; }
18659 fi
18660 
18661 
18662   test -n "$DSYMUTIL" && break
18663 done
18664 
18665     else
18666       # If it succeeded, then it was overridden by the user. We will use it
18667       # for the tool.
18668 
18669       # First remove it from the list of overridden variables, so we can test
18670       # for unknown variables in the end.
18671       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18672 
18673       # Check if the provided tool contains a complete path.
18674       tool_specified="$DSYMUTIL"
18675       tool_basename="${tool_specified##*/}"
18676       if test "x$tool_basename" = "x$tool_specified"; then
18677         # A command without a complete path is provided, search $PATH.
18678         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18679 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18680         # Extract the first word of "$tool_basename", so it can be a program name with args.
18681 set dummy $tool_basename; ac_word=$2
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18683 $as_echo_n "checking for $ac_word... " >&6; }
18684 if ${ac_cv_path_DSYMUTIL+:} false; then :
18685   $as_echo_n "(cached) " >&6
18686 else
18687   case $DSYMUTIL in
18688   [\\/]* | ?:[\\/]*)
18689   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18690   ;;
18691   *)
18692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18693 for as_dir in $PATH
18694 do
18695   IFS=$as_save_IFS
18696   test -z "$as_dir" && as_dir=.
18697     for ac_exec_ext in '' $ac_executable_extensions; do
18698   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18699     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18701     break 2
18702   fi
18703 done
18704   done
18705 IFS=$as_save_IFS
18706 
18707   ;;
18708 esac
18709 fi
18710 DSYMUTIL=$ac_cv_path_DSYMUTIL
18711 if test -n "$DSYMUTIL"; then
18712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18713 $as_echo "$DSYMUTIL" >&6; }
18714 else
18715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717 fi
18718 
18719 
18720         if test "x$DSYMUTIL" = x; then
18721           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18722         fi
18723       else
18724         # Otherwise we believe it is a complete path. Use it as it is.
18725         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18726 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18727         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18728 $as_echo_n "checking for DSYMUTIL... " >&6; }
18729         if test ! -x "$tool_specified"; then
18730           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18731 $as_echo "not found" >&6; }
18732           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18733         fi
18734         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18735 $as_echo "$tool_specified" >&6; }
18736       fi
18737     fi
18738   fi
18739 
18740 
18741 
18742   if test "x$DSYMUTIL" = x; then
18743     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18744   fi
18745 
18746 
18747 
18748 
18749 
18750   # Publish this variable in the help.
18751 
18752 
18753   if test "x$XATTR" = x; then
18754     # The variable is not set by user, try to locate tool using the code snippet
18755     for ac_prog in xattr
18756 do
18757   # Extract the first word of "$ac_prog", so it can be a program name with args.
18758 set dummy $ac_prog; ac_word=$2
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18760 $as_echo_n "checking for $ac_word... " >&6; }
18761 if ${ac_cv_path_XATTR+:} false; then :
18762   $as_echo_n "(cached) " >&6
18763 else
18764   case $XATTR in
18765   [\\/]* | ?:[\\/]*)
18766   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18767   ;;
18768   *)
18769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18770 for as_dir in $PATH
18771 do
18772   IFS=$as_save_IFS
18773   test -z "$as_dir" && as_dir=.
18774     for ac_exec_ext in '' $ac_executable_extensions; do
18775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18776     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18778     break 2
18779   fi
18780 done
18781   done
18782 IFS=$as_save_IFS
18783 
18784   ;;
18785 esac
18786 fi
18787 XATTR=$ac_cv_path_XATTR
18788 if test -n "$XATTR"; then
18789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18790 $as_echo "$XATTR" >&6; }
18791 else
18792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18793 $as_echo "no" >&6; }
18794 fi
18795 
18796 
18797   test -n "$XATTR" && break
18798 done
18799 
18800   else
18801     # The variable is set, but is it from the command line or the environment?
18802 
18803     # Try to remove the string !XATTR! from our list.
18804     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
18805     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18806       # If it failed, the variable was not from the command line. Ignore it,
18807       # but warn the user (except for BASH, which is always set by the calling BASH).
18808       if test "xXATTR" != xBASH; then
18809         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
18810 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
18811       fi
18812       # Try to locate tool using the code snippet
18813       for ac_prog in xattr
18814 do
18815   # Extract the first word of "$ac_prog", so it can be a program name with args.
18816 set dummy $ac_prog; ac_word=$2
18817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18818 $as_echo_n "checking for $ac_word... " >&6; }
18819 if ${ac_cv_path_XATTR+:} false; then :
18820   $as_echo_n "(cached) " >&6
18821 else
18822   case $XATTR in
18823   [\\/]* | ?:[\\/]*)
18824   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18825   ;;
18826   *)
18827   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $PATH
18829 do
18830   IFS=$as_save_IFS
18831   test -z "$as_dir" && as_dir=.
18832     for ac_exec_ext in '' $ac_executable_extensions; do
18833   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18835     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18836     break 2
18837   fi
18838 done
18839   done
18840 IFS=$as_save_IFS
18841 
18842   ;;
18843 esac
18844 fi
18845 XATTR=$ac_cv_path_XATTR
18846 if test -n "$XATTR"; then
18847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18848 $as_echo "$XATTR" >&6; }
18849 else
18850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18851 $as_echo "no" >&6; }
18852 fi
18853 
18854 
18855   test -n "$XATTR" && break
18856 done
18857 
18858     else
18859       # If it succeeded, then it was overridden by the user. We will use it
18860       # for the tool.
18861 
18862       # First remove it from the list of overridden variables, so we can test
18863       # for unknown variables in the end.
18864       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18865 
18866       # Check if the provided tool contains a complete path.
18867       tool_specified="$XATTR"
18868       tool_basename="${tool_specified##*/}"
18869       if test "x$tool_basename" = "x$tool_specified"; then
18870         # A command without a complete path is provided, search $PATH.
18871         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
18872 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
18873         # Extract the first word of "$tool_basename", so it can be a program name with args.
18874 set dummy $tool_basename; ac_word=$2
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18876 $as_echo_n "checking for $ac_word... " >&6; }
18877 if ${ac_cv_path_XATTR+:} false; then :
18878   $as_echo_n "(cached) " >&6
18879 else
18880   case $XATTR in
18881   [\\/]* | ?:[\\/]*)
18882   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
18883   ;;
18884   *)
18885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18886 for as_dir in $PATH
18887 do
18888   IFS=$as_save_IFS
18889   test -z "$as_dir" && as_dir=.
18890     for ac_exec_ext in '' $ac_executable_extensions; do
18891   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18892     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
18893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18894     break 2
18895   fi
18896 done
18897   done
18898 IFS=$as_save_IFS
18899 
18900   ;;
18901 esac
18902 fi
18903 XATTR=$ac_cv_path_XATTR
18904 if test -n "$XATTR"; then
18905   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
18906 $as_echo "$XATTR" >&6; }
18907 else
18908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909 $as_echo "no" >&6; }
18910 fi
18911 
18912 
18913         if test "x$XATTR" = x; then
18914           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18915         fi
18916       else
18917         # Otherwise we believe it is a complete path. Use it as it is.
18918         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
18919 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
18920         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
18921 $as_echo_n "checking for XATTR... " >&6; }
18922         if test ! -x "$tool_specified"; then
18923           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18924 $as_echo "not found" >&6; }
18925           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
18926         fi
18927         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18928 $as_echo "$tool_specified" >&6; }
18929       fi
18930     fi
18931   fi
18932 
18933 
18934 
18935   if test "x$XATTR" = x; then
18936     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
18937   fi
18938 
18939 
18940 
18941 
18942   # Publish this variable in the help.
18943 
18944 
18945   if test "x$CODESIGN" = x; then
18946     # The variable is not set by user, try to locate tool using the code snippet
18947     for ac_prog in codesign
18948 do
18949   # Extract the first word of "$ac_prog", so it can be a program name with args.
18950 set dummy $ac_prog; ac_word=$2
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18952 $as_echo_n "checking for $ac_word... " >&6; }
18953 if ${ac_cv_path_CODESIGN+:} false; then :
18954   $as_echo_n "(cached) " >&6
18955 else
18956   case $CODESIGN in
18957   [\\/]* | ?:[\\/]*)
18958   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
18959   ;;
18960   *)
18961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18962 for as_dir in $PATH
18963 do
18964   IFS=$as_save_IFS
18965   test -z "$as_dir" && as_dir=.
18966     for ac_exec_ext in '' $ac_executable_extensions; do
18967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18968     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
18969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18970     break 2
18971   fi
18972 done
18973   done
18974 IFS=$as_save_IFS
18975 
18976   ;;
18977 esac
18978 fi
18979 CODESIGN=$ac_cv_path_CODESIGN
18980 if test -n "$CODESIGN"; then
18981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
18982 $as_echo "$CODESIGN" >&6; }
18983 else
18984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18985 $as_echo "no" >&6; }
18986 fi
18987 
18988 
18989   test -n "$CODESIGN" && break
18990 done
18991 
18992   else
18993     # The variable is set, but is it from the command line or the environment?
18994 
18995     # Try to remove the string !CODESIGN! from our list.
18996     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
18997     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18998       # If it failed, the variable was not from the command line. Ignore it,
18999       # but warn the user (except for BASH, which is always set by the calling BASH).
19000       if test "xCODESIGN" != xBASH; then
19001         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19002 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19003       fi
19004       # Try to locate tool using the code snippet
19005       for ac_prog in codesign
19006 do
19007   # Extract the first word of "$ac_prog", so it can be a program name with args.
19008 set dummy $ac_prog; ac_word=$2
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19010 $as_echo_n "checking for $ac_word... " >&6; }
19011 if ${ac_cv_path_CODESIGN+:} false; then :
19012   $as_echo_n "(cached) " >&6
19013 else
19014   case $CODESIGN in
19015   [\\/]* | ?:[\\/]*)
19016   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19017   ;;
19018   *)
19019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19020 for as_dir in $PATH
19021 do
19022   IFS=$as_save_IFS
19023   test -z "$as_dir" && as_dir=.
19024     for ac_exec_ext in '' $ac_executable_extensions; do
19025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19026     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19028     break 2
19029   fi
19030 done
19031   done
19032 IFS=$as_save_IFS
19033 
19034   ;;
19035 esac
19036 fi
19037 CODESIGN=$ac_cv_path_CODESIGN
19038 if test -n "$CODESIGN"; then
19039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19040 $as_echo "$CODESIGN" >&6; }
19041 else
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043 $as_echo "no" >&6; }
19044 fi
19045 
19046 
19047   test -n "$CODESIGN" && break
19048 done
19049 
19050     else
19051       # If it succeeded, then it was overridden by the user. We will use it
19052       # for the tool.
19053 
19054       # First remove it from the list of overridden variables, so we can test
19055       # for unknown variables in the end.
19056       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19057 
19058       # Check if the provided tool contains a complete path.
19059       tool_specified="$CODESIGN"
19060       tool_basename="${tool_specified##*/}"
19061       if test "x$tool_basename" = "x$tool_specified"; then
19062         # A command without a complete path is provided, search $PATH.
19063         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19064 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19065         # Extract the first word of "$tool_basename", so it can be a program name with args.
19066 set dummy $tool_basename; ac_word=$2
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19068 $as_echo_n "checking for $ac_word... " >&6; }
19069 if ${ac_cv_path_CODESIGN+:} false; then :
19070   $as_echo_n "(cached) " >&6
19071 else
19072   case $CODESIGN in
19073   [\\/]* | ?:[\\/]*)
19074   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19075   ;;
19076   *)
19077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19078 for as_dir in $PATH
19079 do
19080   IFS=$as_save_IFS
19081   test -z "$as_dir" && as_dir=.
19082     for ac_exec_ext in '' $ac_executable_extensions; do
19083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19084     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19086     break 2
19087   fi
19088 done
19089   done
19090 IFS=$as_save_IFS
19091 
19092   ;;
19093 esac
19094 fi
19095 CODESIGN=$ac_cv_path_CODESIGN
19096 if test -n "$CODESIGN"; then
19097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19098 $as_echo "$CODESIGN" >&6; }
19099 else
19100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19101 $as_echo "no" >&6; }
19102 fi
19103 
19104 
19105         if test "x$CODESIGN" = x; then
19106           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19107         fi
19108       else
19109         # Otherwise we believe it is a complete path. Use it as it is.
19110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19111 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19113 $as_echo_n "checking for CODESIGN... " >&6; }
19114         if test ! -x "$tool_specified"; then
19115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19116 $as_echo "not found" >&6; }
19117           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19118         fi
19119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19120 $as_echo "$tool_specified" >&6; }
19121       fi
19122     fi
19123   fi
19124 
19125 
19126     if test "x$CODESIGN" != "x"; then
19127       # Verify that the openjdk_codesign certificate is present
19128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19129 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19130       rm -f codesign-testfile
19131       touch codesign-testfile
19132       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19133       rm -f codesign-testfile
19134       if test "x$CODESIGN" = x; then
19135         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19136 $as_echo "no" >&6; }
19137       else
19138         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19139 $as_echo "yes" >&6; }
19140       fi
19141     fi
19142   fi
19143 
19144 
19145 # Check if pkg-config is available.
19146 
19147 
19148 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19149         if test -n "$ac_tool_prefix"; then
19150   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19151 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19153 $as_echo_n "checking for $ac_word... " >&6; }
19154 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19155   $as_echo_n "(cached) " >&6
19156 else
19157   case $PKG_CONFIG in
19158   [\\/]* | ?:[\\/]*)
19159   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19160   ;;
19161   *)
19162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19163 for as_dir in $PATH
19164 do
19165   IFS=$as_save_IFS
19166   test -z "$as_dir" && as_dir=.
19167     for ac_exec_ext in '' $ac_executable_extensions; do
19168   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19169     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19171     break 2
19172   fi
19173 done
19174   done
19175 IFS=$as_save_IFS
19176 
19177   ;;
19178 esac
19179 fi
19180 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19181 if test -n "$PKG_CONFIG"; then
19182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19183 $as_echo "$PKG_CONFIG" >&6; }
19184 else
19185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19186 $as_echo "no" >&6; }
19187 fi
19188 
19189 
19190 fi
19191 if test -z "$ac_cv_path_PKG_CONFIG"; then
19192   ac_pt_PKG_CONFIG=$PKG_CONFIG
19193   # Extract the first word of "pkg-config", so it can be a program name with args.
19194 set dummy pkg-config; ac_word=$2
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19196 $as_echo_n "checking for $ac_word... " >&6; }
19197 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19198   $as_echo_n "(cached) " >&6
19199 else
19200   case $ac_pt_PKG_CONFIG in
19201   [\\/]* | ?:[\\/]*)
19202   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19203   ;;
19204   *)
19205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19206 for as_dir in $PATH
19207 do
19208   IFS=$as_save_IFS
19209   test -z "$as_dir" && as_dir=.
19210     for ac_exec_ext in '' $ac_executable_extensions; do
19211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19212     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19214     break 2
19215   fi
19216 done
19217   done
19218 IFS=$as_save_IFS
19219 
19220   ;;
19221 esac
19222 fi
19223 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19224 if test -n "$ac_pt_PKG_CONFIG"; then
19225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19226 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19227 else
19228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19229 $as_echo "no" >&6; }
19230 fi
19231 
19232   if test "x$ac_pt_PKG_CONFIG" = x; then
19233     PKG_CONFIG=""
19234   else
19235     case $cross_compiling:$ac_tool_warned in
19236 yes:)
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19239 ac_tool_warned=yes ;;
19240 esac
19241     PKG_CONFIG=$ac_pt_PKG_CONFIG
19242   fi
19243 else
19244   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19245 fi
19246 
19247 fi
19248 if test -n "$PKG_CONFIG"; then
19249         _pkg_min_version=0.9.0
19250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19251 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19252         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19253                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19254 $as_echo "yes" >&6; }
19255         else
19256                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19258                 PKG_CONFIG=""
19259         fi
19260 
19261 fi
19262 
19263 # After basic tools have been setup, we can check build os specific details.
19264 
19265   ###############################################################################
19266 
19267   # Note that this is the build platform OS version!
19268 
19269   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19270   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19271   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19272   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19273 
19274 
19275 
19276 
19277 
19278 # Setup builddeps, for automatic downloading of tools we need.
19279 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19280 # boot-jdk setup, but we need to have basic tools setup first.
19281 
19282 
19283 # Check whether --with-builddeps-conf was given.
19284 if test "${with_builddeps_conf+set}" = set; then :
19285   withval=$with_builddeps_conf;
19286 fi
19287 
19288 
19289 
19290 # Check whether --with-builddeps-server was given.
19291 if test "${with_builddeps_server+set}" = set; then :
19292   withval=$with_builddeps_server;
19293 fi
19294 
19295 
19296 
19297 # Check whether --with-builddeps-dir was given.
19298 if test "${with_builddeps_dir+set}" = set; then :
19299   withval=$with_builddeps_dir;
19300 else
19301   with_builddeps_dir=/localhome/builddeps
19302 fi
19303 
19304 
19305 
19306 # Check whether --with-builddeps-group was given.
19307 if test "${with_builddeps_group+set}" = set; then :
19308   withval=$with_builddeps_group;
19309 fi
19310 
19311 
19312 
19313 
19314   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19315     if test "x$with_builddeps_conf" != x; then
19316       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19317 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19318       builddepsfile=$with_builddeps_conf
19319       if test -s $builddepsfile; then
19320         . $builddepsfile
19321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19322 $as_echo "loaded!" >&6; }
19323       else
19324         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19325       fi
19326     else
19327       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19328 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19329       builddepsfile=`mktemp`
19330       touch $builddepsfile
19331       # Put all found confs into a single file.
19332       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19333       # Source the file to acquire the variables
19334       if test -s $builddepsfile; then
19335         . $builddepsfile
19336         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19337 $as_echo "found at least one!" >&6; }
19338       else
19339         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19340       fi
19341     fi
19342     # Create build and target names that use _ instead of "-" and ".".
19343     # This is necessary to use them in variable names.
19344     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19345     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19346     # Extract rewrite information for build and target
19347     eval rewritten_build=\${REWRITE_${build_var}}
19348     if test "x$rewritten_build" = x; then
19349       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19350       echo Build stays the same $rewritten_build
19351     else
19352       echo Rewriting build for builddeps into $rewritten_build
19353     fi
19354     eval rewritten_target=\${REWRITE_${target_var}}
19355     if test "x$rewritten_target" = x; then
19356       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19357       echo Target stays the same $rewritten_target
19358     else
19359       echo Rewriting target for builddeps into $rewritten_target
19360     fi
19361     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19362     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19363   fi
19364   for ac_prog in 7z unzip
19365 do
19366   # Extract the first word of "$ac_prog", so it can be a program name with args.
19367 set dummy $ac_prog; ac_word=$2
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19369 $as_echo_n "checking for $ac_word... " >&6; }
19370 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19371   $as_echo_n "(cached) " >&6
19372 else
19373   if test -n "$BDEPS_UNZIP"; then
19374   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19375 else
19376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19377 for as_dir in $PATH
19378 do
19379   IFS=$as_save_IFS
19380   test -z "$as_dir" && as_dir=.
19381     for ac_exec_ext in '' $ac_executable_extensions; do
19382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19383     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19385     break 2
19386   fi
19387 done
19388   done
19389 IFS=$as_save_IFS
19390 
19391 fi
19392 fi
19393 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19394 if test -n "$BDEPS_UNZIP"; then
19395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19396 $as_echo "$BDEPS_UNZIP" >&6; }
19397 else
19398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19399 $as_echo "no" >&6; }
19400 fi
19401 
19402 
19403   test -n "$BDEPS_UNZIP" && break
19404 done
19405 
19406   if test "x$BDEPS_UNZIP" = x7z; then
19407     BDEPS_UNZIP="7z x"
19408   fi
19409 
19410   for ac_prog in wget lftp ftp
19411 do
19412   # Extract the first word of "$ac_prog", so it can be a program name with args.
19413 set dummy $ac_prog; ac_word=$2
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19415 $as_echo_n "checking for $ac_word... " >&6; }
19416 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19417   $as_echo_n "(cached) " >&6
19418 else
19419   if test -n "$BDEPS_FTP"; then
19420   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19421 else
19422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423 for as_dir in $PATH
19424 do
19425   IFS=$as_save_IFS
19426   test -z "$as_dir" && as_dir=.
19427     for ac_exec_ext in '' $ac_executable_extensions; do
19428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19429     ac_cv_prog_BDEPS_FTP="$ac_prog"
19430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19431     break 2
19432   fi
19433 done
19434   done
19435 IFS=$as_save_IFS
19436 
19437 fi
19438 fi
19439 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19440 if test -n "$BDEPS_FTP"; then
19441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19442 $as_echo "$BDEPS_FTP" >&6; }
19443 else
19444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19445 $as_echo "no" >&6; }
19446 fi
19447 
19448 
19449   test -n "$BDEPS_FTP" && break
19450 done
19451 
19452 
19453 
19454 ###############################################################################
19455 #
19456 # Determine OpenJDK variants, options and version numbers.
19457 #
19458 ###############################################################################
19459 
19460 # We need build & target for this.
19461 
19462 
19463   ###############################################################################
19464   #
19465   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19466   # We always build headless support.
19467   #
19468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19469 $as_echo_n "checking headful support... " >&6; }
19470   # Check whether --enable-headful was given.
19471 if test "${enable_headful+set}" = set; then :
19472   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19473 else
19474   SUPPORT_HEADFUL=yes
19475 fi
19476 
19477 
19478   SUPPORT_HEADLESS=yes
19479   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19480 
19481   if test "x$SUPPORT_HEADFUL" = xyes; then
19482     # We are building both headful and headless.
19483     headful_msg="include support for both headful and headless"
19484   fi
19485 
19486   if test "x$SUPPORT_HEADFUL" = xno; then
19487     # Thus we are building headless only.
19488     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19489     headful_msg="headless only"
19490   fi
19491 
19492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19493 $as_echo "$headful_msg" >&6; }
19494 
19495 
19496 
19497 
19498 
19499   # Control wether Hotspot runs Queens test after build.
19500   # Check whether --enable-hotspot-test-in-build was given.
19501 if test "${enable_hotspot_test_in_build+set}" = set; then :
19502   enableval=$enable_hotspot_test_in_build;
19503 else
19504   enable_hotspot_test_in_build=no
19505 fi
19506 
19507   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19508     TEST_IN_BUILD=true
19509   else
19510     TEST_IN_BUILD=false
19511   fi
19512 
19513 
19514   ###############################################################################
19515   #
19516   # Choose cacerts source file
19517   #
19518 
19519 # Check whether --with-cacerts-file was given.
19520 if test "${with_cacerts_file+set}" = set; then :
19521   withval=$with_cacerts_file;
19522 fi
19523 
19524   if test "x$with_cacerts_file" != x; then
19525     CACERTS_FILE=$with_cacerts_file
19526   else
19527     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19528   fi
19529 
19530 
19531   ###############################################################################
19532   #
19533   # Enable or disable unlimited crypto
19534   #
19535   # Check whether --enable-unlimited-crypto was given.
19536 if test "${enable_unlimited_crypto+set}" = set; then :
19537   enableval=$enable_unlimited_crypto;
19538 else
19539   enable_unlimited_crypto=no
19540 fi
19541 
19542   if test "x$enable_unlimited_crypto" = "xyes"; then
19543     UNLIMITED_CRYPTO=true
19544   else
19545     UNLIMITED_CRYPTO=false
19546   fi
19547 
19548 
19549   ###############################################################################
19550   #
19551   # Enable or disable the elliptic curve crypto implementation
19552   #
19553 
19554 
19555   ###############################################################################
19556   #
19557   # --enable-rmiconnector-iiop
19558   #
19559   # Check whether --enable-rmiconnector-iiop was given.
19560 if test "${enable_rmiconnector_iiop+set}" = set; then :
19561   enableval=$enable_rmiconnector_iiop;
19562 fi
19563 
19564   if test "x$enable_rmiconnector_iiop" = "xyes"; then
19565     RMICONNECTOR_IIOP=true
19566   else
19567     RMICONNECTOR_IIOP=false
19568   fi
19569 
19570 
19571   ###############################################################################
19572   #
19573   # Compress jars
19574   #
19575   COMPRESS_JARS=false
19576 
19577 
19578 
19579 
19580   # Source the version numbers
19581   . $AUTOCONF_DIR/version-numbers
19582 
19583   # Get the settings from parameters
19584 
19585 # Check whether --with-milestone was given.
19586 if test "${with_milestone+set}" = set; then :
19587   withval=$with_milestone;
19588 fi
19589 
19590   if test "x$with_milestone" = xyes; then
19591     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19592   elif test "x$with_milestone" != x; then
19593     MILESTONE="$with_milestone"
19594   fi
19595   if test "x$MILESTONE" = x; then
19596     MILESTONE=internal
19597   fi
19598 
19599 
19600 # Check whether --with-update-version was given.
19601 if test "${with_update_version+set}" = set; then :
19602   withval=$with_update_version;
19603 fi
19604 
19605   if test "x$with_update_version" = xyes; then
19606     as_fn_error $? "Update version must have a value" "$LINENO" 5
19607   elif test "x$with_update_version" != x; then
19608     JDK_UPDATE_VERSION="$with_update_version"
19609     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19610     # to a bug in expr (which reduces it to just X). To work around this, we
19611     # always add a 0 to one digit update versions.
19612     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19613       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19614     fi
19615   fi
19616 
19617 
19618 # Check whether --with-user-release-suffix was given.
19619 if test "${with_user_release_suffix+set}" = set; then :
19620   withval=$with_user_release_suffix;
19621 fi
19622 
19623   if test "x$with_user_release_suffix" = xyes; then
19624     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19625   elif test "x$with_user_release_suffix" != x; then
19626     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19627   fi
19628 
19629 
19630 # Check whether --with-build-number was given.
19631 if test "${with_build_number+set}" = set; then :
19632   withval=$with_build_number;
19633 fi
19634 
19635   if test "x$with_build_number" = xyes; then
19636     as_fn_error $? "Build number must have a value" "$LINENO" 5
19637   elif test "x$with_build_number" != x; then
19638     JDK_BUILD_NUMBER="$with_build_number"
19639   fi
19640   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19641   if test "x$JDK_BUILD_NUMBER" = x; then
19642     JDK_BUILD_NUMBER=b00
19643     if test "x$USER_RELEASE_SUFFIX" = x; then
19644       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19645       # Avoid [:alnum:] since it depends on the locale.
19646       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19647       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19648     fi
19649   fi
19650 
19651   # Now set the JDK version, milestone, build number etc.
19652 
19653 
19654 
19655 
19656 
19657 
19658 
19659 
19660 
19661 
19662 
19663 
19664 
19665 
19666 
19667   COPYRIGHT_YEAR=`date +'%Y'`
19668 
19669 
19670   if test "x$JDK_UPDATE_VERSION" != x; then
19671     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19672   else
19673     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19674   fi
19675 
19676 
19677   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19678 
19679 
19680 
19681 ###############################################################################
19682 #
19683 # Setup BootJDK, used to bootstrap the build.
19684 #
19685 ###############################################################################
19686 
19687 
19688   BOOT_JDK_FOUND=no
19689 
19690 # Check whether --with-boot-jdk was given.
19691 if test "${with_boot_jdk+set}" = set; then :
19692   withval=$with_boot_jdk;
19693 fi
19694 
19695 
19696   # We look for the Boot JDK through various means, going from more certain to
19697   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
19698   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
19699   # must check if this is indeed valid; otherwise we'll continue looking.
19700 
19701   # Test: Is bootjdk explicitely set by command line arguments?
19702 
19703   if test "x$BOOT_JDK_FOUND" = xno; then
19704     # Now execute the test
19705 
19706   if test "x$with_boot_jdk" != x; then
19707     BOOT_JDK=$with_boot_jdk
19708     BOOT_JDK_FOUND=maybe
19709     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
19710 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
19711   fi
19712 
19713 
19714     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
19715     if test "x$BOOT_JDK_FOUND" = xmaybe; then
19716       # Do we have a bin/java?
19717       if test ! -x "$BOOT_JDK/bin/java"; then
19718         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
19719 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
19720         BOOT_JDK_FOUND=no
19721       else
19722         # Do we have a bin/javac?
19723         if test ! -x "$BOOT_JDK/bin/javac"; then
19724           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
19725 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
19726           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
19727 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
19728           BOOT_JDK_FOUND=no
19729         else
19730           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
19731           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
19732             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
19733 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
19734             BOOT_JDK_FOUND=no
19735           else
19736             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
19737             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
19738 
19739             # Extra M4 quote needed to protect [] in grep expression.
19740             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
19741             if test "x$FOUND_CORRECT_VERSION" = x; then
19742               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
19743 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
19744               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
19745 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
19746               BOOT_JDK_FOUND=no
19747             else
19748               # We're done! :-)
19749               BOOT_JDK_FOUND=yes
19750 
19751   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19752 
19753   # Input might be given as Windows format, start by converting to
19754   # unix format.
19755   path="$BOOT_JDK"
19756   new_path=`$CYGPATH -u "$path"`
19757 
19758   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
19759   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
19760   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
19761   # "foo.exe" is OK but "foo" is an error.
19762   #
19763   # This test is therefore slightly more accurate than "test -f" to check for file precense.
19764   # It is also a way to make sure we got the proper file name for the real test later on.
19765   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
19766   if test "x$test_shortpath" = x; then
19767     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19768 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19769     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
19770   fi
19771 
19772   # Call helper function which possibly converts this using DOS-style short mode.
19773   # If so, the updated path is stored in $new_path.
19774 
19775   input_path="$new_path"
19776   # Check if we need to convert this using DOS-style short mode. If the path
19777   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19778   # take no chances and rewrite it.
19779   # Note: m4 eats our [], so we need to use [ and ] instead.
19780   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
19781   if test "x$has_forbidden_chars" != x; then
19782     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19783     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
19784     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
19785     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
19786       # Going to short mode and back again did indeed matter. Since short mode is
19787       # case insensitive, let's make it lowercase to improve readability.
19788       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19789       # Now convert it back to Unix-stile (cygpath)
19790       input_path=`$CYGPATH -u "$shortmode_path"`
19791       new_path="$input_path"
19792     fi
19793   fi
19794 
19795   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
19796   if test "x$test_cygdrive_prefix" = x; then
19797     # As a simple fix, exclude /usr/bin since it's not a real path.
19798     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
19799       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
19800       # a path prefixed by /cygdrive for fixpath to work.
19801       new_path="$CYGWIN_ROOT_PATH$input_path"
19802     fi
19803   fi
19804 
19805 
19806   if test "x$path" != "x$new_path"; then
19807     BOOT_JDK="$new_path"
19808     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19809 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19810   fi
19811 
19812   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19813 
19814   path="$BOOT_JDK"
19815   has_colon=`$ECHO $path | $GREP ^.:`
19816   new_path="$path"
19817   if test "x$has_colon" = x; then
19818     # Not in mixed or Windows style, start by that.
19819     new_path=`cmd //c echo $path`
19820   fi
19821 
19822 
19823   input_path="$new_path"
19824   # Check if we need to convert this using DOS-style short mode. If the path
19825   # contains just simple characters, use it. Otherwise (spaces, weird characters),
19826   # take no chances and rewrite it.
19827   # Note: m4 eats our [], so we need to use [ and ] instead.
19828   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
19829   if test "x$has_forbidden_chars" != x; then
19830     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
19831     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19832   fi
19833 
19834 
19835   windows_path="$new_path"
19836   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
19837     unix_path=`$CYGPATH -u "$windows_path"`
19838     new_path="$unix_path"
19839   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
19840     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
19841     new_path="$unix_path"
19842   fi
19843 
19844   if test "x$path" != "x$new_path"; then
19845     BOOT_JDK="$new_path"
19846     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
19847 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
19848   fi
19849 
19850   # Save the first 10 bytes of this path to the storage, so fixpath can work.
19851   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
19852 
19853   else
19854     # We're on a posix platform. Hooray! :)
19855     path="$BOOT_JDK"
19856     has_space=`$ECHO "$path" | $GREP " "`
19857     if test "x$has_space" != x; then
19858       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
19859 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
19860       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
19861     fi
19862 
19863     # Use eval to expand a potential ~
19864     eval path="$path"
19865     if test ! -f "$path" && test ! -d "$path"; then
19866       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
19867     fi
19868 
19869     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
19870   fi
19871 
19872               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
19873 $as_echo_n "checking for Boot JDK... " >&6; }
19874               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
19875 $as_echo "$BOOT_JDK" >&6; }
19876               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
19877 $as_echo_n "checking Boot JDK version... " >&6; }
19878               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
19879               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
19880 $as_echo "$BOOT_JDK_VERSION" >&6; }
19881             fi # end check jdk version
19882           fi # end check rt.jar
19883         fi # end check javac
19884       fi # end check java
19885     fi # end check boot jdk found
19886   fi
19887 
19888   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
19889     # Having specified an argument which is incorrect will produce an instant failure;
19890     # we should not go on looking
19891     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
19892   fi
19893 
19894   # Test: Is bootjdk available from builddeps?
19895 
19896   if test "x$BOOT_JDK_FOUND" = xno; then
19897     # Now execute the test
19898 
19899 
19900 
19901   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19902     # Source the builddeps file again, to make sure it uses the latest variables!
19903     . $builddepsfile
19904     # Look for a target and build machine specific resource!
19905     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
19906     if test "x$resource" = x; then
19907       # Ok, lets instead look for a target specific resource
19908       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
19909     fi
19910     if test "x$resource" = x; then
19911       # Ok, lets instead look for a build specific resource
19912       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
19913     fi
19914     if test "x$resource" = x; then
19915       # Ok, lets instead look for a generic resource
19916       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
19917       resource=${builddep_bootjdk}
19918     fi
19919     if test "x$resource" != x; then
19920       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
19921 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
19922       # If the resource in the builddeps.conf file is an existing directory,
19923       # for example /java/linux/cups
19924       if test -d ${resource}; then
19925         depdir=${resource}
19926       else
19927 
19928   # bootjdk is for example mymodule
19929   # $resource is for example libs/general/libmymod_1_2_3.zip
19930   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
19931   # $with_builddeps_dir is for example /localhome/builddeps
19932   # depdir is the name of the variable into which we store the depdir, eg MYMOD
19933   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
19934   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
19935   filename=`basename $resource`
19936   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
19937   filebase=${filename%%.*}
19938   extension=${filename#*.}
19939   installdir=$with_builddeps_dir/$filebase
19940   if test ! -f $installdir/$filename.unpacked; then
19941     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
19942 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
19943     if test ! -d $installdir; then
19944       mkdir -p $installdir
19945     fi
19946     if test ! -d $installdir; then
19947       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
19948     fi
19949     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
19950     touch $tmpfile
19951     if test ! -f $tmpfile; then
19952       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
19953     fi
19954 
19955   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
19956   # $tmpfile is the local file name for the downloaded file.
19957   VALID_TOOL=no
19958   if test "x$BDEPS_FTP" = xwget; then
19959     VALID_TOOL=yes
19960     wget -O $tmpfile $with_builddeps_server/$resource
19961   fi
19962   if test "x$BDEPS_FTP" = xlftp; then
19963     VALID_TOOL=yes
19964     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
19965   fi
19966   if test "x$BDEPS_FTP" = xftp; then
19967     VALID_TOOL=yes
19968     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
19969     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
19970     FTPUSERPWD=${FTPSERVER%%@*}
19971     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
19972       FTPUSER=${userpwd%%:*}
19973       FTPPWD=${userpwd#*@}
19974       FTPSERVER=${FTPSERVER#*@}
19975     else
19976       FTPUSER=ftp
19977       FTPPWD=ftp
19978     fi
19979     # the "pass" command does not work on some
19980     # ftp clients (read ftp.exe) but if it works,
19981     # passive mode is better!
19982     ( \
19983         echo "user $FTPUSER $FTPPWD"        ; \
19984         echo "pass"                         ; \
19985         echo "bin"                          ; \
19986         echo "get $FTPPATH $tmpfile"              ; \
19987     ) | ftp -in $FTPSERVER
19988   fi
19989   if test "x$VALID_TOOL" != xyes; then
19990     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
19991   fi
19992 
19993     mv $tmpfile $installdir/$filename
19994     if test ! -s $installdir/$filename; then
19995       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
19996     fi
19997     case "$extension" in
19998       zip)  echo "Unzipping $installdir/$filename..."
19999         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20000         ;;
20001       tar.gz) echo "Untaring $installdir/$filename..."
20002         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20003         ;;
20004       tgz) echo "Untaring $installdir/$filename..."
20005         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20006         ;;
20007       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20008         ;;
20009     esac
20010   fi
20011   if test -f $installdir/$filename.unpacked; then
20012     depdir=$installdir
20013   fi
20014 
20015       fi
20016       # Source the builddeps file again, because in the previous command, the depdir
20017       # was updated to point at the current build dependency install directory.
20018       . $builddepsfile
20019       # Now extract variables from the builddeps.conf files.
20020       theroot=${builddep_bootjdk_ROOT}
20021       thecflags=${builddep_bootjdk_CFLAGS}
20022       thelibs=${builddep_bootjdk_LIBS}
20023       if test "x$depdir" = x; then
20024         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20025       fi
20026       BOOT_JDK=$depdir
20027       if test "x$theroot" != x; then
20028         BOOT_JDK="$theroot"
20029       fi
20030       if test "x$thecflags" != x; then
20031         BOOT_JDK_CFLAGS="$thecflags"
20032       fi
20033       if test "x$thelibs" != x; then
20034         BOOT_JDK_LIBS="$thelibs"
20035       fi
20036       BOOT_JDK_FOUND=maybe
20037       else BOOT_JDK_FOUND=no
20038 
20039     fi
20040     else BOOT_JDK_FOUND=no
20041 
20042   fi
20043 
20044 
20045 
20046     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20047     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20048       # Do we have a bin/java?
20049       if test ! -x "$BOOT_JDK/bin/java"; then
20050         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20052         BOOT_JDK_FOUND=no
20053       else
20054         # Do we have a bin/javac?
20055         if test ! -x "$BOOT_JDK/bin/javac"; then
20056           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20058           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20059 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20060           BOOT_JDK_FOUND=no
20061         else
20062           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20063           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20064             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20065 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20066             BOOT_JDK_FOUND=no
20067           else
20068             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20069             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20070 
20071             # Extra M4 quote needed to protect [] in grep expression.
20072             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20073             if test "x$FOUND_CORRECT_VERSION" = x; then
20074               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20076               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20077 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20078               BOOT_JDK_FOUND=no
20079             else
20080               # We're done! :-)
20081               BOOT_JDK_FOUND=yes
20082 
20083   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20084 
20085   # Input might be given as Windows format, start by converting to
20086   # unix format.
20087   path="$BOOT_JDK"
20088   new_path=`$CYGPATH -u "$path"`
20089 
20090   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20091   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20092   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20093   # "foo.exe" is OK but "foo" is an error.
20094   #
20095   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20096   # It is also a way to make sure we got the proper file name for the real test later on.
20097   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20098   if test "x$test_shortpath" = x; then
20099     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20100 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20101     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20102   fi
20103 
20104   # Call helper function which possibly converts this using DOS-style short mode.
20105   # If so, the updated path is stored in $new_path.
20106 
20107   input_path="$new_path"
20108   # Check if we need to convert this using DOS-style short mode. If the path
20109   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20110   # take no chances and rewrite it.
20111   # Note: m4 eats our [], so we need to use [ and ] instead.
20112   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20113   if test "x$has_forbidden_chars" != x; then
20114     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20115     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20116     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20117     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20118       # Going to short mode and back again did indeed matter. Since short mode is
20119       # case insensitive, let's make it lowercase to improve readability.
20120       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20121       # Now convert it back to Unix-stile (cygpath)
20122       input_path=`$CYGPATH -u "$shortmode_path"`
20123       new_path="$input_path"
20124     fi
20125   fi
20126 
20127   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20128   if test "x$test_cygdrive_prefix" = x; then
20129     # As a simple fix, exclude /usr/bin since it's not a real path.
20130     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20131       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20132       # a path prefixed by /cygdrive for fixpath to work.
20133       new_path="$CYGWIN_ROOT_PATH$input_path"
20134     fi
20135   fi
20136 
20137 
20138   if test "x$path" != "x$new_path"; then
20139     BOOT_JDK="$new_path"
20140     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20141 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20142   fi
20143 
20144   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20145 
20146   path="$BOOT_JDK"
20147   has_colon=`$ECHO $path | $GREP ^.:`
20148   new_path="$path"
20149   if test "x$has_colon" = x; then
20150     # Not in mixed or Windows style, start by that.
20151     new_path=`cmd //c echo $path`
20152   fi
20153 
20154 
20155   input_path="$new_path"
20156   # Check if we need to convert this using DOS-style short mode. If the path
20157   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20158   # take no chances and rewrite it.
20159   # Note: m4 eats our [], so we need to use [ and ] instead.
20160   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20161   if test "x$has_forbidden_chars" != x; then
20162     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20163     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20164   fi
20165 
20166 
20167   windows_path="$new_path"
20168   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20169     unix_path=`$CYGPATH -u "$windows_path"`
20170     new_path="$unix_path"
20171   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20172     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20173     new_path="$unix_path"
20174   fi
20175 
20176   if test "x$path" != "x$new_path"; then
20177     BOOT_JDK="$new_path"
20178     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20179 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20180   fi
20181 
20182   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20183   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20184 
20185   else
20186     # We're on a posix platform. Hooray! :)
20187     path="$BOOT_JDK"
20188     has_space=`$ECHO "$path" | $GREP " "`
20189     if test "x$has_space" != x; then
20190       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20191 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20192       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20193     fi
20194 
20195     # Use eval to expand a potential ~
20196     eval path="$path"
20197     if test ! -f "$path" && test ! -d "$path"; then
20198       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20199     fi
20200 
20201     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20202   fi
20203 
20204               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20205 $as_echo_n "checking for Boot JDK... " >&6; }
20206               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20207 $as_echo "$BOOT_JDK" >&6; }
20208               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20209 $as_echo_n "checking Boot JDK version... " >&6; }
20210               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20211               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20212 $as_echo "$BOOT_JDK_VERSION" >&6; }
20213             fi # end check jdk version
20214           fi # end check rt.jar
20215         fi # end check javac
20216       fi # end check java
20217     fi # end check boot jdk found
20218   fi
20219 
20220 
20221   # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home?
20222 
20223   if test "x$BOOT_JDK_FOUND" = xno; then
20224     # Now execute the test
20225 
20226   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
20227     # First check at user selected default
20228 
20229   if test "x$BOOT_JDK_FOUND" = xno; then
20230     # Now execute the test
20231 
20232   if test -x /usr/libexec/java_home; then
20233     BOOT_JDK=`/usr/libexec/java_home `
20234     BOOT_JDK_FOUND=maybe
20235     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5
20236 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;}
20237   fi
20238 
20239 
20240     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20241     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20242       # Do we have a bin/java?
20243       if test ! -x "$BOOT_JDK/bin/java"; then
20244         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20246         BOOT_JDK_FOUND=no
20247       else
20248         # Do we have a bin/javac?
20249         if test ! -x "$BOOT_JDK/bin/javac"; then
20250           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20251 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20252           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20253 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20254           BOOT_JDK_FOUND=no
20255         else
20256           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20257           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20258             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20260             BOOT_JDK_FOUND=no
20261           else
20262             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20263             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20264 
20265             # Extra M4 quote needed to protect [] in grep expression.
20266             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20267             if test "x$FOUND_CORRECT_VERSION" = x; then
20268               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20269 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20270               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20271 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20272               BOOT_JDK_FOUND=no
20273             else
20274               # We're done! :-)
20275               BOOT_JDK_FOUND=yes
20276 
20277   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20278 
20279   # Input might be given as Windows format, start by converting to
20280   # unix format.
20281   path="$BOOT_JDK"
20282   new_path=`$CYGPATH -u "$path"`
20283 
20284   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20285   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20286   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20287   # "foo.exe" is OK but "foo" is an error.
20288   #
20289   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20290   # It is also a way to make sure we got the proper file name for the real test later on.
20291   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20292   if test "x$test_shortpath" = x; then
20293     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20294 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20295     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20296   fi
20297 
20298   # Call helper function which possibly converts this using DOS-style short mode.
20299   # If so, the updated path is stored in $new_path.
20300 
20301   input_path="$new_path"
20302   # Check if we need to convert this using DOS-style short mode. If the path
20303   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20304   # take no chances and rewrite it.
20305   # Note: m4 eats our [], so we need to use [ and ] instead.
20306   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20307   if test "x$has_forbidden_chars" != x; then
20308     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20309     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20310     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20311     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20312       # Going to short mode and back again did indeed matter. Since short mode is
20313       # case insensitive, let's make it lowercase to improve readability.
20314       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20315       # Now convert it back to Unix-stile (cygpath)
20316       input_path=`$CYGPATH -u "$shortmode_path"`
20317       new_path="$input_path"
20318     fi
20319   fi
20320 
20321   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20322   if test "x$test_cygdrive_prefix" = x; then
20323     # As a simple fix, exclude /usr/bin since it's not a real path.
20324     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20325       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20326       # a path prefixed by /cygdrive for fixpath to work.
20327       new_path="$CYGWIN_ROOT_PATH$input_path"
20328     fi
20329   fi
20330 
20331 
20332   if test "x$path" != "x$new_path"; then
20333     BOOT_JDK="$new_path"
20334     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20335 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20336   fi
20337 
20338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20339 
20340   path="$BOOT_JDK"
20341   has_colon=`$ECHO $path | $GREP ^.:`
20342   new_path="$path"
20343   if test "x$has_colon" = x; then
20344     # Not in mixed or Windows style, start by that.
20345     new_path=`cmd //c echo $path`
20346   fi
20347 
20348 
20349   input_path="$new_path"
20350   # Check if we need to convert this using DOS-style short mode. If the path
20351   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20352   # take no chances and rewrite it.
20353   # Note: m4 eats our [], so we need to use [ and ] instead.
20354   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20355   if test "x$has_forbidden_chars" != x; then
20356     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20357     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20358   fi
20359 
20360 
20361   windows_path="$new_path"
20362   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20363     unix_path=`$CYGPATH -u "$windows_path"`
20364     new_path="$unix_path"
20365   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20366     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20367     new_path="$unix_path"
20368   fi
20369 
20370   if test "x$path" != "x$new_path"; then
20371     BOOT_JDK="$new_path"
20372     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20373 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20374   fi
20375 
20376   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20377   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20378 
20379   else
20380     # We're on a posix platform. Hooray! :)
20381     path="$BOOT_JDK"
20382     has_space=`$ECHO "$path" | $GREP " "`
20383     if test "x$has_space" != x; then
20384       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20385 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20386       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20387     fi
20388 
20389     # Use eval to expand a potential ~
20390     eval path="$path"
20391     if test ! -f "$path" && test ! -d "$path"; then
20392       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20393     fi
20394 
20395     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20396   fi
20397 
20398               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20399 $as_echo_n "checking for Boot JDK... " >&6; }
20400               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20401 $as_echo "$BOOT_JDK" >&6; }
20402               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20403 $as_echo_n "checking Boot JDK version... " >&6; }
20404               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20405               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20406 $as_echo "$BOOT_JDK_VERSION" >&6; }
20407             fi # end check jdk version
20408           fi # end check rt.jar
20409         fi # end check javac
20410       fi # end check java
20411     fi # end check boot jdk found
20412   fi
20413 
20414     # If that did not work out (e.g. too old), try explicit versions instead
20415 
20416   if test "x$BOOT_JDK_FOUND" = xno; then
20417     # Now execute the test
20418 
20419   if test -x /usr/libexec/java_home; then
20420     BOOT_JDK=`/usr/libexec/java_home -v 1.9`
20421     BOOT_JDK_FOUND=maybe
20422     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5
20423 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;}
20424   fi
20425 
20426 
20427     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20428     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20429       # Do we have a bin/java?
20430       if test ! -x "$BOOT_JDK/bin/java"; then
20431         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20433         BOOT_JDK_FOUND=no
20434       else
20435         # Do we have a bin/javac?
20436         if test ! -x "$BOOT_JDK/bin/javac"; then
20437           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20438 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20439           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20440 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20441           BOOT_JDK_FOUND=no
20442         else
20443           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20444           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20445             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20447             BOOT_JDK_FOUND=no
20448           else
20449             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20450             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20451 
20452             # Extra M4 quote needed to protect [] in grep expression.
20453             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20454             if test "x$FOUND_CORRECT_VERSION" = x; then
20455               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20456 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20457               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20458 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20459               BOOT_JDK_FOUND=no
20460             else
20461               # We're done! :-)
20462               BOOT_JDK_FOUND=yes
20463 
20464   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20465 
20466   # Input might be given as Windows format, start by converting to
20467   # unix format.
20468   path="$BOOT_JDK"
20469   new_path=`$CYGPATH -u "$path"`
20470 
20471   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20472   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20473   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20474   # "foo.exe" is OK but "foo" is an error.
20475   #
20476   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20477   # It is also a way to make sure we got the proper file name for the real test later on.
20478   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20479   if test "x$test_shortpath" = x; then
20480     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20481 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20482     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20483   fi
20484 
20485   # Call helper function which possibly converts this using DOS-style short mode.
20486   # If so, the updated path is stored in $new_path.
20487 
20488   input_path="$new_path"
20489   # Check if we need to convert this using DOS-style short mode. If the path
20490   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20491   # take no chances and rewrite it.
20492   # Note: m4 eats our [], so we need to use [ and ] instead.
20493   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20494   if test "x$has_forbidden_chars" != x; then
20495     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20496     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20497     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20498     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20499       # Going to short mode and back again did indeed matter. Since short mode is
20500       # case insensitive, let's make it lowercase to improve readability.
20501       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20502       # Now convert it back to Unix-stile (cygpath)
20503       input_path=`$CYGPATH -u "$shortmode_path"`
20504       new_path="$input_path"
20505     fi
20506   fi
20507 
20508   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20509   if test "x$test_cygdrive_prefix" = x; then
20510     # As a simple fix, exclude /usr/bin since it's not a real path.
20511     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20512       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20513       # a path prefixed by /cygdrive for fixpath to work.
20514       new_path="$CYGWIN_ROOT_PATH$input_path"
20515     fi
20516   fi
20517 
20518 
20519   if test "x$path" != "x$new_path"; then
20520     BOOT_JDK="$new_path"
20521     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20522 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20523   fi
20524 
20525   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20526 
20527   path="$BOOT_JDK"
20528   has_colon=`$ECHO $path | $GREP ^.:`
20529   new_path="$path"
20530   if test "x$has_colon" = x; then
20531     # Not in mixed or Windows style, start by that.
20532     new_path=`cmd //c echo $path`
20533   fi
20534 
20535 
20536   input_path="$new_path"
20537   # Check if we need to convert this using DOS-style short mode. If the path
20538   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20539   # take no chances and rewrite it.
20540   # Note: m4 eats our [], so we need to use [ and ] instead.
20541   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20542   if test "x$has_forbidden_chars" != x; then
20543     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20544     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20545   fi
20546 
20547 
20548   windows_path="$new_path"
20549   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20550     unix_path=`$CYGPATH -u "$windows_path"`
20551     new_path="$unix_path"
20552   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20553     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20554     new_path="$unix_path"
20555   fi
20556 
20557   if test "x$path" != "x$new_path"; then
20558     BOOT_JDK="$new_path"
20559     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20560 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20561   fi
20562 
20563   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20564   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20565 
20566   else
20567     # We're on a posix platform. Hooray! :)
20568     path="$BOOT_JDK"
20569     has_space=`$ECHO "$path" | $GREP " "`
20570     if test "x$has_space" != x; then
20571       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20572 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20573       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20574     fi
20575 
20576     # Use eval to expand a potential ~
20577     eval path="$path"
20578     if test ! -f "$path" && test ! -d "$path"; then
20579       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20580     fi
20581 
20582     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20583   fi
20584 
20585               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20586 $as_echo_n "checking for Boot JDK... " >&6; }
20587               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20588 $as_echo "$BOOT_JDK" >&6; }
20589               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20590 $as_echo_n "checking Boot JDK version... " >&6; }
20591               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20592               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20593 $as_echo "$BOOT_JDK_VERSION" >&6; }
20594             fi # end check jdk version
20595           fi # end check rt.jar
20596         fi # end check javac
20597       fi # end check java
20598     fi # end check boot jdk found
20599   fi
20600 
20601 
20602   if test "x$BOOT_JDK_FOUND" = xno; then
20603     # Now execute the test
20604 
20605   if test -x /usr/libexec/java_home; then
20606     BOOT_JDK=`/usr/libexec/java_home -v 1.8`
20607     BOOT_JDK_FOUND=maybe
20608     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5
20609 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;}
20610   fi
20611 
20612 
20613     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20614     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20615       # Do we have a bin/java?
20616       if test ! -x "$BOOT_JDK/bin/java"; then
20617         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20619         BOOT_JDK_FOUND=no
20620       else
20621         # Do we have a bin/javac?
20622         if test ! -x "$BOOT_JDK/bin/javac"; then
20623           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20625           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20626 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20627           BOOT_JDK_FOUND=no
20628         else
20629           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20630           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20631             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20633             BOOT_JDK_FOUND=no
20634           else
20635             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20636             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20637 
20638             # Extra M4 quote needed to protect [] in grep expression.
20639             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20640             if test "x$FOUND_CORRECT_VERSION" = x; then
20641               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20643               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20644 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20645               BOOT_JDK_FOUND=no
20646             else
20647               # We're done! :-)
20648               BOOT_JDK_FOUND=yes
20649 
20650   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20651 
20652   # Input might be given as Windows format, start by converting to
20653   # unix format.
20654   path="$BOOT_JDK"
20655   new_path=`$CYGPATH -u "$path"`
20656 
20657   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20658   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20659   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20660   # "foo.exe" is OK but "foo" is an error.
20661   #
20662   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20663   # It is also a way to make sure we got the proper file name for the real test later on.
20664   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20665   if test "x$test_shortpath" = x; then
20666     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20667 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20668     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20669   fi
20670 
20671   # Call helper function which possibly converts this using DOS-style short mode.
20672   # If so, the updated path is stored in $new_path.
20673 
20674   input_path="$new_path"
20675   # Check if we need to convert this using DOS-style short mode. If the path
20676   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20677   # take no chances and rewrite it.
20678   # Note: m4 eats our [], so we need to use [ and ] instead.
20679   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20680   if test "x$has_forbidden_chars" != x; then
20681     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20682     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20683     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20684     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20685       # Going to short mode and back again did indeed matter. Since short mode is
20686       # case insensitive, let's make it lowercase to improve readability.
20687       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20688       # Now convert it back to Unix-stile (cygpath)
20689       input_path=`$CYGPATH -u "$shortmode_path"`
20690       new_path="$input_path"
20691     fi
20692   fi
20693 
20694   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20695   if test "x$test_cygdrive_prefix" = x; then
20696     # As a simple fix, exclude /usr/bin since it's not a real path.
20697     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20698       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20699       # a path prefixed by /cygdrive for fixpath to work.
20700       new_path="$CYGWIN_ROOT_PATH$input_path"
20701     fi
20702   fi
20703 
20704 
20705   if test "x$path" != "x$new_path"; then
20706     BOOT_JDK="$new_path"
20707     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20708 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20709   fi
20710 
20711   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20712 
20713   path="$BOOT_JDK"
20714   has_colon=`$ECHO $path | $GREP ^.:`
20715   new_path="$path"
20716   if test "x$has_colon" = x; then
20717     # Not in mixed or Windows style, start by that.
20718     new_path=`cmd //c echo $path`
20719   fi
20720 
20721 
20722   input_path="$new_path"
20723   # Check if we need to convert this using DOS-style short mode. If the path
20724   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20725   # take no chances and rewrite it.
20726   # Note: m4 eats our [], so we need to use [ and ] instead.
20727   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20728   if test "x$has_forbidden_chars" != x; then
20729     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20730     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20731   fi
20732 
20733 
20734   windows_path="$new_path"
20735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20736     unix_path=`$CYGPATH -u "$windows_path"`
20737     new_path="$unix_path"
20738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20740     new_path="$unix_path"
20741   fi
20742 
20743   if test "x$path" != "x$new_path"; then
20744     BOOT_JDK="$new_path"
20745     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20747   fi
20748 
20749   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20750   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20751 
20752   else
20753     # We're on a posix platform. Hooray! :)
20754     path="$BOOT_JDK"
20755     has_space=`$ECHO "$path" | $GREP " "`
20756     if test "x$has_space" != x; then
20757       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20758 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20759       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20760     fi
20761 
20762     # Use eval to expand a potential ~
20763     eval path="$path"
20764     if test ! -f "$path" && test ! -d "$path"; then
20765       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20766     fi
20767 
20768     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20769   fi
20770 
20771               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20772 $as_echo_n "checking for Boot JDK... " >&6; }
20773               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20774 $as_echo "$BOOT_JDK" >&6; }
20775               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20776 $as_echo_n "checking Boot JDK version... " >&6; }
20777               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20778               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20779 $as_echo "$BOOT_JDK_VERSION" >&6; }
20780             fi # end check jdk version
20781           fi # end check rt.jar
20782         fi # end check javac
20783       fi # end check java
20784     fi # end check boot jdk found
20785   fi
20786 
20787 
20788   if test "x$BOOT_JDK_FOUND" = xno; then
20789     # Now execute the test
20790 
20791   if test -x /usr/libexec/java_home; then
20792     BOOT_JDK=`/usr/libexec/java_home -v 1.7`
20793     BOOT_JDK_FOUND=maybe
20794     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5
20795 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;}
20796   fi
20797 
20798 
20799     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20800     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20801       # Do we have a bin/java?
20802       if test ! -x "$BOOT_JDK/bin/java"; then
20803         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20804 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20805         BOOT_JDK_FOUND=no
20806       else
20807         # Do we have a bin/javac?
20808         if test ! -x "$BOOT_JDK/bin/javac"; then
20809           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20811           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20812 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20813           BOOT_JDK_FOUND=no
20814         else
20815           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20816           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20817             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20819             BOOT_JDK_FOUND=no
20820           else
20821             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20822             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20823 
20824             # Extra M4 quote needed to protect [] in grep expression.
20825             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
20826             if test "x$FOUND_CORRECT_VERSION" = x; then
20827               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20828 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20829               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
20830 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
20831               BOOT_JDK_FOUND=no
20832             else
20833               # We're done! :-)
20834               BOOT_JDK_FOUND=yes
20835 
20836   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20837 
20838   # Input might be given as Windows format, start by converting to
20839   # unix format.
20840   path="$BOOT_JDK"
20841   new_path=`$CYGPATH -u "$path"`
20842 
20843   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20844   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20845   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20846   # "foo.exe" is OK but "foo" is an error.
20847   #
20848   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20849   # It is also a way to make sure we got the proper file name for the real test later on.
20850   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20851   if test "x$test_shortpath" = x; then
20852     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20853 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20854     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20855   fi
20856 
20857   # Call helper function which possibly converts this using DOS-style short mode.
20858   # If so, the updated path is stored in $new_path.
20859 
20860   input_path="$new_path"
20861   # Check if we need to convert this using DOS-style short mode. If the path
20862   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20863   # take no chances and rewrite it.
20864   # Note: m4 eats our [], so we need to use [ and ] instead.
20865   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20866   if test "x$has_forbidden_chars" != x; then
20867     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20868     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20869     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20870     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20871       # Going to short mode and back again did indeed matter. Since short mode is
20872       # case insensitive, let's make it lowercase to improve readability.
20873       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20874       # Now convert it back to Unix-stile (cygpath)
20875       input_path=`$CYGPATH -u "$shortmode_path"`
20876       new_path="$input_path"
20877     fi
20878   fi
20879 
20880   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20881   if test "x$test_cygdrive_prefix" = x; then
20882     # As a simple fix, exclude /usr/bin since it's not a real path.
20883     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20884       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20885       # a path prefixed by /cygdrive for fixpath to work.
20886       new_path="$CYGWIN_ROOT_PATH$input_path"
20887     fi
20888   fi
20889 
20890 
20891   if test "x$path" != "x$new_path"; then
20892     BOOT_JDK="$new_path"
20893     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20894 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20895   fi
20896 
20897   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20898 
20899   path="$BOOT_JDK"
20900   has_colon=`$ECHO $path | $GREP ^.:`
20901   new_path="$path"
20902   if test "x$has_colon" = x; then
20903     # Not in mixed or Windows style, start by that.
20904     new_path=`cmd //c echo $path`
20905   fi
20906 
20907 
20908   input_path="$new_path"
20909   # Check if we need to convert this using DOS-style short mode. If the path
20910   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20911   # take no chances and rewrite it.
20912   # Note: m4 eats our [], so we need to use [ and ] instead.
20913   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20914   if test "x$has_forbidden_chars" != x; then
20915     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20916     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20917   fi
20918 
20919 
20920   windows_path="$new_path"
20921   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20922     unix_path=`$CYGPATH -u "$windows_path"`
20923     new_path="$unix_path"
20924   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20925     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20926     new_path="$unix_path"
20927   fi
20928 
20929   if test "x$path" != "x$new_path"; then
20930     BOOT_JDK="$new_path"
20931     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20932 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20933   fi
20934 
20935   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20936   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20937 
20938   else
20939     # We're on a posix platform. Hooray! :)
20940     path="$BOOT_JDK"
20941     has_space=`$ECHO "$path" | $GREP " "`
20942     if test "x$has_space" != x; then
20943       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20944 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20945       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20946     fi
20947 
20948     # Use eval to expand a potential ~
20949     eval path="$path"
20950     if test ! -f "$path" && test ! -d "$path"; then
20951       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20952     fi
20953 
20954     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20955   fi
20956 
20957               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20958 $as_echo_n "checking for Boot JDK... " >&6; }
20959               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20960 $as_echo "$BOOT_JDK" >&6; }
20961               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20962 $as_echo_n "checking Boot JDK version... " >&6; }
20963               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20964               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20965 $as_echo "$BOOT_JDK_VERSION" >&6; }
20966             fi # end check jdk version
20967           fi # end check rt.jar
20968         fi # end check javac
20969       fi # end check java
20970     fi # end check boot jdk found
20971   fi
20972 
20973   fi
20974 
20975 
20976     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20977     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20978       # Do we have a bin/java?
20979       if test ! -x "$BOOT_JDK/bin/java"; then
20980         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20981 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20982         BOOT_JDK_FOUND=no
20983       else
20984         # Do we have a bin/javac?
20985         if test ! -x "$BOOT_JDK/bin/javac"; then
20986           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20988           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20989 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20990           BOOT_JDK_FOUND=no
20991         else
20992           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20993           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20994             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20996             BOOT_JDK_FOUND=no
20997           else
20998             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20999             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21000 
21001             # Extra M4 quote needed to protect [] in grep expression.
21002             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21003             if test "x$FOUND_CORRECT_VERSION" = x; then
21004               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21006               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21007 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21008               BOOT_JDK_FOUND=no
21009             else
21010               # We're done! :-)
21011               BOOT_JDK_FOUND=yes
21012 
21013   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21014 
21015   # Input might be given as Windows format, start by converting to
21016   # unix format.
21017   path="$BOOT_JDK"
21018   new_path=`$CYGPATH -u "$path"`
21019 
21020   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21021   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21022   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21023   # "foo.exe" is OK but "foo" is an error.
21024   #
21025   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21026   # It is also a way to make sure we got the proper file name for the real test later on.
21027   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21028   if test "x$test_shortpath" = x; then
21029     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21030 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21031     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21032   fi
21033 
21034   # Call helper function which possibly converts this using DOS-style short mode.
21035   # If so, the updated path is stored in $new_path.
21036 
21037   input_path="$new_path"
21038   # Check if we need to convert this using DOS-style short mode. If the path
21039   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21040   # take no chances and rewrite it.
21041   # Note: m4 eats our [], so we need to use [ and ] instead.
21042   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21043   if test "x$has_forbidden_chars" != x; then
21044     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21045     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21046     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21047     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21048       # Going to short mode and back again did indeed matter. Since short mode is
21049       # case insensitive, let's make it lowercase to improve readability.
21050       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21051       # Now convert it back to Unix-stile (cygpath)
21052       input_path=`$CYGPATH -u "$shortmode_path"`
21053       new_path="$input_path"
21054     fi
21055   fi
21056 
21057   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21058   if test "x$test_cygdrive_prefix" = x; then
21059     # As a simple fix, exclude /usr/bin since it's not a real path.
21060     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21061       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21062       # a path prefixed by /cygdrive for fixpath to work.
21063       new_path="$CYGWIN_ROOT_PATH$input_path"
21064     fi
21065   fi
21066 
21067 
21068   if test "x$path" != "x$new_path"; then
21069     BOOT_JDK="$new_path"
21070     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21071 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21072   fi
21073 
21074   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21075 
21076   path="$BOOT_JDK"
21077   has_colon=`$ECHO $path | $GREP ^.:`
21078   new_path="$path"
21079   if test "x$has_colon" = x; then
21080     # Not in mixed or Windows style, start by that.
21081     new_path=`cmd //c echo $path`
21082   fi
21083 
21084 
21085   input_path="$new_path"
21086   # Check if we need to convert this using DOS-style short mode. If the path
21087   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21088   # take no chances and rewrite it.
21089   # Note: m4 eats our [], so we need to use [ and ] instead.
21090   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21091   if test "x$has_forbidden_chars" != x; then
21092     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21093     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21094   fi
21095 
21096 
21097   windows_path="$new_path"
21098   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21099     unix_path=`$CYGPATH -u "$windows_path"`
21100     new_path="$unix_path"
21101   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21102     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21103     new_path="$unix_path"
21104   fi
21105 
21106   if test "x$path" != "x$new_path"; then
21107     BOOT_JDK="$new_path"
21108     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21109 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21110   fi
21111 
21112   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21113   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21114 
21115   else
21116     # We're on a posix platform. Hooray! :)
21117     path="$BOOT_JDK"
21118     has_space=`$ECHO "$path" | $GREP " "`
21119     if test "x$has_space" != x; then
21120       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21121 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21122       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21123     fi
21124 
21125     # Use eval to expand a potential ~
21126     eval path="$path"
21127     if test ! -f "$path" && test ! -d "$path"; then
21128       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21129     fi
21130 
21131     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21132   fi
21133 
21134               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21135 $as_echo_n "checking for Boot JDK... " >&6; }
21136               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21137 $as_echo "$BOOT_JDK" >&6; }
21138               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21139 $as_echo_n "checking Boot JDK version... " >&6; }
21140               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21141               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21142 $as_echo "$BOOT_JDK_VERSION" >&6; }
21143             fi # end check jdk version
21144           fi # end check rt.jar
21145         fi # end check javac
21146       fi # end check java
21147     fi # end check boot jdk found
21148   fi
21149 
21150 
21151   # Test: Is $JAVA_HOME set?
21152 
21153   if test "x$BOOT_JDK_FOUND" = xno; then
21154     # Now execute the test
21155 
21156   if test "x$JAVA_HOME" != x; then
21157     JAVA_HOME_PROCESSED="$JAVA_HOME"
21158 
21159   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21160 
21161   # Input might be given as Windows format, start by converting to
21162   # unix format.
21163   path="$JAVA_HOME_PROCESSED"
21164   new_path=`$CYGPATH -u "$path"`
21165 
21166   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21167   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21168   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21169   # "foo.exe" is OK but "foo" is an error.
21170   #
21171   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21172   # It is also a way to make sure we got the proper file name for the real test later on.
21173   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21174   if test "x$test_shortpath" = x; then
21175     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21176 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21177     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
21178   fi
21179 
21180   # Call helper function which possibly converts this using DOS-style short mode.
21181   # If so, the updated path is stored in $new_path.
21182 
21183   input_path="$new_path"
21184   # Check if we need to convert this using DOS-style short mode. If the path
21185   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21186   # take no chances and rewrite it.
21187   # Note: m4 eats our [], so we need to use [ and ] instead.
21188   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21189   if test "x$has_forbidden_chars" != x; then
21190     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21191     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21192     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21193     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21194       # Going to short mode and back again did indeed matter. Since short mode is
21195       # case insensitive, let's make it lowercase to improve readability.
21196       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21197       # Now convert it back to Unix-stile (cygpath)
21198       input_path=`$CYGPATH -u "$shortmode_path"`
21199       new_path="$input_path"
21200     fi
21201   fi
21202 
21203   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21204   if test "x$test_cygdrive_prefix" = x; then
21205     # As a simple fix, exclude /usr/bin since it's not a real path.
21206     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21207       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21208       # a path prefixed by /cygdrive for fixpath to work.
21209       new_path="$CYGWIN_ROOT_PATH$input_path"
21210     fi
21211   fi
21212 
21213 
21214   if test "x$path" != "x$new_path"; then
21215     JAVA_HOME_PROCESSED="$new_path"
21216     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21217 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21218   fi
21219 
21220   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21221 
21222   path="$JAVA_HOME_PROCESSED"
21223   has_colon=`$ECHO $path | $GREP ^.:`
21224   new_path="$path"
21225   if test "x$has_colon" = x; then
21226     # Not in mixed or Windows style, start by that.
21227     new_path=`cmd //c echo $path`
21228   fi
21229 
21230 
21231   input_path="$new_path"
21232   # Check if we need to convert this using DOS-style short mode. If the path
21233   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21234   # take no chances and rewrite it.
21235   # Note: m4 eats our [], so we need to use [ and ] instead.
21236   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21237   if test "x$has_forbidden_chars" != x; then
21238     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21239     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21240   fi
21241 
21242 
21243   windows_path="$new_path"
21244   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21245     unix_path=`$CYGPATH -u "$windows_path"`
21246     new_path="$unix_path"
21247   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21248     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21249     new_path="$unix_path"
21250   fi
21251 
21252   if test "x$path" != "x$new_path"; then
21253     JAVA_HOME_PROCESSED="$new_path"
21254     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
21255 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
21256   fi
21257 
21258   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21259   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21260 
21261   else
21262     # We're on a posix platform. Hooray! :)
21263     path="$JAVA_HOME_PROCESSED"
21264     has_space=`$ECHO "$path" | $GREP " "`
21265     if test "x$has_space" != x; then
21266       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
21267 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
21268       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21269     fi
21270 
21271     # Use eval to expand a potential ~
21272     eval path="$path"
21273     if test ! -f "$path" && test ! -d "$path"; then
21274       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
21275     fi
21276 
21277     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
21278   fi
21279 
21280     if test ! -d "$JAVA_HOME_PROCESSED"; then
21281       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
21282 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
21283     else
21284       # Aha, the user has set a JAVA_HOME
21285       # let us use that as the Boot JDK.
21286       BOOT_JDK="$JAVA_HOME_PROCESSED"
21287       BOOT_JDK_FOUND=maybe
21288       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
21289 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
21290     fi
21291   fi
21292 
21293 
21294     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21295     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21296       # Do we have a bin/java?
21297       if test ! -x "$BOOT_JDK/bin/java"; then
21298         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21299 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21300         BOOT_JDK_FOUND=no
21301       else
21302         # Do we have a bin/javac?
21303         if test ! -x "$BOOT_JDK/bin/javac"; then
21304           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21305 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21306           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21307 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21308           BOOT_JDK_FOUND=no
21309         else
21310           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21311           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21312             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21313 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21314             BOOT_JDK_FOUND=no
21315           else
21316             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21317             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21318 
21319             # Extra M4 quote needed to protect [] in grep expression.
21320             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21321             if test "x$FOUND_CORRECT_VERSION" = x; then
21322               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21324               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21325 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21326               BOOT_JDK_FOUND=no
21327             else
21328               # We're done! :-)
21329               BOOT_JDK_FOUND=yes
21330 
21331   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21332 
21333   # Input might be given as Windows format, start by converting to
21334   # unix format.
21335   path="$BOOT_JDK"
21336   new_path=`$CYGPATH -u "$path"`
21337 
21338   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21339   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21340   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21341   # "foo.exe" is OK but "foo" is an error.
21342   #
21343   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21344   # It is also a way to make sure we got the proper file name for the real test later on.
21345   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21346   if test "x$test_shortpath" = x; then
21347     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21348 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21349     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21350   fi
21351 
21352   # Call helper function which possibly converts this using DOS-style short mode.
21353   # If so, the updated path is stored in $new_path.
21354 
21355   input_path="$new_path"
21356   # Check if we need to convert this using DOS-style short mode. If the path
21357   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21358   # take no chances and rewrite it.
21359   # Note: m4 eats our [], so we need to use [ and ] instead.
21360   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21361   if test "x$has_forbidden_chars" != x; then
21362     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21363     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21364     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21365     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21366       # Going to short mode and back again did indeed matter. Since short mode is
21367       # case insensitive, let's make it lowercase to improve readability.
21368       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21369       # Now convert it back to Unix-stile (cygpath)
21370       input_path=`$CYGPATH -u "$shortmode_path"`
21371       new_path="$input_path"
21372     fi
21373   fi
21374 
21375   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21376   if test "x$test_cygdrive_prefix" = x; then
21377     # As a simple fix, exclude /usr/bin since it's not a real path.
21378     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21379       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21380       # a path prefixed by /cygdrive for fixpath to work.
21381       new_path="$CYGWIN_ROOT_PATH$input_path"
21382     fi
21383   fi
21384 
21385 
21386   if test "x$path" != "x$new_path"; then
21387     BOOT_JDK="$new_path"
21388     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21389 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21390   fi
21391 
21392   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21393 
21394   path="$BOOT_JDK"
21395   has_colon=`$ECHO $path | $GREP ^.:`
21396   new_path="$path"
21397   if test "x$has_colon" = x; then
21398     # Not in mixed or Windows style, start by that.
21399     new_path=`cmd //c echo $path`
21400   fi
21401 
21402 
21403   input_path="$new_path"
21404   # Check if we need to convert this using DOS-style short mode. If the path
21405   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21406   # take no chances and rewrite it.
21407   # Note: m4 eats our [], so we need to use [ and ] instead.
21408   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21409   if test "x$has_forbidden_chars" != x; then
21410     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21411     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21412   fi
21413 
21414 
21415   windows_path="$new_path"
21416   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21417     unix_path=`$CYGPATH -u "$windows_path"`
21418     new_path="$unix_path"
21419   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21420     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21421     new_path="$unix_path"
21422   fi
21423 
21424   if test "x$path" != "x$new_path"; then
21425     BOOT_JDK="$new_path"
21426     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21427 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21428   fi
21429 
21430   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21431   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21432 
21433   else
21434     # We're on a posix platform. Hooray! :)
21435     path="$BOOT_JDK"
21436     has_space=`$ECHO "$path" | $GREP " "`
21437     if test "x$has_space" != x; then
21438       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21439 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21440       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21441     fi
21442 
21443     # Use eval to expand a potential ~
21444     eval path="$path"
21445     if test ! -f "$path" && test ! -d "$path"; then
21446       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21447     fi
21448 
21449     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21450   fi
21451 
21452               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21453 $as_echo_n "checking for Boot JDK... " >&6; }
21454               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21455 $as_echo "$BOOT_JDK" >&6; }
21456               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21457 $as_echo_n "checking Boot JDK version... " >&6; }
21458               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21459               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21460 $as_echo "$BOOT_JDK_VERSION" >&6; }
21461             fi # end check jdk version
21462           fi # end check rt.jar
21463         fi # end check javac
21464       fi # end check java
21465     fi # end check boot jdk found
21466   fi
21467 
21468 
21469   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21470 
21471   if test "x$BOOT_JDK_FOUND" = xno; then
21472     # Now execute the test
21473 
21474   # Extract the first word of "javac", so it can be a program name with args.
21475 set dummy javac; ac_word=$2
21476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21477 $as_echo_n "checking for $ac_word... " >&6; }
21478 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21479   $as_echo_n "(cached) " >&6
21480 else
21481   case $JAVAC_CHECK in
21482   [\\/]* | ?:[\\/]*)
21483   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21484   ;;
21485   *)
21486   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21487 for as_dir in $PATH
21488 do
21489   IFS=$as_save_IFS
21490   test -z "$as_dir" && as_dir=.
21491     for ac_exec_ext in '' $ac_executable_extensions; do
21492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21493     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21495     break 2
21496   fi
21497 done
21498   done
21499 IFS=$as_save_IFS
21500 
21501   ;;
21502 esac
21503 fi
21504 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21505 if test -n "$JAVAC_CHECK"; then
21506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21507 $as_echo "$JAVAC_CHECK" >&6; }
21508 else
21509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21510 $as_echo "no" >&6; }
21511 fi
21512 
21513 
21514   # Extract the first word of "java", so it can be a program name with args.
21515 set dummy java; ac_word=$2
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21517 $as_echo_n "checking for $ac_word... " >&6; }
21518 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21519   $as_echo_n "(cached) " >&6
21520 else
21521   case $JAVA_CHECK in
21522   [\\/]* | ?:[\\/]*)
21523   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21524   ;;
21525   *)
21526   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21527 for as_dir in $PATH
21528 do
21529   IFS=$as_save_IFS
21530   test -z "$as_dir" && as_dir=.
21531     for ac_exec_ext in '' $ac_executable_extensions; do
21532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21533     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21535     break 2
21536   fi
21537 done
21538   done
21539 IFS=$as_save_IFS
21540 
21541   ;;
21542 esac
21543 fi
21544 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21545 if test -n "$JAVA_CHECK"; then
21546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21547 $as_echo "$JAVA_CHECK" >&6; }
21548 else
21549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21550 $as_echo "no" >&6; }
21551 fi
21552 
21553 
21554   BINARY="$JAVAC_CHECK"
21555   if test "x$JAVAC_CHECK" = x; then
21556     BINARY="$JAVA_CHECK"
21557   fi
21558   if test "x$BINARY" != x; then
21559     # So there is a java(c) binary, it might be part of a JDK.
21560     # Lets find the JDK/JRE directory by following symbolic links.
21561     # Linux/GNU systems often have links from /usr/bin/java to
21562     # /etc/alternatives/java to the real JDK binary.
21563 
21564   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21565     # Follow a chain of symbolic links. Use readlink
21566     # where it exists, else fall back to horribly
21567     # complicated shell code.
21568     if test "x$READLINK_TESTED" != yes; then
21569       # On MacOSX there is a readlink tool with a different
21570       # purpose than the GNU readlink tool. Check the found readlink.
21571       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21572       if test "x$ISGNU" = x; then
21573         # A readlink that we do not know how to use.
21574         # Are there other non-GNU readlinks out there?
21575         READLINK_TESTED=yes
21576         READLINK=
21577       fi
21578     fi
21579 
21580     if test "x$READLINK" != x; then
21581       BINARY=`$READLINK -f $BINARY`
21582     else
21583       # Save the current directory for restoring afterwards
21584       STARTDIR=$PWD
21585       COUNTER=0
21586       sym_link_dir=`$DIRNAME $BINARY`
21587       sym_link_file=`$BASENAME $BINARY`
21588       cd $sym_link_dir
21589       # Use -P flag to resolve symlinks in directories.
21590       cd `$THEPWDCMD -P`
21591       sym_link_dir=`$THEPWDCMD -P`
21592       # Resolve file symlinks
21593       while test $COUNTER -lt 20; do
21594         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21595         if test "x$ISLINK" == x; then
21596           # This is not a symbolic link! We are done!
21597           break
21598         fi
21599         # Again resolve directory symlinks since the target of the just found
21600         # link could be in a different directory
21601         cd `$DIRNAME $ISLINK`
21602         sym_link_dir=`$THEPWDCMD -P`
21603         sym_link_file=`$BASENAME $ISLINK`
21604         let COUNTER=COUNTER+1
21605       done
21606       cd $STARTDIR
21607       BINARY=$sym_link_dir/$sym_link_file
21608     fi
21609   fi
21610 
21611     BOOT_JDK=`dirname "$BINARY"`
21612     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21613     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21614       # Looks like we found ourselves an JDK
21615       BOOT_JDK_FOUND=maybe
21616       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21617 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21618     fi
21619   fi
21620 
21621 
21622     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21623     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21624       # Do we have a bin/java?
21625       if test ! -x "$BOOT_JDK/bin/java"; then
21626         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21627 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21628         BOOT_JDK_FOUND=no
21629       else
21630         # Do we have a bin/javac?
21631         if test ! -x "$BOOT_JDK/bin/javac"; then
21632           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21633 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21634           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21635 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21636           BOOT_JDK_FOUND=no
21637         else
21638           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21639           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21640             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21641 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21642             BOOT_JDK_FOUND=no
21643           else
21644             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21645             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21646 
21647             # Extra M4 quote needed to protect [] in grep expression.
21648             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21649             if test "x$FOUND_CORRECT_VERSION" = x; then
21650               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21651 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21652               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21653 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21654               BOOT_JDK_FOUND=no
21655             else
21656               # We're done! :-)
21657               BOOT_JDK_FOUND=yes
21658 
21659   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21660 
21661   # Input might be given as Windows format, start by converting to
21662   # unix format.
21663   path="$BOOT_JDK"
21664   new_path=`$CYGPATH -u "$path"`
21665 
21666   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21667   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21668   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21669   # "foo.exe" is OK but "foo" is an error.
21670   #
21671   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21672   # It is also a way to make sure we got the proper file name for the real test later on.
21673   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21674   if test "x$test_shortpath" = x; then
21675     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21676 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21677     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21678   fi
21679 
21680   # Call helper function which possibly converts this using DOS-style short mode.
21681   # If so, the updated path is stored in $new_path.
21682 
21683   input_path="$new_path"
21684   # Check if we need to convert this using DOS-style short mode. If the path
21685   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21686   # take no chances and rewrite it.
21687   # Note: m4 eats our [], so we need to use [ and ] instead.
21688   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21689   if test "x$has_forbidden_chars" != x; then
21690     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21691     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21692     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21693     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21694       # Going to short mode and back again did indeed matter. Since short mode is
21695       # case insensitive, let's make it lowercase to improve readability.
21696       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21697       # Now convert it back to Unix-stile (cygpath)
21698       input_path=`$CYGPATH -u "$shortmode_path"`
21699       new_path="$input_path"
21700     fi
21701   fi
21702 
21703   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21704   if test "x$test_cygdrive_prefix" = x; then
21705     # As a simple fix, exclude /usr/bin since it's not a real path.
21706     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21707       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21708       # a path prefixed by /cygdrive for fixpath to work.
21709       new_path="$CYGWIN_ROOT_PATH$input_path"
21710     fi
21711   fi
21712 
21713 
21714   if test "x$path" != "x$new_path"; then
21715     BOOT_JDK="$new_path"
21716     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21717 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21718   fi
21719 
21720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21721 
21722   path="$BOOT_JDK"
21723   has_colon=`$ECHO $path | $GREP ^.:`
21724   new_path="$path"
21725   if test "x$has_colon" = x; then
21726     # Not in mixed or Windows style, start by that.
21727     new_path=`cmd //c echo $path`
21728   fi
21729 
21730 
21731   input_path="$new_path"
21732   # Check if we need to convert this using DOS-style short mode. If the path
21733   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21734   # take no chances and rewrite it.
21735   # Note: m4 eats our [], so we need to use [ and ] instead.
21736   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21737   if test "x$has_forbidden_chars" != x; then
21738     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21739     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21740   fi
21741 
21742 
21743   windows_path="$new_path"
21744   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21745     unix_path=`$CYGPATH -u "$windows_path"`
21746     new_path="$unix_path"
21747   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21748     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21749     new_path="$unix_path"
21750   fi
21751 
21752   if test "x$path" != "x$new_path"; then
21753     BOOT_JDK="$new_path"
21754     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21755 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21756   fi
21757 
21758   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21759   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21760 
21761   else
21762     # We're on a posix platform. Hooray! :)
21763     path="$BOOT_JDK"
21764     has_space=`$ECHO "$path" | $GREP " "`
21765     if test "x$has_space" != x; then
21766       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21767 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21768       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21769     fi
21770 
21771     # Use eval to expand a potential ~
21772     eval path="$path"
21773     if test ! -f "$path" && test ! -d "$path"; then
21774       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21775     fi
21776 
21777     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21778   fi
21779 
21780               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21781 $as_echo_n "checking for Boot JDK... " >&6; }
21782               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21783 $as_echo "$BOOT_JDK" >&6; }
21784               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21785 $as_echo_n "checking Boot JDK version... " >&6; }
21786               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21787               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21788 $as_echo "$BOOT_JDK_VERSION" >&6; }
21789             fi # end check jdk version
21790           fi # end check rt.jar
21791         fi # end check javac
21792       fi # end check java
21793     fi # end check boot jdk found
21794   fi
21795 
21796 
21797   # Test: Is there a JDK installed in default, well-known locations?
21798 
21799   if test "x$BOOT_JDK_FOUND" = xno; then
21800     # Now execute the test
21801 
21802   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21803 
21804   if test "x$BOOT_JDK_FOUND" = xno; then
21805     # Now execute the test
21806 
21807   if test "x$ProgramW6432" != x; then
21808     VIRTUAL_DIR="$ProgramW6432/Java"
21809 
21810   windows_path="$VIRTUAL_DIR"
21811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21812     unix_path=`$CYGPATH -u "$windows_path"`
21813     VIRTUAL_DIR="$unix_path"
21814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21815     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21816     VIRTUAL_DIR="$unix_path"
21817   fi
21818 
21819 
21820   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21821   BOOT_JDK_SUFFIX=""
21822   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21823   if test "x$ALL_JDKS_FOUND" != x; then
21824     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21825 
21826   if test "x$BOOT_JDK_FOUND" = xno; then
21827     # Now execute the test
21828 
21829         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21830         if test -d "$BOOT_JDK"; then
21831           BOOT_JDK_FOUND=maybe
21832           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21833 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21834         fi
21835 
21836 
21837     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21838     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21839       # Do we have a bin/java?
21840       if test ! -x "$BOOT_JDK/bin/java"; then
21841         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21843         BOOT_JDK_FOUND=no
21844       else
21845         # Do we have a bin/javac?
21846         if test ! -x "$BOOT_JDK/bin/javac"; then
21847           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21849           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21850 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21851           BOOT_JDK_FOUND=no
21852         else
21853           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21854           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21855             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21856 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21857             BOOT_JDK_FOUND=no
21858           else
21859             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21860             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21861 
21862             # Extra M4 quote needed to protect [] in grep expression.
21863             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
21864             if test "x$FOUND_CORRECT_VERSION" = x; then
21865               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21867               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
21868 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
21869               BOOT_JDK_FOUND=no
21870             else
21871               # We're done! :-)
21872               BOOT_JDK_FOUND=yes
21873 
21874   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21875 
21876   # Input might be given as Windows format, start by converting to
21877   # unix format.
21878   path="$BOOT_JDK"
21879   new_path=`$CYGPATH -u "$path"`
21880 
21881   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21882   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21883   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21884   # "foo.exe" is OK but "foo" is an error.
21885   #
21886   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21887   # It is also a way to make sure we got the proper file name for the real test later on.
21888   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21889   if test "x$test_shortpath" = x; then
21890     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21892     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21893   fi
21894 
21895   # Call helper function which possibly converts this using DOS-style short mode.
21896   # If so, the updated path is stored in $new_path.
21897 
21898   input_path="$new_path"
21899   # Check if we need to convert this using DOS-style short mode. If the path
21900   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21901   # take no chances and rewrite it.
21902   # Note: m4 eats our [], so we need to use [ and ] instead.
21903   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21904   if test "x$has_forbidden_chars" != x; then
21905     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21906     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21907     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21908     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21909       # Going to short mode and back again did indeed matter. Since short mode is
21910       # case insensitive, let's make it lowercase to improve readability.
21911       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21912       # Now convert it back to Unix-stile (cygpath)
21913       input_path=`$CYGPATH -u "$shortmode_path"`
21914       new_path="$input_path"
21915     fi
21916   fi
21917 
21918   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21919   if test "x$test_cygdrive_prefix" = x; then
21920     # As a simple fix, exclude /usr/bin since it's not a real path.
21921     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21922       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21923       # a path prefixed by /cygdrive for fixpath to work.
21924       new_path="$CYGWIN_ROOT_PATH$input_path"
21925     fi
21926   fi
21927 
21928 
21929   if test "x$path" != "x$new_path"; then
21930     BOOT_JDK="$new_path"
21931     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21932 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21933   fi
21934 
21935   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21936 
21937   path="$BOOT_JDK"
21938   has_colon=`$ECHO $path | $GREP ^.:`
21939   new_path="$path"
21940   if test "x$has_colon" = x; then
21941     # Not in mixed or Windows style, start by that.
21942     new_path=`cmd //c echo $path`
21943   fi
21944 
21945 
21946   input_path="$new_path"
21947   # Check if we need to convert this using DOS-style short mode. If the path
21948   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21949   # take no chances and rewrite it.
21950   # Note: m4 eats our [], so we need to use [ and ] instead.
21951   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21952   if test "x$has_forbidden_chars" != x; then
21953     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21954     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21955   fi
21956 
21957 
21958   windows_path="$new_path"
21959   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21960     unix_path=`$CYGPATH -u "$windows_path"`
21961     new_path="$unix_path"
21962   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21963     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21964     new_path="$unix_path"
21965   fi
21966 
21967   if test "x$path" != "x$new_path"; then
21968     BOOT_JDK="$new_path"
21969     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21971   fi
21972 
21973   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21974   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21975 
21976   else
21977     # We're on a posix platform. Hooray! :)
21978     path="$BOOT_JDK"
21979     has_space=`$ECHO "$path" | $GREP " "`
21980     if test "x$has_space" != x; then
21981       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21983       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21984     fi
21985 
21986     # Use eval to expand a potential ~
21987     eval path="$path"
21988     if test ! -f "$path" && test ! -d "$path"; then
21989       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21990     fi
21991 
21992     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21993   fi
21994 
21995               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21996 $as_echo_n "checking for Boot JDK... " >&6; }
21997               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21998 $as_echo "$BOOT_JDK" >&6; }
21999               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22000 $as_echo_n "checking Boot JDK version... " >&6; }
22001               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22002               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22003 $as_echo "$BOOT_JDK_VERSION" >&6; }
22004             fi # end check jdk version
22005           fi # end check rt.jar
22006         fi # end check javac
22007       fi # end check java
22008     fi # end check boot jdk found
22009   fi
22010 
22011     done
22012   fi
22013 
22014   fi
22015 
22016 
22017     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22018     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22019       # Do we have a bin/java?
22020       if test ! -x "$BOOT_JDK/bin/java"; then
22021         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22022 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22023         BOOT_JDK_FOUND=no
22024       else
22025         # Do we have a bin/javac?
22026         if test ! -x "$BOOT_JDK/bin/javac"; then
22027           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22029           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22030 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22031           BOOT_JDK_FOUND=no
22032         else
22033           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22034           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22035             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22036 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22037             BOOT_JDK_FOUND=no
22038           else
22039             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22040             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22041 
22042             # Extra M4 quote needed to protect [] in grep expression.
22043             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22044             if test "x$FOUND_CORRECT_VERSION" = x; then
22045               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22047               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22048 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22049               BOOT_JDK_FOUND=no
22050             else
22051               # We're done! :-)
22052               BOOT_JDK_FOUND=yes
22053 
22054   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22055 
22056   # Input might be given as Windows format, start by converting to
22057   # unix format.
22058   path="$BOOT_JDK"
22059   new_path=`$CYGPATH -u "$path"`
22060 
22061   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22062   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22063   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22064   # "foo.exe" is OK but "foo" is an error.
22065   #
22066   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22067   # It is also a way to make sure we got the proper file name for the real test later on.
22068   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22069   if test "x$test_shortpath" = x; then
22070     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22071 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22072     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22073   fi
22074 
22075   # Call helper function which possibly converts this using DOS-style short mode.
22076   # If so, the updated path is stored in $new_path.
22077 
22078   input_path="$new_path"
22079   # Check if we need to convert this using DOS-style short mode. If the path
22080   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22081   # take no chances and rewrite it.
22082   # Note: m4 eats our [], so we need to use [ and ] instead.
22083   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22084   if test "x$has_forbidden_chars" != x; then
22085     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22086     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22087     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22088     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22089       # Going to short mode and back again did indeed matter. Since short mode is
22090       # case insensitive, let's make it lowercase to improve readability.
22091       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22092       # Now convert it back to Unix-stile (cygpath)
22093       input_path=`$CYGPATH -u "$shortmode_path"`
22094       new_path="$input_path"
22095     fi
22096   fi
22097 
22098   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22099   if test "x$test_cygdrive_prefix" = x; then
22100     # As a simple fix, exclude /usr/bin since it's not a real path.
22101     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22102       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22103       # a path prefixed by /cygdrive for fixpath to work.
22104       new_path="$CYGWIN_ROOT_PATH$input_path"
22105     fi
22106   fi
22107 
22108 
22109   if test "x$path" != "x$new_path"; then
22110     BOOT_JDK="$new_path"
22111     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22113   fi
22114 
22115   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22116 
22117   path="$BOOT_JDK"
22118   has_colon=`$ECHO $path | $GREP ^.:`
22119   new_path="$path"
22120   if test "x$has_colon" = x; then
22121     # Not in mixed or Windows style, start by that.
22122     new_path=`cmd //c echo $path`
22123   fi
22124 
22125 
22126   input_path="$new_path"
22127   # Check if we need to convert this using DOS-style short mode. If the path
22128   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22129   # take no chances and rewrite it.
22130   # Note: m4 eats our [], so we need to use [ and ] instead.
22131   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22132   if test "x$has_forbidden_chars" != x; then
22133     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22134     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22135   fi
22136 
22137 
22138   windows_path="$new_path"
22139   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22140     unix_path=`$CYGPATH -u "$windows_path"`
22141     new_path="$unix_path"
22142   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22143     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22144     new_path="$unix_path"
22145   fi
22146 
22147   if test "x$path" != "x$new_path"; then
22148     BOOT_JDK="$new_path"
22149     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22150 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22151   fi
22152 
22153   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22154   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22155 
22156   else
22157     # We're on a posix platform. Hooray! :)
22158     path="$BOOT_JDK"
22159     has_space=`$ECHO "$path" | $GREP " "`
22160     if test "x$has_space" != x; then
22161       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22162 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22163       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22164     fi
22165 
22166     # Use eval to expand a potential ~
22167     eval path="$path"
22168     if test ! -f "$path" && test ! -d "$path"; then
22169       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22170     fi
22171 
22172     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22173   fi
22174 
22175               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22176 $as_echo_n "checking for Boot JDK... " >&6; }
22177               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22178 $as_echo "$BOOT_JDK" >&6; }
22179               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22180 $as_echo_n "checking Boot JDK version... " >&6; }
22181               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22182               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22183 $as_echo "$BOOT_JDK_VERSION" >&6; }
22184             fi # end check jdk version
22185           fi # end check rt.jar
22186         fi # end check javac
22187       fi # end check java
22188     fi # end check boot jdk found
22189   fi
22190 
22191 
22192   if test "x$BOOT_JDK_FOUND" = xno; then
22193     # Now execute the test
22194 
22195   if test "x$PROGRAMW6432" != x; then
22196     VIRTUAL_DIR="$PROGRAMW6432/Java"
22197 
22198   windows_path="$VIRTUAL_DIR"
22199   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22200     unix_path=`$CYGPATH -u "$windows_path"`
22201     VIRTUAL_DIR="$unix_path"
22202   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22203     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22204     VIRTUAL_DIR="$unix_path"
22205   fi
22206 
22207 
22208   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22209   BOOT_JDK_SUFFIX=""
22210   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22211   if test "x$ALL_JDKS_FOUND" != x; then
22212     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22213 
22214   if test "x$BOOT_JDK_FOUND" = xno; then
22215     # Now execute the test
22216 
22217         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22218         if test -d "$BOOT_JDK"; then
22219           BOOT_JDK_FOUND=maybe
22220           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22221 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22222         fi
22223 
22224 
22225     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22226     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22227       # Do we have a bin/java?
22228       if test ! -x "$BOOT_JDK/bin/java"; then
22229         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22230 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22231         BOOT_JDK_FOUND=no
22232       else
22233         # Do we have a bin/javac?
22234         if test ! -x "$BOOT_JDK/bin/javac"; then
22235           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22236 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22237           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22238 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22239           BOOT_JDK_FOUND=no
22240         else
22241           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22242           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22243             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22244 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22245             BOOT_JDK_FOUND=no
22246           else
22247             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22248             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22249 
22250             # Extra M4 quote needed to protect [] in grep expression.
22251             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22252             if test "x$FOUND_CORRECT_VERSION" = x; then
22253               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22254 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22255               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22256 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22257               BOOT_JDK_FOUND=no
22258             else
22259               # We're done! :-)
22260               BOOT_JDK_FOUND=yes
22261 
22262   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22263 
22264   # Input might be given as Windows format, start by converting to
22265   # unix format.
22266   path="$BOOT_JDK"
22267   new_path=`$CYGPATH -u "$path"`
22268 
22269   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22270   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22271   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22272   # "foo.exe" is OK but "foo" is an error.
22273   #
22274   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22275   # It is also a way to make sure we got the proper file name for the real test later on.
22276   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22277   if test "x$test_shortpath" = x; then
22278     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22279 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22280     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22281   fi
22282 
22283   # Call helper function which possibly converts this using DOS-style short mode.
22284   # If so, the updated path is stored in $new_path.
22285 
22286   input_path="$new_path"
22287   # Check if we need to convert this using DOS-style short mode. If the path
22288   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22289   # take no chances and rewrite it.
22290   # Note: m4 eats our [], so we need to use [ and ] instead.
22291   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22292   if test "x$has_forbidden_chars" != x; then
22293     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22294     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22295     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22296     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22297       # Going to short mode and back again did indeed matter. Since short mode is
22298       # case insensitive, let's make it lowercase to improve readability.
22299       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22300       # Now convert it back to Unix-stile (cygpath)
22301       input_path=`$CYGPATH -u "$shortmode_path"`
22302       new_path="$input_path"
22303     fi
22304   fi
22305 
22306   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22307   if test "x$test_cygdrive_prefix" = x; then
22308     # As a simple fix, exclude /usr/bin since it's not a real path.
22309     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22310       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22311       # a path prefixed by /cygdrive for fixpath to work.
22312       new_path="$CYGWIN_ROOT_PATH$input_path"
22313     fi
22314   fi
22315 
22316 
22317   if test "x$path" != "x$new_path"; then
22318     BOOT_JDK="$new_path"
22319     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22320 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22321   fi
22322 
22323   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22324 
22325   path="$BOOT_JDK"
22326   has_colon=`$ECHO $path | $GREP ^.:`
22327   new_path="$path"
22328   if test "x$has_colon" = x; then
22329     # Not in mixed or Windows style, start by that.
22330     new_path=`cmd //c echo $path`
22331   fi
22332 
22333 
22334   input_path="$new_path"
22335   # Check if we need to convert this using DOS-style short mode. If the path
22336   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22337   # take no chances and rewrite it.
22338   # Note: m4 eats our [], so we need to use [ and ] instead.
22339   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22340   if test "x$has_forbidden_chars" != x; then
22341     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22342     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22343   fi
22344 
22345 
22346   windows_path="$new_path"
22347   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22348     unix_path=`$CYGPATH -u "$windows_path"`
22349     new_path="$unix_path"
22350   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22351     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22352     new_path="$unix_path"
22353   fi
22354 
22355   if test "x$path" != "x$new_path"; then
22356     BOOT_JDK="$new_path"
22357     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22358 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22359   fi
22360 
22361   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22362   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22363 
22364   else
22365     # We're on a posix platform. Hooray! :)
22366     path="$BOOT_JDK"
22367     has_space=`$ECHO "$path" | $GREP " "`
22368     if test "x$has_space" != x; then
22369       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22370 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22371       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22372     fi
22373 
22374     # Use eval to expand a potential ~
22375     eval path="$path"
22376     if test ! -f "$path" && test ! -d "$path"; then
22377       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22378     fi
22379 
22380     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22381   fi
22382 
22383               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22384 $as_echo_n "checking for Boot JDK... " >&6; }
22385               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22386 $as_echo "$BOOT_JDK" >&6; }
22387               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22388 $as_echo_n "checking Boot JDK version... " >&6; }
22389               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22390               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22391 $as_echo "$BOOT_JDK_VERSION" >&6; }
22392             fi # end check jdk version
22393           fi # end check rt.jar
22394         fi # end check javac
22395       fi # end check java
22396     fi # end check boot jdk found
22397   fi
22398 
22399     done
22400   fi
22401 
22402   fi
22403 
22404 
22405     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22406     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22407       # Do we have a bin/java?
22408       if test ! -x "$BOOT_JDK/bin/java"; then
22409         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22410 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22411         BOOT_JDK_FOUND=no
22412       else
22413         # Do we have a bin/javac?
22414         if test ! -x "$BOOT_JDK/bin/javac"; then
22415           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22417           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22418 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22419           BOOT_JDK_FOUND=no
22420         else
22421           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22422           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22423             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22424 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22425             BOOT_JDK_FOUND=no
22426           else
22427             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22428             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22429 
22430             # Extra M4 quote needed to protect [] in grep expression.
22431             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22432             if test "x$FOUND_CORRECT_VERSION" = x; then
22433               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22435               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22436 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22437               BOOT_JDK_FOUND=no
22438             else
22439               # We're done! :-)
22440               BOOT_JDK_FOUND=yes
22441 
22442   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22443 
22444   # Input might be given as Windows format, start by converting to
22445   # unix format.
22446   path="$BOOT_JDK"
22447   new_path=`$CYGPATH -u "$path"`
22448 
22449   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22450   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22451   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22452   # "foo.exe" is OK but "foo" is an error.
22453   #
22454   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22455   # It is also a way to make sure we got the proper file name for the real test later on.
22456   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22457   if test "x$test_shortpath" = x; then
22458     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22459 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22460     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22461   fi
22462 
22463   # Call helper function which possibly converts this using DOS-style short mode.
22464   # If so, the updated path is stored in $new_path.
22465 
22466   input_path="$new_path"
22467   # Check if we need to convert this using DOS-style short mode. If the path
22468   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22469   # take no chances and rewrite it.
22470   # Note: m4 eats our [], so we need to use [ and ] instead.
22471   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22472   if test "x$has_forbidden_chars" != x; then
22473     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22474     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22475     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22476     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22477       # Going to short mode and back again did indeed matter. Since short mode is
22478       # case insensitive, let's make it lowercase to improve readability.
22479       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22480       # Now convert it back to Unix-stile (cygpath)
22481       input_path=`$CYGPATH -u "$shortmode_path"`
22482       new_path="$input_path"
22483     fi
22484   fi
22485 
22486   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22487   if test "x$test_cygdrive_prefix" = x; then
22488     # As a simple fix, exclude /usr/bin since it's not a real path.
22489     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22490       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22491       # a path prefixed by /cygdrive for fixpath to work.
22492       new_path="$CYGWIN_ROOT_PATH$input_path"
22493     fi
22494   fi
22495 
22496 
22497   if test "x$path" != "x$new_path"; then
22498     BOOT_JDK="$new_path"
22499     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22500 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22501   fi
22502 
22503   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22504 
22505   path="$BOOT_JDK"
22506   has_colon=`$ECHO $path | $GREP ^.:`
22507   new_path="$path"
22508   if test "x$has_colon" = x; then
22509     # Not in mixed or Windows style, start by that.
22510     new_path=`cmd //c echo $path`
22511   fi
22512 
22513 
22514   input_path="$new_path"
22515   # Check if we need to convert this using DOS-style short mode. If the path
22516   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22517   # take no chances and rewrite it.
22518   # Note: m4 eats our [], so we need to use [ and ] instead.
22519   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22520   if test "x$has_forbidden_chars" != x; then
22521     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22522     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22523   fi
22524 
22525 
22526   windows_path="$new_path"
22527   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22528     unix_path=`$CYGPATH -u "$windows_path"`
22529     new_path="$unix_path"
22530   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22531     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22532     new_path="$unix_path"
22533   fi
22534 
22535   if test "x$path" != "x$new_path"; then
22536     BOOT_JDK="$new_path"
22537     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22538 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22539   fi
22540 
22541   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22542   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22543 
22544   else
22545     # We're on a posix platform. Hooray! :)
22546     path="$BOOT_JDK"
22547     has_space=`$ECHO "$path" | $GREP " "`
22548     if test "x$has_space" != x; then
22549       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22550 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22551       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22552     fi
22553 
22554     # Use eval to expand a potential ~
22555     eval path="$path"
22556     if test ! -f "$path" && test ! -d "$path"; then
22557       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22558     fi
22559 
22560     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22561   fi
22562 
22563               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22564 $as_echo_n "checking for Boot JDK... " >&6; }
22565               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22566 $as_echo "$BOOT_JDK" >&6; }
22567               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22568 $as_echo_n "checking Boot JDK version... " >&6; }
22569               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22570               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22571 $as_echo "$BOOT_JDK_VERSION" >&6; }
22572             fi # end check jdk version
22573           fi # end check rt.jar
22574         fi # end check javac
22575       fi # end check java
22576     fi # end check boot jdk found
22577   fi
22578 
22579 
22580   if test "x$BOOT_JDK_FOUND" = xno; then
22581     # Now execute the test
22582 
22583   if test "x$PROGRAMFILES" != x; then
22584     VIRTUAL_DIR="$PROGRAMFILES/Java"
22585 
22586   windows_path="$VIRTUAL_DIR"
22587   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22588     unix_path=`$CYGPATH -u "$windows_path"`
22589     VIRTUAL_DIR="$unix_path"
22590   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22591     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22592     VIRTUAL_DIR="$unix_path"
22593   fi
22594 
22595 
22596   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22597   BOOT_JDK_SUFFIX=""
22598   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22599   if test "x$ALL_JDKS_FOUND" != x; then
22600     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22601 
22602   if test "x$BOOT_JDK_FOUND" = xno; then
22603     # Now execute the test
22604 
22605         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22606         if test -d "$BOOT_JDK"; then
22607           BOOT_JDK_FOUND=maybe
22608           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22609 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22610         fi
22611 
22612 
22613     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22614     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22615       # Do we have a bin/java?
22616       if test ! -x "$BOOT_JDK/bin/java"; then
22617         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22618 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22619         BOOT_JDK_FOUND=no
22620       else
22621         # Do we have a bin/javac?
22622         if test ! -x "$BOOT_JDK/bin/javac"; then
22623           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22625           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22626 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22627           BOOT_JDK_FOUND=no
22628         else
22629           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22630           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22631             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22633             BOOT_JDK_FOUND=no
22634           else
22635             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22636             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22637 
22638             # Extra M4 quote needed to protect [] in grep expression.
22639             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22640             if test "x$FOUND_CORRECT_VERSION" = x; then
22641               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22643               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22644 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22645               BOOT_JDK_FOUND=no
22646             else
22647               # We're done! :-)
22648               BOOT_JDK_FOUND=yes
22649 
22650   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22651 
22652   # Input might be given as Windows format, start by converting to
22653   # unix format.
22654   path="$BOOT_JDK"
22655   new_path=`$CYGPATH -u "$path"`
22656 
22657   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22658   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22659   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22660   # "foo.exe" is OK but "foo" is an error.
22661   #
22662   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22663   # It is also a way to make sure we got the proper file name for the real test later on.
22664   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22665   if test "x$test_shortpath" = x; then
22666     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22667 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22668     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22669   fi
22670 
22671   # Call helper function which possibly converts this using DOS-style short mode.
22672   # If so, the updated path is stored in $new_path.
22673 
22674   input_path="$new_path"
22675   # Check if we need to convert this using DOS-style short mode. If the path
22676   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22677   # take no chances and rewrite it.
22678   # Note: m4 eats our [], so we need to use [ and ] instead.
22679   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22680   if test "x$has_forbidden_chars" != x; then
22681     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22682     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22683     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22684     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22685       # Going to short mode and back again did indeed matter. Since short mode is
22686       # case insensitive, let's make it lowercase to improve readability.
22687       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22688       # Now convert it back to Unix-stile (cygpath)
22689       input_path=`$CYGPATH -u "$shortmode_path"`
22690       new_path="$input_path"
22691     fi
22692   fi
22693 
22694   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22695   if test "x$test_cygdrive_prefix" = x; then
22696     # As a simple fix, exclude /usr/bin since it's not a real path.
22697     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22698       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22699       # a path prefixed by /cygdrive for fixpath to work.
22700       new_path="$CYGWIN_ROOT_PATH$input_path"
22701     fi
22702   fi
22703 
22704 
22705   if test "x$path" != "x$new_path"; then
22706     BOOT_JDK="$new_path"
22707     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22708 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22709   fi
22710 
22711   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22712 
22713   path="$BOOT_JDK"
22714   has_colon=`$ECHO $path | $GREP ^.:`
22715   new_path="$path"
22716   if test "x$has_colon" = x; then
22717     # Not in mixed or Windows style, start by that.
22718     new_path=`cmd //c echo $path`
22719   fi
22720 
22721 
22722   input_path="$new_path"
22723   # Check if we need to convert this using DOS-style short mode. If the path
22724   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22725   # take no chances and rewrite it.
22726   # Note: m4 eats our [], so we need to use [ and ] instead.
22727   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22728   if test "x$has_forbidden_chars" != x; then
22729     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22730     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22731   fi
22732 
22733 
22734   windows_path="$new_path"
22735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22736     unix_path=`$CYGPATH -u "$windows_path"`
22737     new_path="$unix_path"
22738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22740     new_path="$unix_path"
22741   fi
22742 
22743   if test "x$path" != "x$new_path"; then
22744     BOOT_JDK="$new_path"
22745     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22746 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22747   fi
22748 
22749   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22750   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22751 
22752   else
22753     # We're on a posix platform. Hooray! :)
22754     path="$BOOT_JDK"
22755     has_space=`$ECHO "$path" | $GREP " "`
22756     if test "x$has_space" != x; then
22757       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22758 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22759       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22760     fi
22761 
22762     # Use eval to expand a potential ~
22763     eval path="$path"
22764     if test ! -f "$path" && test ! -d "$path"; then
22765       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22766     fi
22767 
22768     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22769   fi
22770 
22771               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22772 $as_echo_n "checking for Boot JDK... " >&6; }
22773               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22774 $as_echo "$BOOT_JDK" >&6; }
22775               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22776 $as_echo_n "checking Boot JDK version... " >&6; }
22777               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22778               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22779 $as_echo "$BOOT_JDK_VERSION" >&6; }
22780             fi # end check jdk version
22781           fi # end check rt.jar
22782         fi # end check javac
22783       fi # end check java
22784     fi # end check boot jdk found
22785   fi
22786 
22787     done
22788   fi
22789 
22790   fi
22791 
22792 
22793     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22794     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22795       # Do we have a bin/java?
22796       if test ! -x "$BOOT_JDK/bin/java"; then
22797         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22798 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22799         BOOT_JDK_FOUND=no
22800       else
22801         # Do we have a bin/javac?
22802         if test ! -x "$BOOT_JDK/bin/javac"; then
22803           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22804 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22805           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22806 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22807           BOOT_JDK_FOUND=no
22808         else
22809           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22810           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22811             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22812 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22813             BOOT_JDK_FOUND=no
22814           else
22815             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22816             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22817 
22818             # Extra M4 quote needed to protect [] in grep expression.
22819             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
22820             if test "x$FOUND_CORRECT_VERSION" = x; then
22821               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22822 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22823               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
22824 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
22825               BOOT_JDK_FOUND=no
22826             else
22827               # We're done! :-)
22828               BOOT_JDK_FOUND=yes
22829 
22830   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22831 
22832   # Input might be given as Windows format, start by converting to
22833   # unix format.
22834   path="$BOOT_JDK"
22835   new_path=`$CYGPATH -u "$path"`
22836 
22837   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22838   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22839   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22840   # "foo.exe" is OK but "foo" is an error.
22841   #
22842   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22843   # It is also a way to make sure we got the proper file name for the real test later on.
22844   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22845   if test "x$test_shortpath" = x; then
22846     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22847 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22848     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22849   fi
22850 
22851   # Call helper function which possibly converts this using DOS-style short mode.
22852   # If so, the updated path is stored in $new_path.
22853 
22854   input_path="$new_path"
22855   # Check if we need to convert this using DOS-style short mode. If the path
22856   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22857   # take no chances and rewrite it.
22858   # Note: m4 eats our [], so we need to use [ and ] instead.
22859   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22860   if test "x$has_forbidden_chars" != x; then
22861     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22862     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22863     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22864     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22865       # Going to short mode and back again did indeed matter. Since short mode is
22866       # case insensitive, let's make it lowercase to improve readability.
22867       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22868       # Now convert it back to Unix-stile (cygpath)
22869       input_path=`$CYGPATH -u "$shortmode_path"`
22870       new_path="$input_path"
22871     fi
22872   fi
22873 
22874   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22875   if test "x$test_cygdrive_prefix" = x; then
22876     # As a simple fix, exclude /usr/bin since it's not a real path.
22877     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22878       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22879       # a path prefixed by /cygdrive for fixpath to work.
22880       new_path="$CYGWIN_ROOT_PATH$input_path"
22881     fi
22882   fi
22883 
22884 
22885   if test "x$path" != "x$new_path"; then
22886     BOOT_JDK="$new_path"
22887     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22888 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22889   fi
22890 
22891   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22892 
22893   path="$BOOT_JDK"
22894   has_colon=`$ECHO $path | $GREP ^.:`
22895   new_path="$path"
22896   if test "x$has_colon" = x; then
22897     # Not in mixed or Windows style, start by that.
22898     new_path=`cmd //c echo $path`
22899   fi
22900 
22901 
22902   input_path="$new_path"
22903   # Check if we need to convert this using DOS-style short mode. If the path
22904   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22905   # take no chances and rewrite it.
22906   # Note: m4 eats our [], so we need to use [ and ] instead.
22907   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22908   if test "x$has_forbidden_chars" != x; then
22909     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22910     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22911   fi
22912 
22913 
22914   windows_path="$new_path"
22915   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22916     unix_path=`$CYGPATH -u "$windows_path"`
22917     new_path="$unix_path"
22918   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22919     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22920     new_path="$unix_path"
22921   fi
22922 
22923   if test "x$path" != "x$new_path"; then
22924     BOOT_JDK="$new_path"
22925     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22926 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22927   fi
22928 
22929   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22930   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22931 
22932   else
22933     # We're on a posix platform. Hooray! :)
22934     path="$BOOT_JDK"
22935     has_space=`$ECHO "$path" | $GREP " "`
22936     if test "x$has_space" != x; then
22937       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22938 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22939       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22940     fi
22941 
22942     # Use eval to expand a potential ~
22943     eval path="$path"
22944     if test ! -f "$path" && test ! -d "$path"; then
22945       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22946     fi
22947 
22948     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22949   fi
22950 
22951               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22952 $as_echo_n "checking for Boot JDK... " >&6; }
22953               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22954 $as_echo "$BOOT_JDK" >&6; }
22955               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22956 $as_echo_n "checking Boot JDK version... " >&6; }
22957               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22958               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22959 $as_echo "$BOOT_JDK_VERSION" >&6; }
22960             fi # end check jdk version
22961           fi # end check rt.jar
22962         fi # end check javac
22963       fi # end check java
22964     fi # end check boot jdk found
22965   fi
22966 
22967 
22968   if test "x$BOOT_JDK_FOUND" = xno; then
22969     # Now execute the test
22970 
22971   if test "x$ProgramFiles" != x; then
22972     VIRTUAL_DIR="$ProgramFiles/Java"
22973 
22974   windows_path="$VIRTUAL_DIR"
22975   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22976     unix_path=`$CYGPATH -u "$windows_path"`
22977     VIRTUAL_DIR="$unix_path"
22978   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22979     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22980     VIRTUAL_DIR="$unix_path"
22981   fi
22982 
22983 
22984   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22985   BOOT_JDK_SUFFIX=""
22986   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22987   if test "x$ALL_JDKS_FOUND" != x; then
22988     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22989 
22990   if test "x$BOOT_JDK_FOUND" = xno; then
22991     # Now execute the test
22992 
22993         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22994         if test -d "$BOOT_JDK"; then
22995           BOOT_JDK_FOUND=maybe
22996           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22997 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22998         fi
22999 
23000 
23001     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23002     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23003       # Do we have a bin/java?
23004       if test ! -x "$BOOT_JDK/bin/java"; then
23005         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23007         BOOT_JDK_FOUND=no
23008       else
23009         # Do we have a bin/javac?
23010         if test ! -x "$BOOT_JDK/bin/javac"; then
23011           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23012 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23013           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23014 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23015           BOOT_JDK_FOUND=no
23016         else
23017           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23018           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23019             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23021             BOOT_JDK_FOUND=no
23022           else
23023             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23024             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23025 
23026             # Extra M4 quote needed to protect [] in grep expression.
23027             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23028             if test "x$FOUND_CORRECT_VERSION" = x; then
23029               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23031               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23032 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23033               BOOT_JDK_FOUND=no
23034             else
23035               # We're done! :-)
23036               BOOT_JDK_FOUND=yes
23037 
23038   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23039 
23040   # Input might be given as Windows format, start by converting to
23041   # unix format.
23042   path="$BOOT_JDK"
23043   new_path=`$CYGPATH -u "$path"`
23044 
23045   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23046   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23047   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23048   # "foo.exe" is OK but "foo" is an error.
23049   #
23050   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23051   # It is also a way to make sure we got the proper file name for the real test later on.
23052   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23053   if test "x$test_shortpath" = x; then
23054     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23055 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23056     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23057   fi
23058 
23059   # Call helper function which possibly converts this using DOS-style short mode.
23060   # If so, the updated path is stored in $new_path.
23061 
23062   input_path="$new_path"
23063   # Check if we need to convert this using DOS-style short mode. If the path
23064   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23065   # take no chances and rewrite it.
23066   # Note: m4 eats our [], so we need to use [ and ] instead.
23067   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23068   if test "x$has_forbidden_chars" != x; then
23069     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23070     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23071     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23072     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23073       # Going to short mode and back again did indeed matter. Since short mode is
23074       # case insensitive, let's make it lowercase to improve readability.
23075       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23076       # Now convert it back to Unix-stile (cygpath)
23077       input_path=`$CYGPATH -u "$shortmode_path"`
23078       new_path="$input_path"
23079     fi
23080   fi
23081 
23082   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23083   if test "x$test_cygdrive_prefix" = x; then
23084     # As a simple fix, exclude /usr/bin since it's not a real path.
23085     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23086       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23087       # a path prefixed by /cygdrive for fixpath to work.
23088       new_path="$CYGWIN_ROOT_PATH$input_path"
23089     fi
23090   fi
23091 
23092 
23093   if test "x$path" != "x$new_path"; then
23094     BOOT_JDK="$new_path"
23095     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23096 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23097   fi
23098 
23099   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23100 
23101   path="$BOOT_JDK"
23102   has_colon=`$ECHO $path | $GREP ^.:`
23103   new_path="$path"
23104   if test "x$has_colon" = x; then
23105     # Not in mixed or Windows style, start by that.
23106     new_path=`cmd //c echo $path`
23107   fi
23108 
23109 
23110   input_path="$new_path"
23111   # Check if we need to convert this using DOS-style short mode. If the path
23112   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23113   # take no chances and rewrite it.
23114   # Note: m4 eats our [], so we need to use [ and ] instead.
23115   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23116   if test "x$has_forbidden_chars" != x; then
23117     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23118     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23119   fi
23120 
23121 
23122   windows_path="$new_path"
23123   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23124     unix_path=`$CYGPATH -u "$windows_path"`
23125     new_path="$unix_path"
23126   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23127     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23128     new_path="$unix_path"
23129   fi
23130 
23131   if test "x$path" != "x$new_path"; then
23132     BOOT_JDK="$new_path"
23133     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23134 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23135   fi
23136 
23137   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23138   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23139 
23140   else
23141     # We're on a posix platform. Hooray! :)
23142     path="$BOOT_JDK"
23143     has_space=`$ECHO "$path" | $GREP " "`
23144     if test "x$has_space" != x; then
23145       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23146 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23147       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23148     fi
23149 
23150     # Use eval to expand a potential ~
23151     eval path="$path"
23152     if test ! -f "$path" && test ! -d "$path"; then
23153       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23154     fi
23155 
23156     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23157   fi
23158 
23159               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23160 $as_echo_n "checking for Boot JDK... " >&6; }
23161               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23162 $as_echo "$BOOT_JDK" >&6; }
23163               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23164 $as_echo_n "checking Boot JDK version... " >&6; }
23165               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23166               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23167 $as_echo "$BOOT_JDK_VERSION" >&6; }
23168             fi # end check jdk version
23169           fi # end check rt.jar
23170         fi # end check javac
23171       fi # end check java
23172     fi # end check boot jdk found
23173   fi
23174 
23175     done
23176   fi
23177 
23178   fi
23179 
23180 
23181     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23182     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23183       # Do we have a bin/java?
23184       if test ! -x "$BOOT_JDK/bin/java"; then
23185         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23186 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23187         BOOT_JDK_FOUND=no
23188       else
23189         # Do we have a bin/javac?
23190         if test ! -x "$BOOT_JDK/bin/javac"; then
23191           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23192 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23193           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23194 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23195           BOOT_JDK_FOUND=no
23196         else
23197           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23198           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23199             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23201             BOOT_JDK_FOUND=no
23202           else
23203             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23204             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23205 
23206             # Extra M4 quote needed to protect [] in grep expression.
23207             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23208             if test "x$FOUND_CORRECT_VERSION" = x; then
23209               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23210 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23211               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23212 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23213               BOOT_JDK_FOUND=no
23214             else
23215               # We're done! :-)
23216               BOOT_JDK_FOUND=yes
23217 
23218   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23219 
23220   # Input might be given as Windows format, start by converting to
23221   # unix format.
23222   path="$BOOT_JDK"
23223   new_path=`$CYGPATH -u "$path"`
23224 
23225   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23226   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23227   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23228   # "foo.exe" is OK but "foo" is an error.
23229   #
23230   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23231   # It is also a way to make sure we got the proper file name for the real test later on.
23232   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23233   if test "x$test_shortpath" = x; then
23234     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23235 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23236     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23237   fi
23238 
23239   # Call helper function which possibly converts this using DOS-style short mode.
23240   # If so, the updated path is stored in $new_path.
23241 
23242   input_path="$new_path"
23243   # Check if we need to convert this using DOS-style short mode. If the path
23244   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23245   # take no chances and rewrite it.
23246   # Note: m4 eats our [], so we need to use [ and ] instead.
23247   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23248   if test "x$has_forbidden_chars" != x; then
23249     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23250     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23251     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23252     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23253       # Going to short mode and back again did indeed matter. Since short mode is
23254       # case insensitive, let's make it lowercase to improve readability.
23255       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23256       # Now convert it back to Unix-stile (cygpath)
23257       input_path=`$CYGPATH -u "$shortmode_path"`
23258       new_path="$input_path"
23259     fi
23260   fi
23261 
23262   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23263   if test "x$test_cygdrive_prefix" = x; then
23264     # As a simple fix, exclude /usr/bin since it's not a real path.
23265     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23266       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23267       # a path prefixed by /cygdrive for fixpath to work.
23268       new_path="$CYGWIN_ROOT_PATH$input_path"
23269     fi
23270   fi
23271 
23272 
23273   if test "x$path" != "x$new_path"; then
23274     BOOT_JDK="$new_path"
23275     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23276 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23277   fi
23278 
23279   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23280 
23281   path="$BOOT_JDK"
23282   has_colon=`$ECHO $path | $GREP ^.:`
23283   new_path="$path"
23284   if test "x$has_colon" = x; then
23285     # Not in mixed or Windows style, start by that.
23286     new_path=`cmd //c echo $path`
23287   fi
23288 
23289 
23290   input_path="$new_path"
23291   # Check if we need to convert this using DOS-style short mode. If the path
23292   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23293   # take no chances and rewrite it.
23294   # Note: m4 eats our [], so we need to use [ and ] instead.
23295   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23296   if test "x$has_forbidden_chars" != x; then
23297     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23298     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23299   fi
23300 
23301 
23302   windows_path="$new_path"
23303   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23304     unix_path=`$CYGPATH -u "$windows_path"`
23305     new_path="$unix_path"
23306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23307     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23308     new_path="$unix_path"
23309   fi
23310 
23311   if test "x$path" != "x$new_path"; then
23312     BOOT_JDK="$new_path"
23313     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23314 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23315   fi
23316 
23317   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23318   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23319 
23320   else
23321     # We're on a posix platform. Hooray! :)
23322     path="$BOOT_JDK"
23323     has_space=`$ECHO "$path" | $GREP " "`
23324     if test "x$has_space" != x; then
23325       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23326 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23327       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23328     fi
23329 
23330     # Use eval to expand a potential ~
23331     eval path="$path"
23332     if test ! -f "$path" && test ! -d "$path"; then
23333       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23334     fi
23335 
23336     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23337   fi
23338 
23339               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23340 $as_echo_n "checking for Boot JDK... " >&6; }
23341               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23342 $as_echo "$BOOT_JDK" >&6; }
23343               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23344 $as_echo_n "checking Boot JDK version... " >&6; }
23345               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23346               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23347 $as_echo "$BOOT_JDK_VERSION" >&6; }
23348             fi # end check jdk version
23349           fi # end check rt.jar
23350         fi # end check javac
23351       fi # end check java
23352     fi # end check boot jdk found
23353   fi
23354 
23355 
23356   if test "x$BOOT_JDK_FOUND" = xno; then
23357     # Now execute the test
23358 
23359   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
23360   BOOT_JDK_SUFFIX=""
23361   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23362   if test "x$ALL_JDKS_FOUND" != x; then
23363     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23364 
23365   if test "x$BOOT_JDK_FOUND" = xno; then
23366     # Now execute the test
23367 
23368         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23369         if test -d "$BOOT_JDK"; then
23370           BOOT_JDK_FOUND=maybe
23371           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23372 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23373         fi
23374 
23375 
23376     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23377     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23378       # Do we have a bin/java?
23379       if test ! -x "$BOOT_JDK/bin/java"; then
23380         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23381 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23382         BOOT_JDK_FOUND=no
23383       else
23384         # Do we have a bin/javac?
23385         if test ! -x "$BOOT_JDK/bin/javac"; then
23386           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23388           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23389 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23390           BOOT_JDK_FOUND=no
23391         else
23392           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23393           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23394             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23395 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23396             BOOT_JDK_FOUND=no
23397           else
23398             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23399             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23400 
23401             # Extra M4 quote needed to protect [] in grep expression.
23402             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23403             if test "x$FOUND_CORRECT_VERSION" = x; then
23404               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23405 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23406               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23407 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23408               BOOT_JDK_FOUND=no
23409             else
23410               # We're done! :-)
23411               BOOT_JDK_FOUND=yes
23412 
23413   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23414 
23415   # Input might be given as Windows format, start by converting to
23416   # unix format.
23417   path="$BOOT_JDK"
23418   new_path=`$CYGPATH -u "$path"`
23419 
23420   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23421   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23422   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23423   # "foo.exe" is OK but "foo" is an error.
23424   #
23425   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23426   # It is also a way to make sure we got the proper file name for the real test later on.
23427   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23428   if test "x$test_shortpath" = x; then
23429     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23430 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23431     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23432   fi
23433 
23434   # Call helper function which possibly converts this using DOS-style short mode.
23435   # If so, the updated path is stored in $new_path.
23436 
23437   input_path="$new_path"
23438   # Check if we need to convert this using DOS-style short mode. If the path
23439   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23440   # take no chances and rewrite it.
23441   # Note: m4 eats our [], so we need to use [ and ] instead.
23442   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23443   if test "x$has_forbidden_chars" != x; then
23444     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23445     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23446     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23447     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23448       # Going to short mode and back again did indeed matter. Since short mode is
23449       # case insensitive, let's make it lowercase to improve readability.
23450       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23451       # Now convert it back to Unix-stile (cygpath)
23452       input_path=`$CYGPATH -u "$shortmode_path"`
23453       new_path="$input_path"
23454     fi
23455   fi
23456 
23457   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23458   if test "x$test_cygdrive_prefix" = x; then
23459     # As a simple fix, exclude /usr/bin since it's not a real path.
23460     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23461       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23462       # a path prefixed by /cygdrive for fixpath to work.
23463       new_path="$CYGWIN_ROOT_PATH$input_path"
23464     fi
23465   fi
23466 
23467 
23468   if test "x$path" != "x$new_path"; then
23469     BOOT_JDK="$new_path"
23470     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23471 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23472   fi
23473 
23474   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23475 
23476   path="$BOOT_JDK"
23477   has_colon=`$ECHO $path | $GREP ^.:`
23478   new_path="$path"
23479   if test "x$has_colon" = x; then
23480     # Not in mixed or Windows style, start by that.
23481     new_path=`cmd //c echo $path`
23482   fi
23483 
23484 
23485   input_path="$new_path"
23486   # Check if we need to convert this using DOS-style short mode. If the path
23487   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23488   # take no chances and rewrite it.
23489   # Note: m4 eats our [], so we need to use [ and ] instead.
23490   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23491   if test "x$has_forbidden_chars" != x; then
23492     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23493     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23494   fi
23495 
23496 
23497   windows_path="$new_path"
23498   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23499     unix_path=`$CYGPATH -u "$windows_path"`
23500     new_path="$unix_path"
23501   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23502     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23503     new_path="$unix_path"
23504   fi
23505 
23506   if test "x$path" != "x$new_path"; then
23507     BOOT_JDK="$new_path"
23508     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23509 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23510   fi
23511 
23512   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23513   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23514 
23515   else
23516     # We're on a posix platform. Hooray! :)
23517     path="$BOOT_JDK"
23518     has_space=`$ECHO "$path" | $GREP " "`
23519     if test "x$has_space" != x; then
23520       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23521 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23522       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23523     fi
23524 
23525     # Use eval to expand a potential ~
23526     eval path="$path"
23527     if test ! -f "$path" && test ! -d "$path"; then
23528       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23529     fi
23530 
23531     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23532   fi
23533 
23534               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23535 $as_echo_n "checking for Boot JDK... " >&6; }
23536               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23537 $as_echo "$BOOT_JDK" >&6; }
23538               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23539 $as_echo_n "checking Boot JDK version... " >&6; }
23540               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23541               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23542 $as_echo "$BOOT_JDK_VERSION" >&6; }
23543             fi # end check jdk version
23544           fi # end check rt.jar
23545         fi # end check javac
23546       fi # end check java
23547     fi # end check boot jdk found
23548   fi
23549 
23550     done
23551   fi
23552 
23553 
23554     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23555     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23556       # Do we have a bin/java?
23557       if test ! -x "$BOOT_JDK/bin/java"; then
23558         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23559 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23560         BOOT_JDK_FOUND=no
23561       else
23562         # Do we have a bin/javac?
23563         if test ! -x "$BOOT_JDK/bin/javac"; then
23564           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23566           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23567 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23568           BOOT_JDK_FOUND=no
23569         else
23570           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23571           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23572             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23574             BOOT_JDK_FOUND=no
23575           else
23576             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23577             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23578 
23579             # Extra M4 quote needed to protect [] in grep expression.
23580             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23581             if test "x$FOUND_CORRECT_VERSION" = x; then
23582               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23583 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23584               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23585 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23586               BOOT_JDK_FOUND=no
23587             else
23588               # We're done! :-)
23589               BOOT_JDK_FOUND=yes
23590 
23591   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23592 
23593   # Input might be given as Windows format, start by converting to
23594   # unix format.
23595   path="$BOOT_JDK"
23596   new_path=`$CYGPATH -u "$path"`
23597 
23598   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23599   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23600   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23601   # "foo.exe" is OK but "foo" is an error.
23602   #
23603   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23604   # It is also a way to make sure we got the proper file name for the real test later on.
23605   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23606   if test "x$test_shortpath" = x; then
23607     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23609     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23610   fi
23611 
23612   # Call helper function which possibly converts this using DOS-style short mode.
23613   # If so, the updated path is stored in $new_path.
23614 
23615   input_path="$new_path"
23616   # Check if we need to convert this using DOS-style short mode. If the path
23617   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23618   # take no chances and rewrite it.
23619   # Note: m4 eats our [], so we need to use [ and ] instead.
23620   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23621   if test "x$has_forbidden_chars" != x; then
23622     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23623     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23624     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23625     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23626       # Going to short mode and back again did indeed matter. Since short mode is
23627       # case insensitive, let's make it lowercase to improve readability.
23628       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23629       # Now convert it back to Unix-stile (cygpath)
23630       input_path=`$CYGPATH -u "$shortmode_path"`
23631       new_path="$input_path"
23632     fi
23633   fi
23634 
23635   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23636   if test "x$test_cygdrive_prefix" = x; then
23637     # As a simple fix, exclude /usr/bin since it's not a real path.
23638     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23639       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23640       # a path prefixed by /cygdrive for fixpath to work.
23641       new_path="$CYGWIN_ROOT_PATH$input_path"
23642     fi
23643   fi
23644 
23645 
23646   if test "x$path" != "x$new_path"; then
23647     BOOT_JDK="$new_path"
23648     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23649 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23650   fi
23651 
23652   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23653 
23654   path="$BOOT_JDK"
23655   has_colon=`$ECHO $path | $GREP ^.:`
23656   new_path="$path"
23657   if test "x$has_colon" = x; then
23658     # Not in mixed or Windows style, start by that.
23659     new_path=`cmd //c echo $path`
23660   fi
23661 
23662 
23663   input_path="$new_path"
23664   # Check if we need to convert this using DOS-style short mode. If the path
23665   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23666   # take no chances and rewrite it.
23667   # Note: m4 eats our [], so we need to use [ and ] instead.
23668   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23669   if test "x$has_forbidden_chars" != x; then
23670     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23671     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23672   fi
23673 
23674 
23675   windows_path="$new_path"
23676   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23677     unix_path=`$CYGPATH -u "$windows_path"`
23678     new_path="$unix_path"
23679   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23680     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23681     new_path="$unix_path"
23682   fi
23683 
23684   if test "x$path" != "x$new_path"; then
23685     BOOT_JDK="$new_path"
23686     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23687 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23688   fi
23689 
23690   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23691   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23692 
23693   else
23694     # We're on a posix platform. Hooray! :)
23695     path="$BOOT_JDK"
23696     has_space=`$ECHO "$path" | $GREP " "`
23697     if test "x$has_space" != x; then
23698       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23699 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23700       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23701     fi
23702 
23703     # Use eval to expand a potential ~
23704     eval path="$path"
23705     if test ! -f "$path" && test ! -d "$path"; then
23706       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23707     fi
23708 
23709     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23710   fi
23711 
23712               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23713 $as_echo_n "checking for Boot JDK... " >&6; }
23714               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23715 $as_echo "$BOOT_JDK" >&6; }
23716               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23717 $as_echo_n "checking Boot JDK version... " >&6; }
23718               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23719               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23720 $as_echo "$BOOT_JDK_VERSION" >&6; }
23721             fi # end check jdk version
23722           fi # end check rt.jar
23723         fi # end check javac
23724       fi # end check java
23725     fi # end check boot jdk found
23726   fi
23727 
23728   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23729 
23730   if test "x$BOOT_JDK_FOUND" = xno; then
23731     # Now execute the test
23732 
23733   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23734   BOOT_JDK_SUFFIX="/Contents/Home"
23735   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23736   if test "x$ALL_JDKS_FOUND" != x; then
23737     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23738 
23739   if test "x$BOOT_JDK_FOUND" = xno; then
23740     # Now execute the test
23741 
23742         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23743         if test -d "$BOOT_JDK"; then
23744           BOOT_JDK_FOUND=maybe
23745           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23746 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23747         fi
23748 
23749 
23750     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23751     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23752       # Do we have a bin/java?
23753       if test ! -x "$BOOT_JDK/bin/java"; then
23754         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23755 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23756         BOOT_JDK_FOUND=no
23757       else
23758         # Do we have a bin/javac?
23759         if test ! -x "$BOOT_JDK/bin/javac"; then
23760           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23761 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23762           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23763 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23764           BOOT_JDK_FOUND=no
23765         else
23766           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23767           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23768             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23770             BOOT_JDK_FOUND=no
23771           else
23772             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23773             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23774 
23775             # Extra M4 quote needed to protect [] in grep expression.
23776             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23777             if test "x$FOUND_CORRECT_VERSION" = x; then
23778               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23779 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23780               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23781 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23782               BOOT_JDK_FOUND=no
23783             else
23784               # We're done! :-)
23785               BOOT_JDK_FOUND=yes
23786 
23787   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23788 
23789   # Input might be given as Windows format, start by converting to
23790   # unix format.
23791   path="$BOOT_JDK"
23792   new_path=`$CYGPATH -u "$path"`
23793 
23794   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23795   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23796   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23797   # "foo.exe" is OK but "foo" is an error.
23798   #
23799   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23800   # It is also a way to make sure we got the proper file name for the real test later on.
23801   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23802   if test "x$test_shortpath" = x; then
23803     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23804 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23805     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23806   fi
23807 
23808   # Call helper function which possibly converts this using DOS-style short mode.
23809   # If so, the updated path is stored in $new_path.
23810 
23811   input_path="$new_path"
23812   # Check if we need to convert this using DOS-style short mode. If the path
23813   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23814   # take no chances and rewrite it.
23815   # Note: m4 eats our [], so we need to use [ and ] instead.
23816   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23817   if test "x$has_forbidden_chars" != x; then
23818     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23819     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23820     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23821     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23822       # Going to short mode and back again did indeed matter. Since short mode is
23823       # case insensitive, let's make it lowercase to improve readability.
23824       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23825       # Now convert it back to Unix-stile (cygpath)
23826       input_path=`$CYGPATH -u "$shortmode_path"`
23827       new_path="$input_path"
23828     fi
23829   fi
23830 
23831   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23832   if test "x$test_cygdrive_prefix" = x; then
23833     # As a simple fix, exclude /usr/bin since it's not a real path.
23834     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23835       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23836       # a path prefixed by /cygdrive for fixpath to work.
23837       new_path="$CYGWIN_ROOT_PATH$input_path"
23838     fi
23839   fi
23840 
23841 
23842   if test "x$path" != "x$new_path"; then
23843     BOOT_JDK="$new_path"
23844     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23845 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23846   fi
23847 
23848   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23849 
23850   path="$BOOT_JDK"
23851   has_colon=`$ECHO $path | $GREP ^.:`
23852   new_path="$path"
23853   if test "x$has_colon" = x; then
23854     # Not in mixed or Windows style, start by that.
23855     new_path=`cmd //c echo $path`
23856   fi
23857 
23858 
23859   input_path="$new_path"
23860   # Check if we need to convert this using DOS-style short mode. If the path
23861   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23862   # take no chances and rewrite it.
23863   # Note: m4 eats our [], so we need to use [ and ] instead.
23864   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23865   if test "x$has_forbidden_chars" != x; then
23866     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23867     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23868   fi
23869 
23870 
23871   windows_path="$new_path"
23872   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23873     unix_path=`$CYGPATH -u "$windows_path"`
23874     new_path="$unix_path"
23875   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23876     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23877     new_path="$unix_path"
23878   fi
23879 
23880   if test "x$path" != "x$new_path"; then
23881     BOOT_JDK="$new_path"
23882     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23883 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23884   fi
23885 
23886   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23887   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23888 
23889   else
23890     # We're on a posix platform. Hooray! :)
23891     path="$BOOT_JDK"
23892     has_space=`$ECHO "$path" | $GREP " "`
23893     if test "x$has_space" != x; then
23894       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23895 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23896       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23897     fi
23898 
23899     # Use eval to expand a potential ~
23900     eval path="$path"
23901     if test ! -f "$path" && test ! -d "$path"; then
23902       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23903     fi
23904 
23905     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23906   fi
23907 
23908               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23909 $as_echo_n "checking for Boot JDK... " >&6; }
23910               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23911 $as_echo "$BOOT_JDK" >&6; }
23912               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23913 $as_echo_n "checking Boot JDK version... " >&6; }
23914               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23915               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23916 $as_echo "$BOOT_JDK_VERSION" >&6; }
23917             fi # end check jdk version
23918           fi # end check rt.jar
23919         fi # end check javac
23920       fi # end check java
23921     fi # end check boot jdk found
23922   fi
23923 
23924     done
23925   fi
23926 
23927 
23928     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23929     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23930       # Do we have a bin/java?
23931       if test ! -x "$BOOT_JDK/bin/java"; then
23932         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23933 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23934         BOOT_JDK_FOUND=no
23935       else
23936         # Do we have a bin/javac?
23937         if test ! -x "$BOOT_JDK/bin/javac"; then
23938           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23939 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23940           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23941 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23942           BOOT_JDK_FOUND=no
23943         else
23944           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23945           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23946             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23948             BOOT_JDK_FOUND=no
23949           else
23950             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23951             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23952 
23953             # Extra M4 quote needed to protect [] in grep expression.
23954             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
23955             if test "x$FOUND_CORRECT_VERSION" = x; then
23956               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23957 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23958               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
23959 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
23960               BOOT_JDK_FOUND=no
23961             else
23962               # We're done! :-)
23963               BOOT_JDK_FOUND=yes
23964 
23965   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23966 
23967   # Input might be given as Windows format, start by converting to
23968   # unix format.
23969   path="$BOOT_JDK"
23970   new_path=`$CYGPATH -u "$path"`
23971 
23972   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23973   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23974   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23975   # "foo.exe" is OK but "foo" is an error.
23976   #
23977   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23978   # It is also a way to make sure we got the proper file name for the real test later on.
23979   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23980   if test "x$test_shortpath" = x; then
23981     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23983     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23984   fi
23985 
23986   # Call helper function which possibly converts this using DOS-style short mode.
23987   # If so, the updated path is stored in $new_path.
23988 
23989   input_path="$new_path"
23990   # Check if we need to convert this using DOS-style short mode. If the path
23991   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23992   # take no chances and rewrite it.
23993   # Note: m4 eats our [], so we need to use [ and ] instead.
23994   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23995   if test "x$has_forbidden_chars" != x; then
23996     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23997     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23998     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23999     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24000       # Going to short mode and back again did indeed matter. Since short mode is
24001       # case insensitive, let's make it lowercase to improve readability.
24002       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24003       # Now convert it back to Unix-stile (cygpath)
24004       input_path=`$CYGPATH -u "$shortmode_path"`
24005       new_path="$input_path"
24006     fi
24007   fi
24008 
24009   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24010   if test "x$test_cygdrive_prefix" = x; then
24011     # As a simple fix, exclude /usr/bin since it's not a real path.
24012     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24013       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24014       # a path prefixed by /cygdrive for fixpath to work.
24015       new_path="$CYGWIN_ROOT_PATH$input_path"
24016     fi
24017   fi
24018 
24019 
24020   if test "x$path" != "x$new_path"; then
24021     BOOT_JDK="$new_path"
24022     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24023 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24024   fi
24025 
24026   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24027 
24028   path="$BOOT_JDK"
24029   has_colon=`$ECHO $path | $GREP ^.:`
24030   new_path="$path"
24031   if test "x$has_colon" = x; then
24032     # Not in mixed or Windows style, start by that.
24033     new_path=`cmd //c echo $path`
24034   fi
24035 
24036 
24037   input_path="$new_path"
24038   # Check if we need to convert this using DOS-style short mode. If the path
24039   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24040   # take no chances and rewrite it.
24041   # Note: m4 eats our [], so we need to use [ and ] instead.
24042   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24043   if test "x$has_forbidden_chars" != x; then
24044     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24045     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24046   fi
24047 
24048 
24049   windows_path="$new_path"
24050   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24051     unix_path=`$CYGPATH -u "$windows_path"`
24052     new_path="$unix_path"
24053   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24054     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24055     new_path="$unix_path"
24056   fi
24057 
24058   if test "x$path" != "x$new_path"; then
24059     BOOT_JDK="$new_path"
24060     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24061 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24062   fi
24063 
24064   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24065   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24066 
24067   else
24068     # We're on a posix platform. Hooray! :)
24069     path="$BOOT_JDK"
24070     has_space=`$ECHO "$path" | $GREP " "`
24071     if test "x$has_space" != x; then
24072       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24073 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24074       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24075     fi
24076 
24077     # Use eval to expand a potential ~
24078     eval path="$path"
24079     if test ! -f "$path" && test ! -d "$path"; then
24080       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24081     fi
24082 
24083     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24084   fi
24085 
24086               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24087 $as_echo_n "checking for Boot JDK... " >&6; }
24088               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24089 $as_echo "$BOOT_JDK" >&6; }
24090               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24091 $as_echo_n "checking Boot JDK version... " >&6; }
24092               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24093               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24094 $as_echo "$BOOT_JDK_VERSION" >&6; }
24095             fi # end check jdk version
24096           fi # end check rt.jar
24097         fi # end check javac
24098       fi # end check java
24099     fi # end check boot jdk found
24100   fi
24101 
24102 
24103   if test "x$BOOT_JDK_FOUND" = xno; then
24104     # Now execute the test
24105 
24106   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
24107   BOOT_JDK_SUFFIX="/Contents/Home"
24108   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24109   if test "x$ALL_JDKS_FOUND" != x; then
24110     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24111 
24112   if test "x$BOOT_JDK_FOUND" = xno; then
24113     # Now execute the test
24114 
24115         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24116         if test -d "$BOOT_JDK"; then
24117           BOOT_JDK_FOUND=maybe
24118           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24119 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24120         fi
24121 
24122 
24123     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24124     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24125       # Do we have a bin/java?
24126       if test ! -x "$BOOT_JDK/bin/java"; then
24127         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24128 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24129         BOOT_JDK_FOUND=no
24130       else
24131         # Do we have a bin/javac?
24132         if test ! -x "$BOOT_JDK/bin/javac"; then
24133           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24134 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24135           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24136 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24137           BOOT_JDK_FOUND=no
24138         else
24139           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24140           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24141             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24143             BOOT_JDK_FOUND=no
24144           else
24145             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24146             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24147 
24148             # Extra M4 quote needed to protect [] in grep expression.
24149             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24150             if test "x$FOUND_CORRECT_VERSION" = x; then
24151               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24152 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24153               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24154 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24155               BOOT_JDK_FOUND=no
24156             else
24157               # We're done! :-)
24158               BOOT_JDK_FOUND=yes
24159 
24160   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24161 
24162   # Input might be given as Windows format, start by converting to
24163   # unix format.
24164   path="$BOOT_JDK"
24165   new_path=`$CYGPATH -u "$path"`
24166 
24167   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24168   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24169   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24170   # "foo.exe" is OK but "foo" is an error.
24171   #
24172   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24173   # It is also a way to make sure we got the proper file name for the real test later on.
24174   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24175   if test "x$test_shortpath" = x; then
24176     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24177 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24178     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24179   fi
24180 
24181   # Call helper function which possibly converts this using DOS-style short mode.
24182   # If so, the updated path is stored in $new_path.
24183 
24184   input_path="$new_path"
24185   # Check if we need to convert this using DOS-style short mode. If the path
24186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24187   # take no chances and rewrite it.
24188   # Note: m4 eats our [], so we need to use [ and ] instead.
24189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24190   if test "x$has_forbidden_chars" != x; then
24191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24192     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24193     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24194     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24195       # Going to short mode and back again did indeed matter. Since short mode is
24196       # case insensitive, let's make it lowercase to improve readability.
24197       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24198       # Now convert it back to Unix-stile (cygpath)
24199       input_path=`$CYGPATH -u "$shortmode_path"`
24200       new_path="$input_path"
24201     fi
24202   fi
24203 
24204   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24205   if test "x$test_cygdrive_prefix" = x; then
24206     # As a simple fix, exclude /usr/bin since it's not a real path.
24207     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24208       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24209       # a path prefixed by /cygdrive for fixpath to work.
24210       new_path="$CYGWIN_ROOT_PATH$input_path"
24211     fi
24212   fi
24213 
24214 
24215   if test "x$path" != "x$new_path"; then
24216     BOOT_JDK="$new_path"
24217     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24218 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24219   fi
24220 
24221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24222 
24223   path="$BOOT_JDK"
24224   has_colon=`$ECHO $path | $GREP ^.:`
24225   new_path="$path"
24226   if test "x$has_colon" = x; then
24227     # Not in mixed or Windows style, start by that.
24228     new_path=`cmd //c echo $path`
24229   fi
24230 
24231 
24232   input_path="$new_path"
24233   # Check if we need to convert this using DOS-style short mode. If the path
24234   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24235   # take no chances and rewrite it.
24236   # Note: m4 eats our [], so we need to use [ and ] instead.
24237   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24238   if test "x$has_forbidden_chars" != x; then
24239     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24240     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24241   fi
24242 
24243 
24244   windows_path="$new_path"
24245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24246     unix_path=`$CYGPATH -u "$windows_path"`
24247     new_path="$unix_path"
24248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24249     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24250     new_path="$unix_path"
24251   fi
24252 
24253   if test "x$path" != "x$new_path"; then
24254     BOOT_JDK="$new_path"
24255     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24257   fi
24258 
24259   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24260   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24261 
24262   else
24263     # We're on a posix platform. Hooray! :)
24264     path="$BOOT_JDK"
24265     has_space=`$ECHO "$path" | $GREP " "`
24266     if test "x$has_space" != x; then
24267       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24268 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24269       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24270     fi
24271 
24272     # Use eval to expand a potential ~
24273     eval path="$path"
24274     if test ! -f "$path" && test ! -d "$path"; then
24275       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24276     fi
24277 
24278     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24279   fi
24280 
24281               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24282 $as_echo_n "checking for Boot JDK... " >&6; }
24283               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24284 $as_echo "$BOOT_JDK" >&6; }
24285               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24286 $as_echo_n "checking Boot JDK version... " >&6; }
24287               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24288               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24289 $as_echo "$BOOT_JDK_VERSION" >&6; }
24290             fi # end check jdk version
24291           fi # end check rt.jar
24292         fi # end check javac
24293       fi # end check java
24294     fi # end check boot jdk found
24295   fi
24296 
24297     done
24298   fi
24299 
24300 
24301     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24302     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24303       # Do we have a bin/java?
24304       if test ! -x "$BOOT_JDK/bin/java"; then
24305         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24306 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24307         BOOT_JDK_FOUND=no
24308       else
24309         # Do we have a bin/javac?
24310         if test ! -x "$BOOT_JDK/bin/javac"; then
24311           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24312 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24313           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24314 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24315           BOOT_JDK_FOUND=no
24316         else
24317           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24318           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24319             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24320 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24321             BOOT_JDK_FOUND=no
24322           else
24323             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24324             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24325 
24326             # Extra M4 quote needed to protect [] in grep expression.
24327             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24328             if test "x$FOUND_CORRECT_VERSION" = x; then
24329               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24330 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24331               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24332 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24333               BOOT_JDK_FOUND=no
24334             else
24335               # We're done! :-)
24336               BOOT_JDK_FOUND=yes
24337 
24338   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24339 
24340   # Input might be given as Windows format, start by converting to
24341   # unix format.
24342   path="$BOOT_JDK"
24343   new_path=`$CYGPATH -u "$path"`
24344 
24345   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24346   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24347   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24348   # "foo.exe" is OK but "foo" is an error.
24349   #
24350   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24351   # It is also a way to make sure we got the proper file name for the real test later on.
24352   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24353   if test "x$test_shortpath" = x; then
24354     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24355 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24356     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24357   fi
24358 
24359   # Call helper function which possibly converts this using DOS-style short mode.
24360   # If so, the updated path is stored in $new_path.
24361 
24362   input_path="$new_path"
24363   # Check if we need to convert this using DOS-style short mode. If the path
24364   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24365   # take no chances and rewrite it.
24366   # Note: m4 eats our [], so we need to use [ and ] instead.
24367   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24368   if test "x$has_forbidden_chars" != x; then
24369     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24370     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24371     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24372     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24373       # Going to short mode and back again did indeed matter. Since short mode is
24374       # case insensitive, let's make it lowercase to improve readability.
24375       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24376       # Now convert it back to Unix-stile (cygpath)
24377       input_path=`$CYGPATH -u "$shortmode_path"`
24378       new_path="$input_path"
24379     fi
24380   fi
24381 
24382   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24383   if test "x$test_cygdrive_prefix" = x; then
24384     # As a simple fix, exclude /usr/bin since it's not a real path.
24385     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24386       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24387       # a path prefixed by /cygdrive for fixpath to work.
24388       new_path="$CYGWIN_ROOT_PATH$input_path"
24389     fi
24390   fi
24391 
24392 
24393   if test "x$path" != "x$new_path"; then
24394     BOOT_JDK="$new_path"
24395     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24396 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24397   fi
24398 
24399   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24400 
24401   path="$BOOT_JDK"
24402   has_colon=`$ECHO $path | $GREP ^.:`
24403   new_path="$path"
24404   if test "x$has_colon" = x; then
24405     # Not in mixed or Windows style, start by that.
24406     new_path=`cmd //c echo $path`
24407   fi
24408 
24409 
24410   input_path="$new_path"
24411   # Check if we need to convert this using DOS-style short mode. If the path
24412   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24413   # take no chances and rewrite it.
24414   # Note: m4 eats our [], so we need to use [ and ] instead.
24415   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24416   if test "x$has_forbidden_chars" != x; then
24417     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24418     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24419   fi
24420 
24421 
24422   windows_path="$new_path"
24423   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24424     unix_path=`$CYGPATH -u "$windows_path"`
24425     new_path="$unix_path"
24426   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24427     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24428     new_path="$unix_path"
24429   fi
24430 
24431   if test "x$path" != "x$new_path"; then
24432     BOOT_JDK="$new_path"
24433     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24434 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24435   fi
24436 
24437   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24438   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24439 
24440   else
24441     # We're on a posix platform. Hooray! :)
24442     path="$BOOT_JDK"
24443     has_space=`$ECHO "$path" | $GREP " "`
24444     if test "x$has_space" != x; then
24445       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24446 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24447       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24448     fi
24449 
24450     # Use eval to expand a potential ~
24451     eval path="$path"
24452     if test ! -f "$path" && test ! -d "$path"; then
24453       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24454     fi
24455 
24456     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24457   fi
24458 
24459               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24460 $as_echo_n "checking for Boot JDK... " >&6; }
24461               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24462 $as_echo "$BOOT_JDK" >&6; }
24463               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24464 $as_echo_n "checking Boot JDK version... " >&6; }
24465               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24466               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24467 $as_echo "$BOOT_JDK_VERSION" >&6; }
24468             fi # end check jdk version
24469           fi # end check rt.jar
24470         fi # end check javac
24471       fi # end check java
24472     fi # end check boot jdk found
24473   fi
24474 
24475   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24476 
24477   if test "x$BOOT_JDK_FOUND" = xno; then
24478     # Now execute the test
24479 
24480   BOOT_JDK_PREFIX="/usr/lib/jvm"
24481   BOOT_JDK_SUFFIX=""
24482   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24483   if test "x$ALL_JDKS_FOUND" != x; then
24484     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24485 
24486   if test "x$BOOT_JDK_FOUND" = xno; then
24487     # Now execute the test
24488 
24489         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24490         if test -d "$BOOT_JDK"; then
24491           BOOT_JDK_FOUND=maybe
24492           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24493 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24494         fi
24495 
24496 
24497     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24498     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24499       # Do we have a bin/java?
24500       if test ! -x "$BOOT_JDK/bin/java"; then
24501         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24502 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24503         BOOT_JDK_FOUND=no
24504       else
24505         # Do we have a bin/javac?
24506         if test ! -x "$BOOT_JDK/bin/javac"; then
24507           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24508 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24509           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24510 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24511           BOOT_JDK_FOUND=no
24512         else
24513           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24514           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24515             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24517             BOOT_JDK_FOUND=no
24518           else
24519             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24520             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24521 
24522             # Extra M4 quote needed to protect [] in grep expression.
24523             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24524             if test "x$FOUND_CORRECT_VERSION" = x; then
24525               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24526 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24527               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5
24528 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;}
24529               BOOT_JDK_FOUND=no
24530             else
24531               # We're done! :-)
24532               BOOT_JDK_FOUND=yes
24533 
24534   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24535 
24536   # Input might be given as Windows format, start by converting to
24537   # unix format.
24538   path="$BOOT_JDK"
24539   new_path=`$CYGPATH -u "$path"`
24540 
24541   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24542   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24543   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24544   # "foo.exe" is OK but "foo" is an error.
24545   #
24546   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24547   # It is also a way to make sure we got the proper file name for the real test later on.
24548   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24549   if test "x$test_shortpath" = x; then
24550     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24552     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24553   fi
24554 
24555   # Call helper function which possibly converts this using DOS-style short mode.
24556   # If so, the updated path is stored in $new_path.
24557 
24558   input_path="$new_path"
24559   # Check if we need to convert this using DOS-style short mode. If the path
24560   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24561   # take no chances and rewrite it.
24562   # Note: m4 eats our [], so we need to use [ and ] instead.
24563   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24564   if test "x$has_forbidden_chars" != x; then
24565     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24566     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24567     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24568     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24569       # Going to short mode and back again did indeed matter. Since short mode is
24570       # case insensitive, let's make it lowercase to improve readability.
24571       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24572       # Now convert it back to Unix-stile (cygpath)
24573       input_path=`$CYGPATH -u "$shortmode_path"`
24574       new_path="$input_path"
24575     fi
24576   fi
24577 
24578   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24579   if test "x$test_cygdrive_prefix" = x; then
24580     # As a simple fix, exclude /usr/bin since it's not a real path.
24581     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24582       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24583       # a path prefixed by /cygdrive for fixpath to work.
24584       new_path="$CYGWIN_ROOT_PATH$input_path"
24585     fi
24586   fi
24587 
24588 
24589   if test "x$path" != "x$new_path"; then
24590     BOOT_JDK="$new_path"
24591     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24592 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24593   fi
24594 
24595   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24596 
24597   path="$BOOT_JDK"
24598   has_colon=`$ECHO $path | $GREP ^.:`
24599   new_path="$path"
24600   if test "x$has_colon" = x; then
24601     # Not in mixed or Windows style, start by that.
24602     new_path=`cmd //c echo $path`
24603   fi
24604 
24605 
24606   input_path="$new_path"
24607   # Check if we need to convert this using DOS-style short mode. If the path
24608   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24609   # take no chances and rewrite it.
24610   # Note: m4 eats our [], so we need to use [ and ] instead.
24611   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24612   if test "x$has_forbidden_chars" != x; then
24613     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24614     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24615   fi
24616 
24617 
24618   windows_path="$new_path"
24619   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24620     unix_path=`$CYGPATH -u "$windows_path"`
24621     new_path="$unix_path"
24622   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24623     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24624     new_path="$unix_path"
24625   fi
24626 
24627   if test "x$path" != "x$new_path"; then
24628     BOOT_JDK="$new_path"
24629     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24630 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24631   fi
24632 
24633   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24634   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24635 
24636   else
24637     # We're on a posix platform. Hooray! :)
24638     path="$BOOT_JDK"
24639     has_space=`$ECHO "$path" | $GREP " "`
24640     if test "x$has_space" != x; then
24641       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24642 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24643       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24644     fi
24645 
24646     # Use eval to expand a potential ~
24647     eval path="$path"
24648     if test ! -f "$path" && test ! -d "$path"; then
24649       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24650     fi
24651 
24652     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24653   fi
24654 
24655               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24656 $as_echo_n "checking for Boot JDK... " >&6; }
24657               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24658 $as_echo "$BOOT_JDK" >&6; }
24659               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24660 $as_echo_n "checking Boot JDK version... " >&6; }
24661               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24662               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24663 $as_echo "$BOOT_JDK_VERSION" >&6; }
24664             fi # end check jdk version
24665           fi # end check rt.jar
24666         fi # end check javac
24667       fi # end check java
24668     fi # end check boot jdk found
24669   fi
24670 
24671     done
24672   fi
24673 
24674 
24675     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24676     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24677       # Do we have a bin/java?
24678       if test ! -x "$BOOT_JDK/bin/java"; then
24679         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24681         BOOT_JDK_FOUND=no
24682       else
24683         # Do we have a bin/javac?
24684         if test ! -x "$BOOT_JDK/bin/javac"; then
24685           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24686 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24687           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24688 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24689           BOOT_JDK_FOUND=no
24690         else
24691           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24692           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24693             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24694 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24695             BOOT_JDK_FOUND=no
24696           else
24697             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24698             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24699 
24700             # Extra M4 quote needed to protect [] in grep expression.
24701             FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep  '\"1\.[789]\.'`
24702             if test "x$FOU