1 #!/bin/bash
   2 #
   3 # ##########################################################
   4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ###
   5 # ##########################################################
   6 #
   7 #! /bin/sh
   8 # Guess values for system-dependent variables and create Makefiles.
   9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8.
  10 #
  11 # Report bugs to <build-dev@openjdk.java.net>.
  12 #
  13 #
  14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  15 #
  16 #
  17 # This configure script is free software; the Free Software Foundation
  18 # gives unlimited permission to copy, distribute and modify it.
  19 ## -------------------- ##
  20 ## M4sh Initialization. ##
  21 ## -------------------- ##
  22 
  23 # Be more Bourne compatible
  24 DUALCASE=1; export DUALCASE # for MKS sh
  25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  26   emulate sh
  27   NULLCMD=:
  28   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  29   # is contrary to our usage.  Disable this feature.
  30   alias -g '${1+"$@"}'='"$@"'
  31   setopt NO_GLOB_SUBST
  32 else
  33   case `(set -o) 2>/dev/null` in #(
  34   *posix*) :
  35     set -o posix ;; #(
  36   *) :
  37      ;;
  38 esac
  39 fi
  40 
  41 
  42 as_nl='
  43 '
  44 export as_nl
  45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49 # Prefer a ksh shell builtin over an external printf program on Solaris,
  50 # but without wasting forks for bash or zsh.
  51 if test -z "$BASH_VERSION$ZSH_VERSION" \
  52     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  53   as_echo='print -r --'
  54   as_echo_n='print -rn --'
  55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  56   as_echo='printf %s\n'
  57   as_echo_n='printf %s'
  58 else
  59   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  60     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  61     as_echo_n='/usr/ucb/echo -n'
  62   else
  63     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  64     as_echo_n_body='eval
  65       arg=$1;
  66       case $arg in #(
  67       *"$as_nl"*)
  68         expr "X$arg" : "X\\(.*\\)$as_nl";
  69         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  70       esac;
  71       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  72     '
  73     export as_echo_n_body
  74     as_echo_n='sh -c $as_echo_n_body as_echo'
  75   fi
  76   export as_echo_body
  77   as_echo='sh -c $as_echo_body as_echo'
  78 fi
  79 
  80 # The user is always right.
  81 if test "${PATH_SEPARATOR+set}" != set; then
  82   PATH_SEPARATOR=:
  83   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  84     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  85       PATH_SEPARATOR=';'
  86   }
  87 fi
  88 
  89 
  90 # IFS
  91 # We need space, tab and new line, in precisely that order.  Quoting is
  92 # there to prevent editors from complaining about space-tab.
  93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  94 # splitting by setting IFS to empty value.)
  95 IFS=" ""        $as_nl"
  96 
  97 # Find who we are.  Look in the path if we contain no directory separator.
  98 as_myself=
  99 case $0 in #((
 100   *[\\/]* ) as_myself=$0 ;;
 101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 102 for as_dir in $PATH
 103 do
 104   IFS=$as_save_IFS
 105   test -z "$as_dir" && as_dir=.
 106     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 107   done
 108 IFS=$as_save_IFS
 109 
 110      ;;
 111 esac
 112 # We did not find ourselves, most probably we were run as `sh COMMAND'
 113 # in which case we are not to be found in the path.
 114 if test "x$as_myself" = x; then
 115   as_myself=$0
 116 fi
 117 if test ! -f "$as_myself"; then
 118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 119   exit 1
 120 fi
 121 
 122 # Unset variables that we do not need and which cause bugs (e.g. in
 123 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 124 # suppresses any "Segmentation fault" message there.  '((' could
 125 # trigger a bug in pdksh 5.2.14.
 126 for as_var in BASH_ENV ENV MAIL MAILPATH
 127 do eval test x\${$as_var+set} = xset \
 128   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 129 done
 130 PS1='$ '
 131 PS2='> '
 132 PS4='+ '
 133 
 134 # NLS nuisances.
 135 LC_ALL=C
 136 export LC_ALL
 137 LANGUAGE=C
 138 export LANGUAGE
 139 
 140 # CDPATH.
 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 142 
 143 # Use a proper internal environment variable to ensure we don't fall
 144   # into an infinite loop, continuously re-executing ourselves.
 145   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
 146     _as_can_reexec=no; export _as_can_reexec;
 147     # We cannot yet assume a decent shell, so we have to provide a
 148 # neutralization value for shells without unset; and this also
 149 # works around shells that cannot unset nonexistent variables.
 150 # Preserve -v and -x to the replacement shell.
 151 BASH_ENV=/dev/null
 152 ENV=/dev/null
 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 154 case $- in # ((((
 155   *v*x* | *x*v* ) as_opts=-vx ;;
 156   *v* ) as_opts=-v ;;
 157   *x* ) as_opts=-x ;;
 158   * ) as_opts= ;;
 159 esac
 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 161 # Admittedly, this is quite paranoid, since all the known shells bail
 162 # out after a failed `exec'.
 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 164 as_fn_exit 255
 165   fi
 166   # We don't want this to propagate to other subprocesses.
 167           { _as_can_reexec=; unset _as_can_reexec;}
 168 if test "x$CONFIG_SHELL" = x; then
 169   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
 170   emulate sh
 171   NULLCMD=:
 172   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
 173   # is contrary to our usage.  Disable this feature.
 174   alias -g '\${1+\"\$@\"}'='\"\$@\"'
 175   setopt NO_GLOB_SUBST
 176 else
 177   case \`(set -o) 2>/dev/null\` in #(
 178   *posix*) :
 179     set -o posix ;; #(
 180   *) :
 181      ;;
 182 esac
 183 fi
 184 "
 185   as_required="as_fn_return () { (exit \$1); }
 186 as_fn_success () { as_fn_return 0; }
 187 as_fn_failure () { as_fn_return 1; }
 188 as_fn_ret_success () { return 0; }
 189 as_fn_ret_failure () { return 1; }
 190 
 191 exitcode=0
 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
 197 
 198 else
 199   exitcode=1; echo positional parameters were not saved.
 200 fi
 201 test x\$exitcode = x0 || exit 1
 202 test -x / || exit 1"
 203   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
 204   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
 205   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
 206   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
 207 test \$(( 1 + 1 )) = 2 || exit 1"
 208   if (eval "$as_required") 2>/dev/null; then :
 209   as_have_required=yes
 210 else
 211   as_have_required=no
 212 fi
 213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
 214 
 215 else
 216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 217 as_found=false
 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 219 do
 220   IFS=$as_save_IFS
 221   test -z "$as_dir" && as_dir=.
 222   as_found=:
 223   case $as_dir in #(
 224          /*)
 225            for as_base in sh bash ksh sh5; do
 226              # Try only shells that exist, to save several forks.
 227              as_shell=$as_dir/$as_base
 228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
 230   CONFIG_SHELL=$as_shell as_have_required=yes
 231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
 232   break 2
 233 fi
 234 fi
 235            done;;
 236        esac
 237   as_found=false
 238 done
 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
 240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
 241   CONFIG_SHELL=$SHELL as_have_required=yes
 242 fi; }
 243 IFS=$as_save_IFS
 244 
 245 
 246       if test "x$CONFIG_SHELL" != x; then :
 247   export CONFIG_SHELL
 248              # We cannot yet assume a decent shell, so we have to provide a
 249 # neutralization value for shells without unset; and this also
 250 # works around shells that cannot unset nonexistent variables.
 251 # Preserve -v and -x to the replacement shell.
 252 BASH_ENV=/dev/null
 253 ENV=/dev/null
 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
 255 case $- in # ((((
 256   *v*x* | *x*v* ) as_opts=-vx ;;
 257   *v* ) as_opts=-v ;;
 258   *x* ) as_opts=-x ;;
 259   * ) as_opts= ;;
 260 esac
 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
 262 # Admittedly, this is quite paranoid, since all the known shells bail
 263 # out after a failed `exec'.
 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
 265 exit 255
 266 fi
 267 
 268     if test x$as_have_required = xno; then :
 269   $as_echo "$0: This script requires a shell more modern than all"
 270   $as_echo "$0: the shells that I found on your system."
 271   if test x${ZSH_VERSION+set} = xset ; then
 272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
 273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
 274   else
 275     $as_echo "$0: Please tell bug-autoconf@gnu.org and
 276 $0: build-dev@openjdk.java.net about your system, including
 277 $0: any error possibly output before this message. Then
 278 $0: install a modern shell, or manually run the script
 279 $0: under such a shell if you do have one."
 280   fi
 281   exit 1
 282 fi
 283 fi
 284 fi
 285 SHELL=${CONFIG_SHELL-/bin/sh}
 286 export SHELL
 287 # Unset more variables known to interfere with behavior of common tools.
 288 CLICOLOR_FORCE= GREP_OPTIONS=
 289 unset CLICOLOR_FORCE GREP_OPTIONS
 290 
 291 ## --------------------- ##
 292 ## M4sh Shell Functions. ##
 293 ## --------------------- ##
 294 # as_fn_unset VAR
 295 # ---------------
 296 # Portably unset VAR.
 297 as_fn_unset ()
 298 {
 299   { eval $1=; unset $1;}
 300 }
 301 as_unset=as_fn_unset
 302 
 303 # as_fn_set_status STATUS
 304 # -----------------------
 305 # Set $? to STATUS, without forking.
 306 as_fn_set_status ()
 307 {
 308   return $1
 309 } # as_fn_set_status
 310 
 311 # as_fn_exit STATUS
 312 # -----------------
 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 314 as_fn_exit ()
 315 {
 316   set +e
 317   as_fn_set_status $1
 318   exit $1
 319 } # as_fn_exit
 320 
 321 # as_fn_mkdir_p
 322 # -------------
 323 # Create "$as_dir" as a directory, including parents if necessary.
 324 as_fn_mkdir_p ()
 325 {
 326 
 327   case $as_dir in #(
 328   -*) as_dir=./$as_dir;;
 329   esac
 330   test -d "$as_dir" || eval $as_mkdir_p || {
 331     as_dirs=
 332     while :; do
 333       case $as_dir in #(
 334       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 335       *) as_qdir=$as_dir;;
 336       esac
 337       as_dirs="'$as_qdir' $as_dirs"
 338       as_dir=`$as_dirname -- "$as_dir" ||
 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 340          X"$as_dir" : 'X\(//\)[^/]' \| \
 341          X"$as_dir" : 'X\(//\)$' \| \
 342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 343 $as_echo X"$as_dir" |
 344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 345             s//\1/
 346             q
 347           }
 348           /^X\(\/\/\)[^/].*/{
 349             s//\1/
 350             q
 351           }
 352           /^X\(\/\/\)$/{
 353             s//\1/
 354             q
 355           }
 356           /^X\(\/\).*/{
 357             s//\1/
 358             q
 359           }
 360           s/.*/./; q'`
 361       test -d "$as_dir" && break
 362     done
 363     test -z "$as_dirs" || eval "mkdir $as_dirs"
 364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 365 
 366 
 367 } # as_fn_mkdir_p
 368 
 369 # as_fn_executable_p FILE
 370 # -----------------------
 371 # Test if FILE is an executable regular file.
 372 as_fn_executable_p ()
 373 {
 374   test -f "$1" && test -x "$1"
 375 } # as_fn_executable_p
 376 # as_fn_append VAR VALUE
 377 # ----------------------
 378 # Append the text in VALUE to the end of the definition contained in VAR. Take
 379 # advantage of any shell optimizations that allow amortized linear growth over
 380 # repeated appends, instead of the typical quadratic growth present in naive
 381 # implementations.
 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 383   eval 'as_fn_append ()
 384   {
 385     eval $1+=\$2
 386   }'
 387 else
 388   as_fn_append ()
 389   {
 390     eval $1=\$$1\$2
 391   }
 392 fi # as_fn_append
 393 
 394 # as_fn_arith ARG...
 395 # ------------------
 396 # Perform arithmetic evaluation on the ARGs, and store the result in the
 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 398 # must be portable across $(()) and expr.
 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 400   eval 'as_fn_arith ()
 401   {
 402     as_val=$(( $* ))
 403   }'
 404 else
 405   as_fn_arith ()
 406   {
 407     as_val=`expr "$@" || test $? -eq 1`
 408   }
 409 fi # as_fn_arith
 410 
 411 
 412 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 413 # ----------------------------------------
 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 416 # script with STATUS, using 1 if that was 0.
 417 as_fn_error ()
 418 {
 419   as_status=$1; test $as_status -eq 0 && as_status=1
 420   if test "$4"; then
 421     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 422     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 423   fi
 424   $as_echo "$as_me: error: $2" >&2
 425   as_fn_exit $as_status
 426 } # as_fn_error
 427 
 428 if expr a : '\(a\)' >/dev/null 2>&1 &&
 429    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 430   as_expr=expr
 431 else
 432   as_expr=false
 433 fi
 434 
 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 436   as_basename=basename
 437 else
 438   as_basename=false
 439 fi
 440 
 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 442   as_dirname=dirname
 443 else
 444   as_dirname=false
 445 fi
 446 
 447 as_me=`$as_basename -- "$0" ||
 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 449          X"$0" : 'X\(//\)$' \| \
 450          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 451 $as_echo X/"$0" |
 452     sed '/^.*\/\([^/][^/]*\)\/*$/{
 453             s//\1/
 454             q
 455           }
 456           /^X\/\(\/\/\)$/{
 457             s//\1/
 458             q
 459           }
 460           /^X\/\(\/\).*/{
 461             s//\1/
 462             q
 463           }
 464           s/.*/./; q'`
 465 
 466 # Avoid depending upon Character Ranges.
 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 470 as_cr_digits='0123456789'
 471 as_cr_alnum=$as_cr_Letters$as_cr_digits
 472 
 473 
 474   as_lineno_1=$LINENO as_lineno_1a=$LINENO
 475   as_lineno_2=$LINENO as_lineno_2a=$LINENO
 476   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
 477   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
 478   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
 479   sed -n '
 480     p
 481     /[$]LINENO/=
 482   ' <$as_myself |
 483     sed '
 484       s/[$]LINENO.*/&-/
 485       t lineno
 486       b
 487       :lineno
 488       N
 489       :loop
 490       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 491       t loop
 492       s/-\n.*//
 493     ' >$as_me.lineno &&
 494   chmod +x "$as_me.lineno" ||
 495     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
 496 
 497   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
 498   # already done that, so ensure we don't try to do so again and fall
 499   # in an infinite loop.  This has already happened in practice.
 500   _as_can_reexec=no; export _as_can_reexec
 501   # Don't try to exec as it changes $[0], causing all sort of problems
 502   # (the dirname of $[0] is not the place where we might find the
 503   # original and so on.  Autoconf is especially sensitive to this).
 504   . "./$as_me.lineno"
 505   # Exit status is that of the last command.
 506   exit
 507 }
 508 
 509 ECHO_C= ECHO_N= ECHO_T=
 510 case `echo -n x` in #(((((
 511 -n*)
 512   case `echo 'xy\c'` in
 513   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 514   xy)  ECHO_C='\c';;
 515   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 516        ECHO_T=' ';;
 517   esac;;
 518 *)
 519   ECHO_N='-n';;
 520 esac
 521 
 522 rm -f conf$$ conf$$.exe conf$$.file
 523 if test -d conf$$.dir; then
 524   rm -f conf$$.dir/conf$$.file
 525 else
 526   rm -f conf$$.dir
 527   mkdir conf$$.dir 2>/dev/null
 528 fi
 529 if (echo >conf$$.file) 2>/dev/null; then
 530   if ln -s conf$$.file conf$$ 2>/dev/null; then
 531     as_ln_s='ln -s'
 532     # ... but there are two gotchas:
 533     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 534     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 535     # In both cases, we have to default to `cp -pR'.
 536     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 537       as_ln_s='cp -pR'
 538   elif ln conf$$.file conf$$ 2>/dev/null; then
 539     as_ln_s=ln
 540   else
 541     as_ln_s='cp -pR'
 542   fi
 543 else
 544   as_ln_s='cp -pR'
 545 fi
 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 547 rmdir conf$$.dir 2>/dev/null
 548 
 549 if mkdir -p . 2>/dev/null; then
 550   as_mkdir_p='mkdir -p "$as_dir"'
 551 else
 552   test -d ./-p && rmdir ./-p
 553   as_mkdir_p=false
 554 fi
 555 
 556 as_test_x='test -x'
 557 as_executable_p=as_fn_executable_p
 558 
 559 # Sed expression to map a string onto a valid CPP name.
 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 561 
 562 # Sed expression to map a string onto a valid variable name.
 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 564 
 565 
 566 test -n "$DJDIR" || exec 7<&0 </dev/null
 567 exec 6>&1
 568 
 569 # Name of the host.
 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
 571 # so uname gets run too.
 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 573 
 574 #
 575 # Initializations.
 576 #
 577 ac_default_prefix=/usr/local
 578 ac_clean_files=
 579 ac_config_libobj_dir=.
 580 LIBOBJS=
 581 cross_compiling=no
 582 subdirs=
 583 MFLAGS=
 584 MAKEFLAGS=
 585 
 586 # Identity of this package.
 587 PACKAGE_NAME='OpenJDK'
 588 PACKAGE_TARNAME='openjdk'
 589 PACKAGE_VERSION='jdk8'
 590 PACKAGE_STRING='OpenJDK jdk8'
 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net'
 592 PACKAGE_URL='http://openjdk.java.net'
 593 
 594 # Factoring default headers for most tests.
 595 ac_includes_default="\
 596 #include <stdio.h>
 597 #ifdef HAVE_SYS_TYPES_H
 598 # include <sys/types.h>
 599 #endif
 600 #ifdef HAVE_SYS_STAT_H
 601 # include <sys/stat.h>
 602 #endif
 603 #ifdef STDC_HEADERS
 604 # include <stdlib.h>
 605 # include <stddef.h>
 606 #else
 607 # ifdef HAVE_STDLIB_H
 608 #  include <stdlib.h>
 609 # endif
 610 #endif
 611 #ifdef HAVE_STRING_H
 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 613 #  include <memory.h>
 614 # endif
 615 # include <string.h>
 616 #endif
 617 #ifdef HAVE_STRINGS_H
 618 # include <strings.h>
 619 #endif
 620 #ifdef HAVE_INTTYPES_H
 621 # include <inttypes.h>
 622 #endif
 623 #ifdef HAVE_STDINT_H
 624 # include <stdint.h>
 625 #endif
 626 #ifdef HAVE_UNISTD_H
 627 # include <unistd.h>
 628 #endif"
 629 
 630 ac_subst_vars='LTLIBOBJS
 631 LIBOBJS
 632 CCACHE
 633 USE_PRECOMPILED_HEADER
 634 SJAVAC_SERVER_DIR
 635 ENABLE_SJAVAC
 636 SJAVAC_SERVER_JAVA
 637 JOBS
 638 MEMORY_SIZE
 639 NUM_CORES
 640 ENABLE_INTREE_EC
 641 SALIB_NAME
 642 HOTSPOT_MAKE_ARGS
 643 UCRT_DLL_DIR
 644 MSVCP_DLL
 645 MSVCR_DLL
 646 LIBCXX
 647 LLVM_LIBS
 648 LLVM_LDFLAGS
 649 LLVM_CFLAGS
 650 LLVM_CONFIG
 651 LIBFFI_LIBS
 652 LIBFFI_CFLAGS
 653 STATIC_CXX_SETTING
 654 LIBDL
 655 LIBM
 656 LIBZIP_CAN_USE_MMAP
 657 USE_EXTERNAL_LIBZ
 658 USE_EXTERNAL_LIBGIF
 659 USE_EXTERNAL_LIBJPEG
 660 FONTCONFIG_CFLAGS
 661 ALSA_LIBS
 662 ALSA_CFLAGS
 663 FREETYPE_BUNDLE_LIB_PATH
 664 FREETYPE_LIBS
 665 FREETYPE_CFLAGS
 666 CUPS_CFLAGS
 667 X_EXTRA_LIBS
 668 X_LIBS
 669 X_PRE_LIBS
 670 X_CFLAGS
 671 XMKMF
 672 FIXPATH
 673 ZIP_DEBUGINFO_FILES
 674 DEBUG_BINARIES
 675 STRIP_POLICY
 676 ENABLE_DEBUG_SYMBOLS
 677 COMPILER_SUPPORTS_TARGET_BITS_FLAG
 678 ZERO_ARCHFLAG
 679 LDFLAGS_CXX_JDK
 680 LDFLAGS_JDKEXE_SUFFIX
 681 LDFLAGS_JDKLIB_SUFFIX
 682 LDFLAGS_JDKEXE
 683 LDFLAGS_JDKLIB
 684 CXXFLAGS_JDKEXE
 685 CXXFLAGS_JDKLIB
 686 CFLAGS_JDKEXE
 687 CFLAGS_JDKLIB
 688 MACOSX_VERSION_MIN
 689 FDLIBM_CFLAGS
 690 NO_LIFETIME_DSE_CFLAG
 691 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 692 LEGACY_EXTRA_ASFLAGS
 693 LEGACY_EXTRA_LDFLAGS
 694 LEGACY_EXTRA_CXXFLAGS
 695 LEGACY_EXTRA_CFLAGS
 696 CXXSTD_CXXFLAG
 697 CXX_O_FLAG_NONE
 698 CXX_O_FLAG_NORM
 699 CXX_O_FLAG_HI
 700 CXX_O_FLAG_HIGHEST
 701 C_O_FLAG_NONE
 702 C_O_FLAG_NORM
 703 C_O_FLAG_HI
 704 C_O_FLAG_HIGHEST
 705 CXXFLAGS_DEBUG_SYMBOLS
 706 CFLAGS_DEBUG_SYMBOLS
 707 ASFLAGS_DEBUG_SYMBOLS
 708 CXX_FLAG_DEPS
 709 C_FLAG_DEPS
 710 SET_SHARED_LIBRARY_MAPFILE
 711 SET_SHARED_LIBRARY_NAME
 712 SET_SHARED_LIBRARY_ORIGIN
 713 SET_EXECUTABLE_ORIGIN
 714 SHARED_LIBRARY_FLAGS
 715 CXX_FLAG_REORDER
 716 C_FLAG_REORDER
 717 SYSROOT_LDFLAGS
 718 SYSROOT_CFLAGS
 719 RC_FLAGS
 720 AR_OUT_OPTION
 721 LD_OUT_OPTION
 722 EXE_OUT_OPTION
 723 CC_OUT_OPTION
 724 POST_MCS_CMD
 725 POST_STRIP_CMD
 726 ARFLAGS
 727 COMPILER_TARGET_BITS_FLAG
 728 JT_HOME
 729 JTREGEXE
 730 USING_BROKEN_SUSE_LD
 731 PACKAGE_PATH
 732 LDEXECXX
 733 LDEXE
 734 USE_CLANG
 735 HOTSPOT_LD
 736 HOTSPOT_CXX
 737 HOTSPOT_RC
 738 HOTSPOT_MT
 739 BUILD_LD
 740 BUILD_CXX
 741 BUILD_CC
 742 ac_ct_OBJDUMP
 743 OBJDUMP
 744 ac_ct_OBJCOPY
 745 OBJCOPY
 746 ac_ct_NM
 747 OTOOL
 748 ac_ct_STRIP
 749 MCS
 750 GNM
 751 NM
 752 STRIP
 753 MSBUILD
 754 DUMPBIN
 755 RC
 756 MT
 757 LIPO
 758 ac_ct_OBJC
 759 OBJCFLAGS
 760 OBJC
 761 ac_ct_AR
 762 AR
 763 AS
 764 LDCXX
 765 LD
 766 CXXCPP
 767 CPP
 768 CXX_VERSION_NUMBER
 769 CC_VERSION_NUMBER
 770 ac_ct_CXX
 771 CXXFLAGS
 772 CXX
 773 ac_ct_PROPER_COMPILER_CXX
 774 PROPER_COMPILER_CXX
 775 TOOLCHAIN_PATH_CXX
 776 POTENTIAL_CXX
 777 OBJEXT
 778 EXEEXT
 779 ac_ct_CC
 780 CPPFLAGS
 781 LDFLAGS
 782 CFLAGS
 783 CC
 784 ac_ct_PROPER_COMPILER_CC
 785 PROPER_COMPILER_CC
 786 TOOLCHAIN_PATH_CC
 787 POTENTIAL_CC
 788 SDKPATH
 789 XCODEBUILD
 790 SET_DEVELOPER_DIR
 791 VS_LIB
 792 VS_INCLUDE
 793 VS_PATH
 794 CYGWIN_LINK
 795 EXE_SUFFIX
 796 OBJ_SUFFIX
 797 STATIC_LIBRARY
 798 SHARED_LIBRARY
 799 STATIC_LIBRARY_SUFFIX
 800 SHARED_LIBRARY_SUFFIX
 801 LIBRARY_PREFIX
 802 TOOLCHAIN_TYPE
 803 BUILD_HOTSPOT
 804 HOTSPOT_DIST
 805 BUILD_OUTPUT
 806 OVERRIDE_SRC_ROOT
 807 ADD_SRC_ROOT
 808 JDK_TOPDIR
 809 NASHORN_TOPDIR
 810 HOTSPOT_TOPDIR
 811 JAXWS_TOPDIR
 812 JAXP_TOPDIR
 813 CORBA_TOPDIR
 814 LANGTOOLS_TOPDIR
 815 JAVA_FLAGS_SMALL
 816 JAVA_FLAGS_BIG
 817 JAVA_FLAGS
 818 BOOT_JDK_BITS
 819 JAVAC_FLAGS
 820 BOOT_JDK_SOURCETARGET
 821 BOOT_JDK
 822 BOOT_TOOLSJAR
 823 BOOT_RTJAR
 824 JAVA_CHECK
 825 JAVAC_CHECK
 826 COOKED_BUILD_NUMBER
 827 COOKED_JDK_UPDATE_VERSION
 828 JDK_VERSION
 829 COPYRIGHT_YEAR
 830 VENDOR_URL_VM_BUG
 831 VENDOR_URL_BUG
 832 VENDOR_URL
 833 COMPANY_NAME
 834 MACOSX_BUNDLE_ID_BASE
 835 MACOSX_BUNDLE_NAME_BASE
 836 JDK_RC_PLATFORM_NAME
 837 PRODUCT_SUFFIX
 838 PRODUCT_NAME
 839 LAUNCHER_NAME
 840 MILESTONE
 841 JDK_BUILD_NUMBER
 842 JDK_UPDATE_VERSION
 843 JDK_MICRO_VERSION
 844 JDK_MINOR_VERSION
 845 JDK_MAJOR_VERSION
 846 USER_RELEASE_SUFFIX
 847 COMPRESS_JARS
 848 UNLIMITED_CRYPTO
 849 CACERTS_FILE
 850 TEST_IN_BUILD
 851 BUILD_HEADLESS
 852 SUPPORT_HEADFUL
 853 SUPPORT_HEADLESS
 854 BDEPS_FTP
 855 BDEPS_UNZIP
 856 OS_VERSION_MICRO
 857 OS_VERSION_MINOR
 858 OS_VERSION_MAJOR
 859 PKG_CONFIG
 860 CODESIGN
 861 XATTR
 862 DSYMUTIL
 863 IS_GNU_TIME
 864 TIME
 865 STAT
 866 HG
 867 READELF
 868 LDD
 869 ZIP
 870 UNZIP
 871 FIND_DELETE
 872 MAKE
 873 CHECK_TOOLSDIR_MAKE
 874 CHECK_TOOLSDIR_GMAKE
 875 CHECK_MAKE
 876 CHECK_GMAKE
 877 PKGHANDLER
 878 OUTPUT_ROOT
 879 CONF_NAME
 880 SPEC
 881 DEVKIT_LIB_DIR
 882 BUILD_VARIANT_RELEASE
 883 DEBUG_CLASSFILES
 884 FASTDEBUG
 885 VARIANT
 886 DEBUG_LEVEL
 887 MACOSX_UNIVERSAL
 888 INCLUDE_SA
 889 JVM_VARIANT_CORE
 890 JVM_VARIANT_ZEROSHARK
 891 JVM_VARIANT_ZERO
 892 JVM_VARIANT_KERNEL
 893 JVM_VARIANT_MINIMAL1
 894 JVM_VARIANT_CLIENT
 895 JVM_VARIANT_SERVER
 896 JVM_VARIANTS
 897 JVM_INTERPRETER
 898 JDK_VARIANT
 899 SET_OPENJDK
 900 BUILD_LOG_WRAPPER
 901 BUILD_LOG_PREVIOUS
 902 BUILD_LOG
 903 TOPDIR
 904 PATH_SEP
 905 ZERO_ARCHDEF
 906 DEFINE_CROSS_COMPILE_ARCH
 907 LP64
 908 OPENJDK_TARGET_OS_EXPORT_DIR
 909 OPENJDK_TARGET_OS_API_DIR
 910 OPENJDK_TARGET_CPU_JLI_CFLAGS
 911 OPENJDK_TARGET_CPU_OSARCH
 912 OPENJDK_TARGET_CPU_ISADIR
 913 OPENJDK_TARGET_CPU_LIBDIR
 914 OPENJDK_TARGET_CPU_LEGACY_LIB
 915 OPENJDK_TARGET_CPU_LEGACY
 916 REQUIRED_OS_VERSION
 917 REQUIRED_OS_NAME
 918 COMPILE_TYPE
 919 OPENJDK_TARGET_CPU_ENDIAN
 920 OPENJDK_TARGET_CPU_BITS
 921 OPENJDK_TARGET_CPU_ARCH
 922 OPENJDK_TARGET_CPU
 923 OPENJDK_TARGET_OS_ENV
 924 OPENJDK_TARGET_OS_API
 925 OPENJDK_TARGET_OS
 926 OPENJDK_BUILD_CPU_ENDIAN
 927 OPENJDK_BUILD_CPU_BITS
 928 OPENJDK_BUILD_CPU_ARCH
 929 OPENJDK_BUILD_CPU
 930 OPENJDK_BUILD_OS_ENV
 931 OPENJDK_BUILD_OS_API
 932 OPENJDK_BUILD_OS
 933 OPENJDK_BUILD_AUTOCONF_NAME
 934 OPENJDK_TARGET_AUTOCONF_NAME
 935 target_os
 936 target_vendor
 937 target_cpu
 938 target
 939 host_os
 940 host_vendor
 941 host_cpu
 942 host
 943 build_os
 944 build_vendor
 945 build_cpu
 946 build
 947 CPIO
 948 SETFILE
 949 DF
 950 READLINK
 951 CYGPATH
 952 SED
 953 FGREP
 954 EGREP
 955 GREP
 956 AWK
 957 XARGS
 958 WHICH
 959 WC
 960 UNIQ
 961 UNAME
 962 TR
 963 TOUCH
 964 TEE
 965 TAR
 966 TAIL
 967 SORT
 968 SH
 969 RM
 970 PRINTF
 971 NAWK
 972 MV
 973 MKTEMP
 974 MKDIR
 975 LS
 976 LN
 977 HEAD
 978 FIND
 979 FILE
 980 EXPR
 981 ECHO
 982 DIRNAME
 983 DIFF
 984 DATE
 985 CUT
 986 CP
 987 COMM
 988 CMP
 989 CHMOD
 990 CAT
 991 BASH
 992 BASENAME
 993 DATE_WHEN_CONFIGURED
 994 CONFIGURE_COMMAND_LINE
 995 CUSTOM_MAKE_DIR
 996 target_alias
 997 host_alias
 998 build_alias
 999 LIBS
1000 ECHO_T
1001 ECHO_N
1002 ECHO_C
1003 DEFS
1004 mandir
1005 localedir
1006 libdir
1007 psdir
1008 pdfdir
1009 dvidir
1010 htmldir
1011 infodir
1012 docdir
1013 oldincludedir
1014 includedir
1015 localstatedir
1016 sharedstatedir
1017 sysconfdir
1018 datadir
1019 datarootdir
1020 libexecdir
1021 sbindir
1022 bindir
1023 program_transform_name
1024 prefix
1025 exec_prefix
1026 PACKAGE_URL
1027 PACKAGE_BUGREPORT
1028 PACKAGE_STRING
1029 PACKAGE_VERSION
1030 PACKAGE_TARNAME
1031 PACKAGE_NAME
1032 PATH_SEPARATOR
1033 SHELL'
1034 ac_subst_files=''
1035 ac_user_opts='
1036 enable_option_checking
1037 with_custom_make_dir
1038 with_target_bits
1039 enable_openjdk_only
1040 with_jdk_variant
1041 with_jvm_interpreter
1042 with_jvm_variants
1043 enable_debug
1044 with_debug_level
1045 with_devkit
1046 with_sys_root
1047 with_sysroot
1048 with_tools_dir
1049 with_toolchain_path
1050 with_extra_path
1051 with_xcode_path
1052 with_conf_name
1053 with_builddeps_conf
1054 with_builddeps_server
1055 with_builddeps_dir
1056 with_builddeps_group
1057 enable_headful
1058 enable_hotspot_test_in_build
1059 with_cacerts_file
1060 enable_unlimited_crypto
1061 with_milestone
1062 with_update_version
1063 with_user_release_suffix
1064 with_build_number
1065 with_vendor_name
1066 with_vendor_url
1067 with_vendor_bug_url
1068 with_vendor_vm_bug_url
1069 with_copyright_year
1070 with_boot_jdk
1071 with_boot_jdk_jvmargs
1072 with_add_source_root
1073 with_override_source_root
1074 with_adds_and_overrides
1075 with_override_langtools
1076 with_override_corba
1077 with_override_jaxp
1078 with_override_jaxws
1079 with_override_hotspot
1080 with_override_nashorn
1081 with_override_jdk
1082 with_import_hotspot
1083 with_toolchain_type
1084 with_toolchain_version
1085 with_jtreg
1086 with_extra_cflags
1087 with_extra_cxxflags
1088 with_extra_ldflags
1089 with_extra_asflags
1090 enable_debug_symbols
1091 enable_zip_debug_info
1092 with_native_debug_symbols
1093 enable_macosx_runtime_support
1094 with_x
1095 with_cups
1096 with_cups_include
1097 with_freetype
1098 with_freetype_include
1099 with_freetype_lib
1100 with_freetype_src
1101 enable_freetype_bundling
1102 with_alsa
1103 with_alsa_include
1104 with_alsa_lib
1105 with_fontconfig
1106 with_fontconfig_include
1107 with_giflib
1108 with_zlib
1109 with_stdc__lib
1110 with_msvcr_dll
1111 with_msvcp_dll
1112 with_ucrt_dll_dir
1113 with_dxsdk
1114 with_dxsdk_lib
1115 with_dxsdk_include
1116 with_num_cores
1117 with_memory_size
1118 with_jobs
1119 with_sjavac_server_java
1120 enable_sjavac
1121 enable_precompiled_headers
1122 enable_ccache
1123 with_ccache_dir
1124 '
1125       ac_precious_vars='build_alias
1126 host_alias
1127 target_alias
1128 BASENAME
1129 BASH
1130 CAT
1131 CHMOD
1132 CMP
1133 COMM
1134 CP
1135 CUT
1136 DATE
1137 DIFF
1138 DIRNAME
1139 ECHO
1140 EXPR
1141 FILE
1142 FIND
1143 HEAD
1144 LN
1145 LS
1146 MKDIR
1147 MKTEMP
1148 MV
1149 NAWK
1150 PRINTF
1151 RM
1152 SH
1153 SORT
1154 TAIL
1155 TAR
1156 TEE
1157 TOUCH
1158 TR
1159 UNAME
1160 UNIQ
1161 WC
1162 WHICH
1163 XARGS
1164 AWK
1165 GREP
1166 EGREP
1167 FGREP
1168 SED
1169 CYGPATH
1170 READLINK
1171 DF
1172 SETFILE
1173 CPIO
1174 UNZIP
1175 ZIP
1176 LDD
1177 READELF
1178 HG
1179 STAT
1180 TIME
1181 DSYMUTIL
1182 XATTR
1183 CODESIGN
1184 PKG_CONFIG
1185 CC
1186 CFLAGS
1187 LDFLAGS
1188 LIBS
1189 CPPFLAGS
1190 CXX
1191 CXXFLAGS
1192 CCC
1193 CPP
1194 CXXCPP
1195 AS
1196 AR
1197 OBJC
1198 OBJCFLAGS
1199 LIPO
1200 STRIP
1201 NM
1202 GNM
1203 MCS
1204 OBJCOPY
1205 OBJDUMP
1206 BUILD_CC
1207 BUILD_CXX
1208 BUILD_LD
1209 JTREGEXE
1210 XMKMF
1211 FREETYPE_CFLAGS
1212 FREETYPE_LIBS
1213 ALSA_CFLAGS
1214 ALSA_LIBS
1215 LIBFFI_CFLAGS
1216 LIBFFI_LIBS
1217 CCACHE'
1218 
1219 
1220 # Initialize some variables set by options.
1221 ac_init_help=
1222 ac_init_version=false
1223 ac_unrecognized_opts=
1224 ac_unrecognized_sep=
1225 # The variables have the same names as the options, with
1226 # dashes changed to underlines.
1227 cache_file=/dev/null
1228 exec_prefix=NONE
1229 no_create=
1230 no_recursion=
1231 prefix=NONE
1232 program_prefix=NONE
1233 program_suffix=NONE
1234 program_transform_name=s,x,x,
1235 silent=
1236 site=
1237 srcdir=
1238 verbose=
1239 x_includes=NONE
1240 x_libraries=NONE
1241 
1242 # Installation directory options.
1243 # These are left unexpanded so users can "make install exec_prefix=/foo"
1244 # and all the variables that are supposed to be based on exec_prefix
1245 # by default will actually change.
1246 # Use braces instead of parens because sh, perl, etc. also accept them.
1247 # (The list follows the same order as the GNU Coding Standards.)
1248 bindir='${exec_prefix}/bin'
1249 sbindir='${exec_prefix}/sbin'
1250 libexecdir='${exec_prefix}/libexec'
1251 datarootdir='${prefix}/share'
1252 datadir='${datarootdir}'
1253 sysconfdir='${prefix}/etc'
1254 sharedstatedir='${prefix}/com'
1255 localstatedir='${prefix}/var'
1256 includedir='${prefix}/include'
1257 oldincludedir='/usr/include'
1258 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1259 infodir='${datarootdir}/info'
1260 htmldir='${docdir}'
1261 dvidir='${docdir}'
1262 pdfdir='${docdir}'
1263 psdir='${docdir}'
1264 libdir='${exec_prefix}/lib'
1265 localedir='${datarootdir}/locale'
1266 mandir='${datarootdir}/man'
1267 
1268 ac_prev=
1269 ac_dashdash=
1270 for ac_option
1271 do
1272   # If the previous option needs an argument, assign it.
1273   if test -n "$ac_prev"; then
1274     eval $ac_prev=\$ac_option
1275     ac_prev=
1276     continue
1277   fi
1278 
1279   case $ac_option in
1280   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1281   *=)   ac_optarg= ;;
1282   *)    ac_optarg=yes ;;
1283   esac
1284 
1285   # Accept the important Cygnus configure options, so we can diagnose typos.
1286 
1287   case $ac_dashdash$ac_option in
1288   --)
1289     ac_dashdash=yes ;;
1290 
1291   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1292     ac_prev=bindir ;;
1293   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1294     bindir=$ac_optarg ;;
1295 
1296   -build | --build | --buil | --bui | --bu)
1297     ac_prev=build_alias ;;
1298   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1299     build_alias=$ac_optarg ;;
1300 
1301   -cache-file | --cache-file | --cache-fil | --cache-fi \
1302   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1303     ac_prev=cache_file ;;
1304   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1305   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1306     cache_file=$ac_optarg ;;
1307 
1308   --config-cache | -C)
1309     cache_file=config.cache ;;
1310 
1311   -datadir | --datadir | --datadi | --datad)
1312     ac_prev=datadir ;;
1313   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1314     datadir=$ac_optarg ;;
1315 
1316   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1317   | --dataroo | --dataro | --datar)
1318     ac_prev=datarootdir ;;
1319   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1320   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1321     datarootdir=$ac_optarg ;;
1322 
1323   -disable-* | --disable-*)
1324     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1325     # Reject names that are not valid shell variable names.
1326     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327       as_fn_error $? "invalid feature name: $ac_useropt"
1328     ac_useropt_orig=$ac_useropt
1329     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330     case $ac_user_opts in
1331       *"
1332 "enable_$ac_useropt"
1333 "*) ;;
1334       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1335          ac_unrecognized_sep=', ';;
1336     esac
1337     eval enable_$ac_useropt=no ;;
1338 
1339   -docdir | --docdir | --docdi | --doc | --do)
1340     ac_prev=docdir ;;
1341   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1342     docdir=$ac_optarg ;;
1343 
1344   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1345     ac_prev=dvidir ;;
1346   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1347     dvidir=$ac_optarg ;;
1348 
1349   -enable-* | --enable-*)
1350     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1351     # Reject names that are not valid shell variable names.
1352     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353       as_fn_error $? "invalid feature name: $ac_useropt"
1354     ac_useropt_orig=$ac_useropt
1355     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356     case $ac_user_opts in
1357       *"
1358 "enable_$ac_useropt"
1359 "*) ;;
1360       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1361          ac_unrecognized_sep=', ';;
1362     esac
1363     eval enable_$ac_useropt=\$ac_optarg ;;
1364 
1365   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1366   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1367   | --exec | --exe | --ex)
1368     ac_prev=exec_prefix ;;
1369   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1370   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1371   | --exec=* | --exe=* | --ex=*)
1372     exec_prefix=$ac_optarg ;;
1373 
1374   -gas | --gas | --ga | --g)
1375     # Obsolete; use --with-gas.
1376     with_gas=yes ;;
1377 
1378   -help | --help | --hel | --he | -h)
1379     ac_init_help=long ;;
1380   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1381     ac_init_help=recursive ;;
1382   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1383     ac_init_help=short ;;
1384 
1385   -host | --host | --hos | --ho)
1386     ac_prev=host_alias ;;
1387   -host=* | --host=* | --hos=* | --ho=*)
1388     host_alias=$ac_optarg ;;
1389 
1390   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1391     ac_prev=htmldir ;;
1392   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1393   | --ht=*)
1394     htmldir=$ac_optarg ;;
1395 
1396   -includedir | --includedir | --includedi | --included | --include \
1397   | --includ | --inclu | --incl | --inc)
1398     ac_prev=includedir ;;
1399   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1400   | --includ=* | --inclu=* | --incl=* | --inc=*)
1401     includedir=$ac_optarg ;;
1402 
1403   -infodir | --infodir | --infodi | --infod | --info | --inf)
1404     ac_prev=infodir ;;
1405   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1406     infodir=$ac_optarg ;;
1407 
1408   -libdir | --libdir | --libdi | --libd)
1409     ac_prev=libdir ;;
1410   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1411     libdir=$ac_optarg ;;
1412 
1413   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1414   | --libexe | --libex | --libe)
1415     ac_prev=libexecdir ;;
1416   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1417   | --libexe=* | --libex=* | --libe=*)
1418     libexecdir=$ac_optarg ;;
1419 
1420   -localedir | --localedir | --localedi | --localed | --locale)
1421     ac_prev=localedir ;;
1422   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1423     localedir=$ac_optarg ;;
1424 
1425   -localstatedir | --localstatedir | --localstatedi | --localstated \
1426   | --localstate | --localstat | --localsta | --localst | --locals)
1427     ac_prev=localstatedir ;;
1428   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1429   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1430     localstatedir=$ac_optarg ;;
1431 
1432   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1433     ac_prev=mandir ;;
1434   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1435     mandir=$ac_optarg ;;
1436 
1437   -nfp | --nfp | --nf)
1438     # Obsolete; use --without-fp.
1439     with_fp=no ;;
1440 
1441   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1442   | --no-cr | --no-c | -n)
1443     no_create=yes ;;
1444 
1445   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1446   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1447     no_recursion=yes ;;
1448 
1449   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1450   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1451   | --oldin | --oldi | --old | --ol | --o)
1452     ac_prev=oldincludedir ;;
1453   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1454   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1455   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1456     oldincludedir=$ac_optarg ;;
1457 
1458   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1459     ac_prev=prefix ;;
1460   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1461     prefix=$ac_optarg ;;
1462 
1463   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1464   | --program-pre | --program-pr | --program-p)
1465     ac_prev=program_prefix ;;
1466   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1467   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1468     program_prefix=$ac_optarg ;;
1469 
1470   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1471   | --program-suf | --program-su | --program-s)
1472     ac_prev=program_suffix ;;
1473   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1474   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1475     program_suffix=$ac_optarg ;;
1476 
1477   -program-transform-name | --program-transform-name \
1478   | --program-transform-nam | --program-transform-na \
1479   | --program-transform-n | --program-transform- \
1480   | --program-transform | --program-transfor \
1481   | --program-transfo | --program-transf \
1482   | --program-trans | --program-tran \
1483   | --progr-tra | --program-tr | --program-t)
1484     ac_prev=program_transform_name ;;
1485   -program-transform-name=* | --program-transform-name=* \
1486   | --program-transform-nam=* | --program-transform-na=* \
1487   | --program-transform-n=* | --program-transform-=* \
1488   | --program-transform=* | --program-transfor=* \
1489   | --program-transfo=* | --program-transf=* \
1490   | --program-trans=* | --program-tran=* \
1491   | --progr-tra=* | --program-tr=* | --program-t=*)
1492     program_transform_name=$ac_optarg ;;
1493 
1494   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1495     ac_prev=pdfdir ;;
1496   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1497     pdfdir=$ac_optarg ;;
1498 
1499   -psdir | --psdir | --psdi | --psd | --ps)
1500     ac_prev=psdir ;;
1501   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1502     psdir=$ac_optarg ;;
1503 
1504   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505   | -silent | --silent | --silen | --sile | --sil)
1506     silent=yes ;;
1507 
1508   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1509     ac_prev=sbindir ;;
1510   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1511   | --sbi=* | --sb=*)
1512     sbindir=$ac_optarg ;;
1513 
1514   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1515   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1516   | --sharedst | --shareds | --shared | --share | --shar \
1517   | --sha | --sh)
1518     ac_prev=sharedstatedir ;;
1519   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1520   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1521   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1522   | --sha=* | --sh=*)
1523     sharedstatedir=$ac_optarg ;;
1524 
1525   -site | --site | --sit)
1526     ac_prev=site ;;
1527   -site=* | --site=* | --sit=*)
1528     site=$ac_optarg ;;
1529 
1530   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1531     ac_prev=srcdir ;;
1532   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1533     srcdir=$ac_optarg ;;
1534 
1535   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1536   | --syscon | --sysco | --sysc | --sys | --sy)
1537     ac_prev=sysconfdir ;;
1538   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1539   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1540     sysconfdir=$ac_optarg ;;
1541 
1542   -target | --target | --targe | --targ | --tar | --ta | --t)
1543     ac_prev=target_alias ;;
1544   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1545     target_alias=$ac_optarg ;;
1546 
1547   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1548     verbose=yes ;;
1549 
1550   -version | --version | --versio | --versi | --vers | -V)
1551     ac_init_version=: ;;
1552 
1553   -with-* | --with-*)
1554     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1555     # Reject names that are not valid shell variable names.
1556     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1557       as_fn_error $? "invalid package name: $ac_useropt"
1558     ac_useropt_orig=$ac_useropt
1559     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1560     case $ac_user_opts in
1561       *"
1562 "with_$ac_useropt"
1563 "*) ;;
1564       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1565          ac_unrecognized_sep=', ';;
1566     esac
1567     eval with_$ac_useropt=\$ac_optarg ;;
1568 
1569   -without-* | --without-*)
1570     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1571     # Reject names that are not valid shell variable names.
1572     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1573       as_fn_error $? "invalid package name: $ac_useropt"
1574     ac_useropt_orig=$ac_useropt
1575     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1576     case $ac_user_opts in
1577       *"
1578 "with_$ac_useropt"
1579 "*) ;;
1580       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1581          ac_unrecognized_sep=', ';;
1582     esac
1583     eval with_$ac_useropt=no ;;
1584 
1585   --x)
1586     # Obsolete; use --with-x.
1587     with_x=yes ;;
1588 
1589   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1590   | --x-incl | --x-inc | --x-in | --x-i)
1591     ac_prev=x_includes ;;
1592   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1593   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1594     x_includes=$ac_optarg ;;
1595 
1596   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1597   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1598     ac_prev=x_libraries ;;
1599   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1600   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1601     x_libraries=$ac_optarg ;;
1602 
1603   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1604 Try \`$0 --help' for more information"
1605     ;;
1606 
1607   *=*)
1608     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1609     # Reject names that are not valid shell variable names.
1610     case $ac_envvar in #(
1611       '' | [0-9]* | *[!_$as_cr_alnum]* )
1612       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1613     esac
1614     eval $ac_envvar=\$ac_optarg
1615     export $ac_envvar ;;
1616 
1617   *)
1618     # FIXME: should be removed in autoconf 3.0.
1619     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1620     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1621       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1622     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1623     ;;
1624 
1625   esac
1626 done
1627 
1628 if test -n "$ac_prev"; then
1629   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1630   as_fn_error $? "missing argument to $ac_option"
1631 fi
1632 
1633 if test -n "$ac_unrecognized_opts"; then
1634   case $enable_option_checking in
1635     no) ;;
1636     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1637     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1638   esac
1639 fi
1640 
1641 # Check all directory arguments for consistency.
1642 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1643                 datadir sysconfdir sharedstatedir localstatedir includedir \
1644                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1645                 libdir localedir mandir
1646 do
1647   eval ac_val=\$$ac_var
1648   # Remove trailing slashes.
1649   case $ac_val in
1650     */ )
1651       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1652       eval $ac_var=\$ac_val;;
1653   esac
1654   # Be sure to have absolute directory names.
1655   case $ac_val in
1656     [\\/$]* | ?:[\\/]* )  continue;;
1657     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1658   esac
1659   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1660 done
1661 
1662 # There might be people who depend on the old broken behavior: `$host'
1663 # used to hold the argument of --host etc.
1664 # FIXME: To remove some day.
1665 build=$build_alias
1666 host=$host_alias
1667 target=$target_alias
1668 
1669 # FIXME: To remove some day.
1670 if test "x$host_alias" != x; then
1671   if test "x$build_alias" = x; then
1672     cross_compiling=maybe
1673   elif test "x$build_alias" != "x$host_alias"; then
1674     cross_compiling=yes
1675   fi
1676 fi
1677 
1678 ac_tool_prefix=
1679 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1680 
1681 test "$silent" = yes && exec 6>/dev/null
1682 
1683 
1684 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1685 ac_ls_di=`ls -di .` &&
1686 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1687   as_fn_error $? "working directory cannot be determined"
1688 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1689   as_fn_error $? "pwd does not report name of working directory"
1690 
1691 
1692 # Find the source files, if location was not specified.
1693 if test -z "$srcdir"; then
1694   ac_srcdir_defaulted=yes
1695   # Try the directory containing this script, then the parent directory.
1696   ac_confdir=`$as_dirname -- "$as_myself" ||
1697 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1698          X"$as_myself" : 'X\(//\)[^/]' \| \
1699          X"$as_myself" : 'X\(//\)$' \| \
1700          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1701 $as_echo X"$as_myself" |
1702     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1703             s//\1/
1704             q
1705           }
1706           /^X\(\/\/\)[^/].*/{
1707             s//\1/
1708             q
1709           }
1710           /^X\(\/\/\)$/{
1711             s//\1/
1712             q
1713           }
1714           /^X\(\/\).*/{
1715             s//\1/
1716             q
1717           }
1718           s/.*/./; q'`
1719   srcdir=$ac_confdir
1720   if test ! -r "$srcdir/$ac_unique_file"; then
1721     srcdir=..
1722   fi
1723 else
1724   ac_srcdir_defaulted=no
1725 fi
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1728   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1729 fi
1730 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1731 ac_abs_confdir=`(
1732         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1733         pwd)`
1734 # When building in place, set srcdir=.
1735 if test "$ac_abs_confdir" = "$ac_pwd"; then
1736   srcdir=.
1737 fi
1738 # Remove unnecessary trailing slashes from srcdir.
1739 # Double slashes in file names in object file debugging info
1740 # mess up M-x gdb in Emacs.
1741 case $srcdir in
1742 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1743 esac
1744 for ac_var in $ac_precious_vars; do
1745   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1746   eval ac_env_${ac_var}_value=\$${ac_var}
1747   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1748   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1749 done
1750 
1751 #
1752 # Report the --help message.
1753 #
1754 if test "$ac_init_help" = "long"; then
1755   # Omit some internal or obsolete options to make the list less imposing.
1756   # This message is too long to be a string in the A/UX 3.1 sh.
1757   cat <<_ACEOF
1758 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1759 
1760 Usage: $0 [OPTION]... [VAR=VALUE]...
1761 
1762 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1763 VAR=VALUE.  See below for descriptions of some of the useful variables.
1764 
1765 Defaults for the options are specified in brackets.
1766 
1767 Configuration:
1768   -h, --help              display this help and exit
1769       --help=short        display options specific to this package
1770       --help=recursive    display the short help of all the included packages
1771   -V, --version           display version information and exit
1772   -q, --quiet, --silent   do not print \`checking ...' messages
1773       --cache-file=FILE   cache test results in FILE [disabled]
1774   -C, --config-cache      alias for \`--cache-file=config.cache'
1775   -n, --no-create         do not create output files
1776       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1777 
1778 Installation directories:
1779   --prefix=PREFIX         install architecture-independent files in PREFIX
1780                           [$ac_default_prefix]
1781   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1782                           [PREFIX]
1783 
1784 By default, \`make install' will install all the files in
1785 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1786 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1787 for instance \`--prefix=\$HOME'.
1788 
1789 For better control, use the options below.
1790 
1791 Fine tuning of the installation directories:
1792   --bindir=DIR            user executables [EPREFIX/bin]
1793   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1794   --libexecdir=DIR        program executables [EPREFIX/libexec]
1795   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1796   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1797   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1798   --libdir=DIR            object code libraries [EPREFIX/lib]
1799   --includedir=DIR        C header files [PREFIX/include]
1800   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1801   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1802   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1803   --infodir=DIR           info documentation [DATAROOTDIR/info]
1804   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1805   --mandir=DIR            man documentation [DATAROOTDIR/man]
1806   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1807   --htmldir=DIR           html documentation [DOCDIR]
1808   --dvidir=DIR            dvi documentation [DOCDIR]
1809   --pdfdir=DIR            pdf documentation [DOCDIR]
1810   --psdir=DIR             ps documentation [DOCDIR]
1811 _ACEOF
1812 
1813   cat <<\_ACEOF
1814 
1815 X features:
1816   --x-includes=DIR    X include files are in DIR
1817   --x-libraries=DIR   X library files are in DIR
1818 
1819 System types:
1820   --build=BUILD     configure for building on BUILD [guessed]
1821   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1822   --target=TARGET   configure for building compilers for TARGET [HOST]
1823 _ACEOF
1824 fi
1825 
1826 if test -n "$ac_init_help"; then
1827   case $ac_init_help in
1828      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1829    esac
1830   cat <<\_ACEOF
1831 
1832 Optional Features:
1833   --disable-option-checking  ignore unrecognized --enable/--with options
1834   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1835   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1836   --enable-openjdk-only   suppress building custom source even if present
1837                           [disabled]
1838   --enable-debug          set the debug level to fastdebug (shorthand for
1839                           --with-debug-level=fastdebug) [disabled]
1840   --disable-headful       disable building headful support (graphical UI
1841                           support) [enabled]
1842   --enable-hotspot-test-in-build
1843                           run the Queens test after Hotspot build [disabled]
1844   --enable-unlimited-crypto
1845                           Enable unlimited crypto policy [disabled]
1846   --disable-debug-symbols disable generation of debug symbols [enabled]
1847   --disable-zip-debug-info
1848                           disable zipping of debug-info files [enabled]
1849   --enable-macosx-runtime-support
1850                           Deprecated. Option is kept for backwards
1851                           compatibility and is ignored
1852   --disable-freetype-bundling
1853                           disable bundling of the freetype library with the
1854                           build result [enabled on Windows or when using
1855                           --with-freetype, disabled otherwise]
1856   --enable-sjavac         use sjavac to do fast incremental compiles
1857                           [disabled]
1858   --disable-precompiled-headers
1859                           disable using precompiled headers when compiling C++
1860                           [enabled]
1861   --enable-ccache         enable using ccache to speed up recompilations
1862                           [disabled]
1863 
1864 Optional Packages:
1865   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1866   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1867   --with-custom-make-dir  use this directory for custom build/make files
1868   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1869                           support it), e.g. --with-target-bits=32 [guessed]
1870   --with-jdk-variant      JDK variant to build (normal) [normal]
1871   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1872   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1873                           client, minimal1, kernel, zero, zeroshark, core)
1874                           [server]
1875   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1876                           [release]
1877   --with-devkit           use this devkit for compilers, tools and resources
1878   --with-sys-root         alias for --with-sysroot for backwards compatability
1879   --with-sysroot          use this directory as sysroot)
1880   --with-tools-dir        alias for --with-toolchain-path for backwards
1881                           compatibility
1882   --with-toolchain-path   prepend these directories when searching for
1883                           toolchain binaries (compilers etc)
1884   --with-extra-path       prepend these directories to the default path
1885   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1886                           10.9 and later)
1887   --with-conf-name        use this as the name of the configuration [generated
1888                           from important configuration options]
1889   --with-builddeps-conf   use this configuration file for the builddeps
1890   --with-builddeps-server download and use build dependencies from this server
1891                           url
1892   --with-builddeps-dir    store downloaded build dependencies here
1893                           [/localhome/builddeps]
1894   --with-builddeps-group  chgrp the downloaded build dependencies to this
1895                           group
1896   --with-cacerts-file     specify alternative cacerts file
1897   --with-milestone        Set milestone value for build [internal]
1898   --with-update-version   Set update version value for build [b00]
1899   --with-user-release-suffix
1900                           Add a custom string to the version string if build
1901                           number isn't set.[username_builddateb00]
1902   --with-build-number     Set build number value for build [b00]
1903   --with-vendor-name      Set vendor name. Among others, used to set the
1904                           'java.vendor' and 'java.vm.vendor' system
1905                           properties. [not specified]
1906   --with-vendor-url       Set the 'java.vendor.url' system property [not
1907                           specified]
1908   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1909                           specified]
1910   --with-vendor-vm-bug-url
1911                           Sets the bug URL which will be displayed when the VM
1912                           crashes [not specified]
1913   --with-copyright-year   Set copyright year value for build [current year]
1914   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1915   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1916                           invocations of the Boot JDK, overriding the default
1917                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1918                           -enableassertions"
1919   --with-add-source-root  for each and every source directory, look in this
1920                           additional source root for the same directory; if it
1921                           exists and have files in it, include it in the build
1922   --with-override-source-root
1923                           for each and every source directory, look in this
1924                           override source root for the same directory; if it
1925                           exists, use that directory instead and ignore the
1926                           directory in the original source root
1927   --with-adds-and-overrides
1928                           use the subdirs 'adds' and 'overrides' in the
1929                           specified directory as add-source-root and
1930                           override-source-root
1931   --with-override-langtools
1932                           use this langtools dir for the build
1933   --with-override-corba   use this corba dir for the build
1934   --with-override-jaxp    use this jaxp dir for the build
1935   --with-override-jaxws   use this jaxws dir for the build
1936   --with-override-hotspot use this hotspot dir for the build
1937   --with-override-nashorn use this nashorn dir for the build
1938   --with-override-jdk     use this jdk dir for the build
1939   --with-import-hotspot   import hotspot binaries from this jdk image or
1940                           hotspot build dist dir instead of building from
1941                           source
1942   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1943                           to show possible values [platform dependent]
1944   --with-toolchain-version
1945                           the version of the toolchain to look for, use
1946                           '--help' to show possible values [platform
1947                           dependent]
1948   --with-jtreg            Regression Test Harness [probed]
1949   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1950   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1951   --with-extra-ldflags    extra flags to be used when linking jdk
1952   --with-extra-asflags    extra flags to be passed to the assembler
1953   --with-native-debug-symbols
1954                           set the native debug symbol configuration (none,
1955                           internal, external, zipped) [varying]
1956   --with-x                use the X Window System
1957   --with-cups             specify prefix directory for the cups package
1958                           (expecting the headers under PATH/include)
1959   --with-cups-include     specify directory for the cups include files
1960   --with-freetype         specify prefix directory for the freetype package
1961                           (expecting the libraries under PATH/lib and the
1962                           headers under PATH/include)
1963   --with-freetype-include specify directory for the freetype include files
1964   --with-freetype-lib     specify directory for the freetype library
1965   --with-freetype-src     specify directory with freetype sources to
1966                           automatically build the library (experimental,
1967                           Windows-only)
1968   --with-alsa             specify prefix directory for the alsa package
1969                           (expecting the libraries under PATH/lib and the
1970                           headers under PATH/include)
1971   --with-alsa-include     specify directory for the alsa include files
1972   --with-alsa-lib         specify directory for the alsa library
1973   --with-fontconfig       specify prefix directory for the fontconfig package
1974                           (expecting the headers under PATH/include)
1975   --with-fontconfig-include
1976                           specify directory for the fontconfig include files
1977   --with-giflib           use giflib from build system or OpenJDK source
1978                           (system, bundled) [bundled]
1979   --with-zlib             use zlib from build system or OpenJDK source
1980                           (system, bundled) [bundled]
1981   --with-stdc++lib=<static>,<dynamic>,<default>
1982                           force linking of the C++ runtime on Linux to either
1983                           static or dynamic, default is static with dynamic as
1984                           fallback
1985   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1986                           (Windows only) [probed]
1987   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1988                           (Windows only) [probed]
1989   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
1990                           only) [probed]
1991   --with-dxsdk            Deprecated. Option is kept for backwards
1992                           compatibility and is ignored
1993   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1994                           compatibility and is ignored
1995   --with-dxsdk-include    Deprecated. Option is kept for backwards
1996                           compatibility and is ignored
1997   --with-num-cores        number of cores in the build system, e.g.
1998                           --with-num-cores=8 [probed]
1999   --with-memory-size      memory (in MB) available in the build system, e.g.
2000                           --with-memory-size=1024 [probed]
2001   --with-jobs             number of parallel jobs to let make run [calculated
2002                           based on cores and memory]
2003   --with-sjavac-server-java
2004                           use this java binary for running the sjavac
2005                           background server [Boot JDK java]
2006   --with-ccache-dir       where to store ccache files [~/.ccache]
2007 
2008 Some influential environment variables:
2009   BASENAME    Override default value for BASENAME
2010   BASH        Override default value for BASH
2011   CAT         Override default value for CAT
2012   CHMOD       Override default value for CHMOD
2013   CMP         Override default value for CMP
2014   COMM        Override default value for COMM
2015   CP          Override default value for CP
2016   CUT         Override default value for CUT
2017   DATE        Override default value for DATE
2018   DIFF        Override default value for DIFF
2019   DIRNAME     Override default value for DIRNAME
2020   ECHO        Override default value for ECHO
2021   EXPR        Override default value for EXPR
2022   FILE        Override default value for FILE
2023   FIND        Override default value for FIND
2024   HEAD        Override default value for HEAD
2025   LN          Override default value for LN
2026   LS          Override default value for LS
2027   MKDIR       Override default value for MKDIR
2028   MKTEMP      Override default value for MKTEMP
2029   MV          Override default value for MV
2030   NAWK        Override default value for NAWK
2031   PRINTF      Override default value for PRINTF
2032   RM          Override default value for RM
2033   SH          Override default value for SH
2034   SORT        Override default value for SORT
2035   TAIL        Override default value for TAIL
2036   TAR         Override default value for TAR
2037   TEE         Override default value for TEE
2038   TOUCH       Override default value for TOUCH
2039   TR          Override default value for TR
2040   UNAME       Override default value for UNAME
2041   UNIQ        Override default value for UNIQ
2042   WC          Override default value for WC
2043   WHICH       Override default value for WHICH
2044   XARGS       Override default value for XARGS
2045   AWK         Override default value for AWK
2046   GREP        Override default value for GREP
2047   EGREP       Override default value for EGREP
2048   FGREP       Override default value for FGREP
2049   SED         Override default value for SED
2050   CYGPATH     Override default value for CYGPATH
2051   READLINK    Override default value for READLINK
2052   DF          Override default value for DF
2053   SETFILE     Override default value for SETFILE
2054   CPIO        Override default value for CPIO
2055   UNZIP       Override default value for UNZIP
2056   ZIP         Override default value for ZIP
2057   LDD         Override default value for LDD
2058   READELF     Override default value for READELF
2059   HG          Override default value for HG
2060   STAT        Override default value for STAT
2061   TIME        Override default value for TIME
2062   DSYMUTIL    Override default value for DSYMUTIL
2063   XATTR       Override default value for XATTR
2064   CODESIGN    Override default value for CODESIGN
2065   PKG_CONFIG  path to pkg-config utility
2066   CC          C compiler command
2067   CFLAGS      C compiler flags
2068   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2069               nonstandard directory <lib dir>
2070   LIBS        libraries to pass to the linker, e.g. -l<library>
2071   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2072               you have headers in a nonstandard directory <include dir>
2073   CXX         C++ compiler command
2074   CXXFLAGS    C++ compiler flags
2075   CPP         C preprocessor
2076   CXXCPP      C++ preprocessor
2077   AS          Override default value for AS
2078   AR          Override default value for AR
2079   OBJC        Objective C compiler command
2080   OBJCFLAGS   Objective C compiler flags
2081   LIPO        Override default value for LIPO
2082   STRIP       Override default value for STRIP
2083   NM          Override default value for NM
2084   GNM         Override default value for GNM
2085   MCS         Override default value for MCS
2086   OBJCOPY     Override default value for OBJCOPY
2087   OBJDUMP     Override default value for OBJDUMP
2088   BUILD_CC    Override default value for BUILD_CC
2089   BUILD_CXX   Override default value for BUILD_CXX
2090   BUILD_LD    Override default value for BUILD_LD
2091   JTREGEXE    Override default value for JTREGEXE
2092   XMKMF       Path to xmkmf, Makefile generator for X Window System
2093   FREETYPE_CFLAGS
2094               C compiler flags for FREETYPE, overriding pkg-config
2095   FREETYPE_LIBS
2096               linker flags for FREETYPE, overriding pkg-config
2097   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2098   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2099   LIBFFI_CFLAGS
2100               C compiler flags for LIBFFI, overriding pkg-config
2101   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2102   CCACHE      Override default value for CCACHE
2103 
2104 Use these variables to override the choices made by `configure' or to help
2105 it to find libraries and programs with nonstandard names/locations.
2106 
2107 Report bugs to <build-dev@openjdk.java.net>.
2108 OpenJDK home page: <http://openjdk.java.net>.
2109 _ACEOF
2110 ac_status=$?
2111 fi
2112 
2113 if test "$ac_init_help" = "recursive"; then
2114   # If there are subdirs, report their specific --help.
2115   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2116     test -d "$ac_dir" ||
2117       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2118       continue
2119     ac_builddir=.
2120 
2121 case "$ac_dir" in
2122 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 *)
2124   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2125   # A ".." for each directory in $ac_dir_suffix.
2126   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2127   case $ac_top_builddir_sub in
2128   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2129   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2130   esac ;;
2131 esac
2132 ac_abs_top_builddir=$ac_pwd
2133 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2134 # for backward compatibility:
2135 ac_top_builddir=$ac_top_build_prefix
2136 
2137 case $srcdir in
2138   .)  # We are building in place.
2139     ac_srcdir=.
2140     ac_top_srcdir=$ac_top_builddir_sub
2141     ac_abs_top_srcdir=$ac_pwd ;;
2142   [\\/]* | ?:[\\/]* )  # Absolute name.
2143     ac_srcdir=$srcdir$ac_dir_suffix;
2144     ac_top_srcdir=$srcdir
2145     ac_abs_top_srcdir=$srcdir ;;
2146   *) # Relative name.
2147     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2148     ac_top_srcdir=$ac_top_build_prefix$srcdir
2149     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2150 esac
2151 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2152 
2153     cd "$ac_dir" || { ac_status=$?; continue; }
2154     # Check for guested configure.
2155     if test -f "$ac_srcdir/configure.gnu"; then
2156       echo &&
2157       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2158     elif test -f "$ac_srcdir/configure"; then
2159       echo &&
2160       $SHELL "$ac_srcdir/configure" --help=recursive
2161     else
2162       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2163     fi || ac_status=$?
2164     cd "$ac_pwd" || { ac_status=$?; break; }
2165   done
2166 fi
2167 
2168 test -n "$ac_init_help" && exit $ac_status
2169 if $ac_init_version; then
2170   cat <<\_ACEOF
2171 OpenJDK configure jdk8
2172 generated by GNU Autoconf 2.69
2173 
2174 Copyright (C) 2012 Free Software Foundation, Inc.
2175 This configure script is free software; the Free Software Foundation
2176 gives unlimited permission to copy, distribute and modify it.
2177 _ACEOF
2178   exit
2179 fi
2180 
2181 ## ------------------------ ##
2182 ## Autoconf initialization. ##
2183 ## ------------------------ ##
2184 
2185 # ac_fn_c_try_compile LINENO
2186 # --------------------------
2187 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2188 ac_fn_c_try_compile ()
2189 {
2190   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191   rm -f conftest.$ac_objext
2192   if { { ac_try="$ac_compile"
2193 case "(($ac_try" in
2194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195   *) ac_try_echo=$ac_try;;
2196 esac
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199   (eval "$ac_compile") 2>conftest.err
2200   ac_status=$?
2201   if test -s conftest.err; then
2202     grep -v '^ *+' conftest.err >conftest.er1
2203     cat conftest.er1 >&5
2204     mv -f conftest.er1 conftest.err
2205   fi
2206   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2207   test $ac_status = 0; } && {
2208          test -z "$ac_c_werror_flag" ||
2209          test ! -s conftest.err
2210        } && test -s conftest.$ac_objext; then :
2211   ac_retval=0
2212 else
2213   $as_echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2215 
2216         ac_retval=1
2217 fi
2218   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2219   as_fn_set_status $ac_retval
2220 
2221 } # ac_fn_c_try_compile
2222 
2223 # ac_fn_cxx_try_compile LINENO
2224 # ----------------------------
2225 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2226 ac_fn_cxx_try_compile ()
2227 {
2228   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229   rm -f conftest.$ac_objext
2230   if { { ac_try="$ac_compile"
2231 case "(($ac_try" in
2232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233   *) ac_try_echo=$ac_try;;
2234 esac
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237   (eval "$ac_compile") 2>conftest.err
2238   ac_status=$?
2239   if test -s conftest.err; then
2240     grep -v '^ *+' conftest.err >conftest.er1
2241     cat conftest.er1 >&5
2242     mv -f conftest.er1 conftest.err
2243   fi
2244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245   test $ac_status = 0; } && {
2246          test -z "$ac_cxx_werror_flag" ||
2247          test ! -s conftest.err
2248        } && test -s conftest.$ac_objext; then :
2249   ac_retval=0
2250 else
2251   $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2253 
2254         ac_retval=1
2255 fi
2256   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257   as_fn_set_status $ac_retval
2258 
2259 } # ac_fn_cxx_try_compile
2260 
2261 # ac_fn_c_try_cpp LINENO
2262 # ----------------------
2263 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2264 ac_fn_c_try_cpp ()
2265 {
2266   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267   if { { ac_try="$ac_cpp conftest.$ac_ext"
2268 case "(($ac_try" in
2269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270   *) ac_try_echo=$ac_try;;
2271 esac
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 $as_echo "$ac_try_echo"; } >&5
2274   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2275   ac_status=$?
2276   if test -s conftest.err; then
2277     grep -v '^ *+' conftest.err >conftest.er1
2278     cat conftest.er1 >&5
2279     mv -f conftest.er1 conftest.err
2280   fi
2281   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282   test $ac_status = 0; } > conftest.i && {
2283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2284          test ! -s conftest.err
2285        }; then :
2286   ac_retval=0
2287 else
2288   $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290 
2291     ac_retval=1
2292 fi
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294   as_fn_set_status $ac_retval
2295 
2296 } # ac_fn_c_try_cpp
2297 
2298 # ac_fn_cxx_try_cpp LINENO
2299 # ------------------------
2300 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2301 ac_fn_cxx_try_cpp ()
2302 {
2303   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304   if { { ac_try="$ac_cpp conftest.$ac_ext"
2305 case "(($ac_try" in
2306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2307   *) ac_try_echo=$ac_try;;
2308 esac
2309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2310 $as_echo "$ac_try_echo"; } >&5
2311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2312   ac_status=$?
2313   if test -s conftest.err; then
2314     grep -v '^ *+' conftest.err >conftest.er1
2315     cat conftest.er1 >&5
2316     mv -f conftest.er1 conftest.err
2317   fi
2318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2319   test $ac_status = 0; } > conftest.i && {
2320          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2321          test ! -s conftest.err
2322        }; then :
2323   ac_retval=0
2324 else
2325   $as_echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327 
2328     ac_retval=1
2329 fi
2330   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331   as_fn_set_status $ac_retval
2332 
2333 } # ac_fn_cxx_try_cpp
2334 
2335 # ac_fn_objc_try_compile LINENO
2336 # -----------------------------
2337 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2338 ac_fn_objc_try_compile ()
2339 {
2340   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341   rm -f conftest.$ac_objext
2342   if { { ac_try="$ac_compile"
2343 case "(($ac_try" in
2344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345   *) ac_try_echo=$ac_try;;
2346 esac
2347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348 $as_echo "$ac_try_echo"; } >&5
2349   (eval "$ac_compile") 2>conftest.err
2350   ac_status=$?
2351   if test -s conftest.err; then
2352     grep -v '^ *+' conftest.err >conftest.er1
2353     cat conftest.er1 >&5
2354     mv -f conftest.er1 conftest.err
2355   fi
2356   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2357   test $ac_status = 0; } && {
2358          test -z "$ac_objc_werror_flag" ||
2359          test ! -s conftest.err
2360        } && test -s conftest.$ac_objext; then :
2361   ac_retval=0
2362 else
2363   $as_echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365 
2366         ac_retval=1
2367 fi
2368   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2369   as_fn_set_status $ac_retval
2370 
2371 } # ac_fn_objc_try_compile
2372 
2373 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2374 # ---------------------------------------------------------
2375 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2376 # the include files in INCLUDES and setting the cache variable VAR
2377 # accordingly.
2378 ac_fn_cxx_check_header_mongrel ()
2379 {
2380   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2381   if eval \${$3+:} false; then :
2382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2383 $as_echo_n "checking for $2... " >&6; }
2384 if eval \${$3+:} false; then :
2385   $as_echo_n "(cached) " >&6
2386 fi
2387 eval ac_res=\$$3
2388                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389 $as_echo "$ac_res" >&6; }
2390 else
2391   # Is the header compilable?
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2393 $as_echo_n "checking $2 usability... " >&6; }
2394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2395 /* end confdefs.h.  */
2396 $4
2397 #include <$2>
2398 _ACEOF
2399 if ac_fn_cxx_try_compile "$LINENO"; then :
2400   ac_header_compiler=yes
2401 else
2402   ac_header_compiler=no
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2406 $as_echo "$ac_header_compiler" >&6; }
2407 
2408 # Is the header present?
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2410 $as_echo_n "checking $2 presence... " >&6; }
2411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h.  */
2413 #include <$2>
2414 _ACEOF
2415 if ac_fn_cxx_try_cpp "$LINENO"; then :
2416   ac_header_preproc=yes
2417 else
2418   ac_header_preproc=no
2419 fi
2420 rm -f conftest.err conftest.i conftest.$ac_ext
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2422 $as_echo "$ac_header_preproc" >&6; }
2423 
2424 # So?  What about this header?
2425 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2426   yes:no: )
2427     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2428 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2430 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2431     ;;
2432   no:yes:* )
2433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2434 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2435     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2436 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2437     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2438 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2439     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2440 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2441     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2442 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2443 ( $as_echo "## ----------------------------------------- ##
2444 ## Report this to build-dev@openjdk.java.net ##
2445 ## ----------------------------------------- ##"
2446      ) | sed "s/^/$as_me: WARNING:     /" >&2
2447     ;;
2448 esac
2449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if eval \${$3+:} false; then :
2452   $as_echo_n "(cached) " >&6
2453 else
2454   eval "$3=\$ac_header_compiler"
2455 fi
2456 eval ac_res=\$$3
2457                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2458 $as_echo "$ac_res" >&6; }
2459 fi
2460   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2461 
2462 } # ac_fn_cxx_check_header_mongrel
2463 
2464 # ac_fn_cxx_try_run LINENO
2465 # ------------------------
2466 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2467 # that executables *can* be run.
2468 ac_fn_cxx_try_run ()
2469 {
2470   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2471   if { { ac_try="$ac_link"
2472 case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2477 $as_echo "$ac_try_echo"; } >&5
2478   (eval "$ac_link") 2>&5
2479   ac_status=$?
2480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2482   { { case "(($ac_try" in
2483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2484   *) ac_try_echo=$ac_try;;
2485 esac
2486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2487 $as_echo "$ac_try_echo"; } >&5
2488   (eval "$ac_try") 2>&5
2489   ac_status=$?
2490   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2491   test $ac_status = 0; }; }; then :
2492   ac_retval=0
2493 else
2494   $as_echo "$as_me: program exited with status $ac_status" >&5
2495        $as_echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2497 
2498        ac_retval=$ac_status
2499 fi
2500   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2501   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2502   as_fn_set_status $ac_retval
2503 
2504 } # ac_fn_cxx_try_run
2505 
2506 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2507 # ---------------------------------------------------------
2508 # Tests whether HEADER exists and can be compiled using the include files in
2509 # INCLUDES, setting the cache variable VAR accordingly.
2510 ac_fn_cxx_check_header_compile ()
2511 {
2512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval \${$3+:} false; then :
2516   $as_echo_n "(cached) " >&6
2517 else
2518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h.  */
2520 $4
2521 #include <$2>
2522 _ACEOF
2523 if ac_fn_cxx_try_compile "$LINENO"; then :
2524   eval "$3=yes"
2525 else
2526   eval "$3=no"
2527 fi
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 fi
2530 eval ac_res=\$$3
2531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2534 
2535 } # ac_fn_cxx_check_header_compile
2536 
2537 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2538 # ----------------------------------------------
2539 # Tries to find the compile-time value of EXPR in a program that includes
2540 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2541 # computed
2542 ac_fn_cxx_compute_int ()
2543 {
2544   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545   if test "$cross_compiling" = yes; then
2546     # Depending upon the size, compute the lo and hi bounds.
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h.  */
2549 $4
2550 int
2551 main ()
2552 {
2553 static int test_array [1 - 2 * !(($2) >= 0)];
2554 test_array [0] = 0;
2555 return test_array [0];
2556 
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_cxx_try_compile "$LINENO"; then :
2562   ac_lo=0 ac_mid=0
2563   while :; do
2564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 $4
2567 int
2568 main ()
2569 {
2570 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2571 test_array [0] = 0;
2572 return test_array [0];
2573 
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
2578 if ac_fn_cxx_try_compile "$LINENO"; then :
2579   ac_hi=$ac_mid; break
2580 else
2581   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2582                         if test $ac_lo -le $ac_mid; then
2583                           ac_lo= ac_hi=
2584                           break
2585                         fi
2586                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2587 fi
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2589   done
2590 else
2591   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2592 /* end confdefs.h.  */
2593 $4
2594 int
2595 main ()
2596 {
2597 static int test_array [1 - 2 * !(($2) < 0)];
2598 test_array [0] = 0;
2599 return test_array [0];
2600 
2601   ;
2602   return 0;
2603 }
2604 _ACEOF
2605 if ac_fn_cxx_try_compile "$LINENO"; then :
2606   ac_hi=-1 ac_mid=-1
2607   while :; do
2608     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2609 /* end confdefs.h.  */
2610 $4
2611 int
2612 main ()
2613 {
2614 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2615 test_array [0] = 0;
2616 return test_array [0];
2617 
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_cxx_try_compile "$LINENO"; then :
2623   ac_lo=$ac_mid; break
2624 else
2625   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2626                         if test $ac_mid -le $ac_hi; then
2627                           ac_lo= ac_hi=
2628                           break
2629                         fi
2630                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2631 fi
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633   done
2634 else
2635   ac_lo= ac_hi=
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 # Binary search between lo and hi bounds.
2641 while test "x$ac_lo" != "x$ac_hi"; do
2642   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h.  */
2645 $4
2646 int
2647 main ()
2648 {
2649 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2650 test_array [0] = 0;
2651 return test_array [0];
2652 
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 if ac_fn_cxx_try_compile "$LINENO"; then :
2658   ac_hi=$ac_mid
2659 else
2660   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2661 fi
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2663 done
2664 case $ac_lo in #((
2665 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2666 '') ac_retval=1 ;;
2667 esac
2668   else
2669     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h.  */
2671 $4
2672 static long int longval () { return $2; }
2673 static unsigned long int ulongval () { return $2; }
2674 #include <stdio.h>
2675 #include <stdlib.h>
2676 int
2677 main ()
2678 {
2679 
2680   FILE *f = fopen ("conftest.val", "w");
2681   if (! f)
2682     return 1;
2683   if (($2) < 0)
2684     {
2685       long int i = longval ();
2686       if (i != ($2))
2687         return 1;
2688       fprintf (f, "%ld", i);
2689     }
2690   else
2691     {
2692       unsigned long int i = ulongval ();
2693       if (i != ($2))
2694         return 1;
2695       fprintf (f, "%lu", i);
2696     }
2697   /* Do not output a trailing newline, as this causes \r\n confusion
2698      on some platforms.  */
2699   return ferror (f) || fclose (f) != 0;
2700 
2701   ;
2702   return 0;
2703 }
2704 _ACEOF
2705 if ac_fn_cxx_try_run "$LINENO"; then :
2706   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2707 else
2708   ac_retval=1
2709 fi
2710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2711   conftest.$ac_objext conftest.beam conftest.$ac_ext
2712 rm -f conftest.val
2713 
2714   fi
2715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716   as_fn_set_status $ac_retval
2717 
2718 } # ac_fn_cxx_compute_int
2719 
2720 # ac_fn_cxx_try_link LINENO
2721 # -------------------------
2722 # Try to link conftest.$ac_ext, and return whether this succeeded.
2723 ac_fn_cxx_try_link ()
2724 {
2725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726   rm -f conftest.$ac_objext conftest$ac_exeext
2727   if { { ac_try="$ac_link"
2728 case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733 $as_echo "$ac_try_echo"; } >&5
2734   (eval "$ac_link") 2>conftest.err
2735   ac_status=$?
2736   if test -s conftest.err; then
2737     grep -v '^ *+' conftest.err >conftest.er1
2738     cat conftest.er1 >&5
2739     mv -f conftest.er1 conftest.err
2740   fi
2741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2742   test $ac_status = 0; } && {
2743          test -z "$ac_cxx_werror_flag" ||
2744          test ! -s conftest.err
2745        } && test -s conftest$ac_exeext && {
2746          test "$cross_compiling" = yes ||
2747          test -x conftest$ac_exeext
2748        }; then :
2749   ac_retval=0
2750 else
2751   $as_echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753 
2754         ac_retval=1
2755 fi
2756   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2757   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2758   # interfere with the next link command; also delete a directory that is
2759   # left behind by Apple's compiler.  We do this before executing the actions.
2760   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2761   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2762   as_fn_set_status $ac_retval
2763 
2764 } # ac_fn_cxx_try_link
2765 
2766 # ac_fn_cxx_check_func LINENO FUNC VAR
2767 # ------------------------------------
2768 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2769 ac_fn_cxx_check_func ()
2770 {
2771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2773 $as_echo_n "checking for $2... " >&6; }
2774 if eval \${$3+:} false; then :
2775   $as_echo_n "(cached) " >&6
2776 else
2777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h.  */
2779 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2780    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2781 #define $2 innocuous_$2
2782 
2783 /* System header to define __stub macros and hopefully few prototypes,
2784     which can conflict with char $2 (); below.
2785     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2786     <limits.h> exists even on freestanding compilers.  */
2787 
2788 #ifdef __STDC__
2789 # include <limits.h>
2790 #else
2791 # include <assert.h>
2792 #endif
2793 
2794 #undef $2
2795 
2796 /* Override any GCC internal prototype to avoid an error.
2797    Use char because int might match the return type of a GCC
2798    builtin and then its argument prototype would still apply.  */
2799 #ifdef __cplusplus
2800 extern "C"
2801 #endif
2802 char $2 ();
2803 /* The GNU C library defines this for functions which it implements
2804     to always fail with ENOSYS.  Some functions are actually named
2805     something starting with __ and the normal name is an alias.  */
2806 #if defined __stub_$2 || defined __stub___$2
2807 choke me
2808 #endif
2809 
2810 int
2811 main ()
2812 {
2813 return $2 ();
2814   ;
2815   return 0;
2816 }
2817 _ACEOF
2818 if ac_fn_cxx_try_link "$LINENO"; then :
2819   eval "$3=yes"
2820 else
2821   eval "$3=no"
2822 fi
2823 rm -f core conftest.err conftest.$ac_objext \
2824     conftest$ac_exeext conftest.$ac_ext
2825 fi
2826 eval ac_res=\$$3
2827                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2828 $as_echo "$ac_res" >&6; }
2829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2830 
2831 } # ac_fn_cxx_check_func
2832 
2833 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2834 # -------------------------------------------------------
2835 # Tests whether HEADER exists and can be compiled using the include files in
2836 # INCLUDES, setting the cache variable VAR accordingly.
2837 ac_fn_c_check_header_compile ()
2838 {
2839   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2841 $as_echo_n "checking for $2... " >&6; }
2842 if eval \${$3+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h.  */
2847 $4
2848 #include <$2>
2849 _ACEOF
2850 if ac_fn_c_try_compile "$LINENO"; then :
2851   eval "$3=yes"
2852 else
2853   eval "$3=no"
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 fi
2857 eval ac_res=\$$3
2858                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2859 $as_echo "$ac_res" >&6; }
2860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2861 
2862 } # ac_fn_c_check_header_compile
2863 cat >config.log <<_ACEOF
2864 This file contains any messages produced by compilers while
2865 running configure, to aid debugging if configure makes a mistake.
2866 
2867 It was created by OpenJDK $as_me jdk8, which was
2868 generated by GNU Autoconf 2.69.  Invocation command line was
2869 
2870   $ $0 $@
2871 
2872 _ACEOF
2873 exec 5>>config.log
2874 {
2875 cat <<_ASUNAME
2876 ## --------- ##
2877 ## Platform. ##
2878 ## --------- ##
2879 
2880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2885 
2886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2887 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2888 
2889 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2890 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2892 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2893 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2894 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2895 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2896 
2897 _ASUNAME
2898 
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904     $as_echo "PATH: $as_dir"
2905   done
2906 IFS=$as_save_IFS
2907 
2908 } >&5
2909 
2910 cat >&5 <<_ACEOF
2911 
2912 
2913 ## ----------- ##
2914 ## Core tests. ##
2915 ## ----------- ##
2916 
2917 _ACEOF
2918 
2919 
2920 # Keep a trace of the command line.
2921 # Strip out --no-create and --no-recursion so they do not pile up.
2922 # Strip out --silent because we don't want to record it for future runs.
2923 # Also quote any args containing shell meta-characters.
2924 # Make two passes to allow for proper duplicate-argument suppression.
2925 ac_configure_args=
2926 ac_configure_args0=
2927 ac_configure_args1=
2928 ac_must_keep_next=false
2929 for ac_pass in 1 2
2930 do
2931   for ac_arg
2932   do
2933     case $ac_arg in
2934     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2935     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2936     | -silent | --silent | --silen | --sile | --sil)
2937       continue ;;
2938     *\'*)
2939       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2940     esac
2941     case $ac_pass in
2942     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2943     2)
2944       as_fn_append ac_configure_args1 " '$ac_arg'"
2945       if test $ac_must_keep_next = true; then
2946         ac_must_keep_next=false # Got value, back to normal.
2947       else
2948         case $ac_arg in
2949           *=* | --config-cache | -C | -disable-* | --disable-* \
2950           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2951           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2952           | -with-* | --with-* | -without-* | --without-* | --x)
2953             case "$ac_configure_args0 " in
2954               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2955             esac
2956             ;;
2957           -* ) ac_must_keep_next=true ;;
2958         esac
2959       fi
2960       as_fn_append ac_configure_args " '$ac_arg'"
2961       ;;
2962     esac
2963   done
2964 done
2965 { ac_configure_args0=; unset ac_configure_args0;}
2966 { ac_configure_args1=; unset ac_configure_args1;}
2967 
2968 # When interrupted or exit'd, cleanup temporary files, and complete
2969 # config.log.  We remove comments because anyway the quotes in there
2970 # would cause problems or look ugly.
2971 # WARNING: Use '\'' to represent an apostrophe within the trap.
2972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2973 trap 'exit_status=$?
2974   # Save into config.log some information that might help in debugging.
2975   {
2976     echo
2977 
2978     $as_echo "## ---------------- ##
2979 ## Cache variables. ##
2980 ## ---------------- ##"
2981     echo
2982     # The following way of writing the cache mishandles newlines in values,
2983 (
2984   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2985     eval ac_val=\$$ac_var
2986     case $ac_val in #(
2987     *${as_nl}*)
2988       case $ac_var in #(
2989       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2991       esac
2992       case $ac_var in #(
2993       _ | IFS | as_nl) ;; #(
2994       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2995       *) { eval $ac_var=; unset $ac_var;} ;;
2996       esac ;;
2997     esac
2998   done
2999   (set) 2>&1 |
3000     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3001     *${as_nl}ac_space=\ *)
3002       sed -n \
3003         "s/'\''/'\''\\\\'\'''\''/g;
3004           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3005       ;; #(
3006     *)
3007       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3008       ;;
3009     esac |
3010     sort
3011 )
3012     echo
3013 
3014     $as_echo "## ----------------- ##
3015 ## Output variables. ##
3016 ## ----------------- ##"
3017     echo
3018     for ac_var in $ac_subst_vars
3019     do
3020       eval ac_val=\$$ac_var
3021       case $ac_val in
3022       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3023       esac
3024       $as_echo "$ac_var='\''$ac_val'\''"
3025     done | sort
3026     echo
3027 
3028     if test -n "$ac_subst_files"; then
3029       $as_echo "## ------------------- ##
3030 ## File substitutions. ##
3031 ## ------------------- ##"
3032       echo
3033       for ac_var in $ac_subst_files
3034       do
3035         eval ac_val=\$$ac_var
3036         case $ac_val in
3037         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3038         esac
3039         $as_echo "$ac_var='\''$ac_val'\''"
3040       done | sort
3041       echo
3042     fi
3043 
3044     if test -s confdefs.h; then
3045       $as_echo "## ----------- ##
3046 ## confdefs.h. ##
3047 ## ----------- ##"
3048       echo
3049       cat confdefs.h
3050       echo
3051     fi
3052     test "$ac_signal" != 0 &&
3053       $as_echo "$as_me: caught signal $ac_signal"
3054     $as_echo "$as_me: exit $exit_status"
3055   } >&5
3056   rm -f core *.core core.conftest.* &&
3057     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3058     exit $exit_status
3059 ' 0
3060 for ac_signal in 1 2 13 15; do
3061   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3062 done
3063 ac_signal=0
3064 
3065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3066 rm -f -r conftest* confdefs.h
3067 
3068 $as_echo "/* confdefs.h */" > confdefs.h
3069 
3070 # Predefined preprocessor variables.
3071 
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_NAME "$PACKAGE_NAME"
3074 _ACEOF
3075 
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3078 _ACEOF
3079 
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3082 _ACEOF
3083 
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_STRING "$PACKAGE_STRING"
3086 _ACEOF
3087 
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3090 _ACEOF
3091 
3092 cat >>confdefs.h <<_ACEOF
3093 #define PACKAGE_URL "$PACKAGE_URL"
3094 _ACEOF
3095 
3096 
3097 # Let the site file select an alternate cache file if it wants to.
3098 # Prefer an explicitly selected file to automatically selected ones.
3099 ac_site_file1=NONE
3100 ac_site_file2=NONE
3101 if test -n "$CONFIG_SITE"; then
3102   # We do not want a PATH search for config.site.
3103   case $CONFIG_SITE in #((
3104     -*)  ac_site_file1=./$CONFIG_SITE;;
3105     */*) ac_site_file1=$CONFIG_SITE;;
3106     *)   ac_site_file1=./$CONFIG_SITE;;
3107   esac
3108 elif test "x$prefix" != xNONE; then
3109   ac_site_file1=$prefix/share/config.site
3110   ac_site_file2=$prefix/etc/config.site
3111 else
3112   ac_site_file1=$ac_default_prefix/share/config.site
3113   ac_site_file2=$ac_default_prefix/etc/config.site
3114 fi
3115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3116 do
3117   test "x$ac_site_file" = xNONE && continue
3118   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3119     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3121     sed 's/^/| /' "$ac_site_file" >&5
3122     . "$ac_site_file" \
3123       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "failed to load site script $ac_site_file
3126 See \`config.log' for more details" "$LINENO" 5; }
3127   fi
3128 done
3129 
3130 if test -r "$cache_file"; then
3131   # Some versions of bash will fail to source /dev/null (special files
3132   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3133   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3134     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3135 $as_echo "$as_me: loading cache $cache_file" >&6;}
3136     case $cache_file in
3137       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3138       *)                      . "./$cache_file";;
3139     esac
3140   fi
3141 else
3142   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3143 $as_echo "$as_me: creating cache $cache_file" >&6;}
3144   >$cache_file
3145 fi
3146 
3147 # Check that the precious variables saved in the cache have kept the same
3148 # value.
3149 ac_cache_corrupted=false
3150 for ac_var in $ac_precious_vars; do
3151   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3152   eval ac_new_set=\$ac_env_${ac_var}_set
3153   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3154   eval ac_new_val=\$ac_env_${ac_var}_value
3155   case $ac_old_set,$ac_new_set in
3156     set,)
3157       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3159       ac_cache_corrupted=: ;;
3160     ,set)
3161       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3163       ac_cache_corrupted=: ;;
3164     ,);;
3165     *)
3166       if test "x$ac_old_val" != "x$ac_new_val"; then
3167         # differences in whitespace do not lead to failure.
3168         ac_old_val_w=`echo x $ac_old_val`
3169         ac_new_val_w=`echo x $ac_new_val`
3170         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3171           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3173           ac_cache_corrupted=:
3174         else
3175           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3177           eval $ac_var=\$ac_old_val
3178         fi
3179         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3180 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3181         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3182 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3183       fi;;
3184   esac
3185   # Pass precious variables to config.status.
3186   if test "$ac_new_set" = set; then
3187     case $ac_new_val in
3188     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3189     *) ac_arg=$ac_var=$ac_new_val ;;
3190     esac
3191     case " $ac_configure_args " in
3192       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3193       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3194     esac
3195   fi
3196 done
3197 if $ac_cache_corrupted; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3202   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3203 fi
3204 ## -------------------- ##
3205 ## Main body of script. ##
3206 ## -------------------- ##
3207 
3208 ac_ext=c
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213 
3214 
3215 
3216 ac_aux_dir=
3217 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3218   if test -f "$ac_dir/install-sh"; then
3219     ac_aux_dir=$ac_dir
3220     ac_install_sh="$ac_aux_dir/install-sh -c"
3221     break
3222   elif test -f "$ac_dir/install.sh"; then
3223     ac_aux_dir=$ac_dir
3224     ac_install_sh="$ac_aux_dir/install.sh -c"
3225     break
3226   elif test -f "$ac_dir/shtool"; then
3227     ac_aux_dir=$ac_dir
3228     ac_install_sh="$ac_aux_dir/shtool install -c"
3229     break
3230   fi
3231 done
3232 if test -z "$ac_aux_dir"; then
3233   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
3234 fi
3235 
3236 # These three variables are undocumented and unsupported,
3237 # and are intended to be withdrawn in a future Autoconf release.
3238 # They can cause serious problems if a builder's source tree is in a directory
3239 # whose full name contains unusual characters.
3240 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3241 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3242 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3243 
3244 
3245 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3246 
3247 #
3248 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3249 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3250 #
3251 # This code is free software; you can redistribute it and/or modify it
3252 # under the terms of the GNU General Public License version 2 only, as
3253 # published by the Free Software Foundation.  Oracle designates this
3254 # particular file as subject to the "Classpath" exception as provided
3255 # by Oracle in the LICENSE file that accompanied this code.
3256 #
3257 # This code is distributed in the hope that it will be useful, but WITHOUT
3258 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3259 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3260 # version 2 for more details (a copy is included in the LICENSE file that
3261 # accompanied this code).
3262 #
3263 # You should have received a copy of the GNU General Public License version
3264 # 2 along with this work; if not, write to the Free Software Foundation,
3265 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3266 #
3267 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3268 # or visit www.oracle.com if you need additional information or have any
3269 # questions.
3270 #
3271 
3272 #
3273 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3274 #
3275 # This program is free software; you can redistribute it and/or modify
3276 # it under the terms of the GNU General Public License as published by
3277 # the Free Software Foundation; either version 2 of the License, or
3278 # (at your option) any later version.
3279 #
3280 # This program is distributed in the hope that it will be useful, but
3281 # WITHOUT ANY WARRANTY; without even the implied warranty of
3282 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3283 # General Public License for more details.
3284 #
3285 # You should have received a copy of the GNU General Public License
3286 # along with this program; if not, write to the Free Software
3287 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3288 #
3289 # As a special exception to the GNU General Public License, if you
3290 # distribute this file as part of a program that contains a
3291 # configuration script generated by Autoconf, you may include it under
3292 # the same distribution terms that you use for the rest of that program.
3293 
3294 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3295 # ----------------------------------
3296 # PKG_PROG_PKG_CONFIG
3297 
3298 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3299 #
3300 # Check to see whether a particular set of modules exists.  Similar
3301 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3302 #
3303 #
3304 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3305 # this or PKG_CHECK_MODULES is called, or make sure to call
3306 # PKG_CHECK_EXISTS manually
3307 # --------------------------------------------------------------
3308 
3309 
3310 
3311 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3312 # ---------------------------------------------
3313 # _PKG_CONFIG
3314 
3315 # _PKG_SHORT_ERRORS_SUPPORTED
3316 # -----------------------------
3317 # _PKG_SHORT_ERRORS_SUPPORTED
3318 
3319 
3320 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3321 # [ACTION-IF-NOT-FOUND])
3322 #
3323 #
3324 # Note that if there is a possibility the first call to
3325 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3326 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3327 #
3328 #
3329 # --------------------------------------------------------------
3330 # PKG_CHECK_MODULES
3331 
3332 
3333 # Include these first...
3334 #
3335 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3336 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3337 #
3338 # This code is free software; you can redistribute it and/or modify it
3339 # under the terms of the GNU General Public License version 2 only, as
3340 # published by the Free Software Foundation.  Oracle designates this
3341 # particular file as subject to the "Classpath" exception as provided
3342 # by Oracle in the LICENSE file that accompanied this code.
3343 #
3344 # This code is distributed in the hope that it will be useful, but WITHOUT
3345 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3346 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3347 # version 2 for more details (a copy is included in the LICENSE file that
3348 # accompanied this code).
3349 #
3350 # You should have received a copy of the GNU General Public License version
3351 # 2 along with this work; if not, write to the Free Software Foundation,
3352 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3353 #
3354 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3355 # or visit www.oracle.com if you need additional information or have any
3356 # questions.
3357 #
3358 
3359 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3360 # If so, then append $1 to $2 \
3361 # Also set JVM_ARG_OK to true/false depending on outcome.
3362 
3363 
3364 # Appends a string to a path variable, only adding the : when needed.
3365 
3366 
3367 # Prepends a string to a path variable, only adding the : when needed.
3368 
3369 
3370 # This will make sure the given variable points to a full and proper
3371 # path. This means:
3372 # 1) There will be no spaces in the path. On posix platforms,
3373 #    spaces in the path will result in an error. On Windows,
3374 #    the path will be rewritten using short-style to be space-free.
3375 # 2) The path will be absolute, and it will be in unix-style (on
3376 #     cygwin).
3377 # $1: The name of the variable to fix
3378 
3379 
3380 # This will make sure the given variable points to a executable
3381 # with a full and proper path. This means:
3382 # 1) There will be no spaces in the path. On posix platforms,
3383 #    spaces in the path will result in an error. On Windows,
3384 #    the path will be rewritten using short-style to be space-free.
3385 # 2) The path will be absolute, and it will be in unix-style (on
3386 #     cygwin).
3387 # Any arguments given to the executable is preserved.
3388 # If the input variable does not have a directory specification, then
3389 # it need to be in the PATH.
3390 # $1: The name of the variable to fix
3391 
3392 
3393 
3394 
3395 # Register a --with argument but mark it as deprecated
3396 # $1: The name of the with argument to deprecate, not including --with-
3397 
3398 
3399 # Register a --enable argument but mark it as deprecated
3400 # $1: The name of the with argument to deprecate, not including --enable-
3401 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3402 
3403 
3404 
3405 
3406 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3407 # $1: variable to check
3408 
3409 
3410 # Check that there are no unprocessed overridden variables left.
3411 # If so, they are an incorrect argument and we will exit with an error.
3412 
3413 
3414 # Setup a tool for the given variable. If correctly specified by the user,
3415 # use that value, otherwise search for the tool using the supplied code snippet.
3416 # $1: variable to set
3417 # $2: code snippet to call to look for the tool
3418 
3419 
3420 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3421 # $1: variable to set
3422 # $2: executable name (or list of names) to look for
3423 
3424 
3425 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3426 # $1: variable to set
3427 # $2: executable name (or list of names) to look for
3428 
3429 
3430 # Like BASIC_PATH_PROGS but fails if no tool was found.
3431 # $1: variable to set
3432 # $2: executable name (or list of names) to look for
3433 
3434 
3435 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3436 # $1: variable to set
3437 # $2: autoconf macro to call to look for the special tool
3438 
3439 
3440 # Setup the most fundamental tools that relies on not much else to set up,
3441 # but is used by much of the early bootstrap code.
3442 
3443 
3444 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3445 
3446 
3447 # Evaluates platform specific overrides for devkit variables.
3448 # $1: Name of variable
3449 
3450 
3451 
3452 
3453 
3454 
3455 
3456 
3457 
3458 #%%% Simple tools %%%
3459 
3460 # Check if we have found a usable version of make
3461 # $1: the path to a potential make binary (or empty)
3462 # $2: the description on how we found this
3463 
3464 
3465 # Goes looking for a usable version of GNU make.
3466 
3467 
3468 
3469 
3470 
3471 
3472 # Check if build directory is on local disk. If not possible to determine,
3473 # we prefer to claim it's local.
3474 # Argument 1: directory to test
3475 # Argument 2: what to do if it is on local disk
3476 # Argument 3: what to do otherwise (remote disk or failure)
3477 
3478 
3479 # Check that source files have basic read permissions set. This might
3480 # not be the case in cygwin in certain conditions.
3481 
3482 
3483 
3484 
3485 #
3486 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3487 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3488 #
3489 # This code is free software; you can redistribute it and/or modify it
3490 # under the terms of the GNU General Public License version 2 only, as
3491 # published by the Free Software Foundation.  Oracle designates this
3492 # particular file as subject to the "Classpath" exception as provided
3493 # by Oracle in the LICENSE file that accompanied this code.
3494 #
3495 # This code is distributed in the hope that it will be useful, but WITHOUT
3496 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3497 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3498 # version 2 for more details (a copy is included in the LICENSE file that
3499 # accompanied this code).
3500 #
3501 # You should have received a copy of the GNU General Public License version
3502 # 2 along with this work; if not, write to the Free Software Foundation,
3503 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3504 #
3505 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3506 # or visit www.oracle.com if you need additional information or have any
3507 # questions.
3508 #
3509 
3510 
3511 
3512 
3513 
3514 # Helper function which possibly converts a path using DOS-style short mode.
3515 # If so, the updated path is stored in $new_path.
3516 # $1: The path to check
3517 
3518 
3519 # Helper function which possibly converts a path using DOS-style short mode.
3520 # If so, the updated path is stored in $new_path.
3521 # $1: The path to check
3522 
3523 
3524 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3525 # and could probably be heavily simplified. However, all changes in this
3526 # area tend to need lot of testing in different scenarios, and in lack of
3527 # proper unit testing, cleaning this up has not been deemed worth the effort
3528 # at the moment.
3529 
3530 
3531 
3532 
3533 
3534 
3535 
3536 
3537 
3538 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3539 
3540 
3541 
3542 
3543 #
3544 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3545 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3546 #
3547 # This code is free software; you can redistribute it and/or modify it
3548 # under the terms of the GNU General Public License version 2 only, as
3549 # published by the Free Software Foundation.  Oracle designates this
3550 # particular file as subject to the "Classpath" exception as provided
3551 # by Oracle in the LICENSE file that accompanied this code.
3552 #
3553 # This code is distributed in the hope that it will be useful, but WITHOUT
3554 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3555 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3556 # version 2 for more details (a copy is included in the LICENSE file that
3557 # accompanied this code).
3558 #
3559 # You should have received a copy of the GNU General Public License version
3560 # 2 along with this work; if not, write to the Free Software Foundation,
3561 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3562 #
3563 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3564 # or visit www.oracle.com if you need additional information or have any
3565 # questions.
3566 #
3567 
3568 
3569 
3570 
3571 
3572 
3573 
3574 
3575 
3576 
3577 
3578 # ... then the rest
3579 #
3580 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3581 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3582 #
3583 # This code is free software; you can redistribute it and/or modify it
3584 # under the terms of the GNU General Public License version 2 only, as
3585 # published by the Free Software Foundation.  Oracle designates this
3586 # particular file as subject to the "Classpath" exception as provided
3587 # by Oracle in the LICENSE file that accompanied this code.
3588 #
3589 # This code is distributed in the hope that it will be useful, but WITHOUT
3590 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3591 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3592 # version 2 for more details (a copy is included in the LICENSE file that
3593 # accompanied this code).
3594 #
3595 # You should have received a copy of the GNU General Public License version
3596 # 2 along with this work; if not, write to the Free Software Foundation,
3597 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3598 #
3599 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3600 # or visit www.oracle.com if you need additional information or have any
3601 # questions.
3602 #
3603 
3604 # Execute the check given as argument, and verify the result
3605 # If the Boot JDK was previously found, do nothing
3606 # $1 A command line (typically autoconf macro) to execute
3607 
3608 
3609 # Test: Is bootjdk explicitely set by command line arguments?
3610 
3611 
3612 # Test: Is bootjdk available from builddeps?
3613 
3614 
3615 # Test: Is $JAVA_HOME set?
3616 
3617 
3618 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3619 
3620 
3621 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3622 
3623 
3624 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3625 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3626 # $1 = Path to directory containing jdk installations.
3627 # $2 = String to append to the found JDK directory to get the proper JDK home
3628 
3629 
3630 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3631 # environmental variable as base for where to look.
3632 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3633 
3634 
3635 # Test: Is there a JDK installed in default, well-known locations?
3636 
3637 
3638 # Check that a command-line tool in the Boot JDK is correct
3639 # $1 = name of variable to assign
3640 # $2 = name of binary
3641 
3642 
3643 ###############################################################################
3644 #
3645 # We need a Boot JDK to bootstrap the build.
3646 #
3647 
3648 
3649 
3650 
3651 
3652 #
3653 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3654 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3655 #
3656 # This code is free software; you can redistribute it and/or modify it
3657 # under the terms of the GNU General Public License version 2 only, as
3658 # published by the Free Software Foundation.  Oracle designates this
3659 # particular file as subject to the "Classpath" exception as provided
3660 # by Oracle in the LICENSE file that accompanied this code.
3661 #
3662 # This code is distributed in the hope that it will be useful, but WITHOUT
3663 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3664 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3665 # version 2 for more details (a copy is included in the LICENSE file that
3666 # accompanied this code).
3667 #
3668 # You should have received a copy of the GNU General Public License version
3669 # 2 along with this work; if not, write to the Free Software Foundation,
3670 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3671 #
3672 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3673 # or visit www.oracle.com if you need additional information or have any
3674 # questions.
3675 #
3676 
3677 
3678 
3679 
3680 
3681 
3682 
3683 
3684 
3685 
3686 
3687 
3688 
3689 
3690 
3691 
3692 
3693 
3694 
3695 
3696 #
3697 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3698 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3699 #
3700 # This code is free software; you can redistribute it and/or modify it
3701 # under the terms of the GNU General Public License version 2 only, as
3702 # published by the Free Software Foundation.  Oracle designates this
3703 # particular file as subject to the "Classpath" exception as provided
3704 # by Oracle in the LICENSE file that accompanied this code.
3705 #
3706 # This code is distributed in the hope that it will be useful, but WITHOUT
3707 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3708 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3709 # version 2 for more details (a copy is included in the LICENSE file that
3710 # accompanied this code).
3711 #
3712 # You should have received a copy of the GNU General Public License version
3713 # 2 along with this work; if not, write to the Free Software Foundation,
3714 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3715 #
3716 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3717 # or visit www.oracle.com if you need additional information or have any
3718 # questions.
3719 #
3720 
3721 
3722 
3723 
3724 
3725 # Documentation on common flags used for solstudio in HIGHEST.
3726 #
3727 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3728 #          done with care, there are some assumptions below that need to
3729 #          be understood about the use of pointers, and IEEE behavior.
3730 #
3731 # -fns: Use non-standard floating point mode (not IEEE 754)
3732 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3733 # -fsingle: Use single precision floating point with 'float'
3734 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3735 #   (Source with excessing pointer casting and data access with mixed
3736 #    pointer types are not recommended)
3737 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3738 #   (If you expect perfect errno behavior, do not use this)
3739 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3740 # -xrestrict: Pointer parameters to functions do not overlap
3741 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3742 #    If you pass in multiple pointers to the same data, do not use this)
3743 # -xlibmil: Inline some library routines
3744 #   (If you expect perfect errno behavior, do not use this)
3745 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3746 #   (If you expect perfect errno behavior, do not use this)
3747 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3748 
3749     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3750     # Bug?
3751     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3752     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3753     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3754     #fi
3755 
3756 
3757 
3758 
3759 
3760 
3761 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3762 #                                  [RUN-IF-FALSE])
3763 # ------------------------------------------------------------
3764 # Check that the C compiler supports an argument
3765 
3766 
3767 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3768 #                                    [RUN-IF-FALSE])
3769 # ------------------------------------------------------------
3770 # Check that the C++ compiler supports an argument
3771 
3772 
3773 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3774 #                                [RUN-IF-FALSE])
3775 # ------------------------------------------------------------
3776 # Check that the C and C++ compilers support an argument
3777 
3778 
3779 
3780 
3781 
3782 
3783 
3784 #
3785 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3786 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3787 #
3788 # This code is free software; you can redistribute it and/or modify it
3789 # under the terms of the GNU General Public License version 2 only, as
3790 # published by the Free Software Foundation.  Oracle designates this
3791 # particular file as subject to the "Classpath" exception as provided
3792 # by Oracle in the LICENSE file that accompanied this code.
3793 #
3794 # This code is distributed in the hope that it will be useful, but WITHOUT
3795 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3796 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3797 # version 2 for more details (a copy is included in the LICENSE file that
3798 # accompanied this code).
3799 #
3800 # You should have received a copy of the GNU General Public License version
3801 # 2 along with this work; if not, write to the Free Software Foundation,
3802 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3803 #
3804 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3805 # or visit www.oracle.com if you need additional information or have any
3806 # questions.
3807 #
3808 
3809 
3810 
3811 
3812 
3813 cygwin_help() {
3814   case $1 in
3815     unzip)
3816       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3817       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3818       ;;
3819     zip)
3820       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3821       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3822       ;;
3823     make)
3824       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3825       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3826       ;;
3827     freetype)
3828       HELP_MSG="
3829 The freetype library can now be build during the configure process.
3830 Download the freetype sources and unpack them into an arbitrary directory:
3831 
3832 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3833 tar -xzf freetype-2.5.3.tar.gz
3834 
3835 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3836 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3837 builds or into '<freetype_src>/lib32' for 32-bit builds.
3838 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3839 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3840       ;;
3841   esac
3842 }
3843 
3844 msys_help() {
3845   PKGHANDLER_COMMAND=""
3846 }
3847 
3848 apt_help() {
3849   case $1 in
3850     devkit)
3851       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3852     openjdk)
3853       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3854     alsa)
3855       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3856     cups)
3857       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3858     fontconfig)
3859       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3860     freetype)
3861       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3862     pulse)
3863       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3864     x11)
3865       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3866     ccache)
3867       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3868   esac
3869 }
3870 
3871 yum_help() {
3872   case $1 in
3873     devkit)
3874       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3875     openjdk)
3876       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3877     alsa)
3878       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3879     cups)
3880       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3881     fontconfig)
3882       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3883     freetype)
3884       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3885     pulse)
3886       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3887     x11)
3888       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3889     ccache)
3890       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3891   esac
3892 }
3893 
3894 port_help() {
3895   PKGHANDLER_COMMAND=""
3896 }
3897 
3898 pkgutil_help() {
3899   PKGHANDLER_COMMAND=""
3900 }
3901 
3902 pkgadd_help() {
3903   PKGHANDLER_COMMAND=""
3904 }
3905 
3906 # This function will check if we're called from the "configure" wrapper while
3907 # printing --help. If so, we will print out additional information that can
3908 # only be extracted within the autoconf script, and then exit. This must be
3909 # called at the very beginning in configure.ac.
3910 
3911 
3912 
3913 
3914 #
3915 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3916 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3917 #
3918 # This code is free software; you can redistribute it and/or modify it
3919 # under the terms of the GNU General Public License version 2 only, as
3920 # published by the Free Software Foundation.  Oracle designates this
3921 # particular file as subject to the "Classpath" exception as provided
3922 # by Oracle in the LICENSE file that accompanied this code.
3923 #
3924 # This code is distributed in the hope that it will be useful, but WITHOUT
3925 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3926 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3927 # version 2 for more details (a copy is included in the LICENSE file that
3928 # accompanied this code).
3929 #
3930 # You should have received a copy of the GNU General Public License version
3931 # 2 along with this work; if not, write to the Free Software Foundation,
3932 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3933 #
3934 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3935 # or visit www.oracle.com if you need additional information or have any
3936 # questions.
3937 #
3938 
3939 
3940 
3941 
3942 
3943 
3944 
3945 
3946 
3947 
3948 ###############################################################################
3949 #
3950 # Should we build only OpenJDK even if closed sources are present?
3951 #
3952 
3953 
3954 
3955 
3956 ###############################################################################
3957 #
3958 # Setup version numbers
3959 #
3960 
3961 
3962 
3963 
3964 
3965 
3966 # Support for customization of the build process. Some build files
3967 # will include counterparts from this location, if they exist. This allows
3968 # for a degree of customization of the build targets and the rules/recipes
3969 # to create them
3970 
3971 # Check whether --with-custom-make-dir was given.
3972 if test "${with_custom_make_dir+set}" = set; then :
3973   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3974 fi
3975 
3976 
3977 
3978 #
3979 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3980 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3981 #
3982 # This code is free software; you can redistribute it and/or modify it
3983 # under the terms of the GNU General Public License version 2 only, as
3984 # published by the Free Software Foundation.  Oracle designates this
3985 # particular file as subject to the "Classpath" exception as provided
3986 # by Oracle in the LICENSE file that accompanied this code.
3987 #
3988 # This code is distributed in the hope that it will be useful, but WITHOUT
3989 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3990 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3991 # version 2 for more details (a copy is included in the LICENSE file that
3992 # accompanied this code).
3993 #
3994 # You should have received a copy of the GNU General Public License version
3995 # 2 along with this work; if not, write to the Free Software Foundation,
3996 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3997 #
3998 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3999 # or visit www.oracle.com if you need additional information or have any
4000 # questions.
4001 #
4002 
4003 
4004 
4005 
4006 
4007 
4008 
4009 
4010 
4011 
4012 
4013 
4014 
4015 
4016 
4017 ################################################################################
4018 # Setup fontconfig
4019 ################################################################################
4020 
4021 
4022 
4023 
4024 
4025 
4026 
4027 
4028 #
4029 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4030 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4031 #
4032 # This code is free software; you can redistribute it and/or modify it
4033 # under the terms of the GNU General Public License version 2 only, as
4034 # published by the Free Software Foundation.  Oracle designates this
4035 # particular file as subject to the "Classpath" exception as provided
4036 # by Oracle in the LICENSE file that accompanied this code.
4037 #
4038 # This code is distributed in the hope that it will be useful, but WITHOUT
4039 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4040 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4041 # version 2 for more details (a copy is included in the LICENSE file that
4042 # accompanied this code).
4043 #
4044 # You should have received a copy of the GNU General Public License version
4045 # 2 along with this work; if not, write to the Free Software Foundation,
4046 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4047 #
4048 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4049 # or visit www.oracle.com if you need additional information or have any
4050 # questions.
4051 #
4052 
4053 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4054 # Converts autoconf style CPU name to OpenJDK style, into
4055 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4056 
4057 
4058 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4059 # Converts autoconf style OS name to OpenJDK style, into
4060 # VAR_OS and VAR_OS_API.
4061 
4062 
4063 # Expects $host_os $host_cpu $build_os and $build_cpu
4064 # and $with_target_bits to have been setup!
4065 #
4066 # Translate the standard triplet(quadruplet) definition
4067 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4068 # OPENJDK_BUILD_OS, etc.
4069 
4070 
4071 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4072 # accordingly. Must be done after setting up build and target system, but before
4073 # doing anything else with these values.
4074 
4075 
4076 # Setup the legacy variables, for controlling the old makefiles.
4077 #
4078 
4079 
4080 
4081 
4082 #%%% Build and target systems %%%
4083 
4084 
4085 
4086 
4087 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4088 # Add -mX to various FLAGS variables.
4089 
4090 
4091 
4092 
4093 
4094 
4095 #
4096 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4097 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4098 #
4099 # This code is free software; you can redistribute it and/or modify it
4100 # under the terms of the GNU General Public License version 2 only, as
4101 # published by the Free Software Foundation.  Oracle designates this
4102 # particular file as subject to the "Classpath" exception as provided
4103 # by Oracle in the LICENSE file that accompanied this code.
4104 #
4105 # This code is distributed in the hope that it will be useful, but WITHOUT
4106 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4107 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4108 # version 2 for more details (a copy is included in the LICENSE file that
4109 # accompanied this code).
4110 #
4111 # You should have received a copy of the GNU General Public License version
4112 # 2 along with this work; if not, write to the Free Software Foundation,
4113 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4114 #
4115 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4116 # or visit www.oracle.com if you need additional information or have any
4117 # questions.
4118 #
4119 
4120 
4121 
4122 
4123 
4124 
4125 
4126 
4127 #
4128 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4129 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4130 #
4131 # This code is free software; you can redistribute it and/or modify it
4132 # under the terms of the GNU General Public License version 2 only, as
4133 # published by the Free Software Foundation.  Oracle designates this
4134 # particular file as subject to the "Classpath" exception as provided
4135 # by Oracle in the LICENSE file that accompanied this code.
4136 #
4137 # This code is distributed in the hope that it will be useful, but WITHOUT
4138 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4139 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4140 # version 2 for more details (a copy is included in the LICENSE file that
4141 # accompanied this code).
4142 #
4143 # You should have received a copy of the GNU General Public License version
4144 # 2 along with this work; if not, write to the Free Software Foundation,
4145 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4146 #
4147 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4148 # or visit www.oracle.com if you need additional information or have any
4149 # questions.
4150 #
4151 
4152 ########################################################################
4153 # This file is responsible for detecting, verifying and setting up the
4154 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4155 # proper paths to the binaries, but it will not setup any flags.
4156 #
4157 # The binaries used is determined by the toolchain type, which is the family of
4158 # compilers and related tools that are used.
4159 ########################################################################
4160 
4161 
4162 # All valid toolchains, regardless of platform (used by help.m4)
4163 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4164 
4165 # These toolchains are valid on different platforms
4166 VALID_TOOLCHAINS_linux="gcc clang"
4167 VALID_TOOLCHAINS_solaris="solstudio"
4168 VALID_TOOLCHAINS_macosx="gcc clang"
4169 VALID_TOOLCHAINS_aix="xlc"
4170 VALID_TOOLCHAINS_windows="microsoft"
4171 
4172 # Toolchain descriptions
4173 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4174 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4175 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4176 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4177 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4178 
4179 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4180 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4181 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4182 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4183 
4184 
4185 # Check if the configured compiler (C and C++) is of a specific version or
4186 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4187 #
4188 # Arguments:
4189 #   $1:   The version string to check against the found version
4190 #   $2:   block to run if the compiler is at least this version (>=)
4191 #   $3:   block to run if the compiler is older than this version (<)
4192 
4193 
4194 
4195 # Setup a number of variables describing how native output files are
4196 # named on this platform/toolchain.
4197 
4198 
4199 # Determine which toolchain type to use, and make sure it is valid for this
4200 # platform. Setup various information about the selected toolchain.
4201 
4202 
4203 # Before we start detecting the toolchain executables, we might need some
4204 # special setup, e.g. additional paths etc.
4205 
4206 
4207 # Restore path, etc
4208 
4209 
4210 # Check if a compiler is of the toolchain type we expect, and save the version
4211 # information from it. If the compiler does not match the expected type,
4212 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4213 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4214 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4215 #
4216 # $1 = compiler to test (CC or CXX)
4217 # $2 = human readable name of compiler (C or C++)
4218 
4219 
4220 
4221 # Try to locate the given C or C++ compiler in the path, or otherwise.
4222 #
4223 # $1 = compiler to test (CC or CXX)
4224 # $2 = human readable name of compiler (C or C++)
4225 # $3 = list of compiler names to search for
4226 
4227 
4228 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4229 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4230 # archiver (AR). Verify that the compilers are correct according to the
4231 # toolchain type.
4232 
4233 
4234 # Setup additional tools that is considered a part of the toolchain, but not the
4235 # core part. Many of these are highly platform-specific and do not exist,
4236 # and/or are not needed on all platforms.
4237 
4238 
4239 # Setup the build tools (i.e, the compiler and linker used to build programs
4240 # that should be run on the build platform, not the target platform, as a build
4241 # helper). Since the non-cross-compile case uses the normal, target compilers
4242 # for this, we can only do this after these have been setup.
4243 
4244 
4245 # Setup legacy variables that are still needed as alternative ways to refer to
4246 # parts of the toolchain.
4247 
4248 
4249 # Do some additional checks on the detected tools.
4250 
4251 
4252 # Setup the JTReg Regression Test Harness.
4253 
4254 
4255 
4256 #
4257 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4258 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4259 #
4260 # This code is free software; you can redistribute it and/or modify it
4261 # under the terms of the GNU General Public License version 2 only, as
4262 # published by the Free Software Foundation.  Oracle designates this
4263 # particular file as subject to the "Classpath" exception as provided
4264 # by Oracle in the LICENSE file that accompanied this code.
4265 #
4266 # This code is distributed in the hope that it will be useful, but WITHOUT
4267 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4268 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4269 # version 2 for more details (a copy is included in the LICENSE file that
4270 # accompanied this code).
4271 #
4272 # You should have received a copy of the GNU General Public License version
4273 # 2 along with this work; if not, write to the Free Software Foundation,
4274 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4275 #
4276 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4277 # or visit www.oracle.com if you need additional information or have any
4278 # questions.
4279 #
4280 
4281 ################################################################################
4282 # The order of these defines the priority by which we try to find them.
4283 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4284 
4285 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4286 VS_VERSION_INTERNAL_2010=100
4287 VS_MSVCR_2010=msvcr100.dll
4288 # We don't use msvcp on Visual Studio 2010
4289 #VS_MSVCP_2010=msvcp100.dll
4290 VS_ENVVAR_2010="VS100COMNTOOLS"
4291 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4292 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4293 VS_VS_PLATFORM_NAME_2010="v100"
4294 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4295 
4296 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4297 VS_VERSION_INTERNAL_2012=110
4298 VS_MSVCR_2012=msvcr110.dll
4299 VS_MSVCP_2012=msvcp110.dll
4300 VS_ENVVAR_2012="VS110COMNTOOLS"
4301 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4302 VS_SDK_INSTALLDIR_2012=
4303 VS_VS_PLATFORM_NAME_2012="v110"
4304 VS_SDK_PLATFORM_NAME_2012=
4305 
4306 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4307 VS_VERSION_INTERNAL_2013=120
4308 VS_MSVCR_2013=msvcr120.dll
4309 VS_MSVCP_2013=msvcp120.dll
4310 VS_ENVVAR_2013="VS120COMNTOOLS"
4311 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4312 VS_SDK_INSTALLDIR_2013=
4313 VS_VS_PLATFORM_NAME_2013="v120"
4314 VS_SDK_PLATFORM_NAME_2013=
4315 
4316 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4317 VS_VERSION_INTERNAL_2015=140
4318 VS_MSVCR_2015=vcruntime140.dll
4319 VS_MSVCP_2015=msvcp140.dll
4320 VS_ENVVAR_2015="VS140COMNTOOLS"
4321 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4322 VS_SDK_INSTALLDIR_2015=
4323 VS_VS_PLATFORM_NAME_2015="v140"
4324 VS_SDK_PLATFORM_NAME_2015=
4325 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4326 # explicitly specifying Windows Kit 8.1 to be used.
4327 VS_ENV_ARGS_2015="8.1"
4328 
4329 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4330 VS_VERSION_INTERNAL_2017=141
4331 VS_MSVCR_2017=vcruntime140.dll
4332 VS_MSVCP_2017=msvcp140.dll
4333 VS_ENVVAR_2017="VS150COMNTOOLS"
4334 VS_USE_UCRT_2017="true"
4335 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4336 VS_EDITIONS_2017="Community Professional Enterprise"
4337 VS_SDK_INSTALLDIR_2017=
4338 VS_VS_PLATFORM_NAME_2017="v141"
4339 VS_SDK_PLATFORM_NAME_2017=
4340 
4341 ################################################################################
4342 
4343 
4344 
4345 ################################################################################
4346 
4347 
4348 
4349 ################################################################################
4350 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4351 # build environment and assigns it to VS_ENV_CMD
4352 
4353 
4354 ################################################################################
4355 
4356 
4357 
4358 ################################################################################
4359 # Check if the VS env variables were setup prior to running configure.
4360 # If not, then find vcvarsall.bat and run it automatically, and integrate
4361 # the set env variables into the spec file.
4362 
4363 
4364 
4365 
4366 
4367 
4368 
4369 
4370 
4371 
4372 
4373 
4374 
4375 
4376 # This line needs to be here, verbatim, after all includes and the dummy hook
4377 # definitions. It is replaced with custom functionality when building
4378 # custom sources.
4379 #CUSTOM_AUTOCONF_INCLUDE
4380 
4381 # Do not change or remove the following line, it is needed for consistency checks:
4382 DATE_WHEN_GENERATED=1585090987
4383 
4384 ###############################################################################
4385 #
4386 # Initialization / Boot-strapping
4387 #
4388 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4389 # thus it jumps back and forth, each time gaining something needed later on.
4390 #
4391 ###############################################################################
4392 
4393 # If we are requested to print additional help, do that and then exit.
4394 # This must be the very first call.
4395 
4396   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4397     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4398     $PRINTF "Which are valid to use depends on the build platform.\n"
4399     for toolchain in $VALID_TOOLCHAINS_all; do
4400       # Use indirect variable referencing
4401       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4402       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4403       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4404     done
4405 
4406     # And now exit directly
4407     exit 0
4408   fi
4409 
4410 
4411 # Basic initialization that must happen first of all in the normal process.
4412 
4413   # Save the original command line. This is passed to us by the wrapper configure script.
4414 
4415   DATE_WHEN_CONFIGURED=`LANG=C date`
4416 
4417   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4418 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4419   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4420 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4421 
4422 
4423   # Start with tools that do not need have cross compilation support
4424   # and can be expected to be found in the default PATH. These tools are
4425   # used by configure. Nor are these tools expected to be found in the
4426   # devkit from the builddeps server either, since they are
4427   # needed to download the devkit.
4428 
4429   # First are all the simple required tools.
4430 
4431 
4432 
4433   # Publish this variable in the help.
4434 
4435 
4436   if test "x$BASENAME" = x; then
4437     # The variable is not set by user, try to locate tool using the code snippet
4438     for ac_prog in basename
4439 do
4440   # Extract the first word of "$ac_prog", so it can be a program name with args.
4441 set dummy $ac_prog; ac_word=$2
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4443 $as_echo_n "checking for $ac_word... " >&6; }
4444 if ${ac_cv_path_BASENAME+:} false; then :
4445   $as_echo_n "(cached) " >&6
4446 else
4447   case $BASENAME in
4448   [\\/]* | ?:[\\/]*)
4449   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4450   ;;
4451   *)
4452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4453 for as_dir in $PATH
4454 do
4455   IFS=$as_save_IFS
4456   test -z "$as_dir" && as_dir=.
4457     for ac_exec_ext in '' $ac_executable_extensions; do
4458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4459     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4461     break 2
4462   fi
4463 done
4464   done
4465 IFS=$as_save_IFS
4466 
4467   ;;
4468 esac
4469 fi
4470 BASENAME=$ac_cv_path_BASENAME
4471 if test -n "$BASENAME"; then
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4473 $as_echo "$BASENAME" >&6; }
4474 else
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4476 $as_echo "no" >&6; }
4477 fi
4478 
4479 
4480   test -n "$BASENAME" && break
4481 done
4482 
4483   else
4484     # The variable is set, but is it from the command line or the environment?
4485 
4486     # Try to remove the string !BASENAME! from our list.
4487     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4488     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4489       # If it failed, the variable was not from the command line. Ignore it,
4490       # but warn the user (except for BASH, which is always set by the calling BASH).
4491       if test "xBASENAME" != xBASH; then
4492         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4493 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4494       fi
4495       # Try to locate tool using the code snippet
4496       for ac_prog in basename
4497 do
4498   # Extract the first word of "$ac_prog", so it can be a program name with args.
4499 set dummy $ac_prog; ac_word=$2
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4501 $as_echo_n "checking for $ac_word... " >&6; }
4502 if ${ac_cv_path_BASENAME+:} false; then :
4503   $as_echo_n "(cached) " >&6
4504 else
4505   case $BASENAME in
4506   [\\/]* | ?:[\\/]*)
4507   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4508   ;;
4509   *)
4510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522   done
4523 IFS=$as_save_IFS
4524 
4525   ;;
4526 esac
4527 fi
4528 BASENAME=$ac_cv_path_BASENAME
4529 if test -n "$BASENAME"; then
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4531 $as_echo "$BASENAME" >&6; }
4532 else
4533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4534 $as_echo "no" >&6; }
4535 fi
4536 
4537 
4538   test -n "$BASENAME" && break
4539 done
4540 
4541     else
4542       # If it succeeded, then it was overridden by the user. We will use it
4543       # for the tool.
4544 
4545       # First remove it from the list of overridden variables, so we can test
4546       # for unknown variables in the end.
4547       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4548 
4549       # Check if the provided tool contains a complete path.
4550       tool_specified="$BASENAME"
4551       tool_basename="${tool_specified##*/}"
4552       if test "x$tool_basename" = "x$tool_specified"; then
4553         # A command without a complete path is provided, search $PATH.
4554         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4555 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4556         # Extract the first word of "$tool_basename", so it can be a program name with args.
4557 set dummy $tool_basename; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if ${ac_cv_path_BASENAME+:} false; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   case $BASENAME in
4564   [\\/]* | ?:[\\/]*)
4565   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4566   ;;
4567   *)
4568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573     for ac_exec_ext in '' $ac_executable_extensions; do
4574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4575     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580   done
4581 IFS=$as_save_IFS
4582 
4583   ;;
4584 esac
4585 fi
4586 BASENAME=$ac_cv_path_BASENAME
4587 if test -n "$BASENAME"; then
4588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4589 $as_echo "$BASENAME" >&6; }
4590 else
4591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4592 $as_echo "no" >&6; }
4593 fi
4594 
4595 
4596         if test "x$BASENAME" = x; then
4597           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4598         fi
4599       else
4600         # Otherwise we believe it is a complete path. Use it as it is.
4601         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4602 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4603         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4604 $as_echo_n "checking for BASENAME... " >&6; }
4605         if test ! -x "$tool_specified"; then
4606           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4607 $as_echo "not found" >&6; }
4608           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4609         fi
4610         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4611 $as_echo "$tool_specified" >&6; }
4612       fi
4613     fi
4614   fi
4615 
4616 
4617 
4618   if test "x$BASENAME" = x; then
4619     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4620   fi
4621 
4622 
4623 
4624 
4625 
4626   # Publish this variable in the help.
4627 
4628 
4629   if test "x$BASH" = x; then
4630     # The variable is not set by user, try to locate tool using the code snippet
4631     for ac_prog in bash
4632 do
4633   # Extract the first word of "$ac_prog", so it can be a program name with args.
4634 set dummy $ac_prog; ac_word=$2
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4636 $as_echo_n "checking for $ac_word... " >&6; }
4637 if ${ac_cv_path_BASH+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   case $BASH in
4641   [\\/]* | ?:[\\/]*)
4642   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4643   ;;
4644   *)
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650     for ac_exec_ext in '' $ac_executable_extensions; do
4651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657   done
4658 IFS=$as_save_IFS
4659 
4660   ;;
4661 esac
4662 fi
4663 BASH=$ac_cv_path_BASH
4664 if test -n "$BASH"; then
4665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4666 $as_echo "$BASH" >&6; }
4667 else
4668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 $as_echo "no" >&6; }
4670 fi
4671 
4672 
4673   test -n "$BASH" && break
4674 done
4675 
4676   else
4677     # The variable is set, but is it from the command line or the environment?
4678 
4679     # Try to remove the string !BASH! from our list.
4680     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4681     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4682       # If it failed, the variable was not from the command line. Ignore it,
4683       # but warn the user (except for BASH, which is always set by the calling BASH).
4684       if test "xBASH" != xBASH; then
4685         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4686 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4687       fi
4688       # Try to locate tool using the code snippet
4689       for ac_prog in bash
4690 do
4691   # Extract the first word of "$ac_prog", so it can be a program name with args.
4692 set dummy $ac_prog; ac_word=$2
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4694 $as_echo_n "checking for $ac_word... " >&6; }
4695 if ${ac_cv_path_BASH+:} false; then :
4696   $as_echo_n "(cached) " >&6
4697 else
4698   case $BASH in
4699   [\\/]* | ?:[\\/]*)
4700   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4701   ;;
4702   *)
4703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708     for ac_exec_ext in '' $ac_executable_extensions; do
4709   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4710     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715   done
4716 IFS=$as_save_IFS
4717 
4718   ;;
4719 esac
4720 fi
4721 BASH=$ac_cv_path_BASH
4722 if test -n "$BASH"; then
4723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4724 $as_echo "$BASH" >&6; }
4725 else
4726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4727 $as_echo "no" >&6; }
4728 fi
4729 
4730 
4731   test -n "$BASH" && break
4732 done
4733 
4734     else
4735       # If it succeeded, then it was overridden by the user. We will use it
4736       # for the tool.
4737 
4738       # First remove it from the list of overridden variables, so we can test
4739       # for unknown variables in the end.
4740       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4741 
4742       # Check if the provided tool contains a complete path.
4743       tool_specified="$BASH"
4744       tool_basename="${tool_specified##*/}"
4745       if test "x$tool_basename" = "x$tool_specified"; then
4746         # A command without a complete path is provided, search $PATH.
4747         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4748 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4749         # Extract the first word of "$tool_basename", so it can be a program name with args.
4750 set dummy $tool_basename; ac_word=$2
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 $as_echo_n "checking for $ac_word... " >&6; }
4753 if ${ac_cv_path_BASH+:} false; then :
4754   $as_echo_n "(cached) " >&6
4755 else
4756   case $BASH in
4757   [\\/]* | ?:[\\/]*)
4758   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4759   ;;
4760   *)
4761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764   IFS=$as_save_IFS
4765   test -z "$as_dir" && as_dir=.
4766     for ac_exec_ext in '' $ac_executable_extensions; do
4767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4768     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770     break 2
4771   fi
4772 done
4773   done
4774 IFS=$as_save_IFS
4775 
4776   ;;
4777 esac
4778 fi
4779 BASH=$ac_cv_path_BASH
4780 if test -n "$BASH"; then
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4782 $as_echo "$BASH" >&6; }
4783 else
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787 
4788 
4789         if test "x$BASH" = x; then
4790           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4791         fi
4792       else
4793         # Otherwise we believe it is a complete path. Use it as it is.
4794         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4795 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4796         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4797 $as_echo_n "checking for BASH... " >&6; }
4798         if test ! -x "$tool_specified"; then
4799           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4800 $as_echo "not found" >&6; }
4801           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4802         fi
4803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4804 $as_echo "$tool_specified" >&6; }
4805       fi
4806     fi
4807   fi
4808 
4809 
4810 
4811   if test "x$BASH" = x; then
4812     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4813   fi
4814 
4815 
4816 
4817 
4818 
4819   # Publish this variable in the help.
4820 
4821 
4822   if test "x$CAT" = x; then
4823     # The variable is not set by user, try to locate tool using the code snippet
4824     for ac_prog in cat
4825 do
4826   # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_path_CAT+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   case $CAT in
4834   [\\/]* | ?:[\\/]*)
4835   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4836   ;;
4837   *)
4838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH
4840 do
4841   IFS=$as_save_IFS
4842   test -z "$as_dir" && as_dir=.
4843     for ac_exec_ext in '' $ac_executable_extensions; do
4844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847     break 2
4848   fi
4849 done
4850   done
4851 IFS=$as_save_IFS
4852 
4853   ;;
4854 esac
4855 fi
4856 CAT=$ac_cv_path_CAT
4857 if test -n "$CAT"; then
4858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4859 $as_echo "$CAT" >&6; }
4860 else
4861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4862 $as_echo "no" >&6; }
4863 fi
4864 
4865 
4866   test -n "$CAT" && break
4867 done
4868 
4869   else
4870     # The variable is set, but is it from the command line or the environment?
4871 
4872     # Try to remove the string !CAT! from our list.
4873     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4874     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4875       # If it failed, the variable was not from the command line. Ignore it,
4876       # but warn the user (except for BASH, which is always set by the calling BASH).
4877       if test "xCAT" != xBASH; then
4878         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4879 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4880       fi
4881       # Try to locate tool using the code snippet
4882       for ac_prog in cat
4883 do
4884   # Extract the first word of "$ac_prog", so it can be a program name with args.
4885 set dummy $ac_prog; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_path_CAT+:} false; then :
4889   $as_echo_n "(cached) " >&6
4890 else
4891   case $CAT in
4892   [\\/]* | ?:[\\/]*)
4893   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4894   ;;
4895   *)
4896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4898 do
4899   IFS=$as_save_IFS
4900   test -z "$as_dir" && as_dir=.
4901     for ac_exec_ext in '' $ac_executable_extensions; do
4902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4903     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905     break 2
4906   fi
4907 done
4908   done
4909 IFS=$as_save_IFS
4910 
4911   ;;
4912 esac
4913 fi
4914 CAT=$ac_cv_path_CAT
4915 if test -n "$CAT"; then
4916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4917 $as_echo "$CAT" >&6; }
4918 else
4919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4920 $as_echo "no" >&6; }
4921 fi
4922 
4923 
4924   test -n "$CAT" && break
4925 done
4926 
4927     else
4928       # If it succeeded, then it was overridden by the user. We will use it
4929       # for the tool.
4930 
4931       # First remove it from the list of overridden variables, so we can test
4932       # for unknown variables in the end.
4933       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4934 
4935       # Check if the provided tool contains a complete path.
4936       tool_specified="$CAT"
4937       tool_basename="${tool_specified##*/}"
4938       if test "x$tool_basename" = "x$tool_specified"; then
4939         # A command without a complete path is provided, search $PATH.
4940         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4941 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4942         # Extract the first word of "$tool_basename", so it can be a program name with args.
4943 set dummy $tool_basename; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if ${ac_cv_path_CAT+:} false; then :
4947   $as_echo_n "(cached) " >&6
4948 else
4949   case $CAT in
4950   [\\/]* | ?:[\\/]*)
4951   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4952   ;;
4953   *)
4954   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4956 do
4957   IFS=$as_save_IFS
4958   test -z "$as_dir" && as_dir=.
4959     for ac_exec_ext in '' $ac_executable_extensions; do
4960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4961     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963     break 2
4964   fi
4965 done
4966   done
4967 IFS=$as_save_IFS
4968 
4969   ;;
4970 esac
4971 fi
4972 CAT=$ac_cv_path_CAT
4973 if test -n "$CAT"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4975 $as_echo "$CAT" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980 
4981 
4982         if test "x$CAT" = x; then
4983           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4984         fi
4985       else
4986         # Otherwise we believe it is a complete path. Use it as it is.
4987         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4988 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4989         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4990 $as_echo_n "checking for CAT... " >&6; }
4991         if test ! -x "$tool_specified"; then
4992           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4993 $as_echo "not found" >&6; }
4994           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4995         fi
4996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4997 $as_echo "$tool_specified" >&6; }
4998       fi
4999     fi
5000   fi
5001 
5002 
5003 
5004   if test "x$CAT" = x; then
5005     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5006   fi
5007 
5008 
5009 
5010 
5011 
5012   # Publish this variable in the help.
5013 
5014 
5015   if test "x$CHMOD" = x; then
5016     # The variable is not set by user, try to locate tool using the code snippet
5017     for ac_prog in chmod
5018 do
5019   # Extract the first word of "$ac_prog", so it can be a program name with args.
5020 set dummy $ac_prog; ac_word=$2
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5022 $as_echo_n "checking for $ac_word... " >&6; }
5023 if ${ac_cv_path_CHMOD+:} false; then :
5024   $as_echo_n "(cached) " >&6
5025 else
5026   case $CHMOD in
5027   [\\/]* | ?:[\\/]*)
5028   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5029   ;;
5030   *)
5031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034   IFS=$as_save_IFS
5035   test -z "$as_dir" && as_dir=.
5036     for ac_exec_ext in '' $ac_executable_extensions; do
5037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040     break 2
5041   fi
5042 done
5043   done
5044 IFS=$as_save_IFS
5045 
5046   ;;
5047 esac
5048 fi
5049 CHMOD=$ac_cv_path_CHMOD
5050 if test -n "$CHMOD"; then
5051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5052 $as_echo "$CHMOD" >&6; }
5053 else
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5055 $as_echo "no" >&6; }
5056 fi
5057 
5058 
5059   test -n "$CHMOD" && break
5060 done
5061 
5062   else
5063     # The variable is set, but is it from the command line or the environment?
5064 
5065     # Try to remove the string !CHMOD! from our list.
5066     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5067     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5068       # If it failed, the variable was not from the command line. Ignore it,
5069       # but warn the user (except for BASH, which is always set by the calling BASH).
5070       if test "xCHMOD" != xBASH; then
5071         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5072 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5073       fi
5074       # Try to locate tool using the code snippet
5075       for ac_prog in chmod
5076 do
5077   # Extract the first word of "$ac_prog", so it can be a program name with args.
5078 set dummy $ac_prog; ac_word=$2
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 $as_echo_n "checking for $ac_word... " >&6; }
5081 if ${ac_cv_path_CHMOD+:} false; then :
5082   $as_echo_n "(cached) " >&6
5083 else
5084   case $CHMOD in
5085   [\\/]* | ?:[\\/]*)
5086   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5087   ;;
5088   *)
5089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 for as_dir in $PATH
5091 do
5092   IFS=$as_save_IFS
5093   test -z "$as_dir" && as_dir=.
5094     for ac_exec_ext in '' $ac_executable_extensions; do
5095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5096     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5098     break 2
5099   fi
5100 done
5101   done
5102 IFS=$as_save_IFS
5103 
5104   ;;
5105 esac
5106 fi
5107 CHMOD=$ac_cv_path_CHMOD
5108 if test -n "$CHMOD"; then
5109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5110 $as_echo "$CHMOD" >&6; }
5111 else
5112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5114 fi
5115 
5116 
5117   test -n "$CHMOD" && break
5118 done
5119 
5120     else
5121       # If it succeeded, then it was overridden by the user. We will use it
5122       # for the tool.
5123 
5124       # First remove it from the list of overridden variables, so we can test
5125       # for unknown variables in the end.
5126       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5127 
5128       # Check if the provided tool contains a complete path.
5129       tool_specified="$CHMOD"
5130       tool_basename="${tool_specified##*/}"
5131       if test "x$tool_basename" = "x$tool_specified"; then
5132         # A command without a complete path is provided, search $PATH.
5133         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5134 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5135         # Extract the first word of "$tool_basename", so it can be a program name with args.
5136 set dummy $tool_basename; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_path_CHMOD+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   case $CHMOD in
5143   [\\/]* | ?:[\\/]*)
5144   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5145   ;;
5146   *)
5147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 for as_dir in $PATH
5149 do
5150   IFS=$as_save_IFS
5151   test -z "$as_dir" && as_dir=.
5152     for ac_exec_ext in '' $ac_executable_extensions; do
5153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5156     break 2
5157   fi
5158 done
5159   done
5160 IFS=$as_save_IFS
5161 
5162   ;;
5163 esac
5164 fi
5165 CHMOD=$ac_cv_path_CHMOD
5166 if test -n "$CHMOD"; then
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5168 $as_echo "$CHMOD" >&6; }
5169 else
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5172 fi
5173 
5174 
5175         if test "x$CHMOD" = x; then
5176           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5177         fi
5178       else
5179         # Otherwise we believe it is a complete path. Use it as it is.
5180         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5181 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5182         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5183 $as_echo_n "checking for CHMOD... " >&6; }
5184         if test ! -x "$tool_specified"; then
5185           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5186 $as_echo "not found" >&6; }
5187           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5188         fi
5189         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5190 $as_echo "$tool_specified" >&6; }
5191       fi
5192     fi
5193   fi
5194 
5195 
5196 
5197   if test "x$CHMOD" = x; then
5198     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5199   fi
5200 
5201 
5202 
5203 
5204 
5205   # Publish this variable in the help.
5206 
5207 
5208   if test "x$CMP" = x; then
5209     # The variable is not set by user, try to locate tool using the code snippet
5210     for ac_prog in cmp
5211 do
5212   # Extract the first word of "$ac_prog", so it can be a program name with args.
5213 set dummy $ac_prog; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_CMP+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   case $CMP in
5220   [\\/]* | ?:[\\/]*)
5221   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5222   ;;
5223   *)
5224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229     for ac_exec_ext in '' $ac_executable_extensions; do
5230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236   done
5237 IFS=$as_save_IFS
5238 
5239   ;;
5240 esac
5241 fi
5242 CMP=$ac_cv_path_CMP
5243 if test -n "$CMP"; then
5244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5245 $as_echo "$CMP" >&6; }
5246 else
5247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250 
5251 
5252   test -n "$CMP" && break
5253 done
5254 
5255   else
5256     # The variable is set, but is it from the command line or the environment?
5257 
5258     # Try to remove the string !CMP! from our list.
5259     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5260     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5261       # If it failed, the variable was not from the command line. Ignore it,
5262       # but warn the user (except for BASH, which is always set by the calling BASH).
5263       if test "xCMP" != xBASH; then
5264         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5265 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5266       fi
5267       # Try to locate tool using the code snippet
5268       for ac_prog in cmp
5269 do
5270   # Extract the first word of "$ac_prog", so it can be a program name with args.
5271 set dummy $ac_prog; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_path_CMP+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277   case $CMP in
5278   [\\/]* | ?:[\\/]*)
5279   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5280   ;;
5281   *)
5282   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH
5284 do
5285   IFS=$as_save_IFS
5286   test -z "$as_dir" && as_dir=.
5287     for ac_exec_ext in '' $ac_executable_extensions; do
5288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5289     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291     break 2
5292   fi
5293 done
5294   done
5295 IFS=$as_save_IFS
5296 
5297   ;;
5298 esac
5299 fi
5300 CMP=$ac_cv_path_CMP
5301 if test -n "$CMP"; then
5302   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5303 $as_echo "$CMP" >&6; }
5304 else
5305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5306 $as_echo "no" >&6; }
5307 fi
5308 
5309 
5310   test -n "$CMP" && break
5311 done
5312 
5313     else
5314       # If it succeeded, then it was overridden by the user. We will use it
5315       # for the tool.
5316 
5317       # First remove it from the list of overridden variables, so we can test
5318       # for unknown variables in the end.
5319       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5320 
5321       # Check if the provided tool contains a complete path.
5322       tool_specified="$CMP"
5323       tool_basename="${tool_specified##*/}"
5324       if test "x$tool_basename" = "x$tool_specified"; then
5325         # A command without a complete path is provided, search $PATH.
5326         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5327 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5328         # Extract the first word of "$tool_basename", so it can be a program name with args.
5329 set dummy $tool_basename; ac_word=$2
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5331 $as_echo_n "checking for $ac_word... " >&6; }
5332 if ${ac_cv_path_CMP+:} false; then :
5333   $as_echo_n "(cached) " >&6
5334 else
5335   case $CMP in
5336   [\\/]* | ?:[\\/]*)
5337   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5338   ;;
5339   *)
5340   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352   done
5353 IFS=$as_save_IFS
5354 
5355   ;;
5356 esac
5357 fi
5358 CMP=$ac_cv_path_CMP
5359 if test -n "$CMP"; then
5360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5361 $as_echo "$CMP" >&6; }
5362 else
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5365 fi
5366 
5367 
5368         if test "x$CMP" = x; then
5369           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5370         fi
5371       else
5372         # Otherwise we believe it is a complete path. Use it as it is.
5373         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5374 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5375         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5376 $as_echo_n "checking for CMP... " >&6; }
5377         if test ! -x "$tool_specified"; then
5378           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5379 $as_echo "not found" >&6; }
5380           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5381         fi
5382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5383 $as_echo "$tool_specified" >&6; }
5384       fi
5385     fi
5386   fi
5387 
5388 
5389 
5390   if test "x$CMP" = x; then
5391     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5392   fi
5393 
5394 
5395 
5396 
5397 
5398   # Publish this variable in the help.
5399 
5400 
5401   if test "x$COMM" = x; then
5402     # The variable is not set by user, try to locate tool using the code snippet
5403     for ac_prog in comm
5404 do
5405   # Extract the first word of "$ac_prog", so it can be a program name with args.
5406 set dummy $ac_prog; ac_word=$2
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5408 $as_echo_n "checking for $ac_word... " >&6; }
5409 if ${ac_cv_path_COMM+:} false; then :
5410   $as_echo_n "(cached) " >&6
5411 else
5412   case $COMM in
5413   [\\/]* | ?:[\\/]*)
5414   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5415   ;;
5416   *)
5417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5419 do
5420   IFS=$as_save_IFS
5421   test -z "$as_dir" && as_dir=.
5422     for ac_exec_ext in '' $ac_executable_extensions; do
5423   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5425     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426     break 2
5427   fi
5428 done
5429   done
5430 IFS=$as_save_IFS
5431 
5432   ;;
5433 esac
5434 fi
5435 COMM=$ac_cv_path_COMM
5436 if test -n "$COMM"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5438 $as_echo "$COMM" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443 
5444 
5445   test -n "$COMM" && break
5446 done
5447 
5448   else
5449     # The variable is set, but is it from the command line or the environment?
5450 
5451     # Try to remove the string !COMM! from our list.
5452     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5453     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5454       # If it failed, the variable was not from the command line. Ignore it,
5455       # but warn the user (except for BASH, which is always set by the calling BASH).
5456       if test "xCOMM" != xBASH; then
5457         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5458 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5459       fi
5460       # Try to locate tool using the code snippet
5461       for ac_prog in comm
5462 do
5463   # Extract the first word of "$ac_prog", so it can be a program name with args.
5464 set dummy $ac_prog; ac_word=$2
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5466 $as_echo_n "checking for $ac_word... " >&6; }
5467 if ${ac_cv_path_COMM+:} false; then :
5468   $as_echo_n "(cached) " >&6
5469 else
5470   case $COMM in
5471   [\\/]* | ?:[\\/]*)
5472   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5473   ;;
5474   *)
5475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478   IFS=$as_save_IFS
5479   test -z "$as_dir" && as_dir=.
5480     for ac_exec_ext in '' $ac_executable_extensions; do
5481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5482     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484     break 2
5485   fi
5486 done
5487   done
5488 IFS=$as_save_IFS
5489 
5490   ;;
5491 esac
5492 fi
5493 COMM=$ac_cv_path_COMM
5494 if test -n "$COMM"; then
5495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5496 $as_echo "$COMM" >&6; }
5497 else
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5499 $as_echo "no" >&6; }
5500 fi
5501 
5502 
5503   test -n "$COMM" && break
5504 done
5505 
5506     else
5507       # If it succeeded, then it was overridden by the user. We will use it
5508       # for the tool.
5509 
5510       # First remove it from the list of overridden variables, so we can test
5511       # for unknown variables in the end.
5512       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5513 
5514       # Check if the provided tool contains a complete path.
5515       tool_specified="$COMM"
5516       tool_basename="${tool_specified##*/}"
5517       if test "x$tool_basename" = "x$tool_specified"; then
5518         # A command without a complete path is provided, search $PATH.
5519         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5520 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5521         # Extract the first word of "$tool_basename", so it can be a program name with args.
5522 set dummy $tool_basename; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_COMM+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $COMM in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547 
5548   ;;
5549 esac
5550 fi
5551 COMM=$ac_cv_path_COMM
5552 if test -n "$COMM"; then
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5554 $as_echo "$COMM" >&6; }
5555 else
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559 
5560 
5561         if test "x$COMM" = x; then
5562           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5563         fi
5564       else
5565         # Otherwise we believe it is a complete path. Use it as it is.
5566         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5567 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5569 $as_echo_n "checking for COMM... " >&6; }
5570         if test ! -x "$tool_specified"; then
5571           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5572 $as_echo "not found" >&6; }
5573           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5574         fi
5575         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5576 $as_echo "$tool_specified" >&6; }
5577       fi
5578     fi
5579   fi
5580 
5581 
5582 
5583   if test "x$COMM" = x; then
5584     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5585   fi
5586 
5587 
5588 
5589 
5590 
5591   # Publish this variable in the help.
5592 
5593 
5594   if test "x$CP" = x; then
5595     # The variable is not set by user, try to locate tool using the code snippet
5596     for ac_prog in cp
5597 do
5598   # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_path_CP+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   case $CP in
5606   [\\/]* | ?:[\\/]*)
5607   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5608   ;;
5609   *)
5610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613   IFS=$as_save_IFS
5614   test -z "$as_dir" && as_dir=.
5615     for ac_exec_ext in '' $ac_executable_extensions; do
5616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619     break 2
5620   fi
5621 done
5622   done
5623 IFS=$as_save_IFS
5624 
5625   ;;
5626 esac
5627 fi
5628 CP=$ac_cv_path_CP
5629 if test -n "$CP"; then
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5631 $as_echo "$CP" >&6; }
5632 else
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5635 fi
5636 
5637 
5638   test -n "$CP" && break
5639 done
5640 
5641   else
5642     # The variable is set, but is it from the command line or the environment?
5643 
5644     # Try to remove the string !CP! from our list.
5645     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5646     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5647       # If it failed, the variable was not from the command line. Ignore it,
5648       # but warn the user (except for BASH, which is always set by the calling BASH).
5649       if test "xCP" != xBASH; then
5650         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5651 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5652       fi
5653       # Try to locate tool using the code snippet
5654       for ac_prog in cp
5655 do
5656   # Extract the first word of "$ac_prog", so it can be a program name with args.
5657 set dummy $ac_prog; ac_word=$2
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5659 $as_echo_n "checking for $ac_word... " >&6; }
5660 if ${ac_cv_path_CP+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   case $CP in
5664   [\\/]* | ?:[\\/]*)
5665   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5666   ;;
5667   *)
5668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673     for ac_exec_ext in '' $ac_executable_extensions; do
5674   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5675     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680   done
5681 IFS=$as_save_IFS
5682 
5683   ;;
5684 esac
5685 fi
5686 CP=$ac_cv_path_CP
5687 if test -n "$CP"; then
5688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5689 $as_echo "$CP" >&6; }
5690 else
5691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5693 fi
5694 
5695 
5696   test -n "$CP" && break
5697 done
5698 
5699     else
5700       # If it succeeded, then it was overridden by the user. We will use it
5701       # for the tool.
5702 
5703       # First remove it from the list of overridden variables, so we can test
5704       # for unknown variables in the end.
5705       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5706 
5707       # Check if the provided tool contains a complete path.
5708       tool_specified="$CP"
5709       tool_basename="${tool_specified##*/}"
5710       if test "x$tool_basename" = "x$tool_specified"; then
5711         # A command without a complete path is provided, search $PATH.
5712         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5713 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5714         # Extract the first word of "$tool_basename", so it can be a program name with args.
5715 set dummy $tool_basename; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5717 $as_echo_n "checking for $ac_word... " >&6; }
5718 if ${ac_cv_path_CP+:} false; then :
5719   $as_echo_n "(cached) " >&6
5720 else
5721   case $CP in
5722   [\\/]* | ?:[\\/]*)
5723   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5724   ;;
5725   *)
5726   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740 
5741   ;;
5742 esac
5743 fi
5744 CP=$ac_cv_path_CP
5745 if test -n "$CP"; then
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5747 $as_echo "$CP" >&6; }
5748 else
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752 
5753 
5754         if test "x$CP" = x; then
5755           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5756         fi
5757       else
5758         # Otherwise we believe it is a complete path. Use it as it is.
5759         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5760 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5761         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5762 $as_echo_n "checking for CP... " >&6; }
5763         if test ! -x "$tool_specified"; then
5764           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5765 $as_echo "not found" >&6; }
5766           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5767         fi
5768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5769 $as_echo "$tool_specified" >&6; }
5770       fi
5771     fi
5772   fi
5773 
5774 
5775 
5776   if test "x$CP" = x; then
5777     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5778   fi
5779 
5780 
5781 
5782 
5783 
5784   # Publish this variable in the help.
5785 
5786 
5787   if test "x$CUT" = x; then
5788     # The variable is not set by user, try to locate tool using the code snippet
5789     for ac_prog in cut
5790 do
5791   # Extract the first word of "$ac_prog", so it can be a program name with args.
5792 set dummy $ac_prog; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_path_CUT+:} false; then :
5796   $as_echo_n "(cached) " >&6
5797 else
5798   case $CUT in
5799   [\\/]* | ?:[\\/]*)
5800   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5801   ;;
5802   *)
5803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 for as_dir in $PATH
5805 do
5806   IFS=$as_save_IFS
5807   test -z "$as_dir" && as_dir=.
5808     for ac_exec_ext in '' $ac_executable_extensions; do
5809   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5810     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5811     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812     break 2
5813   fi
5814 done
5815   done
5816 IFS=$as_save_IFS
5817 
5818   ;;
5819 esac
5820 fi
5821 CUT=$ac_cv_path_CUT
5822 if test -n "$CUT"; then
5823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5824 $as_echo "$CUT" >&6; }
5825 else
5826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5828 fi
5829 
5830 
5831   test -n "$CUT" && break
5832 done
5833 
5834   else
5835     # The variable is set, but is it from the command line or the environment?
5836 
5837     # Try to remove the string !CUT! from our list.
5838     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5839     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5840       # If it failed, the variable was not from the command line. Ignore it,
5841       # but warn the user (except for BASH, which is always set by the calling BASH).
5842       if test "xCUT" != xBASH; then
5843         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5844 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5845       fi
5846       # Try to locate tool using the code snippet
5847       for ac_prog in cut
5848 do
5849   # Extract the first word of "$ac_prog", so it can be a program name with args.
5850 set dummy $ac_prog; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if ${ac_cv_path_CUT+:} false; then :
5854   $as_echo_n "(cached) " >&6
5855 else
5856   case $CUT in
5857   [\\/]* | ?:[\\/]*)
5858   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5859   ;;
5860   *)
5861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5863 do
5864   IFS=$as_save_IFS
5865   test -z "$as_dir" && as_dir=.
5866     for ac_exec_ext in '' $ac_executable_extensions; do
5867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5868     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870     break 2
5871   fi
5872 done
5873   done
5874 IFS=$as_save_IFS
5875 
5876   ;;
5877 esac
5878 fi
5879 CUT=$ac_cv_path_CUT
5880 if test -n "$CUT"; then
5881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5882 $as_echo "$CUT" >&6; }
5883 else
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5886 fi
5887 
5888 
5889   test -n "$CUT" && break
5890 done
5891 
5892     else
5893       # If it succeeded, then it was overridden by the user. We will use it
5894       # for the tool.
5895 
5896       # First remove it from the list of overridden variables, so we can test
5897       # for unknown variables in the end.
5898       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5899 
5900       # Check if the provided tool contains a complete path.
5901       tool_specified="$CUT"
5902       tool_basename="${tool_specified##*/}"
5903       if test "x$tool_basename" = "x$tool_specified"; then
5904         # A command without a complete path is provided, search $PATH.
5905         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5906 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5907         # Extract the first word of "$tool_basename", so it can be a program name with args.
5908 set dummy $tool_basename; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_path_CUT+:} false; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   case $CUT in
5915   [\\/]* | ?:[\\/]*)
5916   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5917   ;;
5918   *)
5919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924     for ac_exec_ext in '' $ac_executable_extensions; do
5925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931   done
5932 IFS=$as_save_IFS
5933 
5934   ;;
5935 esac
5936 fi
5937 CUT=$ac_cv_path_CUT
5938 if test -n "$CUT"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5940 $as_echo "$CUT" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945 
5946 
5947         if test "x$CUT" = x; then
5948           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5949         fi
5950       else
5951         # Otherwise we believe it is a complete path. Use it as it is.
5952         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5953 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5955 $as_echo_n "checking for CUT... " >&6; }
5956         if test ! -x "$tool_specified"; then
5957           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5958 $as_echo "not found" >&6; }
5959           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5960         fi
5961         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5962 $as_echo "$tool_specified" >&6; }
5963       fi
5964     fi
5965   fi
5966 
5967 
5968 
5969   if test "x$CUT" = x; then
5970     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5971   fi
5972 
5973 
5974 
5975 
5976 
5977   # Publish this variable in the help.
5978 
5979 
5980   if test "x$DATE" = x; then
5981     # The variable is not set by user, try to locate tool using the code snippet
5982     for ac_prog in date
5983 do
5984   # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5987 $as_echo_n "checking for $ac_word... " >&6; }
5988 if ${ac_cv_path_DATE+:} false; then :
5989   $as_echo_n "(cached) " >&6
5990 else
5991   case $DATE in
5992   [\\/]* | ?:[\\/]*)
5993   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5994   ;;
5995   *)
5996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997 for as_dir in $PATH
5998 do
5999   IFS=$as_save_IFS
6000   test -z "$as_dir" && as_dir=.
6001     for ac_exec_ext in '' $ac_executable_extensions; do
6002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6003     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005     break 2
6006   fi
6007 done
6008   done
6009 IFS=$as_save_IFS
6010 
6011   ;;
6012 esac
6013 fi
6014 DATE=$ac_cv_path_DATE
6015 if test -n "$DATE"; then
6016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6017 $as_echo "$DATE" >&6; }
6018 else
6019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6021 fi
6022 
6023 
6024   test -n "$DATE" && break
6025 done
6026 
6027   else
6028     # The variable is set, but is it from the command line or the environment?
6029 
6030     # Try to remove the string !DATE! from our list.
6031     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6032     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6033       # If it failed, the variable was not from the command line. Ignore it,
6034       # but warn the user (except for BASH, which is always set by the calling BASH).
6035       if test "xDATE" != xBASH; then
6036         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6037 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6038       fi
6039       # Try to locate tool using the code snippet
6040       for ac_prog in date
6041 do
6042   # Extract the first word of "$ac_prog", so it can be a program name with args.
6043 set dummy $ac_prog; ac_word=$2
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6045 $as_echo_n "checking for $ac_word... " >&6; }
6046 if ${ac_cv_path_DATE+:} false; then :
6047   $as_echo_n "(cached) " >&6
6048 else
6049   case $DATE in
6050   [\\/]* | ?:[\\/]*)
6051   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6052   ;;
6053   *)
6054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6055 for as_dir in $PATH
6056 do
6057   IFS=$as_save_IFS
6058   test -z "$as_dir" && as_dir=.
6059     for ac_exec_ext in '' $ac_executable_extensions; do
6060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6061     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6063     break 2
6064   fi
6065 done
6066   done
6067 IFS=$as_save_IFS
6068 
6069   ;;
6070 esac
6071 fi
6072 DATE=$ac_cv_path_DATE
6073 if test -n "$DATE"; then
6074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6075 $as_echo "$DATE" >&6; }
6076 else
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078 $as_echo "no" >&6; }
6079 fi
6080 
6081 
6082   test -n "$DATE" && break
6083 done
6084 
6085     else
6086       # If it succeeded, then it was overridden by the user. We will use it
6087       # for the tool.
6088 
6089       # First remove it from the list of overridden variables, so we can test
6090       # for unknown variables in the end.
6091       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6092 
6093       # Check if the provided tool contains a complete path.
6094       tool_specified="$DATE"
6095       tool_basename="${tool_specified##*/}"
6096       if test "x$tool_basename" = "x$tool_specified"; then
6097         # A command without a complete path is provided, search $PATH.
6098         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6099 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6100         # Extract the first word of "$tool_basename", so it can be a program name with args.
6101 set dummy $tool_basename; ac_word=$2
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103 $as_echo_n "checking for $ac_word... " >&6; }
6104 if ${ac_cv_path_DATE+:} false; then :
6105   $as_echo_n "(cached) " >&6
6106 else
6107   case $DATE in
6108   [\\/]* | ?:[\\/]*)
6109   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6110   ;;
6111   *)
6112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6113 for as_dir in $PATH
6114 do
6115   IFS=$as_save_IFS
6116   test -z "$as_dir" && as_dir=.
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6120     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6121     break 2
6122   fi
6123 done
6124   done
6125 IFS=$as_save_IFS
6126 
6127   ;;
6128 esac
6129 fi
6130 DATE=$ac_cv_path_DATE
6131 if test -n "$DATE"; then
6132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6133 $as_echo "$DATE" >&6; }
6134 else
6135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136 $as_echo "no" >&6; }
6137 fi
6138 
6139 
6140         if test "x$DATE" = x; then
6141           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6142         fi
6143       else
6144         # Otherwise we believe it is a complete path. Use it as it is.
6145         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6146 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6148 $as_echo_n "checking for DATE... " >&6; }
6149         if test ! -x "$tool_specified"; then
6150           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6151 $as_echo "not found" >&6; }
6152           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6153         fi
6154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6155 $as_echo "$tool_specified" >&6; }
6156       fi
6157     fi
6158   fi
6159 
6160 
6161 
6162   if test "x$DATE" = x; then
6163     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6164   fi
6165 
6166 
6167 
6168 
6169 
6170   # Publish this variable in the help.
6171 
6172 
6173   if test "x$DIFF" = x; then
6174     # The variable is not set by user, try to locate tool using the code snippet
6175     for ac_prog in gdiff diff
6176 do
6177   # Extract the first word of "$ac_prog", so it can be a program name with args.
6178 set dummy $ac_prog; ac_word=$2
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180 $as_echo_n "checking for $ac_word... " >&6; }
6181 if ${ac_cv_path_DIFF+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   case $DIFF in
6185   [\\/]* | ?:[\\/]*)
6186   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6187   ;;
6188   *)
6189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201   done
6202 IFS=$as_save_IFS
6203 
6204   ;;
6205 esac
6206 fi
6207 DIFF=$ac_cv_path_DIFF
6208 if test -n "$DIFF"; then
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6210 $as_echo "$DIFF" >&6; }
6211 else
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215 
6216 
6217   test -n "$DIFF" && break
6218 done
6219 
6220   else
6221     # The variable is set, but is it from the command line or the environment?
6222 
6223     # Try to remove the string !DIFF! from our list.
6224     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6225     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6226       # If it failed, the variable was not from the command line. Ignore it,
6227       # but warn the user (except for BASH, which is always set by the calling BASH).
6228       if test "xDIFF" != xBASH; then
6229         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6230 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6231       fi
6232       # Try to locate tool using the code snippet
6233       for ac_prog in gdiff diff
6234 do
6235   # Extract the first word of "$ac_prog", so it can be a program name with args.
6236 set dummy $ac_prog; ac_word=$2
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 $as_echo_n "checking for $ac_word... " >&6; }
6239 if ${ac_cv_path_DIFF+:} false; then :
6240   $as_echo_n "(cached) " >&6
6241 else
6242   case $DIFF in
6243   [\\/]* | ?:[\\/]*)
6244   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6245   ;;
6246   *)
6247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248 for as_dir in $PATH
6249 do
6250   IFS=$as_save_IFS
6251   test -z "$as_dir" && as_dir=.
6252     for ac_exec_ext in '' $ac_executable_extensions; do
6253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6254     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6256     break 2
6257   fi
6258 done
6259   done
6260 IFS=$as_save_IFS
6261 
6262   ;;
6263 esac
6264 fi
6265 DIFF=$ac_cv_path_DIFF
6266 if test -n "$DIFF"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6268 $as_echo "$DIFF" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273 
6274 
6275   test -n "$DIFF" && break
6276 done
6277 
6278     else
6279       # If it succeeded, then it was overridden by the user. We will use it
6280       # for the tool.
6281 
6282       # First remove it from the list of overridden variables, so we can test
6283       # for unknown variables in the end.
6284       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6285 
6286       # Check if the provided tool contains a complete path.
6287       tool_specified="$DIFF"
6288       tool_basename="${tool_specified##*/}"
6289       if test "x$tool_basename" = "x$tool_specified"; then
6290         # A command without a complete path is provided, search $PATH.
6291         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6292 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6293         # Extract the first word of "$tool_basename", so it can be a program name with args.
6294 set dummy $tool_basename; ac_word=$2
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6296 $as_echo_n "checking for $ac_word... " >&6; }
6297 if ${ac_cv_path_DIFF+:} false; then :
6298   $as_echo_n "(cached) " >&6
6299 else
6300   case $DIFF in
6301   [\\/]* | ?:[\\/]*)
6302   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6303   ;;
6304   *)
6305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310     for ac_exec_ext in '' $ac_executable_extensions; do
6311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317   done
6318 IFS=$as_save_IFS
6319 
6320   ;;
6321 esac
6322 fi
6323 DIFF=$ac_cv_path_DIFF
6324 if test -n "$DIFF"; then
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6326 $as_echo "$DIFF" >&6; }
6327 else
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331 
6332 
6333         if test "x$DIFF" = x; then
6334           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6335         fi
6336       else
6337         # Otherwise we believe it is a complete path. Use it as it is.
6338         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6339 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6341 $as_echo_n "checking for DIFF... " >&6; }
6342         if test ! -x "$tool_specified"; then
6343           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6344 $as_echo "not found" >&6; }
6345           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6346         fi
6347         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6348 $as_echo "$tool_specified" >&6; }
6349       fi
6350     fi
6351   fi
6352 
6353 
6354 
6355   if test "x$DIFF" = x; then
6356     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6357   fi
6358 
6359 
6360 
6361 
6362 
6363   # Publish this variable in the help.
6364 
6365 
6366   if test "x$DIRNAME" = x; then
6367     # The variable is not set by user, try to locate tool using the code snippet
6368     for ac_prog in dirname
6369 do
6370   # Extract the first word of "$ac_prog", so it can be a program name with args.
6371 set dummy $ac_prog; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_path_DIRNAME+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   case $DIRNAME in
6378   [\\/]* | ?:[\\/]*)
6379   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6380   ;;
6381   *)
6382   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385   IFS=$as_save_IFS
6386   test -z "$as_dir" && as_dir=.
6387     for ac_exec_ext in '' $ac_executable_extensions; do
6388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391     break 2
6392   fi
6393 done
6394   done
6395 IFS=$as_save_IFS
6396 
6397   ;;
6398 esac
6399 fi
6400 DIRNAME=$ac_cv_path_DIRNAME
6401 if test -n "$DIRNAME"; then
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6403 $as_echo "$DIRNAME" >&6; }
6404 else
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6407 fi
6408 
6409 
6410   test -n "$DIRNAME" && break
6411 done
6412 
6413   else
6414     # The variable is set, but is it from the command line or the environment?
6415 
6416     # Try to remove the string !DIRNAME! from our list.
6417     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6418     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6419       # If it failed, the variable was not from the command line. Ignore it,
6420       # but warn the user (except for BASH, which is always set by the calling BASH).
6421       if test "xDIRNAME" != xBASH; then
6422         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6423 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6424       fi
6425       # Try to locate tool using the code snippet
6426       for ac_prog in dirname
6427 do
6428   # Extract the first word of "$ac_prog", so it can be a program name with args.
6429 set dummy $ac_prog; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_path_DIRNAME+:} false; then :
6433   $as_echo_n "(cached) " >&6
6434 else
6435   case $DIRNAME in
6436   [\\/]* | ?:[\\/]*)
6437   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6438   ;;
6439   *)
6440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454 
6455   ;;
6456 esac
6457 fi
6458 DIRNAME=$ac_cv_path_DIRNAME
6459 if test -n "$DIRNAME"; then
6460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6461 $as_echo "$DIRNAME" >&6; }
6462 else
6463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466 
6467 
6468   test -n "$DIRNAME" && break
6469 done
6470 
6471     else
6472       # If it succeeded, then it was overridden by the user. We will use it
6473       # for the tool.
6474 
6475       # First remove it from the list of overridden variables, so we can test
6476       # for unknown variables in the end.
6477       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6478 
6479       # Check if the provided tool contains a complete path.
6480       tool_specified="$DIRNAME"
6481       tool_basename="${tool_specified##*/}"
6482       if test "x$tool_basename" = "x$tool_specified"; then
6483         # A command without a complete path is provided, search $PATH.
6484         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6485 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6486         # Extract the first word of "$tool_basename", so it can be a program name with args.
6487 set dummy $tool_basename; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_path_DIRNAME+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   case $DIRNAME in
6494   [\\/]* | ?:[\\/]*)
6495   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6496   ;;
6497   *)
6498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6500 do
6501   IFS=$as_save_IFS
6502   test -z "$as_dir" && as_dir=.
6503     for ac_exec_ext in '' $ac_executable_extensions; do
6504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507     break 2
6508   fi
6509 done
6510   done
6511 IFS=$as_save_IFS
6512 
6513   ;;
6514 esac
6515 fi
6516 DIRNAME=$ac_cv_path_DIRNAME
6517 if test -n "$DIRNAME"; then
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6519 $as_echo "$DIRNAME" >&6; }
6520 else
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
6523 fi
6524 
6525 
6526         if test "x$DIRNAME" = x; then
6527           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6528         fi
6529       else
6530         # Otherwise we believe it is a complete path. Use it as it is.
6531         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6532 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6534 $as_echo_n "checking for DIRNAME... " >&6; }
6535         if test ! -x "$tool_specified"; then
6536           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6537 $as_echo "not found" >&6; }
6538           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6539         fi
6540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6541 $as_echo "$tool_specified" >&6; }
6542       fi
6543     fi
6544   fi
6545 
6546 
6547 
6548   if test "x$DIRNAME" = x; then
6549     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6550   fi
6551 
6552 
6553 
6554 
6555 
6556   # Publish this variable in the help.
6557 
6558 
6559   if test "x$ECHO" = x; then
6560     # The variable is not set by user, try to locate tool using the code snippet
6561     for ac_prog in echo
6562 do
6563   # Extract the first word of "$ac_prog", so it can be a program name with args.
6564 set dummy $ac_prog; ac_word=$2
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566 $as_echo_n "checking for $ac_word... " >&6; }
6567 if ${ac_cv_path_ECHO+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   case $ECHO in
6571   [\\/]* | ?:[\\/]*)
6572   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6573   ;;
6574   *)
6575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 for as_dir in $PATH
6577 do
6578   IFS=$as_save_IFS
6579   test -z "$as_dir" && as_dir=.
6580     for ac_exec_ext in '' $ac_executable_extensions; do
6581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584     break 2
6585   fi
6586 done
6587   done
6588 IFS=$as_save_IFS
6589 
6590   ;;
6591 esac
6592 fi
6593 ECHO=$ac_cv_path_ECHO
6594 if test -n "$ECHO"; then
6595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6596 $as_echo "$ECHO" >&6; }
6597 else
6598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601 
6602 
6603   test -n "$ECHO" && break
6604 done
6605 
6606   else
6607     # The variable is set, but is it from the command line or the environment?
6608 
6609     # Try to remove the string !ECHO! from our list.
6610     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6611     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6612       # If it failed, the variable was not from the command line. Ignore it,
6613       # but warn the user (except for BASH, which is always set by the calling BASH).
6614       if test "xECHO" != xBASH; then
6615         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6616 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6617       fi
6618       # Try to locate tool using the code snippet
6619       for ac_prog in echo
6620 do
6621   # Extract the first word of "$ac_prog", so it can be a program name with args.
6622 set dummy $ac_prog; ac_word=$2
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6624 $as_echo_n "checking for $ac_word... " >&6; }
6625 if ${ac_cv_path_ECHO+:} false; then :
6626   $as_echo_n "(cached) " >&6
6627 else
6628   case $ECHO in
6629   [\\/]* | ?:[\\/]*)
6630   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6631   ;;
6632   *)
6633   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638     for ac_exec_ext in '' $ac_executable_extensions; do
6639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645   done
6646 IFS=$as_save_IFS
6647 
6648   ;;
6649 esac
6650 fi
6651 ECHO=$ac_cv_path_ECHO
6652 if test -n "$ECHO"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6654 $as_echo "$ECHO" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659 
6660 
6661   test -n "$ECHO" && break
6662 done
6663 
6664     else
6665       # If it succeeded, then it was overridden by the user. We will use it
6666       # for the tool.
6667 
6668       # First remove it from the list of overridden variables, so we can test
6669       # for unknown variables in the end.
6670       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6671 
6672       # Check if the provided tool contains a complete path.
6673       tool_specified="$ECHO"
6674       tool_basename="${tool_specified##*/}"
6675       if test "x$tool_basename" = "x$tool_specified"; then
6676         # A command without a complete path is provided, search $PATH.
6677         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6678 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6679         # Extract the first word of "$tool_basename", so it can be a program name with args.
6680 set dummy $tool_basename; ac_word=$2
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6682 $as_echo_n "checking for $ac_word... " >&6; }
6683 if ${ac_cv_path_ECHO+:} false; then :
6684   $as_echo_n "(cached) " >&6
6685 else
6686   case $ECHO in
6687   [\\/]* | ?:[\\/]*)
6688   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6689   ;;
6690   *)
6691   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6692 for as_dir in $PATH
6693 do
6694   IFS=$as_save_IFS
6695   test -z "$as_dir" && as_dir=.
6696     for ac_exec_ext in '' $ac_executable_extensions; do
6697   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6698     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6699     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6700     break 2
6701   fi
6702 done
6703   done
6704 IFS=$as_save_IFS
6705 
6706   ;;
6707 esac
6708 fi
6709 ECHO=$ac_cv_path_ECHO
6710 if test -n "$ECHO"; then
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6712 $as_echo "$ECHO" >&6; }
6713 else
6714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6716 fi
6717 
6718 
6719         if test "x$ECHO" = x; then
6720           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6721         fi
6722       else
6723         # Otherwise we believe it is a complete path. Use it as it is.
6724         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6725 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6726         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6727 $as_echo_n "checking for ECHO... " >&6; }
6728         if test ! -x "$tool_specified"; then
6729           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6730 $as_echo "not found" >&6; }
6731           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6732         fi
6733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6734 $as_echo "$tool_specified" >&6; }
6735       fi
6736     fi
6737   fi
6738 
6739 
6740 
6741   if test "x$ECHO" = x; then
6742     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6743   fi
6744 
6745 
6746 
6747 
6748 
6749   # Publish this variable in the help.
6750 
6751 
6752   if test "x$EXPR" = x; then
6753     # The variable is not set by user, try to locate tool using the code snippet
6754     for ac_prog in expr
6755 do
6756   # Extract the first word of "$ac_prog", so it can be a program name with args.
6757 set dummy $ac_prog; ac_word=$2
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6759 $as_echo_n "checking for $ac_word... " >&6; }
6760 if ${ac_cv_path_EXPR+:} false; then :
6761   $as_echo_n "(cached) " >&6
6762 else
6763   case $EXPR in
6764   [\\/]* | ?:[\\/]*)
6765   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6766   ;;
6767   *)
6768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773     for ac_exec_ext in '' $ac_executable_extensions; do
6774   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6775     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6776     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780   done
6781 IFS=$as_save_IFS
6782 
6783   ;;
6784 esac
6785 fi
6786 EXPR=$ac_cv_path_EXPR
6787 if test -n "$EXPR"; then
6788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6789 $as_echo "$EXPR" >&6; }
6790 else
6791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793 fi
6794 
6795 
6796   test -n "$EXPR" && break
6797 done
6798 
6799   else
6800     # The variable is set, but is it from the command line or the environment?
6801 
6802     # Try to remove the string !EXPR! from our list.
6803     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6804     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6805       # If it failed, the variable was not from the command line. Ignore it,
6806       # but warn the user (except for BASH, which is always set by the calling BASH).
6807       if test "xEXPR" != xBASH; then
6808         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6809 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6810       fi
6811       # Try to locate tool using the code snippet
6812       for ac_prog in expr
6813 do
6814   # Extract the first word of "$ac_prog", so it can be a program name with args.
6815 set dummy $ac_prog; ac_word=$2
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 $as_echo_n "checking for $ac_word... " >&6; }
6818 if ${ac_cv_path_EXPR+:} false; then :
6819   $as_echo_n "(cached) " >&6
6820 else
6821   case $EXPR in
6822   [\\/]* | ?:[\\/]*)
6823   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6824   ;;
6825   *)
6826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829   IFS=$as_save_IFS
6830   test -z "$as_dir" && as_dir=.
6831     for ac_exec_ext in '' $ac_executable_extensions; do
6832   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835     break 2
6836   fi
6837 done
6838   done
6839 IFS=$as_save_IFS
6840 
6841   ;;
6842 esac
6843 fi
6844 EXPR=$ac_cv_path_EXPR
6845 if test -n "$EXPR"; then
6846   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6847 $as_echo "$EXPR" >&6; }
6848 else
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6850 $as_echo "no" >&6; }
6851 fi
6852 
6853 
6854   test -n "$EXPR" && break
6855 done
6856 
6857     else
6858       # If it succeeded, then it was overridden by the user. We will use it
6859       # for the tool.
6860 
6861       # First remove it from the list of overridden variables, so we can test
6862       # for unknown variables in the end.
6863       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6864 
6865       # Check if the provided tool contains a complete path.
6866       tool_specified="$EXPR"
6867       tool_basename="${tool_specified##*/}"
6868       if test "x$tool_basename" = "x$tool_specified"; then
6869         # A command without a complete path is provided, search $PATH.
6870         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6871 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6872         # Extract the first word of "$tool_basename", so it can be a program name with args.
6873 set dummy $tool_basename; ac_word=$2
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6875 $as_echo_n "checking for $ac_word... " >&6; }
6876 if ${ac_cv_path_EXPR+:} false; then :
6877   $as_echo_n "(cached) " >&6
6878 else
6879   case $EXPR in
6880   [\\/]* | ?:[\\/]*)
6881   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6882   ;;
6883   *)
6884   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887   IFS=$as_save_IFS
6888   test -z "$as_dir" && as_dir=.
6889     for ac_exec_ext in '' $ac_executable_extensions; do
6890   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893     break 2
6894   fi
6895 done
6896   done
6897 IFS=$as_save_IFS
6898 
6899   ;;
6900 esac
6901 fi
6902 EXPR=$ac_cv_path_EXPR
6903 if test -n "$EXPR"; then
6904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6905 $as_echo "$EXPR" >&6; }
6906 else
6907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6908 $as_echo "no" >&6; }
6909 fi
6910 
6911 
6912         if test "x$EXPR" = x; then
6913           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6914         fi
6915       else
6916         # Otherwise we believe it is a complete path. Use it as it is.
6917         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6918 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6919         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6920 $as_echo_n "checking for EXPR... " >&6; }
6921         if test ! -x "$tool_specified"; then
6922           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6923 $as_echo "not found" >&6; }
6924           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6925         fi
6926         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6927 $as_echo "$tool_specified" >&6; }
6928       fi
6929     fi
6930   fi
6931 
6932 
6933 
6934   if test "x$EXPR" = x; then
6935     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6936   fi
6937 
6938 
6939 
6940 
6941 
6942   # Publish this variable in the help.
6943 
6944 
6945   if test "x$FILE" = x; then
6946     # The variable is not set by user, try to locate tool using the code snippet
6947     for ac_prog in file
6948 do
6949   # Extract the first word of "$ac_prog", so it can be a program name with args.
6950 set dummy $ac_prog; ac_word=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_path_FILE+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   case $FILE in
6957   [\\/]* | ?:[\\/]*)
6958   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6959   ;;
6960   *)
6961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 for as_dir in $PATH
6963 do
6964   IFS=$as_save_IFS
6965   test -z "$as_dir" && as_dir=.
6966     for ac_exec_ext in '' $ac_executable_extensions; do
6967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6968     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6970     break 2
6971   fi
6972 done
6973   done
6974 IFS=$as_save_IFS
6975 
6976   ;;
6977 esac
6978 fi
6979 FILE=$ac_cv_path_FILE
6980 if test -n "$FILE"; then
6981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6982 $as_echo "$FILE" >&6; }
6983 else
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6985 $as_echo "no" >&6; }
6986 fi
6987 
6988 
6989   test -n "$FILE" && break
6990 done
6991 
6992   else
6993     # The variable is set, but is it from the command line or the environment?
6994 
6995     # Try to remove the string !FILE! from our list.
6996     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6997     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6998       # If it failed, the variable was not from the command line. Ignore it,
6999       # but warn the user (except for BASH, which is always set by the calling BASH).
7000       if test "xFILE" != xBASH; then
7001         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
7002 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
7003       fi
7004       # Try to locate tool using the code snippet
7005       for ac_prog in file
7006 do
7007   # Extract the first word of "$ac_prog", so it can be a program name with args.
7008 set dummy $ac_prog; ac_word=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if ${ac_cv_path_FILE+:} false; then :
7012   $as_echo_n "(cached) " >&6
7013 else
7014   case $FILE in
7015   [\\/]* | ?:[\\/]*)
7016   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7017   ;;
7018   *)
7019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 for as_dir in $PATH
7021 do
7022   IFS=$as_save_IFS
7023   test -z "$as_dir" && as_dir=.
7024     for ac_exec_ext in '' $ac_executable_extensions; do
7025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7026     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7028     break 2
7029   fi
7030 done
7031   done
7032 IFS=$as_save_IFS
7033 
7034   ;;
7035 esac
7036 fi
7037 FILE=$ac_cv_path_FILE
7038 if test -n "$FILE"; then
7039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7040 $as_echo "$FILE" >&6; }
7041 else
7042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7044 fi
7045 
7046 
7047   test -n "$FILE" && break
7048 done
7049 
7050     else
7051       # If it succeeded, then it was overridden by the user. We will use it
7052       # for the tool.
7053 
7054       # First remove it from the list of overridden variables, so we can test
7055       # for unknown variables in the end.
7056       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7057 
7058       # Check if the provided tool contains a complete path.
7059       tool_specified="$FILE"
7060       tool_basename="${tool_specified##*/}"
7061       if test "x$tool_basename" = "x$tool_specified"; then
7062         # A command without a complete path is provided, search $PATH.
7063         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7064 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7065         # Extract the first word of "$tool_basename", so it can be a program name with args.
7066 set dummy $tool_basename; ac_word=$2
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7068 $as_echo_n "checking for $ac_word... " >&6; }
7069 if ${ac_cv_path_FILE+:} false; then :
7070   $as_echo_n "(cached) " >&6
7071 else
7072   case $FILE in
7073   [\\/]* | ?:[\\/]*)
7074   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7075   ;;
7076   *)
7077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7078 for as_dir in $PATH
7079 do
7080   IFS=$as_save_IFS
7081   test -z "$as_dir" && as_dir=.
7082     for ac_exec_ext in '' $ac_executable_extensions; do
7083   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7084     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7085     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7086     break 2
7087   fi
7088 done
7089   done
7090 IFS=$as_save_IFS
7091 
7092   ;;
7093 esac
7094 fi
7095 FILE=$ac_cv_path_FILE
7096 if test -n "$FILE"; then
7097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7098 $as_echo "$FILE" >&6; }
7099 else
7100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103 
7104 
7105         if test "x$FILE" = x; then
7106           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7107         fi
7108       else
7109         # Otherwise we believe it is a complete path. Use it as it is.
7110         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7111 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7113 $as_echo_n "checking for FILE... " >&6; }
7114         if test ! -x "$tool_specified"; then
7115           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7116 $as_echo "not found" >&6; }
7117           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7118         fi
7119         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7120 $as_echo "$tool_specified" >&6; }
7121       fi
7122     fi
7123   fi
7124 
7125 
7126 
7127   if test "x$FILE" = x; then
7128     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7129   fi
7130 
7131 
7132 
7133 
7134 
7135   # Publish this variable in the help.
7136 
7137 
7138   if test "x$FIND" = x; then
7139     # The variable is not set by user, try to locate tool using the code snippet
7140     for ac_prog in find
7141 do
7142   # Extract the first word of "$ac_prog", so it can be a program name with args.
7143 set dummy $ac_prog; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_path_FIND+:} false; then :
7147   $as_echo_n "(cached) " >&6
7148 else
7149   case $FIND in
7150   [\\/]* | ?:[\\/]*)
7151   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7152   ;;
7153   *)
7154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159     for ac_exec_ext in '' $ac_executable_extensions; do
7160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166   done
7167 IFS=$as_save_IFS
7168 
7169   ;;
7170 esac
7171 fi
7172 FIND=$ac_cv_path_FIND
7173 if test -n "$FIND"; then
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7175 $as_echo "$FIND" >&6; }
7176 else
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7179 fi
7180 
7181 
7182   test -n "$FIND" && break
7183 done
7184 
7185   else
7186     # The variable is set, but is it from the command line or the environment?
7187 
7188     # Try to remove the string !FIND! from our list.
7189     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7190     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7191       # If it failed, the variable was not from the command line. Ignore it,
7192       # but warn the user (except for BASH, which is always set by the calling BASH).
7193       if test "xFIND" != xBASH; then
7194         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7195 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7196       fi
7197       # Try to locate tool using the code snippet
7198       for ac_prog in find
7199 do
7200   # Extract the first word of "$ac_prog", so it can be a program name with args.
7201 set dummy $ac_prog; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_path_FIND+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   case $FIND in
7208   [\\/]* | ?:[\\/]*)
7209   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7210   ;;
7211   *)
7212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226 
7227   ;;
7228 esac
7229 fi
7230 FIND=$ac_cv_path_FIND
7231 if test -n "$FIND"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7233 $as_echo "$FIND" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238 
7239 
7240   test -n "$FIND" && break
7241 done
7242 
7243     else
7244       # If it succeeded, then it was overridden by the user. We will use it
7245       # for the tool.
7246 
7247       # First remove it from the list of overridden variables, so we can test
7248       # for unknown variables in the end.
7249       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7250 
7251       # Check if the provided tool contains a complete path.
7252       tool_specified="$FIND"
7253       tool_basename="${tool_specified##*/}"
7254       if test "x$tool_basename" = "x$tool_specified"; then
7255         # A command without a complete path is provided, search $PATH.
7256         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7257 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7258         # Extract the first word of "$tool_basename", so it can be a program name with args.
7259 set dummy $tool_basename; ac_word=$2
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7261 $as_echo_n "checking for $ac_word... " >&6; }
7262 if ${ac_cv_path_FIND+:} false; then :
7263   $as_echo_n "(cached) " >&6
7264 else
7265   case $FIND in
7266   [\\/]* | ?:[\\/]*)
7267   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7268   ;;
7269   *)
7270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7271 for as_dir in $PATH
7272 do
7273   IFS=$as_save_IFS
7274   test -z "$as_dir" && as_dir=.
7275     for ac_exec_ext in '' $ac_executable_extensions; do
7276   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7277     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7279     break 2
7280   fi
7281 done
7282   done
7283 IFS=$as_save_IFS
7284 
7285   ;;
7286 esac
7287 fi
7288 FIND=$ac_cv_path_FIND
7289 if test -n "$FIND"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7291 $as_echo "$FIND" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296 
7297 
7298         if test "x$FIND" = x; then
7299           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7300         fi
7301       else
7302         # Otherwise we believe it is a complete path. Use it as it is.
7303         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7304 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7305         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7306 $as_echo_n "checking for FIND... " >&6; }
7307         if test ! -x "$tool_specified"; then
7308           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7309 $as_echo "not found" >&6; }
7310           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7311         fi
7312         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7313 $as_echo "$tool_specified" >&6; }
7314       fi
7315     fi
7316   fi
7317 
7318 
7319 
7320   if test "x$FIND" = x; then
7321     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7322   fi
7323 
7324 
7325 
7326 
7327 
7328   # Publish this variable in the help.
7329 
7330 
7331   if test "x$HEAD" = x; then
7332     # The variable is not set by user, try to locate tool using the code snippet
7333     for ac_prog in head
7334 do
7335   # Extract the first word of "$ac_prog", so it can be a program name with args.
7336 set dummy $ac_prog; ac_word=$2
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7338 $as_echo_n "checking for $ac_word... " >&6; }
7339 if ${ac_cv_path_HEAD+:} false; then :
7340   $as_echo_n "(cached) " >&6
7341 else
7342   case $HEAD in
7343   [\\/]* | ?:[\\/]*)
7344   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7345   ;;
7346   *)
7347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350   IFS=$as_save_IFS
7351   test -z "$as_dir" && as_dir=.
7352     for ac_exec_ext in '' $ac_executable_extensions; do
7353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356     break 2
7357   fi
7358 done
7359   done
7360 IFS=$as_save_IFS
7361 
7362   ;;
7363 esac
7364 fi
7365 HEAD=$ac_cv_path_HEAD
7366 if test -n "$HEAD"; then
7367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7368 $as_echo "$HEAD" >&6; }
7369 else
7370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371 $as_echo "no" >&6; }
7372 fi
7373 
7374 
7375   test -n "$HEAD" && break
7376 done
7377 
7378   else
7379     # The variable is set, but is it from the command line or the environment?
7380 
7381     # Try to remove the string !HEAD! from our list.
7382     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7383     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7384       # If it failed, the variable was not from the command line. Ignore it,
7385       # but warn the user (except for BASH, which is always set by the calling BASH).
7386       if test "xHEAD" != xBASH; then
7387         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7388 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7389       fi
7390       # Try to locate tool using the code snippet
7391       for ac_prog in head
7392 do
7393   # Extract the first word of "$ac_prog", so it can be a program name with args.
7394 set dummy $ac_prog; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_path_HEAD+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   case $HEAD in
7401   [\\/]* | ?:[\\/]*)
7402   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7403   ;;
7404   *)
7405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406 for as_dir in $PATH
7407 do
7408   IFS=$as_save_IFS
7409   test -z "$as_dir" && as_dir=.
7410     for ac_exec_ext in '' $ac_executable_extensions; do
7411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7412     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7414     break 2
7415   fi
7416 done
7417   done
7418 IFS=$as_save_IFS
7419 
7420   ;;
7421 esac
7422 fi
7423 HEAD=$ac_cv_path_HEAD
7424 if test -n "$HEAD"; then
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7426 $as_echo "$HEAD" >&6; }
7427 else
7428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }
7430 fi
7431 
7432 
7433   test -n "$HEAD" && break
7434 done
7435 
7436     else
7437       # If it succeeded, then it was overridden by the user. We will use it
7438       # for the tool.
7439 
7440       # First remove it from the list of overridden variables, so we can test
7441       # for unknown variables in the end.
7442       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7443 
7444       # Check if the provided tool contains a complete path.
7445       tool_specified="$HEAD"
7446       tool_basename="${tool_specified##*/}"
7447       if test "x$tool_basename" = "x$tool_specified"; then
7448         # A command without a complete path is provided, search $PATH.
7449         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7450 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7451         # Extract the first word of "$tool_basename", so it can be a program name with args.
7452 set dummy $tool_basename; ac_word=$2
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454 $as_echo_n "checking for $ac_word... " >&6; }
7455 if ${ac_cv_path_HEAD+:} false; then :
7456   $as_echo_n "(cached) " >&6
7457 else
7458   case $HEAD in
7459   [\\/]* | ?:[\\/]*)
7460   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7461   ;;
7462   *)
7463   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 for as_dir in $PATH
7465 do
7466   IFS=$as_save_IFS
7467   test -z "$as_dir" && as_dir=.
7468     for ac_exec_ext in '' $ac_executable_extensions; do
7469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7470     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7472     break 2
7473   fi
7474 done
7475   done
7476 IFS=$as_save_IFS
7477 
7478   ;;
7479 esac
7480 fi
7481 HEAD=$ac_cv_path_HEAD
7482 if test -n "$HEAD"; then
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7484 $as_echo "$HEAD" >&6; }
7485 else
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 fi
7489 
7490 
7491         if test "x$HEAD" = x; then
7492           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7493         fi
7494       else
7495         # Otherwise we believe it is a complete path. Use it as it is.
7496         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7497 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7498         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7499 $as_echo_n "checking for HEAD... " >&6; }
7500         if test ! -x "$tool_specified"; then
7501           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7502 $as_echo "not found" >&6; }
7503           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7504         fi
7505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7506 $as_echo "$tool_specified" >&6; }
7507       fi
7508     fi
7509   fi
7510 
7511 
7512 
7513   if test "x$HEAD" = x; then
7514     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7515   fi
7516 
7517 
7518 
7519 
7520 
7521   # Publish this variable in the help.
7522 
7523 
7524   if test "x$LN" = x; then
7525     # The variable is not set by user, try to locate tool using the code snippet
7526     for ac_prog in ln
7527 do
7528   # Extract the first word of "$ac_prog", so it can be a program name with args.
7529 set dummy $ac_prog; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_path_LN+:} false; then :
7533   $as_echo_n "(cached) " >&6
7534 else
7535   case $LN in
7536   [\\/]* | ?:[\\/]*)
7537   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7538   ;;
7539   *)
7540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545     for ac_exec_ext in '' $ac_executable_extensions; do
7546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552   done
7553 IFS=$as_save_IFS
7554 
7555   ;;
7556 esac
7557 fi
7558 LN=$ac_cv_path_LN
7559 if test -n "$LN"; then
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7561 $as_echo "$LN" >&6; }
7562 else
7563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566 
7567 
7568   test -n "$LN" && break
7569 done
7570 
7571   else
7572     # The variable is set, but is it from the command line or the environment?
7573 
7574     # Try to remove the string !LN! from our list.
7575     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7576     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7577       # If it failed, the variable was not from the command line. Ignore it,
7578       # but warn the user (except for BASH, which is always set by the calling BASH).
7579       if test "xLN" != xBASH; then
7580         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7581 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7582       fi
7583       # Try to locate tool using the code snippet
7584       for ac_prog in ln
7585 do
7586   # Extract the first word of "$ac_prog", so it can be a program name with args.
7587 set dummy $ac_prog; ac_word=$2
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 $as_echo_n "checking for $ac_word... " >&6; }
7590 if ${ac_cv_path_LN+:} false; then :
7591   $as_echo_n "(cached) " >&6
7592 else
7593   case $LN in
7594   [\\/]* | ?:[\\/]*)
7595   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7596   ;;
7597   *)
7598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7599 for as_dir in $PATH
7600 do
7601   IFS=$as_save_IFS
7602   test -z "$as_dir" && as_dir=.
7603     for ac_exec_ext in '' $ac_executable_extensions; do
7604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7605     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7607     break 2
7608   fi
7609 done
7610   done
7611 IFS=$as_save_IFS
7612 
7613   ;;
7614 esac
7615 fi
7616 LN=$ac_cv_path_LN
7617 if test -n "$LN"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7619 $as_echo "$LN" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624 
7625 
7626   test -n "$LN" && break
7627 done
7628 
7629     else
7630       # If it succeeded, then it was overridden by the user. We will use it
7631       # for the tool.
7632 
7633       # First remove it from the list of overridden variables, so we can test
7634       # for unknown variables in the end.
7635       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7636 
7637       # Check if the provided tool contains a complete path.
7638       tool_specified="$LN"
7639       tool_basename="${tool_specified##*/}"
7640       if test "x$tool_basename" = "x$tool_specified"; then
7641         # A command without a complete path is provided, search $PATH.
7642         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7643 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7644         # Extract the first word of "$tool_basename", so it can be a program name with args.
7645 set dummy $tool_basename; ac_word=$2
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7647 $as_echo_n "checking for $ac_word... " >&6; }
7648 if ${ac_cv_path_LN+:} false; then :
7649   $as_echo_n "(cached) " >&6
7650 else
7651   case $LN in
7652   [\\/]* | ?:[\\/]*)
7653   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7654   ;;
7655   *)
7656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7658 do
7659   IFS=$as_save_IFS
7660   test -z "$as_dir" && as_dir=.
7661     for ac_exec_ext in '' $ac_executable_extensions; do
7662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665     break 2
7666   fi
7667 done
7668   done
7669 IFS=$as_save_IFS
7670 
7671   ;;
7672 esac
7673 fi
7674 LN=$ac_cv_path_LN
7675 if test -n "$LN"; then
7676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7677 $as_echo "$LN" >&6; }
7678 else
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7681 fi
7682 
7683 
7684         if test "x$LN" = x; then
7685           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7686         fi
7687       else
7688         # Otherwise we believe it is a complete path. Use it as it is.
7689         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7690 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7692 $as_echo_n "checking for LN... " >&6; }
7693         if test ! -x "$tool_specified"; then
7694           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7695 $as_echo "not found" >&6; }
7696           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7697         fi
7698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7699 $as_echo "$tool_specified" >&6; }
7700       fi
7701     fi
7702   fi
7703 
7704 
7705 
7706   if test "x$LN" = x; then
7707     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7708   fi
7709 
7710 
7711 
7712 
7713 
7714   # Publish this variable in the help.
7715 
7716 
7717   if test "x$LS" = x; then
7718     # The variable is not set by user, try to locate tool using the code snippet
7719     for ac_prog in ls
7720 do
7721   # Extract the first word of "$ac_prog", so it can be a program name with args.
7722 set dummy $ac_prog; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if ${ac_cv_path_LS+:} false; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   case $LS in
7729   [\\/]* | ?:[\\/]*)
7730   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7731   ;;
7732   *)
7733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7734 for as_dir in $PATH
7735 do
7736   IFS=$as_save_IFS
7737   test -z "$as_dir" && as_dir=.
7738     for ac_exec_ext in '' $ac_executable_extensions; do
7739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7740     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7742     break 2
7743   fi
7744 done
7745   done
7746 IFS=$as_save_IFS
7747 
7748   ;;
7749 esac
7750 fi
7751 LS=$ac_cv_path_LS
7752 if test -n "$LS"; then
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7754 $as_echo "$LS" >&6; }
7755 else
7756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7758 fi
7759 
7760 
7761   test -n "$LS" && break
7762 done
7763 
7764   else
7765     # The variable is set, but is it from the command line or the environment?
7766 
7767     # Try to remove the string !LS! from our list.
7768     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7769     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7770       # If it failed, the variable was not from the command line. Ignore it,
7771       # but warn the user (except for BASH, which is always set by the calling BASH).
7772       if test "xLS" != xBASH; then
7773         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7774 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7775       fi
7776       # Try to locate tool using the code snippet
7777       for ac_prog in ls
7778 do
7779   # Extract the first word of "$ac_prog", so it can be a program name with args.
7780 set dummy $ac_prog; ac_word=$2
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782 $as_echo_n "checking for $ac_word... " >&6; }
7783 if ${ac_cv_path_LS+:} false; then :
7784   $as_echo_n "(cached) " >&6
7785 else
7786   case $LS in
7787   [\\/]* | ?:[\\/]*)
7788   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7789   ;;
7790   *)
7791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794   IFS=$as_save_IFS
7795   test -z "$as_dir" && as_dir=.
7796     for ac_exec_ext in '' $ac_executable_extensions; do
7797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800     break 2
7801   fi
7802 done
7803   done
7804 IFS=$as_save_IFS
7805 
7806   ;;
7807 esac
7808 fi
7809 LS=$ac_cv_path_LS
7810 if test -n "$LS"; then
7811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7812 $as_echo "$LS" >&6; }
7813 else
7814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7815 $as_echo "no" >&6; }
7816 fi
7817 
7818 
7819   test -n "$LS" && break
7820 done
7821 
7822     else
7823       # If it succeeded, then it was overridden by the user. We will use it
7824       # for the tool.
7825 
7826       # First remove it from the list of overridden variables, so we can test
7827       # for unknown variables in the end.
7828       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7829 
7830       # Check if the provided tool contains a complete path.
7831       tool_specified="$LS"
7832       tool_basename="${tool_specified##*/}"
7833       if test "x$tool_basename" = "x$tool_specified"; then
7834         # A command without a complete path is provided, search $PATH.
7835         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7836 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7837         # Extract the first word of "$tool_basename", so it can be a program name with args.
7838 set dummy $tool_basename; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if ${ac_cv_path_LS+:} false; then :
7842   $as_echo_n "(cached) " >&6
7843 else
7844   case $LS in
7845   [\\/]* | ?:[\\/]*)
7846   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7847   ;;
7848   *)
7849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854     for ac_exec_ext in '' $ac_executable_extensions; do
7855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861   done
7862 IFS=$as_save_IFS
7863 
7864   ;;
7865 esac
7866 fi
7867 LS=$ac_cv_path_LS
7868 if test -n "$LS"; then
7869   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7870 $as_echo "$LS" >&6; }
7871 else
7872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 fi
7875 
7876 
7877         if test "x$LS" = x; then
7878           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7879         fi
7880       else
7881         # Otherwise we believe it is a complete path. Use it as it is.
7882         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7883 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7885 $as_echo_n "checking for LS... " >&6; }
7886         if test ! -x "$tool_specified"; then
7887           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7888 $as_echo "not found" >&6; }
7889           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7890         fi
7891         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7892 $as_echo "$tool_specified" >&6; }
7893       fi
7894     fi
7895   fi
7896 
7897 
7898 
7899   if test "x$LS" = x; then
7900     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7901   fi
7902 
7903 
7904 
7905 
7906 
7907   # Publish this variable in the help.
7908 
7909 
7910   if test "x$MKDIR" = x; then
7911     # The variable is not set by user, try to locate tool using the code snippet
7912     for ac_prog in mkdir
7913 do
7914   # Extract the first word of "$ac_prog", so it can be a program name with args.
7915 set dummy $ac_prog; ac_word=$2
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917 $as_echo_n "checking for $ac_word... " >&6; }
7918 if ${ac_cv_path_MKDIR+:} false; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   case $MKDIR in
7922   [\\/]* | ?:[\\/]*)
7923   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7924   ;;
7925   *)
7926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7927 for as_dir in $PATH
7928 do
7929   IFS=$as_save_IFS
7930   test -z "$as_dir" && as_dir=.
7931     for ac_exec_ext in '' $ac_executable_extensions; do
7932   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7933     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7934     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7935     break 2
7936   fi
7937 done
7938   done
7939 IFS=$as_save_IFS
7940 
7941   ;;
7942 esac
7943 fi
7944 MKDIR=$ac_cv_path_MKDIR
7945 if test -n "$MKDIR"; then
7946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7947 $as_echo "$MKDIR" >&6; }
7948 else
7949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7950 $as_echo "no" >&6; }
7951 fi
7952 
7953 
7954   test -n "$MKDIR" && break
7955 done
7956 
7957   else
7958     # The variable is set, but is it from the command line or the environment?
7959 
7960     # Try to remove the string !MKDIR! from our list.
7961     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7962     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7963       # If it failed, the variable was not from the command line. Ignore it,
7964       # but warn the user (except for BASH, which is always set by the calling BASH).
7965       if test "xMKDIR" != xBASH; then
7966         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7967 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7968       fi
7969       # Try to locate tool using the code snippet
7970       for ac_prog in mkdir
7971 do
7972   # Extract the first word of "$ac_prog", so it can be a program name with args.
7973 set dummy $ac_prog; ac_word=$2
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975 $as_echo_n "checking for $ac_word... " >&6; }
7976 if ${ac_cv_path_MKDIR+:} false; then :
7977   $as_echo_n "(cached) " >&6
7978 else
7979   case $MKDIR in
7980   [\\/]* | ?:[\\/]*)
7981   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7982   ;;
7983   *)
7984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7985 for as_dir in $PATH
7986 do
7987   IFS=$as_save_IFS
7988   test -z "$as_dir" && as_dir=.
7989     for ac_exec_ext in '' $ac_executable_extensions; do
7990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7991     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7993     break 2
7994   fi
7995 done
7996   done
7997 IFS=$as_save_IFS
7998 
7999   ;;
8000 esac
8001 fi
8002 MKDIR=$ac_cv_path_MKDIR
8003 if test -n "$MKDIR"; then
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8005 $as_echo "$MKDIR" >&6; }
8006 else
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8008 $as_echo "no" >&6; }
8009 fi
8010 
8011 
8012   test -n "$MKDIR" && break
8013 done
8014 
8015     else
8016       # If it succeeded, then it was overridden by the user. We will use it
8017       # for the tool.
8018 
8019       # First remove it from the list of overridden variables, so we can test
8020       # for unknown variables in the end.
8021       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8022 
8023       # Check if the provided tool contains a complete path.
8024       tool_specified="$MKDIR"
8025       tool_basename="${tool_specified##*/}"
8026       if test "x$tool_basename" = "x$tool_specified"; then
8027         # A command without a complete path is provided, search $PATH.
8028         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8029 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8030         # Extract the first word of "$tool_basename", so it can be a program name with args.
8031 set dummy $tool_basename; ac_word=$2
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8033 $as_echo_n "checking for $ac_word... " >&6; }
8034 if ${ac_cv_path_MKDIR+:} false; then :
8035   $as_echo_n "(cached) " >&6
8036 else
8037   case $MKDIR in
8038   [\\/]* | ?:[\\/]*)
8039   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8040   ;;
8041   *)
8042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8043 for as_dir in $PATH
8044 do
8045   IFS=$as_save_IFS
8046   test -z "$as_dir" && as_dir=.
8047     for ac_exec_ext in '' $ac_executable_extensions; do
8048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8049     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8051     break 2
8052   fi
8053 done
8054   done
8055 IFS=$as_save_IFS
8056 
8057   ;;
8058 esac
8059 fi
8060 MKDIR=$ac_cv_path_MKDIR
8061 if test -n "$MKDIR"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8063 $as_echo "$MKDIR" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066 $as_echo "no" >&6; }
8067 fi
8068 
8069 
8070         if test "x$MKDIR" = x; then
8071           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8072         fi
8073       else
8074         # Otherwise we believe it is a complete path. Use it as it is.
8075         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8076 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8077         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8078 $as_echo_n "checking for MKDIR... " >&6; }
8079         if test ! -x "$tool_specified"; then
8080           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8081 $as_echo "not found" >&6; }
8082           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8083         fi
8084         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8085 $as_echo "$tool_specified" >&6; }
8086       fi
8087     fi
8088   fi
8089 
8090 
8091 
8092   if test "x$MKDIR" = x; then
8093     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8094   fi
8095 
8096 
8097 
8098 
8099 
8100   # Publish this variable in the help.
8101 
8102 
8103   if test "x$MKTEMP" = x; then
8104     # The variable is not set by user, try to locate tool using the code snippet
8105     for ac_prog in mktemp
8106 do
8107   # Extract the first word of "$ac_prog", so it can be a program name with args.
8108 set dummy $ac_prog; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_path_MKTEMP+:} false; then :
8112   $as_echo_n "(cached) " >&6
8113 else
8114   case $MKTEMP in
8115   [\\/]* | ?:[\\/]*)
8116   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8117   ;;
8118   *)
8119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122   IFS=$as_save_IFS
8123   test -z "$as_dir" && as_dir=.
8124     for ac_exec_ext in '' $ac_executable_extensions; do
8125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128     break 2
8129   fi
8130 done
8131   done
8132 IFS=$as_save_IFS
8133 
8134   ;;
8135 esac
8136 fi
8137 MKTEMP=$ac_cv_path_MKTEMP
8138 if test -n "$MKTEMP"; then
8139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8140 $as_echo "$MKTEMP" >&6; }
8141 else
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8144 fi
8145 
8146 
8147   test -n "$MKTEMP" && break
8148 done
8149 
8150   else
8151     # The variable is set, but is it from the command line or the environment?
8152 
8153     # Try to remove the string !MKTEMP! from our list.
8154     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8155     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8156       # If it failed, the variable was not from the command line. Ignore it,
8157       # but warn the user (except for BASH, which is always set by the calling BASH).
8158       if test "xMKTEMP" != xBASH; then
8159         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8160 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8161       fi
8162       # Try to locate tool using the code snippet
8163       for ac_prog in mktemp
8164 do
8165   # Extract the first word of "$ac_prog", so it can be a program name with args.
8166 set dummy $ac_prog; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_path_MKTEMP+:} false; then :
8170   $as_echo_n "(cached) " >&6
8171 else
8172   case $MKTEMP in
8173   [\\/]* | ?:[\\/]*)
8174   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8175   ;;
8176   *)
8177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8179 do
8180   IFS=$as_save_IFS
8181   test -z "$as_dir" && as_dir=.
8182     for ac_exec_ext in '' $ac_executable_extensions; do
8183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186     break 2
8187   fi
8188 done
8189   done
8190 IFS=$as_save_IFS
8191 
8192   ;;
8193 esac
8194 fi
8195 MKTEMP=$ac_cv_path_MKTEMP
8196 if test -n "$MKTEMP"; then
8197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8198 $as_echo "$MKTEMP" >&6; }
8199 else
8200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203 
8204 
8205   test -n "$MKTEMP" && break
8206 done
8207 
8208     else
8209       # If it succeeded, then it was overridden by the user. We will use it
8210       # for the tool.
8211 
8212       # First remove it from the list of overridden variables, so we can test
8213       # for unknown variables in the end.
8214       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8215 
8216       # Check if the provided tool contains a complete path.
8217       tool_specified="$MKTEMP"
8218       tool_basename="${tool_specified##*/}"
8219       if test "x$tool_basename" = "x$tool_specified"; then
8220         # A command without a complete path is provided, search $PATH.
8221         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8222 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8223         # Extract the first word of "$tool_basename", so it can be a program name with args.
8224 set dummy $tool_basename; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_path_MKTEMP+:} false; then :
8228   $as_echo_n "(cached) " >&6
8229 else
8230   case $MKTEMP in
8231   [\\/]* | ?:[\\/]*)
8232   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8233   ;;
8234   *)
8235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240     for ac_exec_ext in '' $ac_executable_extensions; do
8241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8242     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247   done
8248 IFS=$as_save_IFS
8249 
8250   ;;
8251 esac
8252 fi
8253 MKTEMP=$ac_cv_path_MKTEMP
8254 if test -n "$MKTEMP"; then
8255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8256 $as_echo "$MKTEMP" >&6; }
8257 else
8258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261 
8262 
8263         if test "x$MKTEMP" = x; then
8264           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8265         fi
8266       else
8267         # Otherwise we believe it is a complete path. Use it as it is.
8268         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8269 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8270         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8271 $as_echo_n "checking for MKTEMP... " >&6; }
8272         if test ! -x "$tool_specified"; then
8273           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8274 $as_echo "not found" >&6; }
8275           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8276         fi
8277         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8278 $as_echo "$tool_specified" >&6; }
8279       fi
8280     fi
8281   fi
8282 
8283 
8284 
8285   if test "x$MKTEMP" = x; then
8286     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8287   fi
8288 
8289 
8290 
8291 
8292 
8293   # Publish this variable in the help.
8294 
8295 
8296   if test "x$MV" = x; then
8297     # The variable is not set by user, try to locate tool using the code snippet
8298     for ac_prog in mv
8299 do
8300   # Extract the first word of "$ac_prog", so it can be a program name with args.
8301 set dummy $ac_prog; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_path_MV+:} false; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   case $MV in
8308   [\\/]* | ?:[\\/]*)
8309   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8310   ;;
8311   *)
8312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8314 do
8315   IFS=$as_save_IFS
8316   test -z "$as_dir" && as_dir=.
8317     for ac_exec_ext in '' $ac_executable_extensions; do
8318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8319     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321     break 2
8322   fi
8323 done
8324   done
8325 IFS=$as_save_IFS
8326 
8327   ;;
8328 esac
8329 fi
8330 MV=$ac_cv_path_MV
8331 if test -n "$MV"; then
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8333 $as_echo "$MV" >&6; }
8334 else
8335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8337 fi
8338 
8339 
8340   test -n "$MV" && break
8341 done
8342 
8343   else
8344     # The variable is set, but is it from the command line or the environment?
8345 
8346     # Try to remove the string !MV! from our list.
8347     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8348     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8349       # If it failed, the variable was not from the command line. Ignore it,
8350       # but warn the user (except for BASH, which is always set by the calling BASH).
8351       if test "xMV" != xBASH; then
8352         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8353 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8354       fi
8355       # Try to locate tool using the code snippet
8356       for ac_prog in mv
8357 do
8358   # Extract the first word of "$ac_prog", so it can be a program name with args.
8359 set dummy $ac_prog; ac_word=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if ${ac_cv_path_MV+:} false; then :
8363   $as_echo_n "(cached) " >&6
8364 else
8365   case $MV in
8366   [\\/]* | ?:[\\/]*)
8367   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8368   ;;
8369   *)
8370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8372 do
8373   IFS=$as_save_IFS
8374   test -z "$as_dir" && as_dir=.
8375     for ac_exec_ext in '' $ac_executable_extensions; do
8376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8377     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379     break 2
8380   fi
8381 done
8382   done
8383 IFS=$as_save_IFS
8384 
8385   ;;
8386 esac
8387 fi
8388 MV=$ac_cv_path_MV
8389 if test -n "$MV"; then
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8391 $as_echo "$MV" >&6; }
8392 else
8393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396 
8397 
8398   test -n "$MV" && break
8399 done
8400 
8401     else
8402       # If it succeeded, then it was overridden by the user. We will use it
8403       # for the tool.
8404 
8405       # First remove it from the list of overridden variables, so we can test
8406       # for unknown variables in the end.
8407       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8408 
8409       # Check if the provided tool contains a complete path.
8410       tool_specified="$MV"
8411       tool_basename="${tool_specified##*/}"
8412       if test "x$tool_basename" = "x$tool_specified"; then
8413         # A command without a complete path is provided, search $PATH.
8414         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8415 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8416         # Extract the first word of "$tool_basename", so it can be a program name with args.
8417 set dummy $tool_basename; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if ${ac_cv_path_MV+:} false; then :
8421   $as_echo_n "(cached) " >&6
8422 else
8423   case $MV in
8424   [\\/]* | ?:[\\/]*)
8425   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8426   ;;
8427   *)
8428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431   IFS=$as_save_IFS
8432   test -z "$as_dir" && as_dir=.
8433     for ac_exec_ext in '' $ac_executable_extensions; do
8434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8435     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437     break 2
8438   fi
8439 done
8440   done
8441 IFS=$as_save_IFS
8442 
8443   ;;
8444 esac
8445 fi
8446 MV=$ac_cv_path_MV
8447 if test -n "$MV"; then
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8449 $as_echo "$MV" >&6; }
8450 else
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454 
8455 
8456         if test "x$MV" = x; then
8457           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8458         fi
8459       else
8460         # Otherwise we believe it is a complete path. Use it as it is.
8461         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8462 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8463         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8464 $as_echo_n "checking for MV... " >&6; }
8465         if test ! -x "$tool_specified"; then
8466           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8467 $as_echo "not found" >&6; }
8468           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8469         fi
8470         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8471 $as_echo "$tool_specified" >&6; }
8472       fi
8473     fi
8474   fi
8475 
8476 
8477 
8478   if test "x$MV" = x; then
8479     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8480   fi
8481 
8482 
8483 
8484 
8485 
8486   # Publish this variable in the help.
8487 
8488 
8489   if test "x$NAWK" = x; then
8490     # The variable is not set by user, try to locate tool using the code snippet
8491     for ac_prog in nawk gawk awk
8492 do
8493   # Extract the first word of "$ac_prog", so it can be a program name with args.
8494 set dummy $ac_prog; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_path_NAWK+:} false; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   case $NAWK in
8501   [\\/]* | ?:[\\/]*)
8502   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8503   ;;
8504   *)
8505   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8506 for as_dir in $PATH
8507 do
8508   IFS=$as_save_IFS
8509   test -z "$as_dir" && as_dir=.
8510     for ac_exec_ext in '' $ac_executable_extensions; do
8511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8512     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8514     break 2
8515   fi
8516 done
8517   done
8518 IFS=$as_save_IFS
8519 
8520   ;;
8521 esac
8522 fi
8523 NAWK=$ac_cv_path_NAWK
8524 if test -n "$NAWK"; then
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8526 $as_echo "$NAWK" >&6; }
8527 else
8528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8530 fi
8531 
8532 
8533   test -n "$NAWK" && break
8534 done
8535 
8536   else
8537     # The variable is set, but is it from the command line or the environment?
8538 
8539     # Try to remove the string !NAWK! from our list.
8540     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8541     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8542       # If it failed, the variable was not from the command line. Ignore it,
8543       # but warn the user (except for BASH, which is always set by the calling BASH).
8544       if test "xNAWK" != xBASH; then
8545         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8546 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8547       fi
8548       # Try to locate tool using the code snippet
8549       for ac_prog in nawk gawk awk
8550 do
8551   # Extract the first word of "$ac_prog", so it can be a program name with args.
8552 set dummy $ac_prog; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if ${ac_cv_path_NAWK+:} false; then :
8556   $as_echo_n "(cached) " >&6
8557 else
8558   case $NAWK in
8559   [\\/]* | ?:[\\/]*)
8560   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8561   ;;
8562   *)
8563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566   IFS=$as_save_IFS
8567   test -z "$as_dir" && as_dir=.
8568     for ac_exec_ext in '' $ac_executable_extensions; do
8569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572     break 2
8573   fi
8574 done
8575   done
8576 IFS=$as_save_IFS
8577 
8578   ;;
8579 esac
8580 fi
8581 NAWK=$ac_cv_path_NAWK
8582 if test -n "$NAWK"; then
8583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8584 $as_echo "$NAWK" >&6; }
8585 else
8586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8588 fi
8589 
8590 
8591   test -n "$NAWK" && break
8592 done
8593 
8594     else
8595       # If it succeeded, then it was overridden by the user. We will use it
8596       # for the tool.
8597 
8598       # First remove it from the list of overridden variables, so we can test
8599       # for unknown variables in the end.
8600       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8601 
8602       # Check if the provided tool contains a complete path.
8603       tool_specified="$NAWK"
8604       tool_basename="${tool_specified##*/}"
8605       if test "x$tool_basename" = "x$tool_specified"; then
8606         # A command without a complete path is provided, search $PATH.
8607         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8608 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8609         # Extract the first word of "$tool_basename", so it can be a program name with args.
8610 set dummy $tool_basename; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_path_NAWK+:} false; then :
8614   $as_echo_n "(cached) " >&6
8615 else
8616   case $NAWK in
8617   [\\/]* | ?:[\\/]*)
8618   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8619   ;;
8620   *)
8621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8623 do
8624   IFS=$as_save_IFS
8625   test -z "$as_dir" && as_dir=.
8626     for ac_exec_ext in '' $ac_executable_extensions; do
8627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8628     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630     break 2
8631   fi
8632 done
8633   done
8634 IFS=$as_save_IFS
8635 
8636   ;;
8637 esac
8638 fi
8639 NAWK=$ac_cv_path_NAWK
8640 if test -n "$NAWK"; then
8641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8642 $as_echo "$NAWK" >&6; }
8643 else
8644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8646 fi
8647 
8648 
8649         if test "x$NAWK" = x; then
8650           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8651         fi
8652       else
8653         # Otherwise we believe it is a complete path. Use it as it is.
8654         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8655 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8656         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8657 $as_echo_n "checking for NAWK... " >&6; }
8658         if test ! -x "$tool_specified"; then
8659           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8660 $as_echo "not found" >&6; }
8661           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8662         fi
8663         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8664 $as_echo "$tool_specified" >&6; }
8665       fi
8666     fi
8667   fi
8668 
8669 
8670 
8671   if test "x$NAWK" = x; then
8672     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8673   fi
8674 
8675 
8676 
8677 
8678 
8679   # Publish this variable in the help.
8680 
8681 
8682   if test "x$PRINTF" = x; then
8683     # The variable is not set by user, try to locate tool using the code snippet
8684     for ac_prog in printf
8685 do
8686   # Extract the first word of "$ac_prog", so it can be a program name with args.
8687 set dummy $ac_prog; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_path_PRINTF+:} false; then :
8691   $as_echo_n "(cached) " >&6
8692 else
8693   case $PRINTF in
8694   [\\/]* | ?:[\\/]*)
8695   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8696   ;;
8697   *)
8698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8699 for as_dir in $PATH
8700 do
8701   IFS=$as_save_IFS
8702   test -z "$as_dir" && as_dir=.
8703     for ac_exec_ext in '' $ac_executable_extensions; do
8704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8705     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8707     break 2
8708   fi
8709 done
8710   done
8711 IFS=$as_save_IFS
8712 
8713   ;;
8714 esac
8715 fi
8716 PRINTF=$ac_cv_path_PRINTF
8717 if test -n "$PRINTF"; then
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8719 $as_echo "$PRINTF" >&6; }
8720 else
8721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8722 $as_echo "no" >&6; }
8723 fi
8724 
8725 
8726   test -n "$PRINTF" && break
8727 done
8728 
8729   else
8730     # The variable is set, but is it from the command line or the environment?
8731 
8732     # Try to remove the string !PRINTF! from our list.
8733     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8734     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8735       # If it failed, the variable was not from the command line. Ignore it,
8736       # but warn the user (except for BASH, which is always set by the calling BASH).
8737       if test "xPRINTF" != xBASH; then
8738         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8739 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8740       fi
8741       # Try to locate tool using the code snippet
8742       for ac_prog in printf
8743 do
8744   # Extract the first word of "$ac_prog", so it can be a program name with args.
8745 set dummy $ac_prog; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_path_PRINTF+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   case $PRINTF in
8752   [\\/]* | ?:[\\/]*)
8753   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8754   ;;
8755   *)
8756   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8758 do
8759   IFS=$as_save_IFS
8760   test -z "$as_dir" && as_dir=.
8761     for ac_exec_ext in '' $ac_executable_extensions; do
8762   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8764     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765     break 2
8766   fi
8767 done
8768   done
8769 IFS=$as_save_IFS
8770 
8771   ;;
8772 esac
8773 fi
8774 PRINTF=$ac_cv_path_PRINTF
8775 if test -n "$PRINTF"; then
8776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8777 $as_echo "$PRINTF" >&6; }
8778 else
8779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780 $as_echo "no" >&6; }
8781 fi
8782 
8783 
8784   test -n "$PRINTF" && break
8785 done
8786 
8787     else
8788       # If it succeeded, then it was overridden by the user. We will use it
8789       # for the tool.
8790 
8791       # First remove it from the list of overridden variables, so we can test
8792       # for unknown variables in the end.
8793       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8794 
8795       # Check if the provided tool contains a complete path.
8796       tool_specified="$PRINTF"
8797       tool_basename="${tool_specified##*/}"
8798       if test "x$tool_basename" = "x$tool_specified"; then
8799         # A command without a complete path is provided, search $PATH.
8800         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8801 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8802         # Extract the first word of "$tool_basename", so it can be a program name with args.
8803 set dummy $tool_basename; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if ${ac_cv_path_PRINTF+:} false; then :
8807   $as_echo_n "(cached) " >&6
8808 else
8809   case $PRINTF in
8810   [\\/]* | ?:[\\/]*)
8811   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8812   ;;
8813   *)
8814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817   IFS=$as_save_IFS
8818   test -z "$as_dir" && as_dir=.
8819     for ac_exec_ext in '' $ac_executable_extensions; do
8820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823     break 2
8824   fi
8825 done
8826   done
8827 IFS=$as_save_IFS
8828 
8829   ;;
8830 esac
8831 fi
8832 PRINTF=$ac_cv_path_PRINTF
8833 if test -n "$PRINTF"; then
8834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8835 $as_echo "$PRINTF" >&6; }
8836 else
8837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8839 fi
8840 
8841 
8842         if test "x$PRINTF" = x; then
8843           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8844         fi
8845       else
8846         # Otherwise we believe it is a complete path. Use it as it is.
8847         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8848 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8849         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8850 $as_echo_n "checking for PRINTF... " >&6; }
8851         if test ! -x "$tool_specified"; then
8852           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8853 $as_echo "not found" >&6; }
8854           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8855         fi
8856         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8857 $as_echo "$tool_specified" >&6; }
8858       fi
8859     fi
8860   fi
8861 
8862 
8863 
8864   if test "x$PRINTF" = x; then
8865     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8866   fi
8867 
8868 
8869 
8870 
8871 
8872   # Publish this variable in the help.
8873 
8874 
8875   if test "x$RM" = x; then
8876     # The variable is not set by user, try to locate tool using the code snippet
8877     for ac_prog in rm
8878 do
8879   # Extract the first word of "$ac_prog", so it can be a program name with args.
8880 set dummy $ac_prog; ac_word=$2
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882 $as_echo_n "checking for $ac_word... " >&6; }
8883 if ${ac_cv_path_RM+:} false; then :
8884   $as_echo_n "(cached) " >&6
8885 else
8886   case $RM in
8887   [\\/]* | ?:[\\/]*)
8888   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8889   ;;
8890   *)
8891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892 for as_dir in $PATH
8893 do
8894   IFS=$as_save_IFS
8895   test -z "$as_dir" && as_dir=.
8896     for ac_exec_ext in '' $ac_executable_extensions; do
8897   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8898     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8900     break 2
8901   fi
8902 done
8903   done
8904 IFS=$as_save_IFS
8905 
8906   ;;
8907 esac
8908 fi
8909 RM=$ac_cv_path_RM
8910 if test -n "$RM"; then
8911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8912 $as_echo "$RM" >&6; }
8913 else
8914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8916 fi
8917 
8918 
8919   test -n "$RM" && break
8920 done
8921 
8922   else
8923     # The variable is set, but is it from the command line or the environment?
8924 
8925     # Try to remove the string !RM! from our list.
8926     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8927     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8928       # If it failed, the variable was not from the command line. Ignore it,
8929       # but warn the user (except for BASH, which is always set by the calling BASH).
8930       if test "xRM" != xBASH; then
8931         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8932 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8933       fi
8934       # Try to locate tool using the code snippet
8935       for ac_prog in rm
8936 do
8937   # Extract the first word of "$ac_prog", so it can be a program name with args.
8938 set dummy $ac_prog; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_path_RM+:} false; then :
8942   $as_echo_n "(cached) " >&6
8943 else
8944   case $RM in
8945   [\\/]* | ?:[\\/]*)
8946   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8947   ;;
8948   *)
8949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8951 do
8952   IFS=$as_save_IFS
8953   test -z "$as_dir" && as_dir=.
8954     for ac_exec_ext in '' $ac_executable_extensions; do
8955   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958     break 2
8959   fi
8960 done
8961   done
8962 IFS=$as_save_IFS
8963 
8964   ;;
8965 esac
8966 fi
8967 RM=$ac_cv_path_RM
8968 if test -n "$RM"; then
8969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8970 $as_echo "$RM" >&6; }
8971 else
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8974 fi
8975 
8976 
8977   test -n "$RM" && break
8978 done
8979 
8980     else
8981       # If it succeeded, then it was overridden by the user. We will use it
8982       # for the tool.
8983 
8984       # First remove it from the list of overridden variables, so we can test
8985       # for unknown variables in the end.
8986       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8987 
8988       # Check if the provided tool contains a complete path.
8989       tool_specified="$RM"
8990       tool_basename="${tool_specified##*/}"
8991       if test "x$tool_basename" = "x$tool_specified"; then
8992         # A command without a complete path is provided, search $PATH.
8993         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8994 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8995         # Extract the first word of "$tool_basename", so it can be a program name with args.
8996 set dummy $tool_basename; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if ${ac_cv_path_RM+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   case $RM in
9003   [\\/]* | ?:[\\/]*)
9004   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9005   ;;
9006   *)
9007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010   IFS=$as_save_IFS
9011   test -z "$as_dir" && as_dir=.
9012     for ac_exec_ext in '' $ac_executable_extensions; do
9013   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016     break 2
9017   fi
9018 done
9019   done
9020 IFS=$as_save_IFS
9021 
9022   ;;
9023 esac
9024 fi
9025 RM=$ac_cv_path_RM
9026 if test -n "$RM"; then
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9028 $as_echo "$RM" >&6; }
9029 else
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 $as_echo "no" >&6; }
9032 fi
9033 
9034 
9035         if test "x$RM" = x; then
9036           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9037         fi
9038       else
9039         # Otherwise we believe it is a complete path. Use it as it is.
9040         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9041 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9042         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9043 $as_echo_n "checking for RM... " >&6; }
9044         if test ! -x "$tool_specified"; then
9045           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9046 $as_echo "not found" >&6; }
9047           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9048         fi
9049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9050 $as_echo "$tool_specified" >&6; }
9051       fi
9052     fi
9053   fi
9054 
9055 
9056 
9057   if test "x$RM" = x; then
9058     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9059   fi
9060 
9061 
9062 
9063 
9064 
9065   # Publish this variable in the help.
9066 
9067 
9068   if test "x$SH" = x; then
9069     # The variable is not set by user, try to locate tool using the code snippet
9070     for ac_prog in sh
9071 do
9072   # Extract the first word of "$ac_prog", so it can be a program name with args.
9073 set dummy $ac_prog; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if ${ac_cv_path_SH+:} false; then :
9077   $as_echo_n "(cached) " >&6
9078 else
9079   case $SH in
9080   [\\/]* | ?:[\\/]*)
9081   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9082   ;;
9083   *)
9084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9086 do
9087   IFS=$as_save_IFS
9088   test -z "$as_dir" && as_dir=.
9089     for ac_exec_ext in '' $ac_executable_extensions; do
9090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9091     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093     break 2
9094   fi
9095 done
9096   done
9097 IFS=$as_save_IFS
9098 
9099   ;;
9100 esac
9101 fi
9102 SH=$ac_cv_path_SH
9103 if test -n "$SH"; then
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9105 $as_echo "$SH" >&6; }
9106 else
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9109 fi
9110 
9111 
9112   test -n "$SH" && break
9113 done
9114 
9115   else
9116     # The variable is set, but is it from the command line or the environment?
9117 
9118     # Try to remove the string !SH! from our list.
9119     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9120     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9121       # If it failed, the variable was not from the command line. Ignore it,
9122       # but warn the user (except for BASH, which is always set by the calling BASH).
9123       if test "xSH" != xBASH; then
9124         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9125 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9126       fi
9127       # Try to locate tool using the code snippet
9128       for ac_prog in sh
9129 do
9130   # Extract the first word of "$ac_prog", so it can be a program name with args.
9131 set dummy $ac_prog; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if ${ac_cv_path_SH+:} false; then :
9135   $as_echo_n "(cached) " >&6
9136 else
9137   case $SH in
9138   [\\/]* | ?:[\\/]*)
9139   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9140   ;;
9141   *)
9142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143 for as_dir in $PATH
9144 do
9145   IFS=$as_save_IFS
9146   test -z "$as_dir" && as_dir=.
9147     for ac_exec_ext in '' $ac_executable_extensions; do
9148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151     break 2
9152   fi
9153 done
9154   done
9155 IFS=$as_save_IFS
9156 
9157   ;;
9158 esac
9159 fi
9160 SH=$ac_cv_path_SH
9161 if test -n "$SH"; then
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9163 $as_echo "$SH" >&6; }
9164 else
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166 $as_echo "no" >&6; }
9167 fi
9168 
9169 
9170   test -n "$SH" && break
9171 done
9172 
9173     else
9174       # If it succeeded, then it was overridden by the user. We will use it
9175       # for the tool.
9176 
9177       # First remove it from the list of overridden variables, so we can test
9178       # for unknown variables in the end.
9179       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9180 
9181       # Check if the provided tool contains a complete path.
9182       tool_specified="$SH"
9183       tool_basename="${tool_specified##*/}"
9184       if test "x$tool_basename" = "x$tool_specified"; then
9185         # A command without a complete path is provided, search $PATH.
9186         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9187 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9188         # Extract the first word of "$tool_basename", so it can be a program name with args.
9189 set dummy $tool_basename; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_path_SH+:} false; then :
9193   $as_echo_n "(cached) " >&6
9194 else
9195   case $SH in
9196   [\\/]* | ?:[\\/]*)
9197   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9198   ;;
9199   *)
9200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9202 do
9203   IFS=$as_save_IFS
9204   test -z "$as_dir" && as_dir=.
9205     for ac_exec_ext in '' $ac_executable_extensions; do
9206   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9207     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9208     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209     break 2
9210   fi
9211 done
9212   done
9213 IFS=$as_save_IFS
9214 
9215   ;;
9216 esac
9217 fi
9218 SH=$ac_cv_path_SH
9219 if test -n "$SH"; then
9220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9221 $as_echo "$SH" >&6; }
9222 else
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9225 fi
9226 
9227 
9228         if test "x$SH" = x; then
9229           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9230         fi
9231       else
9232         # Otherwise we believe it is a complete path. Use it as it is.
9233         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9234 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9235         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9236 $as_echo_n "checking for SH... " >&6; }
9237         if test ! -x "$tool_specified"; then
9238           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9239 $as_echo "not found" >&6; }
9240           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9241         fi
9242         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9243 $as_echo "$tool_specified" >&6; }
9244       fi
9245     fi
9246   fi
9247 
9248 
9249 
9250   if test "x$SH" = x; then
9251     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9252   fi
9253 
9254 
9255 
9256 
9257 
9258   # Publish this variable in the help.
9259 
9260 
9261   if test "x$SORT" = x; then
9262     # The variable is not set by user, try to locate tool using the code snippet
9263     for ac_prog in sort
9264 do
9265   # Extract the first word of "$ac_prog", so it can be a program name with args.
9266 set dummy $ac_prog; ac_word=$2
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9268 $as_echo_n "checking for $ac_word... " >&6; }
9269 if ${ac_cv_path_SORT+:} false; then :
9270   $as_echo_n "(cached) " >&6
9271 else
9272   case $SORT in
9273   [\\/]* | ?:[\\/]*)
9274   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9275   ;;
9276   *)
9277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9279 do
9280   IFS=$as_save_IFS
9281   test -z "$as_dir" && as_dir=.
9282     for ac_exec_ext in '' $ac_executable_extensions; do
9283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9284     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286     break 2
9287   fi
9288 done
9289   done
9290 IFS=$as_save_IFS
9291 
9292   ;;
9293 esac
9294 fi
9295 SORT=$ac_cv_path_SORT
9296 if test -n "$SORT"; then
9297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9298 $as_echo "$SORT" >&6; }
9299 else
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301 $as_echo "no" >&6; }
9302 fi
9303 
9304 
9305   test -n "$SORT" && break
9306 done
9307 
9308   else
9309     # The variable is set, but is it from the command line or the environment?
9310 
9311     # Try to remove the string !SORT! from our list.
9312     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9313     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9314       # If it failed, the variable was not from the command line. Ignore it,
9315       # but warn the user (except for BASH, which is always set by the calling BASH).
9316       if test "xSORT" != xBASH; then
9317         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9318 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9319       fi
9320       # Try to locate tool using the code snippet
9321       for ac_prog in sort
9322 do
9323   # Extract the first word of "$ac_prog", so it can be a program name with args.
9324 set dummy $ac_prog; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if ${ac_cv_path_SORT+:} false; then :
9328   $as_echo_n "(cached) " >&6
9329 else
9330   case $SORT in
9331   [\\/]* | ?:[\\/]*)
9332   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9333   ;;
9334   *)
9335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9337 do
9338   IFS=$as_save_IFS
9339   test -z "$as_dir" && as_dir=.
9340     for ac_exec_ext in '' $ac_executable_extensions; do
9341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9342     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344     break 2
9345   fi
9346 done
9347   done
9348 IFS=$as_save_IFS
9349 
9350   ;;
9351 esac
9352 fi
9353 SORT=$ac_cv_path_SORT
9354 if test -n "$SORT"; then
9355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9356 $as_echo "$SORT" >&6; }
9357 else
9358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9360 fi
9361 
9362 
9363   test -n "$SORT" && break
9364 done
9365 
9366     else
9367       # If it succeeded, then it was overridden by the user. We will use it
9368       # for the tool.
9369 
9370       # First remove it from the list of overridden variables, so we can test
9371       # for unknown variables in the end.
9372       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9373 
9374       # Check if the provided tool contains a complete path.
9375       tool_specified="$SORT"
9376       tool_basename="${tool_specified##*/}"
9377       if test "x$tool_basename" = "x$tool_specified"; then
9378         # A command without a complete path is provided, search $PATH.
9379         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9380 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9381         # Extract the first word of "$tool_basename", so it can be a program name with args.
9382 set dummy $tool_basename; ac_word=$2
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9384 $as_echo_n "checking for $ac_word... " >&6; }
9385 if ${ac_cv_path_SORT+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   case $SORT in
9389   [\\/]* | ?:[\\/]*)
9390   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9391   ;;
9392   *)
9393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394 for as_dir in $PATH
9395 do
9396   IFS=$as_save_IFS
9397   test -z "$as_dir" && as_dir=.
9398     for ac_exec_ext in '' $ac_executable_extensions; do
9399   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9400     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9401     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9402     break 2
9403   fi
9404 done
9405   done
9406 IFS=$as_save_IFS
9407 
9408   ;;
9409 esac
9410 fi
9411 SORT=$ac_cv_path_SORT
9412 if test -n "$SORT"; then
9413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9414 $as_echo "$SORT" >&6; }
9415 else
9416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9417 $as_echo "no" >&6; }
9418 fi
9419 
9420 
9421         if test "x$SORT" = x; then
9422           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9423         fi
9424       else
9425         # Otherwise we believe it is a complete path. Use it as it is.
9426         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9427 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9429 $as_echo_n "checking for SORT... " >&6; }
9430         if test ! -x "$tool_specified"; then
9431           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9432 $as_echo "not found" >&6; }
9433           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9434         fi
9435         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9436 $as_echo "$tool_specified" >&6; }
9437       fi
9438     fi
9439   fi
9440 
9441 
9442 
9443   if test "x$SORT" = x; then
9444     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9445   fi
9446 
9447 
9448 
9449 
9450 
9451   # Publish this variable in the help.
9452 
9453 
9454   if test "x$TAIL" = x; then
9455     # The variable is not set by user, try to locate tool using the code snippet
9456     for ac_prog in tail
9457 do
9458   # Extract the first word of "$ac_prog", so it can be a program name with args.
9459 set dummy $ac_prog; ac_word=$2
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9461 $as_echo_n "checking for $ac_word... " >&6; }
9462 if ${ac_cv_path_TAIL+:} false; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   case $TAIL in
9466   [\\/]* | ?:[\\/]*)
9467   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9468   ;;
9469   *)
9470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 for as_dir in $PATH
9472 do
9473   IFS=$as_save_IFS
9474   test -z "$as_dir" && as_dir=.
9475     for ac_exec_ext in '' $ac_executable_extensions; do
9476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9477     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9479     break 2
9480   fi
9481 done
9482   done
9483 IFS=$as_save_IFS
9484 
9485   ;;
9486 esac
9487 fi
9488 TAIL=$ac_cv_path_TAIL
9489 if test -n "$TAIL"; then
9490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9491 $as_echo "$TAIL" >&6; }
9492 else
9493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9494 $as_echo "no" >&6; }
9495 fi
9496 
9497 
9498   test -n "$TAIL" && break
9499 done
9500 
9501   else
9502     # The variable is set, but is it from the command line or the environment?
9503 
9504     # Try to remove the string !TAIL! from our list.
9505     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9506     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9507       # If it failed, the variable was not from the command line. Ignore it,
9508       # but warn the user (except for BASH, which is always set by the calling BASH).
9509       if test "xTAIL" != xBASH; then
9510         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9511 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9512       fi
9513       # Try to locate tool using the code snippet
9514       for ac_prog in tail
9515 do
9516   # Extract the first word of "$ac_prog", so it can be a program name with args.
9517 set dummy $ac_prog; ac_word=$2
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9519 $as_echo_n "checking for $ac_word... " >&6; }
9520 if ${ac_cv_path_TAIL+:} false; then :
9521   $as_echo_n "(cached) " >&6
9522 else
9523   case $TAIL in
9524   [\\/]* | ?:[\\/]*)
9525   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9526   ;;
9527   *)
9528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9529 for as_dir in $PATH
9530 do
9531   IFS=$as_save_IFS
9532   test -z "$as_dir" && as_dir=.
9533     for ac_exec_ext in '' $ac_executable_extensions; do
9534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9535     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9537     break 2
9538   fi
9539 done
9540   done
9541 IFS=$as_save_IFS
9542 
9543   ;;
9544 esac
9545 fi
9546 TAIL=$ac_cv_path_TAIL
9547 if test -n "$TAIL"; then
9548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9549 $as_echo "$TAIL" >&6; }
9550 else
9551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9552 $as_echo "no" >&6; }
9553 fi
9554 
9555 
9556   test -n "$TAIL" && break
9557 done
9558 
9559     else
9560       # If it succeeded, then it was overridden by the user. We will use it
9561       # for the tool.
9562 
9563       # First remove it from the list of overridden variables, so we can test
9564       # for unknown variables in the end.
9565       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9566 
9567       # Check if the provided tool contains a complete path.
9568       tool_specified="$TAIL"
9569       tool_basename="${tool_specified##*/}"
9570       if test "x$tool_basename" = "x$tool_specified"; then
9571         # A command without a complete path is provided, search $PATH.
9572         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9573 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9574         # Extract the first word of "$tool_basename", so it can be a program name with args.
9575 set dummy $tool_basename; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_TAIL+:} false; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581   case $TAIL in
9582   [\\/]* | ?:[\\/]*)
9583   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9584   ;;
9585   *)
9586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9588 do
9589   IFS=$as_save_IFS
9590   test -z "$as_dir" && as_dir=.
9591     for ac_exec_ext in '' $ac_executable_extensions; do
9592   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9593     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595     break 2
9596   fi
9597 done
9598   done
9599 IFS=$as_save_IFS
9600 
9601   ;;
9602 esac
9603 fi
9604 TAIL=$ac_cv_path_TAIL
9605 if test -n "$TAIL"; then
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9607 $as_echo "$TAIL" >&6; }
9608 else
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9611 fi
9612 
9613 
9614         if test "x$TAIL" = x; then
9615           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9616         fi
9617       else
9618         # Otherwise we believe it is a complete path. Use it as it is.
9619         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9620 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9622 $as_echo_n "checking for TAIL... " >&6; }
9623         if test ! -x "$tool_specified"; then
9624           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9625 $as_echo "not found" >&6; }
9626           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9627         fi
9628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9629 $as_echo "$tool_specified" >&6; }
9630       fi
9631     fi
9632   fi
9633 
9634 
9635 
9636   if test "x$TAIL" = x; then
9637     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9638   fi
9639 
9640 
9641 
9642 
9643 
9644   # Publish this variable in the help.
9645 
9646 
9647   if test "x$TAR" = x; then
9648     # The variable is not set by user, try to locate tool using the code snippet
9649     for ac_prog in tar
9650 do
9651   # Extract the first word of "$ac_prog", so it can be a program name with args.
9652 set dummy $ac_prog; ac_word=$2
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654 $as_echo_n "checking for $ac_word... " >&6; }
9655 if ${ac_cv_path_TAR+:} false; then :
9656   $as_echo_n "(cached) " >&6
9657 else
9658   case $TAR in
9659   [\\/]* | ?:[\\/]*)
9660   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9661   ;;
9662   *)
9663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9664 for as_dir in $PATH
9665 do
9666   IFS=$as_save_IFS
9667   test -z "$as_dir" && as_dir=.
9668     for ac_exec_ext in '' $ac_executable_extensions; do
9669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9670     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9672     break 2
9673   fi
9674 done
9675   done
9676 IFS=$as_save_IFS
9677 
9678   ;;
9679 esac
9680 fi
9681 TAR=$ac_cv_path_TAR
9682 if test -n "$TAR"; then
9683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9684 $as_echo "$TAR" >&6; }
9685 else
9686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687 $as_echo "no" >&6; }
9688 fi
9689 
9690 
9691   test -n "$TAR" && break
9692 done
9693 
9694   else
9695     # The variable is set, but is it from the command line or the environment?
9696 
9697     # Try to remove the string !TAR! from our list.
9698     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9699     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9700       # If it failed, the variable was not from the command line. Ignore it,
9701       # but warn the user (except for BASH, which is always set by the calling BASH).
9702       if test "xTAR" != xBASH; then
9703         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9704 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9705       fi
9706       # Try to locate tool using the code snippet
9707       for ac_prog in tar
9708 do
9709   # Extract the first word of "$ac_prog", so it can be a program name with args.
9710 set dummy $ac_prog; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if ${ac_cv_path_TAR+:} false; then :
9714   $as_echo_n "(cached) " >&6
9715 else
9716   case $TAR in
9717   [\\/]* | ?:[\\/]*)
9718   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9719   ;;
9720   *)
9721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9722 for as_dir in $PATH
9723 do
9724   IFS=$as_save_IFS
9725   test -z "$as_dir" && as_dir=.
9726     for ac_exec_ext in '' $ac_executable_extensions; do
9727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9728     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9730     break 2
9731   fi
9732 done
9733   done
9734 IFS=$as_save_IFS
9735 
9736   ;;
9737 esac
9738 fi
9739 TAR=$ac_cv_path_TAR
9740 if test -n "$TAR"; then
9741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9742 $as_echo "$TAR" >&6; }
9743 else
9744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9746 fi
9747 
9748 
9749   test -n "$TAR" && break
9750 done
9751 
9752     else
9753       # If it succeeded, then it was overridden by the user. We will use it
9754       # for the tool.
9755 
9756       # First remove it from the list of overridden variables, so we can test
9757       # for unknown variables in the end.
9758       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9759 
9760       # Check if the provided tool contains a complete path.
9761       tool_specified="$TAR"
9762       tool_basename="${tool_specified##*/}"
9763       if test "x$tool_basename" = "x$tool_specified"; then
9764         # A command without a complete path is provided, search $PATH.
9765         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9766 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9767         # Extract the first word of "$tool_basename", so it can be a program name with args.
9768 set dummy $tool_basename; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; }
9771 if ${ac_cv_path_TAR+:} false; then :
9772   $as_echo_n "(cached) " >&6
9773 else
9774   case $TAR in
9775   [\\/]* | ?:[\\/]*)
9776   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9777   ;;
9778   *)
9779   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 for as_dir in $PATH
9781 do
9782   IFS=$as_save_IFS
9783   test -z "$as_dir" && as_dir=.
9784     for ac_exec_ext in '' $ac_executable_extensions; do
9785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9786     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788     break 2
9789   fi
9790 done
9791   done
9792 IFS=$as_save_IFS
9793 
9794   ;;
9795 esac
9796 fi
9797 TAR=$ac_cv_path_TAR
9798 if test -n "$TAR"; then
9799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9800 $as_echo "$TAR" >&6; }
9801 else
9802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803 $as_echo "no" >&6; }
9804 fi
9805 
9806 
9807         if test "x$TAR" = x; then
9808           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9809         fi
9810       else
9811         # Otherwise we believe it is a complete path. Use it as it is.
9812         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9813 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9814         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9815 $as_echo_n "checking for TAR... " >&6; }
9816         if test ! -x "$tool_specified"; then
9817           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9818 $as_echo "not found" >&6; }
9819           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9820         fi
9821         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9822 $as_echo "$tool_specified" >&6; }
9823       fi
9824     fi
9825   fi
9826 
9827 
9828 
9829   if test "x$TAR" = x; then
9830     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9831   fi
9832 
9833 
9834 
9835 
9836 
9837   # Publish this variable in the help.
9838 
9839 
9840   if test "x$TEE" = x; then
9841     # The variable is not set by user, try to locate tool using the code snippet
9842     for ac_prog in tee
9843 do
9844   # Extract the first word of "$ac_prog", so it can be a program name with args.
9845 set dummy $ac_prog; ac_word=$2
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847 $as_echo_n "checking for $ac_word... " >&6; }
9848 if ${ac_cv_path_TEE+:} false; then :
9849   $as_echo_n "(cached) " >&6
9850 else
9851   case $TEE in
9852   [\\/]* | ?:[\\/]*)
9853   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9854   ;;
9855   *)
9856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9857 for as_dir in $PATH
9858 do
9859   IFS=$as_save_IFS
9860   test -z "$as_dir" && as_dir=.
9861     for ac_exec_ext in '' $ac_executable_extensions; do
9862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9863     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9865     break 2
9866   fi
9867 done
9868   done
9869 IFS=$as_save_IFS
9870 
9871   ;;
9872 esac
9873 fi
9874 TEE=$ac_cv_path_TEE
9875 if test -n "$TEE"; then
9876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9877 $as_echo "$TEE" >&6; }
9878 else
9879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880 $as_echo "no" >&6; }
9881 fi
9882 
9883 
9884   test -n "$TEE" && break
9885 done
9886 
9887   else
9888     # The variable is set, but is it from the command line or the environment?
9889 
9890     # Try to remove the string !TEE! from our list.
9891     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9892     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9893       # If it failed, the variable was not from the command line. Ignore it,
9894       # but warn the user (except for BASH, which is always set by the calling BASH).
9895       if test "xTEE" != xBASH; then
9896         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9897 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9898       fi
9899       # Try to locate tool using the code snippet
9900       for ac_prog in tee
9901 do
9902   # Extract the first word of "$ac_prog", so it can be a program name with args.
9903 set dummy $ac_prog; ac_word=$2
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9905 $as_echo_n "checking for $ac_word... " >&6; }
9906 if ${ac_cv_path_TEE+:} false; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   case $TEE in
9910   [\\/]* | ?:[\\/]*)
9911   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9912   ;;
9913   *)
9914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915 for as_dir in $PATH
9916 do
9917   IFS=$as_save_IFS
9918   test -z "$as_dir" && as_dir=.
9919     for ac_exec_ext in '' $ac_executable_extensions; do
9920   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9921     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9923     break 2
9924   fi
9925 done
9926   done
9927 IFS=$as_save_IFS
9928 
9929   ;;
9930 esac
9931 fi
9932 TEE=$ac_cv_path_TEE
9933 if test -n "$TEE"; then
9934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9935 $as_echo "$TEE" >&6; }
9936 else
9937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9938 $as_echo "no" >&6; }
9939 fi
9940 
9941 
9942   test -n "$TEE" && break
9943 done
9944 
9945     else
9946       # If it succeeded, then it was overridden by the user. We will use it
9947       # for the tool.
9948 
9949       # First remove it from the list of overridden variables, so we can test
9950       # for unknown variables in the end.
9951       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9952 
9953       # Check if the provided tool contains a complete path.
9954       tool_specified="$TEE"
9955       tool_basename="${tool_specified##*/}"
9956       if test "x$tool_basename" = "x$tool_specified"; then
9957         # A command without a complete path is provided, search $PATH.
9958         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9959 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9960         # Extract the first word of "$tool_basename", so it can be a program name with args.
9961 set dummy $tool_basename; ac_word=$2
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963 $as_echo_n "checking for $ac_word... " >&6; }
9964 if ${ac_cv_path_TEE+:} false; then :
9965   $as_echo_n "(cached) " >&6
9966 else
9967   case $TEE in
9968   [\\/]* | ?:[\\/]*)
9969   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9970   ;;
9971   *)
9972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973 for as_dir in $PATH
9974 do
9975   IFS=$as_save_IFS
9976   test -z "$as_dir" && as_dir=.
9977     for ac_exec_ext in '' $ac_executable_extensions; do
9978   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981     break 2
9982   fi
9983 done
9984   done
9985 IFS=$as_save_IFS
9986 
9987   ;;
9988 esac
9989 fi
9990 TEE=$ac_cv_path_TEE
9991 if test -n "$TEE"; then
9992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9993 $as_echo "$TEE" >&6; }
9994 else
9995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9997 fi
9998 
9999 
10000         if test "x$TEE" = x; then
10001           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10002         fi
10003       else
10004         # Otherwise we believe it is a complete path. Use it as it is.
10005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10006 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10007         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10008 $as_echo_n "checking for TEE... " >&6; }
10009         if test ! -x "$tool_specified"; then
10010           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10011 $as_echo "not found" >&6; }
10012           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10013         fi
10014         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10015 $as_echo "$tool_specified" >&6; }
10016       fi
10017     fi
10018   fi
10019 
10020 
10021 
10022   if test "x$TEE" = x; then
10023     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10024   fi
10025 
10026 
10027 
10028 
10029 
10030   # Publish this variable in the help.
10031 
10032 
10033   if test "x$TOUCH" = x; then
10034     # The variable is not set by user, try to locate tool using the code snippet
10035     for ac_prog in touch
10036 do
10037   # Extract the first word of "$ac_prog", so it can be a program name with args.
10038 set dummy $ac_prog; ac_word=$2
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10040 $as_echo_n "checking for $ac_word... " >&6; }
10041 if ${ac_cv_path_TOUCH+:} false; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044   case $TOUCH in
10045   [\\/]* | ?:[\\/]*)
10046   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10047   ;;
10048   *)
10049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050 for as_dir in $PATH
10051 do
10052   IFS=$as_save_IFS
10053   test -z "$as_dir" && as_dir=.
10054     for ac_exec_ext in '' $ac_executable_extensions; do
10055   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10056     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10058     break 2
10059   fi
10060 done
10061   done
10062 IFS=$as_save_IFS
10063 
10064   ;;
10065 esac
10066 fi
10067 TOUCH=$ac_cv_path_TOUCH
10068 if test -n "$TOUCH"; then
10069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10070 $as_echo "$TOUCH" >&6; }
10071 else
10072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10074 fi
10075 
10076 
10077   test -n "$TOUCH" && break
10078 done
10079 
10080   else
10081     # The variable is set, but is it from the command line or the environment?
10082 
10083     # Try to remove the string !TOUCH! from our list.
10084     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10085     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10086       # If it failed, the variable was not from the command line. Ignore it,
10087       # but warn the user (except for BASH, which is always set by the calling BASH).
10088       if test "xTOUCH" != xBASH; then
10089         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10090 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10091       fi
10092       # Try to locate tool using the code snippet
10093       for ac_prog in touch
10094 do
10095   # Extract the first word of "$ac_prog", so it can be a program name with args.
10096 set dummy $ac_prog; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if ${ac_cv_path_TOUCH+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   case $TOUCH in
10103   [\\/]* | ?:[\\/]*)
10104   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10105   ;;
10106   *)
10107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10108 for as_dir in $PATH
10109 do
10110   IFS=$as_save_IFS
10111   test -z "$as_dir" && as_dir=.
10112     for ac_exec_ext in '' $ac_executable_extensions; do
10113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10114     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10116     break 2
10117   fi
10118 done
10119   done
10120 IFS=$as_save_IFS
10121 
10122   ;;
10123 esac
10124 fi
10125 TOUCH=$ac_cv_path_TOUCH
10126 if test -n "$TOUCH"; then
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10128 $as_echo "$TOUCH" >&6; }
10129 else
10130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10131 $as_echo "no" >&6; }
10132 fi
10133 
10134 
10135   test -n "$TOUCH" && break
10136 done
10137 
10138     else
10139       # If it succeeded, then it was overridden by the user. We will use it
10140       # for the tool.
10141 
10142       # First remove it from the list of overridden variables, so we can test
10143       # for unknown variables in the end.
10144       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10145 
10146       # Check if the provided tool contains a complete path.
10147       tool_specified="$TOUCH"
10148       tool_basename="${tool_specified##*/}"
10149       if test "x$tool_basename" = "x$tool_specified"; then
10150         # A command without a complete path is provided, search $PATH.
10151         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10152 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10153         # Extract the first word of "$tool_basename", so it can be a program name with args.
10154 set dummy $tool_basename; ac_word=$2
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10156 $as_echo_n "checking for $ac_word... " >&6; }
10157 if ${ac_cv_path_TOUCH+:} false; then :
10158   $as_echo_n "(cached) " >&6
10159 else
10160   case $TOUCH in
10161   [\\/]* | ?:[\\/]*)
10162   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10163   ;;
10164   *)
10165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10166 for as_dir in $PATH
10167 do
10168   IFS=$as_save_IFS
10169   test -z "$as_dir" && as_dir=.
10170     for ac_exec_ext in '' $ac_executable_extensions; do
10171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10172     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10174     break 2
10175   fi
10176 done
10177   done
10178 IFS=$as_save_IFS
10179 
10180   ;;
10181 esac
10182 fi
10183 TOUCH=$ac_cv_path_TOUCH
10184 if test -n "$TOUCH"; then
10185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10186 $as_echo "$TOUCH" >&6; }
10187 else
10188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10189 $as_echo "no" >&6; }
10190 fi
10191 
10192 
10193         if test "x$TOUCH" = x; then
10194           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10195         fi
10196       else
10197         # Otherwise we believe it is a complete path. Use it as it is.
10198         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10199 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10200         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10201 $as_echo_n "checking for TOUCH... " >&6; }
10202         if test ! -x "$tool_specified"; then
10203           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10204 $as_echo "not found" >&6; }
10205           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10206         fi
10207         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10208 $as_echo "$tool_specified" >&6; }
10209       fi
10210     fi
10211   fi
10212 
10213 
10214 
10215   if test "x$TOUCH" = x; then
10216     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10217   fi
10218 
10219 
10220 
10221 
10222 
10223   # Publish this variable in the help.
10224 
10225 
10226   if test "x$TR" = x; then
10227     # The variable is not set by user, try to locate tool using the code snippet
10228     for ac_prog in tr
10229 do
10230   # Extract the first word of "$ac_prog", so it can be a program name with args.
10231 set dummy $ac_prog; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233 $as_echo_n "checking for $ac_word... " >&6; }
10234 if ${ac_cv_path_TR+:} false; then :
10235   $as_echo_n "(cached) " >&6
10236 else
10237   case $TR in
10238   [\\/]* | ?:[\\/]*)
10239   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10240   ;;
10241   *)
10242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10243 for as_dir in $PATH
10244 do
10245   IFS=$as_save_IFS
10246   test -z "$as_dir" && as_dir=.
10247     for ac_exec_ext in '' $ac_executable_extensions; do
10248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10249     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10251     break 2
10252   fi
10253 done
10254   done
10255 IFS=$as_save_IFS
10256 
10257   ;;
10258 esac
10259 fi
10260 TR=$ac_cv_path_TR
10261 if test -n "$TR"; then
10262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10263 $as_echo "$TR" >&6; }
10264 else
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10267 fi
10268 
10269 
10270   test -n "$TR" && break
10271 done
10272 
10273   else
10274     # The variable is set, but is it from the command line or the environment?
10275 
10276     # Try to remove the string !TR! from our list.
10277     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10278     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10279       # If it failed, the variable was not from the command line. Ignore it,
10280       # but warn the user (except for BASH, which is always set by the calling BASH).
10281       if test "xTR" != xBASH; then
10282         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10283 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10284       fi
10285       # Try to locate tool using the code snippet
10286       for ac_prog in tr
10287 do
10288   # Extract the first word of "$ac_prog", so it can be a program name with args.
10289 set dummy $ac_prog; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if ${ac_cv_path_TR+:} false; then :
10293   $as_echo_n "(cached) " >&6
10294 else
10295   case $TR in
10296   [\\/]* | ?:[\\/]*)
10297   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10298   ;;
10299   *)
10300   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10302 do
10303   IFS=$as_save_IFS
10304   test -z "$as_dir" && as_dir=.
10305     for ac_exec_ext in '' $ac_executable_extensions; do
10306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10307     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309     break 2
10310   fi
10311 done
10312   done
10313 IFS=$as_save_IFS
10314 
10315   ;;
10316 esac
10317 fi
10318 TR=$ac_cv_path_TR
10319 if test -n "$TR"; then
10320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10321 $as_echo "$TR" >&6; }
10322 else
10323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10325 fi
10326 
10327 
10328   test -n "$TR" && break
10329 done
10330 
10331     else
10332       # If it succeeded, then it was overridden by the user. We will use it
10333       # for the tool.
10334 
10335       # First remove it from the list of overridden variables, so we can test
10336       # for unknown variables in the end.
10337       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10338 
10339       # Check if the provided tool contains a complete path.
10340       tool_specified="$TR"
10341       tool_basename="${tool_specified##*/}"
10342       if test "x$tool_basename" = "x$tool_specified"; then
10343         # A command without a complete path is provided, search $PATH.
10344         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10345 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10346         # Extract the first word of "$tool_basename", so it can be a program name with args.
10347 set dummy $tool_basename; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if ${ac_cv_path_TR+:} false; then :
10351   $as_echo_n "(cached) " >&6
10352 else
10353   case $TR in
10354   [\\/]* | ?:[\\/]*)
10355   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10356   ;;
10357   *)
10358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10360 do
10361   IFS=$as_save_IFS
10362   test -z "$as_dir" && as_dir=.
10363     for ac_exec_ext in '' $ac_executable_extensions; do
10364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10367     break 2
10368   fi
10369 done
10370   done
10371 IFS=$as_save_IFS
10372 
10373   ;;
10374 esac
10375 fi
10376 TR=$ac_cv_path_TR
10377 if test -n "$TR"; then
10378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10379 $as_echo "$TR" >&6; }
10380 else
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10382 $as_echo "no" >&6; }
10383 fi
10384 
10385 
10386         if test "x$TR" = x; then
10387           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10388         fi
10389       else
10390         # Otherwise we believe it is a complete path. Use it as it is.
10391         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10392 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10393         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10394 $as_echo_n "checking for TR... " >&6; }
10395         if test ! -x "$tool_specified"; then
10396           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10397 $as_echo "not found" >&6; }
10398           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10399         fi
10400         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10401 $as_echo "$tool_specified" >&6; }
10402       fi
10403     fi
10404   fi
10405 
10406 
10407 
10408   if test "x$TR" = x; then
10409     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10410   fi
10411 
10412 
10413 
10414 
10415 
10416   # Publish this variable in the help.
10417 
10418 
10419   if test "x$UNAME" = x; then
10420     # The variable is not set by user, try to locate tool using the code snippet
10421     for ac_prog in uname
10422 do
10423   # Extract the first word of "$ac_prog", so it can be a program name with args.
10424 set dummy $ac_prog; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10426 $as_echo_n "checking for $ac_word... " >&6; }
10427 if ${ac_cv_path_UNAME+:} false; then :
10428   $as_echo_n "(cached) " >&6
10429 else
10430   case $UNAME in
10431   [\\/]* | ?:[\\/]*)
10432   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10433   ;;
10434   *)
10435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10436 for as_dir in $PATH
10437 do
10438   IFS=$as_save_IFS
10439   test -z "$as_dir" && as_dir=.
10440     for ac_exec_ext in '' $ac_executable_extensions; do
10441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10442     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10444     break 2
10445   fi
10446 done
10447   done
10448 IFS=$as_save_IFS
10449 
10450   ;;
10451 esac
10452 fi
10453 UNAME=$ac_cv_path_UNAME
10454 if test -n "$UNAME"; then
10455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10456 $as_echo "$UNAME" >&6; }
10457 else
10458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459 $as_echo "no" >&6; }
10460 fi
10461 
10462 
10463   test -n "$UNAME" && break
10464 done
10465 
10466   else
10467     # The variable is set, but is it from the command line or the environment?
10468 
10469     # Try to remove the string !UNAME! from our list.
10470     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10471     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10472       # If it failed, the variable was not from the command line. Ignore it,
10473       # but warn the user (except for BASH, which is always set by the calling BASH).
10474       if test "xUNAME" != xBASH; then
10475         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10476 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10477       fi
10478       # Try to locate tool using the code snippet
10479       for ac_prog in uname
10480 do
10481   # Extract the first word of "$ac_prog", so it can be a program name with args.
10482 set dummy $ac_prog; ac_word=$2
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10484 $as_echo_n "checking for $ac_word... " >&6; }
10485 if ${ac_cv_path_UNAME+:} false; then :
10486   $as_echo_n "(cached) " >&6
10487 else
10488   case $UNAME in
10489   [\\/]* | ?:[\\/]*)
10490   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10491   ;;
10492   *)
10493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494 for as_dir in $PATH
10495 do
10496   IFS=$as_save_IFS
10497   test -z "$as_dir" && as_dir=.
10498     for ac_exec_ext in '' $ac_executable_extensions; do
10499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10500     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10502     break 2
10503   fi
10504 done
10505   done
10506 IFS=$as_save_IFS
10507 
10508   ;;
10509 esac
10510 fi
10511 UNAME=$ac_cv_path_UNAME
10512 if test -n "$UNAME"; then
10513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10514 $as_echo "$UNAME" >&6; }
10515 else
10516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 fi
10519 
10520 
10521   test -n "$UNAME" && break
10522 done
10523 
10524     else
10525       # If it succeeded, then it was overridden by the user. We will use it
10526       # for the tool.
10527 
10528       # First remove it from the list of overridden variables, so we can test
10529       # for unknown variables in the end.
10530       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10531 
10532       # Check if the provided tool contains a complete path.
10533       tool_specified="$UNAME"
10534       tool_basename="${tool_specified##*/}"
10535       if test "x$tool_basename" = "x$tool_specified"; then
10536         # A command without a complete path is provided, search $PATH.
10537         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10538 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10539         # Extract the first word of "$tool_basename", so it can be a program name with args.
10540 set dummy $tool_basename; ac_word=$2
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542 $as_echo_n "checking for $ac_word... " >&6; }
10543 if ${ac_cv_path_UNAME+:} false; then :
10544   $as_echo_n "(cached) " >&6
10545 else
10546   case $UNAME in
10547   [\\/]* | ?:[\\/]*)
10548   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10549   ;;
10550   *)
10551   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10553 do
10554   IFS=$as_save_IFS
10555   test -z "$as_dir" && as_dir=.
10556     for ac_exec_ext in '' $ac_executable_extensions; do
10557   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10560     break 2
10561   fi
10562 done
10563   done
10564 IFS=$as_save_IFS
10565 
10566   ;;
10567 esac
10568 fi
10569 UNAME=$ac_cv_path_UNAME
10570 if test -n "$UNAME"; then
10571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10572 $as_echo "$UNAME" >&6; }
10573 else
10574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10576 fi
10577 
10578 
10579         if test "x$UNAME" = x; then
10580           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10581         fi
10582       else
10583         # Otherwise we believe it is a complete path. Use it as it is.
10584         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10585 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10586         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10587 $as_echo_n "checking for UNAME... " >&6; }
10588         if test ! -x "$tool_specified"; then
10589           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10590 $as_echo "not found" >&6; }
10591           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10592         fi
10593         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10594 $as_echo "$tool_specified" >&6; }
10595       fi
10596     fi
10597   fi
10598 
10599 
10600 
10601   if test "x$UNAME" = x; then
10602     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10603   fi
10604 
10605 
10606 
10607 
10608 
10609   # Publish this variable in the help.
10610 
10611 
10612   if test "x$UNIQ" = x; then
10613     # The variable is not set by user, try to locate tool using the code snippet
10614     for ac_prog in uniq
10615 do
10616   # Extract the first word of "$ac_prog", so it can be a program name with args.
10617 set dummy $ac_prog; ac_word=$2
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10619 $as_echo_n "checking for $ac_word... " >&6; }
10620 if ${ac_cv_path_UNIQ+:} false; then :
10621   $as_echo_n "(cached) " >&6
10622 else
10623   case $UNIQ in
10624   [\\/]* | ?:[\\/]*)
10625   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10626   ;;
10627   *)
10628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10630 do
10631   IFS=$as_save_IFS
10632   test -z "$as_dir" && as_dir=.
10633     for ac_exec_ext in '' $ac_executable_extensions; do
10634   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10635     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10637     break 2
10638   fi
10639 done
10640   done
10641 IFS=$as_save_IFS
10642 
10643   ;;
10644 esac
10645 fi
10646 UNIQ=$ac_cv_path_UNIQ
10647 if test -n "$UNIQ"; then
10648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10649 $as_echo "$UNIQ" >&6; }
10650 else
10651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652 $as_echo "no" >&6; }
10653 fi
10654 
10655 
10656   test -n "$UNIQ" && break
10657 done
10658 
10659   else
10660     # The variable is set, but is it from the command line or the environment?
10661 
10662     # Try to remove the string !UNIQ! from our list.
10663     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10664     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10665       # If it failed, the variable was not from the command line. Ignore it,
10666       # but warn the user (except for BASH, which is always set by the calling BASH).
10667       if test "xUNIQ" != xBASH; then
10668         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10669 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10670       fi
10671       # Try to locate tool using the code snippet
10672       for ac_prog in uniq
10673 do
10674   # Extract the first word of "$ac_prog", so it can be a program name with args.
10675 set dummy $ac_prog; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_path_UNIQ+:} false; then :
10679   $as_echo_n "(cached) " >&6
10680 else
10681   case $UNIQ in
10682   [\\/]* | ?:[\\/]*)
10683   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10684   ;;
10685   *)
10686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10687 for as_dir in $PATH
10688 do
10689   IFS=$as_save_IFS
10690   test -z "$as_dir" && as_dir=.
10691     for ac_exec_ext in '' $ac_executable_extensions; do
10692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10693     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10695     break 2
10696   fi
10697 done
10698   done
10699 IFS=$as_save_IFS
10700 
10701   ;;
10702 esac
10703 fi
10704 UNIQ=$ac_cv_path_UNIQ
10705 if test -n "$UNIQ"; then
10706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10707 $as_echo "$UNIQ" >&6; }
10708 else
10709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10711 fi
10712 
10713 
10714   test -n "$UNIQ" && break
10715 done
10716 
10717     else
10718       # If it succeeded, then it was overridden by the user. We will use it
10719       # for the tool.
10720 
10721       # First remove it from the list of overridden variables, so we can test
10722       # for unknown variables in the end.
10723       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10724 
10725       # Check if the provided tool contains a complete path.
10726       tool_specified="$UNIQ"
10727       tool_basename="${tool_specified##*/}"
10728       if test "x$tool_basename" = "x$tool_specified"; then
10729         # A command without a complete path is provided, search $PATH.
10730         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10731 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10732         # Extract the first word of "$tool_basename", so it can be a program name with args.
10733 set dummy $tool_basename; ac_word=$2
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735 $as_echo_n "checking for $ac_word... " >&6; }
10736 if ${ac_cv_path_UNIQ+:} false; then :
10737   $as_echo_n "(cached) " >&6
10738 else
10739   case $UNIQ in
10740   [\\/]* | ?:[\\/]*)
10741   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10742   ;;
10743   *)
10744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745 for as_dir in $PATH
10746 do
10747   IFS=$as_save_IFS
10748   test -z "$as_dir" && as_dir=.
10749     for ac_exec_ext in '' $ac_executable_extensions; do
10750   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10751     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753     break 2
10754   fi
10755 done
10756   done
10757 IFS=$as_save_IFS
10758 
10759   ;;
10760 esac
10761 fi
10762 UNIQ=$ac_cv_path_UNIQ
10763 if test -n "$UNIQ"; then
10764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10765 $as_echo "$UNIQ" >&6; }
10766 else
10767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10768 $as_echo "no" >&6; }
10769 fi
10770 
10771 
10772         if test "x$UNIQ" = x; then
10773           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10774         fi
10775       else
10776         # Otherwise we believe it is a complete path. Use it as it is.
10777         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10778 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10779         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10780 $as_echo_n "checking for UNIQ... " >&6; }
10781         if test ! -x "$tool_specified"; then
10782           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10783 $as_echo "not found" >&6; }
10784           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10785         fi
10786         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10787 $as_echo "$tool_specified" >&6; }
10788       fi
10789     fi
10790   fi
10791 
10792 
10793 
10794   if test "x$UNIQ" = x; then
10795     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10796   fi
10797 
10798 
10799 
10800 
10801 
10802   # Publish this variable in the help.
10803 
10804 
10805   if test "x$WC" = x; then
10806     # The variable is not set by user, try to locate tool using the code snippet
10807     for ac_prog in wc
10808 do
10809   # Extract the first word of "$ac_prog", so it can be a program name with args.
10810 set dummy $ac_prog; ac_word=$2
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10812 $as_echo_n "checking for $ac_word... " >&6; }
10813 if ${ac_cv_path_WC+:} false; then :
10814   $as_echo_n "(cached) " >&6
10815 else
10816   case $WC in
10817   [\\/]* | ?:[\\/]*)
10818   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10819   ;;
10820   *)
10821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10823 do
10824   IFS=$as_save_IFS
10825   test -z "$as_dir" && as_dir=.
10826     for ac_exec_ext in '' $ac_executable_extensions; do
10827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10830     break 2
10831   fi
10832 done
10833   done
10834 IFS=$as_save_IFS
10835 
10836   ;;
10837 esac
10838 fi
10839 WC=$ac_cv_path_WC
10840 if test -n "$WC"; then
10841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10842 $as_echo "$WC" >&6; }
10843 else
10844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10846 fi
10847 
10848 
10849   test -n "$WC" && break
10850 done
10851 
10852   else
10853     # The variable is set, but is it from the command line or the environment?
10854 
10855     # Try to remove the string !WC! from our list.
10856     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10857     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10858       # If it failed, the variable was not from the command line. Ignore it,
10859       # but warn the user (except for BASH, which is always set by the calling BASH).
10860       if test "xWC" != xBASH; then
10861         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10862 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10863       fi
10864       # Try to locate tool using the code snippet
10865       for ac_prog in wc
10866 do
10867   # Extract the first word of "$ac_prog", so it can be a program name with args.
10868 set dummy $ac_prog; ac_word=$2
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10870 $as_echo_n "checking for $ac_word... " >&6; }
10871 if ${ac_cv_path_WC+:} false; then :
10872   $as_echo_n "(cached) " >&6
10873 else
10874   case $WC in
10875   [\\/]* | ?:[\\/]*)
10876   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10877   ;;
10878   *)
10879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10881 do
10882   IFS=$as_save_IFS
10883   test -z "$as_dir" && as_dir=.
10884     for ac_exec_ext in '' $ac_executable_extensions; do
10885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10886     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10888     break 2
10889   fi
10890 done
10891   done
10892 IFS=$as_save_IFS
10893 
10894   ;;
10895 esac
10896 fi
10897 WC=$ac_cv_path_WC
10898 if test -n "$WC"; then
10899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10900 $as_echo "$WC" >&6; }
10901 else
10902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10904 fi
10905 
10906 
10907   test -n "$WC" && break
10908 done
10909 
10910     else
10911       # If it succeeded, then it was overridden by the user. We will use it
10912       # for the tool.
10913 
10914       # First remove it from the list of overridden variables, so we can test
10915       # for unknown variables in the end.
10916       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10917 
10918       # Check if the provided tool contains a complete path.
10919       tool_specified="$WC"
10920       tool_basename="${tool_specified##*/}"
10921       if test "x$tool_basename" = "x$tool_specified"; then
10922         # A command without a complete path is provided, search $PATH.
10923         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10924 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10925         # Extract the first word of "$tool_basename", so it can be a program name with args.
10926 set dummy $tool_basename; ac_word=$2
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928 $as_echo_n "checking for $ac_word... " >&6; }
10929 if ${ac_cv_path_WC+:} false; then :
10930   $as_echo_n "(cached) " >&6
10931 else
10932   case $WC in
10933   [\\/]* | ?:[\\/]*)
10934   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10935   ;;
10936   *)
10937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH
10939 do
10940   IFS=$as_save_IFS
10941   test -z "$as_dir" && as_dir=.
10942     for ac_exec_ext in '' $ac_executable_extensions; do
10943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10944     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10946     break 2
10947   fi
10948 done
10949   done
10950 IFS=$as_save_IFS
10951 
10952   ;;
10953 esac
10954 fi
10955 WC=$ac_cv_path_WC
10956 if test -n "$WC"; then
10957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10958 $as_echo "$WC" >&6; }
10959 else
10960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10962 fi
10963 
10964 
10965         if test "x$WC" = x; then
10966           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10967         fi
10968       else
10969         # Otherwise we believe it is a complete path. Use it as it is.
10970         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10971 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10972         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10973 $as_echo_n "checking for WC... " >&6; }
10974         if test ! -x "$tool_specified"; then
10975           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10976 $as_echo "not found" >&6; }
10977           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10978         fi
10979         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10980 $as_echo "$tool_specified" >&6; }
10981       fi
10982     fi
10983   fi
10984 
10985 
10986 
10987   if test "x$WC" = x; then
10988     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10989   fi
10990 
10991 
10992 
10993 
10994 
10995   # Publish this variable in the help.
10996 
10997 
10998   if test "x$WHICH" = x; then
10999     # The variable is not set by user, try to locate tool using the code snippet
11000     for ac_prog in which
11001 do
11002   # Extract the first word of "$ac_prog", so it can be a program name with args.
11003 set dummy $ac_prog; ac_word=$2
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11005 $as_echo_n "checking for $ac_word... " >&6; }
11006 if ${ac_cv_path_WHICH+:} false; then :
11007   $as_echo_n "(cached) " >&6
11008 else
11009   case $WHICH in
11010   [\\/]* | ?:[\\/]*)
11011   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11012   ;;
11013   *)
11014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11015 for as_dir in $PATH
11016 do
11017   IFS=$as_save_IFS
11018   test -z "$as_dir" && as_dir=.
11019     for ac_exec_ext in '' $ac_executable_extensions; do
11020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11021     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11023     break 2
11024   fi
11025 done
11026   done
11027 IFS=$as_save_IFS
11028 
11029   ;;
11030 esac
11031 fi
11032 WHICH=$ac_cv_path_WHICH
11033 if test -n "$WHICH"; then
11034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11035 $as_echo "$WHICH" >&6; }
11036 else
11037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 fi
11040 
11041 
11042   test -n "$WHICH" && break
11043 done
11044 
11045   else
11046     # The variable is set, but is it from the command line or the environment?
11047 
11048     # Try to remove the string !WHICH! from our list.
11049     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11050     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11051       # If it failed, the variable was not from the command line. Ignore it,
11052       # but warn the user (except for BASH, which is always set by the calling BASH).
11053       if test "xWHICH" != xBASH; then
11054         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11055 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11056       fi
11057       # Try to locate tool using the code snippet
11058       for ac_prog in which
11059 do
11060   # Extract the first word of "$ac_prog", so it can be a program name with args.
11061 set dummy $ac_prog; ac_word=$2
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063 $as_echo_n "checking for $ac_word... " >&6; }
11064 if ${ac_cv_path_WHICH+:} false; then :
11065   $as_echo_n "(cached) " >&6
11066 else
11067   case $WHICH in
11068   [\\/]* | ?:[\\/]*)
11069   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11070   ;;
11071   *)
11072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11073 for as_dir in $PATH
11074 do
11075   IFS=$as_save_IFS
11076   test -z "$as_dir" && as_dir=.
11077     for ac_exec_ext in '' $ac_executable_extensions; do
11078   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11079     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11081     break 2
11082   fi
11083 done
11084   done
11085 IFS=$as_save_IFS
11086 
11087   ;;
11088 esac
11089 fi
11090 WHICH=$ac_cv_path_WHICH
11091 if test -n "$WHICH"; then
11092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11093 $as_echo "$WHICH" >&6; }
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097 fi
11098 
11099 
11100   test -n "$WHICH" && break
11101 done
11102 
11103     else
11104       # If it succeeded, then it was overridden by the user. We will use it
11105       # for the tool.
11106 
11107       # First remove it from the list of overridden variables, so we can test
11108       # for unknown variables in the end.
11109       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11110 
11111       # Check if the provided tool contains a complete path.
11112       tool_specified="$WHICH"
11113       tool_basename="${tool_specified##*/}"
11114       if test "x$tool_basename" = "x$tool_specified"; then
11115         # A command without a complete path is provided, search $PATH.
11116         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11117 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11118         # Extract the first word of "$tool_basename", so it can be a program name with args.
11119 set dummy $tool_basename; ac_word=$2
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121 $as_echo_n "checking for $ac_word... " >&6; }
11122 if ${ac_cv_path_WHICH+:} false; then :
11123   $as_echo_n "(cached) " >&6
11124 else
11125   case $WHICH in
11126   [\\/]* | ?:[\\/]*)
11127   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11128   ;;
11129   *)
11130   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11131 for as_dir in $PATH
11132 do
11133   IFS=$as_save_IFS
11134   test -z "$as_dir" && as_dir=.
11135     for ac_exec_ext in '' $ac_executable_extensions; do
11136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11137     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11139     break 2
11140   fi
11141 done
11142   done
11143 IFS=$as_save_IFS
11144 
11145   ;;
11146 esac
11147 fi
11148 WHICH=$ac_cv_path_WHICH
11149 if test -n "$WHICH"; then
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11151 $as_echo "$WHICH" >&6; }
11152 else
11153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154 $as_echo "no" >&6; }
11155 fi
11156 
11157 
11158         if test "x$WHICH" = x; then
11159           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11160         fi
11161       else
11162         # Otherwise we believe it is a complete path. Use it as it is.
11163         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11164 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11165         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11166 $as_echo_n "checking for WHICH... " >&6; }
11167         if test ! -x "$tool_specified"; then
11168           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11169 $as_echo "not found" >&6; }
11170           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11171         fi
11172         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11173 $as_echo "$tool_specified" >&6; }
11174       fi
11175     fi
11176   fi
11177 
11178 
11179 
11180   if test "x$WHICH" = x; then
11181     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11182   fi
11183 
11184 
11185 
11186 
11187 
11188   # Publish this variable in the help.
11189 
11190 
11191   if test "x$XARGS" = x; then
11192     # The variable is not set by user, try to locate tool using the code snippet
11193     for ac_prog in xargs
11194 do
11195   # Extract the first word of "$ac_prog", so it can be a program name with args.
11196 set dummy $ac_prog; ac_word=$2
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198 $as_echo_n "checking for $ac_word... " >&6; }
11199 if ${ac_cv_path_XARGS+:} false; then :
11200   $as_echo_n "(cached) " >&6
11201 else
11202   case $XARGS in
11203   [\\/]* | ?:[\\/]*)
11204   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11205   ;;
11206   *)
11207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210   IFS=$as_save_IFS
11211   test -z "$as_dir" && as_dir=.
11212     for ac_exec_ext in '' $ac_executable_extensions; do
11213   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11216     break 2
11217   fi
11218 done
11219   done
11220 IFS=$as_save_IFS
11221 
11222   ;;
11223 esac
11224 fi
11225 XARGS=$ac_cv_path_XARGS
11226 if test -n "$XARGS"; then
11227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11228 $as_echo "$XARGS" >&6; }
11229 else
11230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231 $as_echo "no" >&6; }
11232 fi
11233 
11234 
11235   test -n "$XARGS" && break
11236 done
11237 
11238   else
11239     # The variable is set, but is it from the command line or the environment?
11240 
11241     # Try to remove the string !XARGS! from our list.
11242     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11243     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11244       # If it failed, the variable was not from the command line. Ignore it,
11245       # but warn the user (except for BASH, which is always set by the calling BASH).
11246       if test "xXARGS" != xBASH; then
11247         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11248 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11249       fi
11250       # Try to locate tool using the code snippet
11251       for ac_prog in xargs
11252 do
11253   # Extract the first word of "$ac_prog", so it can be a program name with args.
11254 set dummy $ac_prog; ac_word=$2
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256 $as_echo_n "checking for $ac_word... " >&6; }
11257 if ${ac_cv_path_XARGS+:} false; then :
11258   $as_echo_n "(cached) " >&6
11259 else
11260   case $XARGS in
11261   [\\/]* | ?:[\\/]*)
11262   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11263   ;;
11264   *)
11265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11266 for as_dir in $PATH
11267 do
11268   IFS=$as_save_IFS
11269   test -z "$as_dir" && as_dir=.
11270     for ac_exec_ext in '' $ac_executable_extensions; do
11271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11272     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11274     break 2
11275   fi
11276 done
11277   done
11278 IFS=$as_save_IFS
11279 
11280   ;;
11281 esac
11282 fi
11283 XARGS=$ac_cv_path_XARGS
11284 if test -n "$XARGS"; then
11285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11286 $as_echo "$XARGS" >&6; }
11287 else
11288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11289 $as_echo "no" >&6; }
11290 fi
11291 
11292 
11293   test -n "$XARGS" && break
11294 done
11295 
11296     else
11297       # If it succeeded, then it was overridden by the user. We will use it
11298       # for the tool.
11299 
11300       # First remove it from the list of overridden variables, so we can test
11301       # for unknown variables in the end.
11302       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11303 
11304       # Check if the provided tool contains a complete path.
11305       tool_specified="$XARGS"
11306       tool_basename="${tool_specified##*/}"
11307       if test "x$tool_basename" = "x$tool_specified"; then
11308         # A command without a complete path is provided, search $PATH.
11309         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11310 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11311         # Extract the first word of "$tool_basename", so it can be a program name with args.
11312 set dummy $tool_basename; ac_word=$2
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314 $as_echo_n "checking for $ac_word... " >&6; }
11315 if ${ac_cv_path_XARGS+:} false; then :
11316   $as_echo_n "(cached) " >&6
11317 else
11318   case $XARGS in
11319   [\\/]* | ?:[\\/]*)
11320   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11321   ;;
11322   *)
11323   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11325 do
11326   IFS=$as_save_IFS
11327   test -z "$as_dir" && as_dir=.
11328     for ac_exec_ext in '' $ac_executable_extensions; do
11329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11332     break 2
11333   fi
11334 done
11335   done
11336 IFS=$as_save_IFS
11337 
11338   ;;
11339 esac
11340 fi
11341 XARGS=$ac_cv_path_XARGS
11342 if test -n "$XARGS"; then
11343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11344 $as_echo "$XARGS" >&6; }
11345 else
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11348 fi
11349 
11350 
11351         if test "x$XARGS" = x; then
11352           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11353         fi
11354       else
11355         # Otherwise we believe it is a complete path. Use it as it is.
11356         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11357 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11358         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11359 $as_echo_n "checking for XARGS... " >&6; }
11360         if test ! -x "$tool_specified"; then
11361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11362 $as_echo "not found" >&6; }
11363           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11364         fi
11365         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11366 $as_echo "$tool_specified" >&6; }
11367       fi
11368     fi
11369   fi
11370 
11371 
11372 
11373   if test "x$XARGS" = x; then
11374     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11375   fi
11376 
11377 
11378 
11379   # Then required tools that require some special treatment.
11380 
11381 
11382   # Publish this variable in the help.
11383 
11384 
11385   if test "x$AWK" = x; then
11386     # The variable is not set by user, try to locate tool using the code snippet
11387     for ac_prog in gawk mawk nawk awk
11388 do
11389   # Extract the first word of "$ac_prog", so it can be a program name with args.
11390 set dummy $ac_prog; ac_word=$2
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 $as_echo_n "checking for $ac_word... " >&6; }
11393 if ${ac_cv_prog_AWK+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   if test -n "$AWK"; then
11397   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11398 else
11399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11400 for as_dir in $PATH
11401 do
11402   IFS=$as_save_IFS
11403   test -z "$as_dir" && as_dir=.
11404     for ac_exec_ext in '' $ac_executable_extensions; do
11405   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11406     ac_cv_prog_AWK="$ac_prog"
11407     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11408     break 2
11409   fi
11410 done
11411   done
11412 IFS=$as_save_IFS
11413 
11414 fi
11415 fi
11416 AWK=$ac_cv_prog_AWK
11417 if test -n "$AWK"; then
11418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11419 $as_echo "$AWK" >&6; }
11420 else
11421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422 $as_echo "no" >&6; }
11423 fi
11424 
11425 
11426   test -n "$AWK" && break
11427 done
11428 
11429   else
11430     # The variable is set, but is it from the command line or the environment?
11431 
11432     # Try to remove the string !AWK! from our list.
11433     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11434     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11435       # If it failed, the variable was not from the command line. Ignore it,
11436       # but warn the user (except for BASH, which is always set by the calling BASH).
11437       if test "xAWK" != xBASH; then
11438         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11439 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11440       fi
11441       # Try to locate tool using the code snippet
11442       for ac_prog in gawk mawk nawk awk
11443 do
11444   # Extract the first word of "$ac_prog", so it can be a program name with args.
11445 set dummy $ac_prog; ac_word=$2
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447 $as_echo_n "checking for $ac_word... " >&6; }
11448 if ${ac_cv_prog_AWK+:} false; then :
11449   $as_echo_n "(cached) " >&6
11450 else
11451   if test -n "$AWK"; then
11452   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11453 else
11454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455 for as_dir in $PATH
11456 do
11457   IFS=$as_save_IFS
11458   test -z "$as_dir" && as_dir=.
11459     for ac_exec_ext in '' $ac_executable_extensions; do
11460   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11461     ac_cv_prog_AWK="$ac_prog"
11462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11463     break 2
11464   fi
11465 done
11466   done
11467 IFS=$as_save_IFS
11468 
11469 fi
11470 fi
11471 AWK=$ac_cv_prog_AWK
11472 if test -n "$AWK"; then
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11474 $as_echo "$AWK" >&6; }
11475 else
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477 $as_echo "no" >&6; }
11478 fi
11479 
11480 
11481   test -n "$AWK" && break
11482 done
11483 
11484     else
11485       # If it succeeded, then it was overridden by the user. We will use it
11486       # for the tool.
11487 
11488       # First remove it from the list of overridden variables, so we can test
11489       # for unknown variables in the end.
11490       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11491 
11492       # Check if the provided tool contains a complete path.
11493       tool_specified="$AWK"
11494       tool_basename="${tool_specified##*/}"
11495       if test "x$tool_basename" = "x$tool_specified"; then
11496         # A command without a complete path is provided, search $PATH.
11497         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11498 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11499         # Extract the first word of "$tool_basename", so it can be a program name with args.
11500 set dummy $tool_basename; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if ${ac_cv_path_AWK+:} false; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506   case $AWK in
11507   [\\/]* | ?:[\\/]*)
11508   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11509   ;;
11510   *)
11511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11513 do
11514   IFS=$as_save_IFS
11515   test -z "$as_dir" && as_dir=.
11516     for ac_exec_ext in '' $ac_executable_extensions; do
11517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11518     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520     break 2
11521   fi
11522 done
11523   done
11524 IFS=$as_save_IFS
11525 
11526   ;;
11527 esac
11528 fi
11529 AWK=$ac_cv_path_AWK
11530 if test -n "$AWK"; then
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11532 $as_echo "$AWK" >&6; }
11533 else
11534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536 fi
11537 
11538 
11539         if test "x$AWK" = x; then
11540           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11541         fi
11542       else
11543         # Otherwise we believe it is a complete path. Use it as it is.
11544         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11545 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11547 $as_echo_n "checking for AWK... " >&6; }
11548         if test ! -x "$tool_specified"; then
11549           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11550 $as_echo "not found" >&6; }
11551           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11552         fi
11553         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11554 $as_echo "$tool_specified" >&6; }
11555       fi
11556     fi
11557   fi
11558 
11559 
11560   if test "x$AWK" = x; then
11561     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11562   fi
11563 
11564 
11565 
11566 
11567   # Publish this variable in the help.
11568 
11569 
11570   if test "x$GREP" = x; then
11571     # The variable is not set by user, try to locate tool using the code snippet
11572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11573 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11574 if ${ac_cv_path_GREP+:} false; then :
11575   $as_echo_n "(cached) " >&6
11576 else
11577   if test -z "$GREP"; then
11578   ac_path_GREP_found=false
11579   # Loop through the user's path and test for each of PROGNAME-LIST
11580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11582 do
11583   IFS=$as_save_IFS
11584   test -z "$as_dir" && as_dir=.
11585     for ac_prog in grep ggrep; do
11586     for ac_exec_ext in '' $ac_executable_extensions; do
11587       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11588       as_fn_executable_p "$ac_path_GREP" || continue
11589 # Check for GNU ac_path_GREP and select it if it is found.
11590   # Check for GNU $ac_path_GREP
11591 case `"$ac_path_GREP" --version 2>&1` in
11592 *GNU*)
11593   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11594 *)
11595   ac_count=0
11596   $as_echo_n 0123456789 >"conftest.in"
11597   while :
11598   do
11599     cat "conftest.in" "conftest.in" >"conftest.tmp"
11600     mv "conftest.tmp" "conftest.in"
11601     cp "conftest.in" "conftest.nl"
11602     $as_echo 'GREP' >> "conftest.nl"
11603     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11604     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11605     as_fn_arith $ac_count + 1 && ac_count=$as_val
11606     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11607       # Best one so far, save it but keep looking for a better one
11608       ac_cv_path_GREP="$ac_path_GREP"
11609       ac_path_GREP_max=$ac_count
11610     fi
11611     # 10*(2^10) chars as input seems more than enough
11612     test $ac_count -gt 10 && break
11613   done
11614   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11615 esac
11616 
11617       $ac_path_GREP_found && break 3
11618     done
11619   done
11620   done
11621 IFS=$as_save_IFS
11622   if test -z "$ac_cv_path_GREP"; then
11623     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11624   fi
11625 else
11626   ac_cv_path_GREP=$GREP
11627 fi
11628 
11629 fi
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11631 $as_echo "$ac_cv_path_GREP" >&6; }
11632  GREP="$ac_cv_path_GREP"
11633 
11634 
11635   else
11636     # The variable is set, but is it from the command line or the environment?
11637 
11638     # Try to remove the string !GREP! from our list.
11639     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11640     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11641       # If it failed, the variable was not from the command line. Ignore it,
11642       # but warn the user (except for BASH, which is always set by the calling BASH).
11643       if test "xGREP" != xBASH; then
11644         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11645 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11646       fi
11647       # Try to locate tool using the code snippet
11648       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11649 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11650 if ${ac_cv_path_GREP+:} false; then :
11651   $as_echo_n "(cached) " >&6
11652 else
11653   if test -z "$GREP"; then
11654   ac_path_GREP_found=false
11655   # Loop through the user's path and test for each of PROGNAME-LIST
11656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11658 do
11659   IFS=$as_save_IFS
11660   test -z "$as_dir" && as_dir=.
11661     for ac_prog in grep ggrep; do
11662     for ac_exec_ext in '' $ac_executable_extensions; do
11663       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11664       as_fn_executable_p "$ac_path_GREP" || continue
11665 # Check for GNU ac_path_GREP and select it if it is found.
11666   # Check for GNU $ac_path_GREP
11667 case `"$ac_path_GREP" --version 2>&1` in
11668 *GNU*)
11669   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11670 *)
11671   ac_count=0
11672   $as_echo_n 0123456789 >"conftest.in"
11673   while :
11674   do
11675     cat "conftest.in" "conftest.in" >"conftest.tmp"
11676     mv "conftest.tmp" "conftest.in"
11677     cp "conftest.in" "conftest.nl"
11678     $as_echo 'GREP' >> "conftest.nl"
11679     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11681     as_fn_arith $ac_count + 1 && ac_count=$as_val
11682     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11683       # Best one so far, save it but keep looking for a better one
11684       ac_cv_path_GREP="$ac_path_GREP"
11685       ac_path_GREP_max=$ac_count
11686     fi
11687     # 10*(2^10) chars as input seems more than enough
11688     test $ac_count -gt 10 && break
11689   done
11690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11691 esac
11692 
11693       $ac_path_GREP_found && break 3
11694     done
11695   done
11696   done
11697 IFS=$as_save_IFS
11698   if test -z "$ac_cv_path_GREP"; then
11699     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11700   fi
11701 else
11702   ac_cv_path_GREP=$GREP
11703 fi
11704 
11705 fi
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11707 $as_echo "$ac_cv_path_GREP" >&6; }
11708  GREP="$ac_cv_path_GREP"
11709 
11710 
11711     else
11712       # If it succeeded, then it was overridden by the user. We will use it
11713       # for the tool.
11714 
11715       # First remove it from the list of overridden variables, so we can test
11716       # for unknown variables in the end.
11717       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11718 
11719       # Check if the provided tool contains a complete path.
11720       tool_specified="$GREP"
11721       tool_basename="${tool_specified##*/}"
11722       if test "x$tool_basename" = "x$tool_specified"; then
11723         # A command without a complete path is provided, search $PATH.
11724         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11725 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11726         # Extract the first word of "$tool_basename", so it can be a program name with args.
11727 set dummy $tool_basename; ac_word=$2
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729 $as_echo_n "checking for $ac_word... " >&6; }
11730 if ${ac_cv_path_GREP+:} false; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   case $GREP in
11734   [\\/]* | ?:[\\/]*)
11735   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11736   ;;
11737   *)
11738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11739 for as_dir in $PATH
11740 do
11741   IFS=$as_save_IFS
11742   test -z "$as_dir" && as_dir=.
11743     for ac_exec_ext in '' $ac_executable_extensions; do
11744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11745     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11747     break 2
11748   fi
11749 done
11750   done
11751 IFS=$as_save_IFS
11752 
11753   ;;
11754 esac
11755 fi
11756 GREP=$ac_cv_path_GREP
11757 if test -n "$GREP"; then
11758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11759 $as_echo "$GREP" >&6; }
11760 else
11761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11762 $as_echo "no" >&6; }
11763 fi
11764 
11765 
11766         if test "x$GREP" = x; then
11767           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11768         fi
11769       else
11770         # Otherwise we believe it is a complete path. Use it as it is.
11771         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11772 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11774 $as_echo_n "checking for GREP... " >&6; }
11775         if test ! -x "$tool_specified"; then
11776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11777 $as_echo "not found" >&6; }
11778           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11779         fi
11780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11781 $as_echo "$tool_specified" >&6; }
11782       fi
11783     fi
11784   fi
11785 
11786 
11787   if test "x$GREP" = x; then
11788     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11789   fi
11790 
11791 
11792 
11793 
11794   # Publish this variable in the help.
11795 
11796 
11797   if test "x$EGREP" = x; then
11798     # The variable is not set by user, try to locate tool using the code snippet
11799     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11800 $as_echo_n "checking for egrep... " >&6; }
11801 if ${ac_cv_path_EGREP+:} false; then :
11802   $as_echo_n "(cached) " >&6
11803 else
11804   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11805    then ac_cv_path_EGREP="$GREP -E"
11806    else
11807      if test -z "$EGREP"; then
11808   ac_path_EGREP_found=false
11809   # Loop through the user's path and test for each of PROGNAME-LIST
11810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11812 do
11813   IFS=$as_save_IFS
11814   test -z "$as_dir" && as_dir=.
11815     for ac_prog in egrep; do
11816     for ac_exec_ext in '' $ac_executable_extensions; do
11817       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11818       as_fn_executable_p "$ac_path_EGREP" || continue
11819 # Check for GNU ac_path_EGREP and select it if it is found.
11820   # Check for GNU $ac_path_EGREP
11821 case `"$ac_path_EGREP" --version 2>&1` in
11822 *GNU*)
11823   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11824 *)
11825   ac_count=0
11826   $as_echo_n 0123456789 >"conftest.in"
11827   while :
11828   do
11829     cat "conftest.in" "conftest.in" >"conftest.tmp"
11830     mv "conftest.tmp" "conftest.in"
11831     cp "conftest.in" "conftest.nl"
11832     $as_echo 'EGREP' >> "conftest.nl"
11833     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11835     as_fn_arith $ac_count + 1 && ac_count=$as_val
11836     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11837       # Best one so far, save it but keep looking for a better one
11838       ac_cv_path_EGREP="$ac_path_EGREP"
11839       ac_path_EGREP_max=$ac_count
11840     fi
11841     # 10*(2^10) chars as input seems more than enough
11842     test $ac_count -gt 10 && break
11843   done
11844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11845 esac
11846 
11847       $ac_path_EGREP_found && break 3
11848     done
11849   done
11850   done
11851 IFS=$as_save_IFS
11852   if test -z "$ac_cv_path_EGREP"; then
11853     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11854   fi
11855 else
11856   ac_cv_path_EGREP=$EGREP
11857 fi
11858 
11859    fi
11860 fi
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11862 $as_echo "$ac_cv_path_EGREP" >&6; }
11863  EGREP="$ac_cv_path_EGREP"
11864 
11865 
11866   else
11867     # The variable is set, but is it from the command line or the environment?
11868 
11869     # Try to remove the string !EGREP! from our list.
11870     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11871     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11872       # If it failed, the variable was not from the command line. Ignore it,
11873       # but warn the user (except for BASH, which is always set by the calling BASH).
11874       if test "xEGREP" != xBASH; then
11875         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11876 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11877       fi
11878       # Try to locate tool using the code snippet
11879       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11880 $as_echo_n "checking for egrep... " >&6; }
11881 if ${ac_cv_path_EGREP+:} false; then :
11882   $as_echo_n "(cached) " >&6
11883 else
11884   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11885    then ac_cv_path_EGREP="$GREP -E"
11886    else
11887      if test -z "$EGREP"; then
11888   ac_path_EGREP_found=false
11889   # Loop through the user's path and test for each of PROGNAME-LIST
11890   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11892 do
11893   IFS=$as_save_IFS
11894   test -z "$as_dir" && as_dir=.
11895     for ac_prog in egrep; do
11896     for ac_exec_ext in '' $ac_executable_extensions; do
11897       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11898       as_fn_executable_p "$ac_path_EGREP" || continue
11899 # Check for GNU ac_path_EGREP and select it if it is found.
11900   # Check for GNU $ac_path_EGREP
11901 case `"$ac_path_EGREP" --version 2>&1` in
11902 *GNU*)
11903   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11904 *)
11905   ac_count=0
11906   $as_echo_n 0123456789 >"conftest.in"
11907   while :
11908   do
11909     cat "conftest.in" "conftest.in" >"conftest.tmp"
11910     mv "conftest.tmp" "conftest.in"
11911     cp "conftest.in" "conftest.nl"
11912     $as_echo 'EGREP' >> "conftest.nl"
11913     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11914     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11915     as_fn_arith $ac_count + 1 && ac_count=$as_val
11916     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11917       # Best one so far, save it but keep looking for a better one
11918       ac_cv_path_EGREP="$ac_path_EGREP"
11919       ac_path_EGREP_max=$ac_count
11920     fi
11921     # 10*(2^10) chars as input seems more than enough
11922     test $ac_count -gt 10 && break
11923   done
11924   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11925 esac
11926 
11927       $ac_path_EGREP_found && break 3
11928     done
11929   done
11930   done
11931 IFS=$as_save_IFS
11932   if test -z "$ac_cv_path_EGREP"; then
11933     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11934   fi
11935 else
11936   ac_cv_path_EGREP=$EGREP
11937 fi
11938 
11939    fi
11940 fi
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11942 $as_echo "$ac_cv_path_EGREP" >&6; }
11943  EGREP="$ac_cv_path_EGREP"
11944 
11945 
11946     else
11947       # If it succeeded, then it was overridden by the user. We will use it
11948       # for the tool.
11949 
11950       # First remove it from the list of overridden variables, so we can test
11951       # for unknown variables in the end.
11952       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11953 
11954       # Check if the provided tool contains a complete path.
11955       tool_specified="$EGREP"
11956       tool_basename="${tool_specified##*/}"
11957       if test "x$tool_basename" = "x$tool_specified"; then
11958         # A command without a complete path is provided, search $PATH.
11959         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11960 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11961         # Extract the first word of "$tool_basename", so it can be a program name with args.
11962 set dummy $tool_basename; ac_word=$2
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964 $as_echo_n "checking for $ac_word... " >&6; }
11965 if ${ac_cv_path_EGREP+:} false; then :
11966   $as_echo_n "(cached) " >&6
11967 else
11968   case $EGREP in
11969   [\\/]* | ?:[\\/]*)
11970   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11971   ;;
11972   *)
11973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11975 do
11976   IFS=$as_save_IFS
11977   test -z "$as_dir" && as_dir=.
11978     for ac_exec_ext in '' $ac_executable_extensions; do
11979   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11980     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11981     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11982     break 2
11983   fi
11984 done
11985   done
11986 IFS=$as_save_IFS
11987 
11988   ;;
11989 esac
11990 fi
11991 EGREP=$ac_cv_path_EGREP
11992 if test -n "$EGREP"; then
11993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11994 $as_echo "$EGREP" >&6; }
11995 else
11996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 $as_echo "no" >&6; }
11998 fi
11999 
12000 
12001         if test "x$EGREP" = x; then
12002           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12003         fi
12004       else
12005         # Otherwise we believe it is a complete path. Use it as it is.
12006         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12007 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12008         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12009 $as_echo_n "checking for EGREP... " >&6; }
12010         if test ! -x "$tool_specified"; then
12011           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12012 $as_echo "not found" >&6; }
12013           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12014         fi
12015         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12016 $as_echo "$tool_specified" >&6; }
12017       fi
12018     fi
12019   fi
12020 
12021 
12022   if test "x$EGREP" = x; then
12023     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12024   fi
12025 
12026 
12027 
12028 
12029   # Publish this variable in the help.
12030 
12031 
12032   if test "x$FGREP" = x; then
12033     # The variable is not set by user, try to locate tool using the code snippet
12034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12035 $as_echo_n "checking for fgrep... " >&6; }
12036 if ${ac_cv_path_FGREP+:} false; then :
12037   $as_echo_n "(cached) " >&6
12038 else
12039   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12040    then ac_cv_path_FGREP="$GREP -F"
12041    else
12042      if test -z "$FGREP"; then
12043   ac_path_FGREP_found=false
12044   # Loop through the user's path and test for each of PROGNAME-LIST
12045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12047 do
12048   IFS=$as_save_IFS
12049   test -z "$as_dir" && as_dir=.
12050     for ac_prog in fgrep; do
12051     for ac_exec_ext in '' $ac_executable_extensions; do
12052       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12053       as_fn_executable_p "$ac_path_FGREP" || continue
12054 # Check for GNU ac_path_FGREP and select it if it is found.
12055   # Check for GNU $ac_path_FGREP
12056 case `"$ac_path_FGREP" --version 2>&1` in
12057 *GNU*)
12058   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12059 *)
12060   ac_count=0
12061   $as_echo_n 0123456789 >"conftest.in"
12062   while :
12063   do
12064     cat "conftest.in" "conftest.in" >"conftest.tmp"
12065     mv "conftest.tmp" "conftest.in"
12066     cp "conftest.in" "conftest.nl"
12067     $as_echo 'FGREP' >> "conftest.nl"
12068     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12069     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12070     as_fn_arith $ac_count + 1 && ac_count=$as_val
12071     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12072       # Best one so far, save it but keep looking for a better one
12073       ac_cv_path_FGREP="$ac_path_FGREP"
12074       ac_path_FGREP_max=$ac_count
12075     fi
12076     # 10*(2^10) chars as input seems more than enough
12077     test $ac_count -gt 10 && break
12078   done
12079   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12080 esac
12081 
12082       $ac_path_FGREP_found && break 3
12083     done
12084   done
12085   done
12086 IFS=$as_save_IFS
12087   if test -z "$ac_cv_path_FGREP"; then
12088     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12089   fi
12090 else
12091   ac_cv_path_FGREP=$FGREP
12092 fi
12093 
12094    fi
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12097 $as_echo "$ac_cv_path_FGREP" >&6; }
12098  FGREP="$ac_cv_path_FGREP"
12099 
12100 
12101   else
12102     # The variable is set, but is it from the command line or the environment?
12103 
12104     # Try to remove the string !FGREP! from our list.
12105     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12106     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12107       # If it failed, the variable was not from the command line. Ignore it,
12108       # but warn the user (except for BASH, which is always set by the calling BASH).
12109       if test "xFGREP" != xBASH; then
12110         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12111 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12112       fi
12113       # Try to locate tool using the code snippet
12114       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12115 $as_echo_n "checking for fgrep... " >&6; }
12116 if ${ac_cv_path_FGREP+:} false; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12120    then ac_cv_path_FGREP="$GREP -F"
12121    else
12122      if test -z "$FGREP"; then
12123   ac_path_FGREP_found=false
12124   # Loop through the user's path and test for each of PROGNAME-LIST
12125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12126 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12127 do
12128   IFS=$as_save_IFS
12129   test -z "$as_dir" && as_dir=.
12130     for ac_prog in fgrep; do
12131     for ac_exec_ext in '' $ac_executable_extensions; do
12132       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12133       as_fn_executable_p "$ac_path_FGREP" || continue
12134 # Check for GNU ac_path_FGREP and select it if it is found.
12135   # Check for GNU $ac_path_FGREP
12136 case `"$ac_path_FGREP" --version 2>&1` in
12137 *GNU*)
12138   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12139 *)
12140   ac_count=0
12141   $as_echo_n 0123456789 >"conftest.in"
12142   while :
12143   do
12144     cat "conftest.in" "conftest.in" >"conftest.tmp"
12145     mv "conftest.tmp" "conftest.in"
12146     cp "conftest.in" "conftest.nl"
12147     $as_echo 'FGREP' >> "conftest.nl"
12148     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12149     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12150     as_fn_arith $ac_count + 1 && ac_count=$as_val
12151     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12152       # Best one so far, save it but keep looking for a better one
12153       ac_cv_path_FGREP="$ac_path_FGREP"
12154       ac_path_FGREP_max=$ac_count
12155     fi
12156     # 10*(2^10) chars as input seems more than enough
12157     test $ac_count -gt 10 && break
12158   done
12159   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12160 esac
12161 
12162       $ac_path_FGREP_found && break 3
12163     done
12164   done
12165   done
12166 IFS=$as_save_IFS
12167   if test -z "$ac_cv_path_FGREP"; then
12168     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12169   fi
12170 else
12171   ac_cv_path_FGREP=$FGREP
12172 fi
12173 
12174    fi
12175 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12177 $as_echo "$ac_cv_path_FGREP" >&6; }
12178  FGREP="$ac_cv_path_FGREP"
12179 
12180 
12181     else
12182       # If it succeeded, then it was overridden by the user. We will use it
12183       # for the tool.
12184 
12185       # First remove it from the list of overridden variables, so we can test
12186       # for unknown variables in the end.
12187       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12188 
12189       # Check if the provided tool contains a complete path.
12190       tool_specified="$FGREP"
12191       tool_basename="${tool_specified##*/}"
12192       if test "x$tool_basename" = "x$tool_specified"; then
12193         # A command without a complete path is provided, search $PATH.
12194         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12195 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12196         # Extract the first word of "$tool_basename", so it can be a program name with args.
12197 set dummy $tool_basename; ac_word=$2
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199 $as_echo_n "checking for $ac_word... " >&6; }
12200 if ${ac_cv_path_FGREP+:} false; then :
12201   $as_echo_n "(cached) " >&6
12202 else
12203   case $FGREP in
12204   [\\/]* | ?:[\\/]*)
12205   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12206   ;;
12207   *)
12208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12209 for as_dir in $PATH
12210 do
12211   IFS=$as_save_IFS
12212   test -z "$as_dir" && as_dir=.
12213     for ac_exec_ext in '' $ac_executable_extensions; do
12214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12215     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12217     break 2
12218   fi
12219 done
12220   done
12221 IFS=$as_save_IFS
12222 
12223   ;;
12224 esac
12225 fi
12226 FGREP=$ac_cv_path_FGREP
12227 if test -n "$FGREP"; then
12228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12229 $as_echo "$FGREP" >&6; }
12230 else
12231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232 $as_echo "no" >&6; }
12233 fi
12234 
12235 
12236         if test "x$FGREP" = x; then
12237           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12238         fi
12239       else
12240         # Otherwise we believe it is a complete path. Use it as it is.
12241         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12242 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12243         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12244 $as_echo_n "checking for FGREP... " >&6; }
12245         if test ! -x "$tool_specified"; then
12246           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12247 $as_echo "not found" >&6; }
12248           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12249         fi
12250         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12251 $as_echo "$tool_specified" >&6; }
12252       fi
12253     fi
12254   fi
12255 
12256 
12257   if test "x$FGREP" = x; then
12258     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12259   fi
12260 
12261 
12262 
12263 
12264   # Publish this variable in the help.
12265 
12266 
12267   if test "x$SED" = x; then
12268     # The variable is not set by user, try to locate tool using the code snippet
12269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12270 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12271 if ${ac_cv_path_SED+:} false; then :
12272   $as_echo_n "(cached) " >&6
12273 else
12274             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12275      for ac_i in 1 2 3 4 5 6 7; do
12276        ac_script="$ac_script$as_nl$ac_script"
12277      done
12278      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12279      { ac_script=; unset ac_script;}
12280      if test -z "$SED"; then
12281   ac_path_SED_found=false
12282   # Loop through the user's path and test for each of PROGNAME-LIST
12283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284 for as_dir in $PATH
12285 do
12286   IFS=$as_save_IFS
12287   test -z "$as_dir" && as_dir=.
12288     for ac_prog in sed gsed; do
12289     for ac_exec_ext in '' $ac_executable_extensions; do
12290       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12291       as_fn_executable_p "$ac_path_SED" || continue
12292 # Check for GNU ac_path_SED and select it if it is found.
12293   # Check for GNU $ac_path_SED
12294 case `"$ac_path_SED" --version 2>&1` in
12295 *GNU*)
12296   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12297 *)
12298   ac_count=0
12299   $as_echo_n 0123456789 >"conftest.in"
12300   while :
12301   do
12302     cat "conftest.in" "conftest.in" >"conftest.tmp"
12303     mv "conftest.tmp" "conftest.in"
12304     cp "conftest.in" "conftest.nl"
12305     $as_echo '' >> "conftest.nl"
12306     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12307     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12308     as_fn_arith $ac_count + 1 && ac_count=$as_val
12309     if test $ac_count -gt ${ac_path_SED_max-0}; then
12310       # Best one so far, save it but keep looking for a better one
12311       ac_cv_path_SED="$ac_path_SED"
12312       ac_path_SED_max=$ac_count
12313     fi
12314     # 10*(2^10) chars as input seems more than enough
12315     test $ac_count -gt 10 && break
12316   done
12317   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12318 esac
12319 
12320       $ac_path_SED_found && break 3
12321     done
12322   done
12323   done
12324 IFS=$as_save_IFS
12325   if test -z "$ac_cv_path_SED"; then
12326     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12327   fi
12328 else
12329   ac_cv_path_SED=$SED
12330 fi
12331 
12332 fi
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12334 $as_echo "$ac_cv_path_SED" >&6; }
12335  SED="$ac_cv_path_SED"
12336   rm -f conftest.sed
12337 
12338   else
12339     # The variable is set, but is it from the command line or the environment?
12340 
12341     # Try to remove the string !SED! from our list.
12342     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12343     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12344       # If it failed, the variable was not from the command line. Ignore it,
12345       # but warn the user (except for BASH, which is always set by the calling BASH).
12346       if test "xSED" != xBASH; then
12347         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12348 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12349       fi
12350       # Try to locate tool using the code snippet
12351       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12352 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12353 if ${ac_cv_path_SED+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12357      for ac_i in 1 2 3 4 5 6 7; do
12358        ac_script="$ac_script$as_nl$ac_script"
12359      done
12360      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12361      { ac_script=; unset ac_script;}
12362      if test -z "$SED"; then
12363   ac_path_SED_found=false
12364   # Loop through the user's path and test for each of PROGNAME-LIST
12365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12366 for as_dir in $PATH
12367 do
12368   IFS=$as_save_IFS
12369   test -z "$as_dir" && as_dir=.
12370     for ac_prog in sed gsed; do
12371     for ac_exec_ext in '' $ac_executable_extensions; do
12372       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12373       as_fn_executable_p "$ac_path_SED" || continue
12374 # Check for GNU ac_path_SED and select it if it is found.
12375   # Check for GNU $ac_path_SED
12376 case `"$ac_path_SED" --version 2>&1` in
12377 *GNU*)
12378   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12379 *)
12380   ac_count=0
12381   $as_echo_n 0123456789 >"conftest.in"
12382   while :
12383   do
12384     cat "conftest.in" "conftest.in" >"conftest.tmp"
12385     mv "conftest.tmp" "conftest.in"
12386     cp "conftest.in" "conftest.nl"
12387     $as_echo '' >> "conftest.nl"
12388     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12389     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12390     as_fn_arith $ac_count + 1 && ac_count=$as_val
12391     if test $ac_count -gt ${ac_path_SED_max-0}; then
12392       # Best one so far, save it but keep looking for a better one
12393       ac_cv_path_SED="$ac_path_SED"
12394       ac_path_SED_max=$ac_count
12395     fi
12396     # 10*(2^10) chars as input seems more than enough
12397     test $ac_count -gt 10 && break
12398   done
12399   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12400 esac
12401 
12402       $ac_path_SED_found && break 3
12403     done
12404   done
12405   done
12406 IFS=$as_save_IFS
12407   if test -z "$ac_cv_path_SED"; then
12408     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12409   fi
12410 else
12411   ac_cv_path_SED=$SED
12412 fi
12413 
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12416 $as_echo "$ac_cv_path_SED" >&6; }
12417  SED="$ac_cv_path_SED"
12418   rm -f conftest.sed
12419 
12420     else
12421       # If it succeeded, then it was overridden by the user. We will use it
12422       # for the tool.
12423 
12424       # First remove it from the list of overridden variables, so we can test
12425       # for unknown variables in the end.
12426       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12427 
12428       # Check if the provided tool contains a complete path.
12429       tool_specified="$SED"
12430       tool_basename="${tool_specified##*/}"
12431       if test "x$tool_basename" = "x$tool_specified"; then
12432         # A command without a complete path is provided, search $PATH.
12433         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12434 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12435         # Extract the first word of "$tool_basename", so it can be a program name with args.
12436 set dummy $tool_basename; ac_word=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12438 $as_echo_n "checking for $ac_word... " >&6; }
12439 if ${ac_cv_path_SED+:} false; then :
12440   $as_echo_n "(cached) " >&6
12441 else
12442   case $SED in
12443   [\\/]* | ?:[\\/]*)
12444   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12445   ;;
12446   *)
12447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12448 for as_dir in $PATH
12449 do
12450   IFS=$as_save_IFS
12451   test -z "$as_dir" && as_dir=.
12452     for ac_exec_ext in '' $ac_executable_extensions; do
12453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12454     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12456     break 2
12457   fi
12458 done
12459   done
12460 IFS=$as_save_IFS
12461 
12462   ;;
12463 esac
12464 fi
12465 SED=$ac_cv_path_SED
12466 if test -n "$SED"; then
12467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12468 $as_echo "$SED" >&6; }
12469 else
12470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12471 $as_echo "no" >&6; }
12472 fi
12473 
12474 
12475         if test "x$SED" = x; then
12476           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12477         fi
12478       else
12479         # Otherwise we believe it is a complete path. Use it as it is.
12480         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12481 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12482         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12483 $as_echo_n "checking for SED... " >&6; }
12484         if test ! -x "$tool_specified"; then
12485           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12486 $as_echo "not found" >&6; }
12487           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12488         fi
12489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12490 $as_echo "$tool_specified" >&6; }
12491       fi
12492     fi
12493   fi
12494 
12495 
12496   if test "x$SED" = x; then
12497     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12498   fi
12499 
12500 
12501 
12502   # Always force rm.
12503   RM="$RM -f"
12504 
12505   # pwd behaves differently on various platforms and some don't support the -L flag.
12506   # Always use the bash builtin pwd to get uniform behavior.
12507   THEPWDCMD=pwd
12508 
12509   # These are not required on all platforms
12510 
12511 
12512   # Publish this variable in the help.
12513 
12514 
12515   if test "x$CYGPATH" = x; then
12516     # The variable is not set by user, try to locate tool using the code snippet
12517     for ac_prog in cygpath
12518 do
12519   # Extract the first word of "$ac_prog", so it can be a program name with args.
12520 set dummy $ac_prog; ac_word=$2
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12522 $as_echo_n "checking for $ac_word... " >&6; }
12523 if ${ac_cv_path_CYGPATH+:} false; then :
12524   $as_echo_n "(cached) " >&6
12525 else
12526   case $CYGPATH in
12527   [\\/]* | ?:[\\/]*)
12528   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12529   ;;
12530   *)
12531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12533 do
12534   IFS=$as_save_IFS
12535   test -z "$as_dir" && as_dir=.
12536     for ac_exec_ext in '' $ac_executable_extensions; do
12537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12538     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540     break 2
12541   fi
12542 done
12543   done
12544 IFS=$as_save_IFS
12545 
12546   ;;
12547 esac
12548 fi
12549 CYGPATH=$ac_cv_path_CYGPATH
12550 if test -n "$CYGPATH"; then
12551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12552 $as_echo "$CYGPATH" >&6; }
12553 else
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555 $as_echo "no" >&6; }
12556 fi
12557 
12558 
12559   test -n "$CYGPATH" && break
12560 done
12561 
12562   else
12563     # The variable is set, but is it from the command line or the environment?
12564 
12565     # Try to remove the string !CYGPATH! from our list.
12566     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12567     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12568       # If it failed, the variable was not from the command line. Ignore it,
12569       # but warn the user (except for BASH, which is always set by the calling BASH).
12570       if test "xCYGPATH" != xBASH; then
12571         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12572 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12573       fi
12574       # Try to locate tool using the code snippet
12575       for ac_prog in cygpath
12576 do
12577   # Extract the first word of "$ac_prog", so it can be a program name with args.
12578 set dummy $ac_prog; ac_word=$2
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12580 $as_echo_n "checking for $ac_word... " >&6; }
12581 if ${ac_cv_path_CYGPATH+:} false; then :
12582   $as_echo_n "(cached) " >&6
12583 else
12584   case $CYGPATH in
12585   [\\/]* | ?:[\\/]*)
12586   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12587   ;;
12588   *)
12589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12590 for as_dir in $PATH
12591 do
12592   IFS=$as_save_IFS
12593   test -z "$as_dir" && as_dir=.
12594     for ac_exec_ext in '' $ac_executable_extensions; do
12595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12596     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12598     break 2
12599   fi
12600 done
12601   done
12602 IFS=$as_save_IFS
12603 
12604   ;;
12605 esac
12606 fi
12607 CYGPATH=$ac_cv_path_CYGPATH
12608 if test -n "$CYGPATH"; then
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12610 $as_echo "$CYGPATH" >&6; }
12611 else
12612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615 
12616 
12617   test -n "$CYGPATH" && break
12618 done
12619 
12620     else
12621       # If it succeeded, then it was overridden by the user. We will use it
12622       # for the tool.
12623 
12624       # First remove it from the list of overridden variables, so we can test
12625       # for unknown variables in the end.
12626       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12627 
12628       # Check if the provided tool contains a complete path.
12629       tool_specified="$CYGPATH"
12630       tool_basename="${tool_specified##*/}"
12631       if test "x$tool_basename" = "x$tool_specified"; then
12632         # A command without a complete path is provided, search $PATH.
12633         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12634 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12635         # Extract the first word of "$tool_basename", so it can be a program name with args.
12636 set dummy $tool_basename; ac_word=$2
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638 $as_echo_n "checking for $ac_word... " >&6; }
12639 if ${ac_cv_path_CYGPATH+:} false; then :
12640   $as_echo_n "(cached) " >&6
12641 else
12642   case $CYGPATH in
12643   [\\/]* | ?:[\\/]*)
12644   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12645   ;;
12646   *)
12647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12648 for as_dir in $PATH
12649 do
12650   IFS=$as_save_IFS
12651   test -z "$as_dir" && as_dir=.
12652     for ac_exec_ext in '' $ac_executable_extensions; do
12653   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12654     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12656     break 2
12657   fi
12658 done
12659   done
12660 IFS=$as_save_IFS
12661 
12662   ;;
12663 esac
12664 fi
12665 CYGPATH=$ac_cv_path_CYGPATH
12666 if test -n "$CYGPATH"; then
12667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12668 $as_echo "$CYGPATH" >&6; }
12669 else
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12671 $as_echo "no" >&6; }
12672 fi
12673 
12674 
12675         if test "x$CYGPATH" = x; then
12676           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12677         fi
12678       else
12679         # Otherwise we believe it is a complete path. Use it as it is.
12680         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12681 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12682         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12683 $as_echo_n "checking for CYGPATH... " >&6; }
12684         if test ! -x "$tool_specified"; then
12685           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12686 $as_echo "not found" >&6; }
12687           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12688         fi
12689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12690 $as_echo "$tool_specified" >&6; }
12691       fi
12692     fi
12693   fi
12694 
12695 
12696 
12697 
12698   # Publish this variable in the help.
12699 
12700 
12701   if test "x$READLINK" = x; then
12702     # The variable is not set by user, try to locate tool using the code snippet
12703     for ac_prog in greadlink readlink
12704 do
12705   # Extract the first word of "$ac_prog", so it can be a program name with args.
12706 set dummy $ac_prog; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12708 $as_echo_n "checking for $ac_word... " >&6; }
12709 if ${ac_cv_path_READLINK+:} false; then :
12710   $as_echo_n "(cached) " >&6
12711 else
12712   case $READLINK in
12713   [\\/]* | ?:[\\/]*)
12714   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12715   ;;
12716   *)
12717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12718 for as_dir in $PATH
12719 do
12720   IFS=$as_save_IFS
12721   test -z "$as_dir" && as_dir=.
12722     for ac_exec_ext in '' $ac_executable_extensions; do
12723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12724     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12726     break 2
12727   fi
12728 done
12729   done
12730 IFS=$as_save_IFS
12731 
12732   ;;
12733 esac
12734 fi
12735 READLINK=$ac_cv_path_READLINK
12736 if test -n "$READLINK"; then
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12738 $as_echo "$READLINK" >&6; }
12739 else
12740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12741 $as_echo "no" >&6; }
12742 fi
12743 
12744 
12745   test -n "$READLINK" && break
12746 done
12747 
12748   else
12749     # The variable is set, but is it from the command line or the environment?
12750 
12751     # Try to remove the string !READLINK! from our list.
12752     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12753     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12754       # If it failed, the variable was not from the command line. Ignore it,
12755       # but warn the user (except for BASH, which is always set by the calling BASH).
12756       if test "xREADLINK" != xBASH; then
12757         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12758 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12759       fi
12760       # Try to locate tool using the code snippet
12761       for ac_prog in greadlink readlink
12762 do
12763   # Extract the first word of "$ac_prog", so it can be a program name with args.
12764 set dummy $ac_prog; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12766 $as_echo_n "checking for $ac_word... " >&6; }
12767 if ${ac_cv_path_READLINK+:} false; then :
12768   $as_echo_n "(cached) " >&6
12769 else
12770   case $READLINK in
12771   [\\/]* | ?:[\\/]*)
12772   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12773   ;;
12774   *)
12775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776 for as_dir in $PATH
12777 do
12778   IFS=$as_save_IFS
12779   test -z "$as_dir" && as_dir=.
12780     for ac_exec_ext in '' $ac_executable_extensions; do
12781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12782     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12784     break 2
12785   fi
12786 done
12787   done
12788 IFS=$as_save_IFS
12789 
12790   ;;
12791 esac
12792 fi
12793 READLINK=$ac_cv_path_READLINK
12794 if test -n "$READLINK"; then
12795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12796 $as_echo "$READLINK" >&6; }
12797 else
12798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799 $as_echo "no" >&6; }
12800 fi
12801 
12802 
12803   test -n "$READLINK" && break
12804 done
12805 
12806     else
12807       # If it succeeded, then it was overridden by the user. We will use it
12808       # for the tool.
12809 
12810       # First remove it from the list of overridden variables, so we can test
12811       # for unknown variables in the end.
12812       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12813 
12814       # Check if the provided tool contains a complete path.
12815       tool_specified="$READLINK"
12816       tool_basename="${tool_specified##*/}"
12817       if test "x$tool_basename" = "x$tool_specified"; then
12818         # A command without a complete path is provided, search $PATH.
12819         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12820 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12821         # Extract the first word of "$tool_basename", so it can be a program name with args.
12822 set dummy $tool_basename; ac_word=$2
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12824 $as_echo_n "checking for $ac_word... " >&6; }
12825 if ${ac_cv_path_READLINK+:} false; then :
12826   $as_echo_n "(cached) " >&6
12827 else
12828   case $READLINK in
12829   [\\/]* | ?:[\\/]*)
12830   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12831   ;;
12832   *)
12833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834 for as_dir in $PATH
12835 do
12836   IFS=$as_save_IFS
12837   test -z "$as_dir" && as_dir=.
12838     for ac_exec_ext in '' $ac_executable_extensions; do
12839   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12840     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12842     break 2
12843   fi
12844 done
12845   done
12846 IFS=$as_save_IFS
12847 
12848   ;;
12849 esac
12850 fi
12851 READLINK=$ac_cv_path_READLINK
12852 if test -n "$READLINK"; then
12853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12854 $as_echo "$READLINK" >&6; }
12855 else
12856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12858 fi
12859 
12860 
12861         if test "x$READLINK" = x; then
12862           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12863         fi
12864       else
12865         # Otherwise we believe it is a complete path. Use it as it is.
12866         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12867 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12868         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12869 $as_echo_n "checking for READLINK... " >&6; }
12870         if test ! -x "$tool_specified"; then
12871           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12872 $as_echo "not found" >&6; }
12873           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12874         fi
12875         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12876 $as_echo "$tool_specified" >&6; }
12877       fi
12878     fi
12879   fi
12880 
12881 
12882 
12883 
12884   # Publish this variable in the help.
12885 
12886 
12887   if test "x$DF" = x; then
12888     # The variable is not set by user, try to locate tool using the code snippet
12889     for ac_prog in df
12890 do
12891   # Extract the first word of "$ac_prog", so it can be a program name with args.
12892 set dummy $ac_prog; ac_word=$2
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12894 $as_echo_n "checking for $ac_word... " >&6; }
12895 if ${ac_cv_path_DF+:} false; then :
12896   $as_echo_n "(cached) " >&6
12897 else
12898   case $DF in
12899   [\\/]* | ?:[\\/]*)
12900   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12901   ;;
12902   *)
12903   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12904 for as_dir in $PATH
12905 do
12906   IFS=$as_save_IFS
12907   test -z "$as_dir" && as_dir=.
12908     for ac_exec_ext in '' $ac_executable_extensions; do
12909   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12910     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12912     break 2
12913   fi
12914 done
12915   done
12916 IFS=$as_save_IFS
12917 
12918   ;;
12919 esac
12920 fi
12921 DF=$ac_cv_path_DF
12922 if test -n "$DF"; then
12923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12924 $as_echo "$DF" >&6; }
12925 else
12926   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12927 $as_echo "no" >&6; }
12928 fi
12929 
12930 
12931   test -n "$DF" && break
12932 done
12933 
12934   else
12935     # The variable is set, but is it from the command line or the environment?
12936 
12937     # Try to remove the string !DF! from our list.
12938     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12939     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12940       # If it failed, the variable was not from the command line. Ignore it,
12941       # but warn the user (except for BASH, which is always set by the calling BASH).
12942       if test "xDF" != xBASH; then
12943         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12944 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12945       fi
12946       # Try to locate tool using the code snippet
12947       for ac_prog in df
12948 do
12949   # Extract the first word of "$ac_prog", so it can be a program name with args.
12950 set dummy $ac_prog; ac_word=$2
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952 $as_echo_n "checking for $ac_word... " >&6; }
12953 if ${ac_cv_path_DF+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   case $DF in
12957   [\\/]* | ?:[\\/]*)
12958   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12959   ;;
12960   *)
12961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12963 do
12964   IFS=$as_save_IFS
12965   test -z "$as_dir" && as_dir=.
12966     for ac_exec_ext in '' $ac_executable_extensions; do
12967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970     break 2
12971   fi
12972 done
12973   done
12974 IFS=$as_save_IFS
12975 
12976   ;;
12977 esac
12978 fi
12979 DF=$ac_cv_path_DF
12980 if test -n "$DF"; then
12981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12982 $as_echo "$DF" >&6; }
12983 else
12984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987 
12988 
12989   test -n "$DF" && break
12990 done
12991 
12992     else
12993       # If it succeeded, then it was overridden by the user. We will use it
12994       # for the tool.
12995 
12996       # First remove it from the list of overridden variables, so we can test
12997       # for unknown variables in the end.
12998       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12999 
13000       # Check if the provided tool contains a complete path.
13001       tool_specified="$DF"
13002       tool_basename="${tool_specified##*/}"
13003       if test "x$tool_basename" = "x$tool_specified"; then
13004         # A command without a complete path is provided, search $PATH.
13005         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13006 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13007         # Extract the first word of "$tool_basename", so it can be a program name with args.
13008 set dummy $tool_basename; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010 $as_echo_n "checking for $ac_word... " >&6; }
13011 if ${ac_cv_path_DF+:} false; then :
13012   $as_echo_n "(cached) " >&6
13013 else
13014   case $DF in
13015   [\\/]* | ?:[\\/]*)
13016   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13017   ;;
13018   *)
13019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020 for as_dir in $PATH
13021 do
13022   IFS=$as_save_IFS
13023   test -z "$as_dir" && as_dir=.
13024     for ac_exec_ext in '' $ac_executable_extensions; do
13025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028     break 2
13029   fi
13030 done
13031   done
13032 IFS=$as_save_IFS
13033 
13034   ;;
13035 esac
13036 fi
13037 DF=$ac_cv_path_DF
13038 if test -n "$DF"; then
13039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13040 $as_echo "$DF" >&6; }
13041 else
13042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13044 fi
13045 
13046 
13047         if test "x$DF" = x; then
13048           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13049         fi
13050       else
13051         # Otherwise we believe it is a complete path. Use it as it is.
13052         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13053 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13054         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13055 $as_echo_n "checking for DF... " >&6; }
13056         if test ! -x "$tool_specified"; then
13057           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13058 $as_echo "not found" >&6; }
13059           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13060         fi
13061         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13062 $as_echo "$tool_specified" >&6; }
13063       fi
13064     fi
13065   fi
13066 
13067 
13068 
13069 
13070   # Publish this variable in the help.
13071 
13072 
13073   if test "x$SETFILE" = x; then
13074     # The variable is not set by user, try to locate tool using the code snippet
13075     for ac_prog in SetFile
13076 do
13077   # Extract the first word of "$ac_prog", so it can be a program name with args.
13078 set dummy $ac_prog; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13080 $as_echo_n "checking for $ac_word... " >&6; }
13081 if ${ac_cv_path_SETFILE+:} false; then :
13082   $as_echo_n "(cached) " >&6
13083 else
13084   case $SETFILE in
13085   [\\/]* | ?:[\\/]*)
13086   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13087   ;;
13088   *)
13089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in $PATH
13091 do
13092   IFS=$as_save_IFS
13093   test -z "$as_dir" && as_dir=.
13094     for ac_exec_ext in '' $ac_executable_extensions; do
13095   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13096     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13097     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13098     break 2
13099   fi
13100 done
13101   done
13102 IFS=$as_save_IFS
13103 
13104   ;;
13105 esac
13106 fi
13107 SETFILE=$ac_cv_path_SETFILE
13108 if test -n "$SETFILE"; then
13109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13110 $as_echo "$SETFILE" >&6; }
13111 else
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113 $as_echo "no" >&6; }
13114 fi
13115 
13116 
13117   test -n "$SETFILE" && break
13118 done
13119 
13120   else
13121     # The variable is set, but is it from the command line or the environment?
13122 
13123     # Try to remove the string !SETFILE! from our list.
13124     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13125     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13126       # If it failed, the variable was not from the command line. Ignore it,
13127       # but warn the user (except for BASH, which is always set by the calling BASH).
13128       if test "xSETFILE" != xBASH; then
13129         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13130 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13131       fi
13132       # Try to locate tool using the code snippet
13133       for ac_prog in SetFile
13134 do
13135   # Extract the first word of "$ac_prog", so it can be a program name with args.
13136 set dummy $ac_prog; ac_word=$2
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13138 $as_echo_n "checking for $ac_word... " >&6; }
13139 if ${ac_cv_path_SETFILE+:} false; then :
13140   $as_echo_n "(cached) " >&6
13141 else
13142   case $SETFILE in
13143   [\\/]* | ?:[\\/]*)
13144   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13145   ;;
13146   *)
13147   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13148 for as_dir in $PATH
13149 do
13150   IFS=$as_save_IFS
13151   test -z "$as_dir" && as_dir=.
13152     for ac_exec_ext in '' $ac_executable_extensions; do
13153   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13154     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13156     break 2
13157   fi
13158 done
13159   done
13160 IFS=$as_save_IFS
13161 
13162   ;;
13163 esac
13164 fi
13165 SETFILE=$ac_cv_path_SETFILE
13166 if test -n "$SETFILE"; then
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13168 $as_echo "$SETFILE" >&6; }
13169 else
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13171 $as_echo "no" >&6; }
13172 fi
13173 
13174 
13175   test -n "$SETFILE" && break
13176 done
13177 
13178     else
13179       # If it succeeded, then it was overridden by the user. We will use it
13180       # for the tool.
13181 
13182       # First remove it from the list of overridden variables, so we can test
13183       # for unknown variables in the end.
13184       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13185 
13186       # Check if the provided tool contains a complete path.
13187       tool_specified="$SETFILE"
13188       tool_basename="${tool_specified##*/}"
13189       if test "x$tool_basename" = "x$tool_specified"; then
13190         # A command without a complete path is provided, search $PATH.
13191         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13192 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13193         # Extract the first word of "$tool_basename", so it can be a program name with args.
13194 set dummy $tool_basename; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13196 $as_echo_n "checking for $ac_word... " >&6; }
13197 if ${ac_cv_path_SETFILE+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200   case $SETFILE in
13201   [\\/]* | ?:[\\/]*)
13202   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13203   ;;
13204   *)
13205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13207 do
13208   IFS=$as_save_IFS
13209   test -z "$as_dir" && as_dir=.
13210     for ac_exec_ext in '' $ac_executable_extensions; do
13211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13214     break 2
13215   fi
13216 done
13217   done
13218 IFS=$as_save_IFS
13219 
13220   ;;
13221 esac
13222 fi
13223 SETFILE=$ac_cv_path_SETFILE
13224 if test -n "$SETFILE"; then
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13226 $as_echo "$SETFILE" >&6; }
13227 else
13228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13229 $as_echo "no" >&6; }
13230 fi
13231 
13232 
13233         if test "x$SETFILE" = x; then
13234           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13235         fi
13236       else
13237         # Otherwise we believe it is a complete path. Use it as it is.
13238         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13239 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13240         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13241 $as_echo_n "checking for SETFILE... " >&6; }
13242         if test ! -x "$tool_specified"; then
13243           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13244 $as_echo "not found" >&6; }
13245           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13246         fi
13247         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13248 $as_echo "$tool_specified" >&6; }
13249       fi
13250     fi
13251   fi
13252 
13253 
13254 
13255 
13256   # Publish this variable in the help.
13257 
13258 
13259   if test "x$CPIO" = x; then
13260     # The variable is not set by user, try to locate tool using the code snippet
13261     for ac_prog in cpio bsdcpio
13262 do
13263   # Extract the first word of "$ac_prog", so it can be a program name with args.
13264 set dummy $ac_prog; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13266 $as_echo_n "checking for $ac_word... " >&6; }
13267 if ${ac_cv_path_CPIO+:} false; then :
13268   $as_echo_n "(cached) " >&6
13269 else
13270   case $CPIO in
13271   [\\/]* | ?:[\\/]*)
13272   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13273   ;;
13274   *)
13275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13277 do
13278   IFS=$as_save_IFS
13279   test -z "$as_dir" && as_dir=.
13280     for ac_exec_ext in '' $ac_executable_extensions; do
13281   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13284     break 2
13285   fi
13286 done
13287   done
13288 IFS=$as_save_IFS
13289 
13290   ;;
13291 esac
13292 fi
13293 CPIO=$ac_cv_path_CPIO
13294 if test -n "$CPIO"; then
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13296 $as_echo "$CPIO" >&6; }
13297 else
13298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13299 $as_echo "no" >&6; }
13300 fi
13301 
13302 
13303   test -n "$CPIO" && break
13304 done
13305 
13306   else
13307     # The variable is set, but is it from the command line or the environment?
13308 
13309     # Try to remove the string !CPIO! from our list.
13310     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13311     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13312       # If it failed, the variable was not from the command line. Ignore it,
13313       # but warn the user (except for BASH, which is always set by the calling BASH).
13314       if test "xCPIO" != xBASH; then
13315         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13316 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13317       fi
13318       # Try to locate tool using the code snippet
13319       for ac_prog in cpio bsdcpio
13320 do
13321   # Extract the first word of "$ac_prog", so it can be a program name with args.
13322 set dummy $ac_prog; ac_word=$2
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13324 $as_echo_n "checking for $ac_word... " >&6; }
13325 if ${ac_cv_path_CPIO+:} false; then :
13326   $as_echo_n "(cached) " >&6
13327 else
13328   case $CPIO in
13329   [\\/]* | ?:[\\/]*)
13330   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13331   ;;
13332   *)
13333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH
13335 do
13336   IFS=$as_save_IFS
13337   test -z "$as_dir" && as_dir=.
13338     for ac_exec_ext in '' $ac_executable_extensions; do
13339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13340     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13342     break 2
13343   fi
13344 done
13345   done
13346 IFS=$as_save_IFS
13347 
13348   ;;
13349 esac
13350 fi
13351 CPIO=$ac_cv_path_CPIO
13352 if test -n "$CPIO"; then
13353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13354 $as_echo "$CPIO" >&6; }
13355 else
13356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13357 $as_echo "no" >&6; }
13358 fi
13359 
13360 
13361   test -n "$CPIO" && break
13362 done
13363 
13364     else
13365       # If it succeeded, then it was overridden by the user. We will use it
13366       # for the tool.
13367 
13368       # First remove it from the list of overridden variables, so we can test
13369       # for unknown variables in the end.
13370       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13371 
13372       # Check if the provided tool contains a complete path.
13373       tool_specified="$CPIO"
13374       tool_basename="${tool_specified##*/}"
13375       if test "x$tool_basename" = "x$tool_specified"; then
13376         # A command without a complete path is provided, search $PATH.
13377         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13378 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13379         # Extract the first word of "$tool_basename", so it can be a program name with args.
13380 set dummy $tool_basename; ac_word=$2
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382 $as_echo_n "checking for $ac_word... " >&6; }
13383 if ${ac_cv_path_CPIO+:} false; then :
13384   $as_echo_n "(cached) " >&6
13385 else
13386   case $CPIO in
13387   [\\/]* | ?:[\\/]*)
13388   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13389   ;;
13390   *)
13391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13392 for as_dir in $PATH
13393 do
13394   IFS=$as_save_IFS
13395   test -z "$as_dir" && as_dir=.
13396     for ac_exec_ext in '' $ac_executable_extensions; do
13397   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13398     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13400     break 2
13401   fi
13402 done
13403   done
13404 IFS=$as_save_IFS
13405 
13406   ;;
13407 esac
13408 fi
13409 CPIO=$ac_cv_path_CPIO
13410 if test -n "$CPIO"; then
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13412 $as_echo "$CPIO" >&6; }
13413 else
13414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13415 $as_echo "no" >&6; }
13416 fi
13417 
13418 
13419         if test "x$CPIO" = x; then
13420           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13421         fi
13422       else
13423         # Otherwise we believe it is a complete path. Use it as it is.
13424         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13425 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13426         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13427 $as_echo_n "checking for CPIO... " >&6; }
13428         if test ! -x "$tool_specified"; then
13429           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13430 $as_echo "not found" >&6; }
13431           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13432         fi
13433         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13434 $as_echo "$tool_specified" >&6; }
13435       fi
13436     fi
13437   fi
13438 
13439 
13440 
13441 
13442 # Now we can determine OpenJDK build and target platforms. This is required to
13443 # have early on.
13444 # Make sure we can run config.sub.
13445 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13446   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13447 
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13449 $as_echo_n "checking build system type... " >&6; }
13450 if ${ac_cv_build+:} false; then :
13451   $as_echo_n "(cached) " >&6
13452 else
13453   ac_build_alias=$build_alias
13454 test "x$ac_build_alias" = x &&
13455   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13456 test "x$ac_build_alias" = x &&
13457   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13458 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13459   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13460 
13461 fi
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13463 $as_echo "$ac_cv_build" >&6; }
13464 case $ac_cv_build in
13465 *-*-*) ;;
13466 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13467 esac
13468 build=$ac_cv_build
13469 ac_save_IFS=$IFS; IFS='-'
13470 set x $ac_cv_build
13471 shift
13472 build_cpu=$1
13473 build_vendor=$2
13474 shift; shift
13475 # Remember, the first character of IFS is used to create $*,
13476 # except with old shells:
13477 build_os=$*
13478 IFS=$ac_save_IFS
13479 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13480 
13481 
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13483 $as_echo_n "checking host system type... " >&6; }
13484 if ${ac_cv_host+:} false; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   if test "x$host_alias" = x; then
13488   ac_cv_host=$ac_cv_build
13489 else
13490   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13491     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13492 fi
13493 
13494 fi
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13496 $as_echo "$ac_cv_host" >&6; }
13497 case $ac_cv_host in
13498 *-*-*) ;;
13499 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13500 esac
13501 host=$ac_cv_host
13502 ac_save_IFS=$IFS; IFS='-'
13503 set x $ac_cv_host
13504 shift
13505 host_cpu=$1
13506 host_vendor=$2
13507 shift; shift
13508 # Remember, the first character of IFS is used to create $*,
13509 # except with old shells:
13510 host_os=$*
13511 IFS=$ac_save_IFS
13512 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13513 
13514 
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13516 $as_echo_n "checking target system type... " >&6; }
13517 if ${ac_cv_target+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   if test "x$target_alias" = x; then
13521   ac_cv_target=$ac_cv_host
13522 else
13523   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13524     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13525 fi
13526 
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13529 $as_echo "$ac_cv_target" >&6; }
13530 case $ac_cv_target in
13531 *-*-*) ;;
13532 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13533 esac
13534 target=$ac_cv_target
13535 ac_save_IFS=$IFS; IFS='-'
13536 set x $ac_cv_target
13537 shift
13538 target_cpu=$1
13539 target_vendor=$2
13540 shift; shift
13541 # Remember, the first character of IFS is used to create $*,
13542 # except with old shells:
13543 target_os=$*
13544 IFS=$ac_save_IFS
13545 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13546 
13547 
13548 # The aliases save the names the user supplied, while $host etc.
13549 # will get canonicalized.
13550 test -n "$target_alias" &&
13551   test "$program_prefix$program_suffix$program_transform_name" = \
13552     NONENONEs,x,x, &&
13553   program_prefix=${target_alias}-
13554 
13555   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13556   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13557   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13558   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13559   # to use the configure naming style.
13560 
13561 
13562 
13563 
13564 
13565   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13566   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13567   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13568   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13569   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13570   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13571 
13572 
13573 
13574   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13575 
13576   case "$build_os" in
13577     *linux*)
13578       VAR_OS=linux
13579       VAR_OS_API=posix
13580       VAR_OS_ENV=linux
13581       ;;
13582     *solaris*)
13583       VAR_OS=solaris
13584       VAR_OS_API=posix
13585       VAR_OS_ENV=solaris
13586       ;;
13587     *darwin*)
13588       VAR_OS=macosx
13589       VAR_OS_API=posix
13590       VAR_OS_ENV=macosx
13591       ;;
13592     *bsd*)
13593       VAR_OS=bsd
13594       VAR_OS_API=posix
13595       VAR_OS_ENV=bsd
13596       ;;
13597     *cygwin*)
13598       VAR_OS=windows
13599       VAR_OS_API=winapi
13600       VAR_OS_ENV=windows.cygwin
13601       ;;
13602     *mingw*)
13603       VAR_OS=windows
13604       VAR_OS_API=winapi
13605       VAR_OS_ENV=windows.msys
13606       ;;
13607     *aix*)
13608       VAR_OS=aix
13609       VAR_OS_API=posix
13610       VAR_OS_ENV=aix
13611       ;;
13612     *)
13613       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13614       ;;
13615   esac
13616 
13617 
13618   # First argument is the cpu name from the trip/quad
13619   case "$build_cpu" in
13620     x86_64)
13621       VAR_CPU=x86_64
13622       VAR_CPU_ARCH=x86
13623       VAR_CPU_BITS=64
13624       VAR_CPU_ENDIAN=little
13625       ;;
13626     i?86)
13627       VAR_CPU=x86
13628       VAR_CPU_ARCH=x86
13629       VAR_CPU_BITS=32
13630       VAR_CPU_ENDIAN=little
13631       ;;
13632     arm*)
13633       VAR_CPU=arm
13634       VAR_CPU_ARCH=arm
13635       VAR_CPU_BITS=32
13636       VAR_CPU_ENDIAN=little
13637       ;;
13638     aarch64)
13639       VAR_CPU=aarch64
13640       VAR_CPU_ARCH=aarch64
13641       VAR_CPU_BITS=64
13642       VAR_CPU_ENDIAN=little
13643       ;;
13644     powerpc)
13645       VAR_CPU=ppc
13646       VAR_CPU_ARCH=ppc
13647       VAR_CPU_BITS=32
13648       VAR_CPU_ENDIAN=big
13649       ;;
13650     powerpc64)
13651       VAR_CPU=ppc64
13652       VAR_CPU_ARCH=ppc
13653       VAR_CPU_BITS=64
13654       VAR_CPU_ENDIAN=big
13655       ;;
13656     powerpc64le)
13657       VAR_CPU=ppc64le
13658       VAR_CPU_ARCH=ppc
13659       VAR_CPU_BITS=64
13660       VAR_CPU_ENDIAN=little
13661       ;;
13662     s390)
13663       VAR_CPU=s390
13664       VAR_CPU_ARCH=s390
13665       VAR_CPU_BITS=32
13666       VAR_CPU_ENDIAN=big
13667       ;;
13668     s390x)
13669       VAR_CPU=s390x
13670       VAR_CPU_ARCH=s390
13671       VAR_CPU_BITS=64
13672       VAR_CPU_ENDIAN=big
13673       ;;
13674     sparc)
13675       VAR_CPU=sparc
13676       VAR_CPU_ARCH=sparc
13677       VAR_CPU_BITS=32
13678       VAR_CPU_ENDIAN=big
13679       ;;
13680     sparcv9|sparc64)
13681       VAR_CPU=sparcv9
13682       VAR_CPU_ARCH=sparc
13683       VAR_CPU_BITS=64
13684       VAR_CPU_ENDIAN=big
13685       ;;
13686     *)
13687       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13688       ;;
13689   esac
13690 
13691   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13692   OPENJDK_BUILD_OS="$VAR_OS"
13693   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13694   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13695   OPENJDK_BUILD_CPU="$VAR_CPU"
13696   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13697   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13698   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13699 
13700 
13701 
13702 
13703 
13704 
13705 
13706 
13707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13708 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13710 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13711 
13712   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13713 
13714   case "$host_os" in
13715     *linux*)
13716       VAR_OS=linux
13717       VAR_OS_API=posix
13718       VAR_OS_ENV=linux
13719       ;;
13720     *solaris*)
13721       VAR_OS=solaris
13722       VAR_OS_API=posix
13723       VAR_OS_ENV=solaris
13724       ;;
13725     *darwin*)
13726       VAR_OS=macosx
13727       VAR_OS_API=posix
13728       VAR_OS_ENV=macosx
13729       ;;
13730     *bsd*)
13731       VAR_OS=bsd
13732       VAR_OS_API=posix
13733       VAR_OS_ENV=bsd
13734       ;;
13735     *cygwin*)
13736       VAR_OS=windows
13737       VAR_OS_API=winapi
13738       VAR_OS_ENV=windows.cygwin
13739       ;;
13740     *mingw*)
13741       VAR_OS=windows
13742       VAR_OS_API=winapi
13743       VAR_OS_ENV=windows.msys
13744       ;;
13745     *aix*)
13746       VAR_OS=aix
13747       VAR_OS_API=posix
13748       VAR_OS_ENV=aix
13749       ;;
13750     *)
13751       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13752       ;;
13753   esac
13754 
13755 
13756   # First argument is the cpu name from the trip/quad
13757   case "$host_cpu" in
13758     x86_64)
13759       VAR_CPU=x86_64
13760       VAR_CPU_ARCH=x86
13761       VAR_CPU_BITS=64
13762       VAR_CPU_ENDIAN=little
13763       ;;
13764     i?86)
13765       VAR_CPU=x86
13766       VAR_CPU_ARCH=x86
13767       VAR_CPU_BITS=32
13768       VAR_CPU_ENDIAN=little
13769       ;;
13770     arm*)
13771       VAR_CPU=arm
13772       VAR_CPU_ARCH=arm
13773       VAR_CPU_BITS=32
13774       VAR_CPU_ENDIAN=little
13775       ;;
13776     aarch64)
13777       VAR_CPU=aarch64
13778       VAR_CPU_ARCH=aarch64
13779       VAR_CPU_BITS=64
13780       VAR_CPU_ENDIAN=little
13781       ;;
13782     powerpc)
13783       VAR_CPU=ppc
13784       VAR_CPU_ARCH=ppc
13785       VAR_CPU_BITS=32
13786       VAR_CPU_ENDIAN=big
13787       ;;
13788     powerpc64)
13789       VAR_CPU=ppc64
13790       VAR_CPU_ARCH=ppc
13791       VAR_CPU_BITS=64
13792       VAR_CPU_ENDIAN=big
13793       ;;
13794     powerpc64le)
13795       VAR_CPU=ppc64le
13796       VAR_CPU_ARCH=ppc
13797       VAR_CPU_BITS=64
13798       VAR_CPU_ENDIAN=little
13799       ;;
13800     s390)
13801       VAR_CPU=s390
13802       VAR_CPU_ARCH=s390
13803       VAR_CPU_BITS=32
13804       VAR_CPU_ENDIAN=big
13805       ;;
13806     s390x)
13807       VAR_CPU=s390x
13808       VAR_CPU_ARCH=s390
13809       VAR_CPU_BITS=64
13810       VAR_CPU_ENDIAN=big
13811       ;;
13812     sparc)
13813       VAR_CPU=sparc
13814       VAR_CPU_ARCH=sparc
13815       VAR_CPU_BITS=32
13816       VAR_CPU_ENDIAN=big
13817       ;;
13818     sparcv9|sparc64)
13819       VAR_CPU=sparcv9
13820       VAR_CPU_ARCH=sparc
13821       VAR_CPU_BITS=64
13822       VAR_CPU_ENDIAN=big
13823       ;;
13824     *)
13825       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13826       ;;
13827   esac
13828 
13829   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13830   OPENJDK_TARGET_OS="$VAR_OS"
13831   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13832   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13833   OPENJDK_TARGET_CPU="$VAR_CPU"
13834   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13835   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13836   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13837 
13838 
13839 
13840 
13841 
13842 
13843 
13844 
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13846 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13848 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13849 
13850 
13851 
13852 # Check whether --with-target-bits was given.
13853 if test "${with_target_bits+set}" = set; then :
13854   withval=$with_target_bits;
13855 fi
13856 
13857 
13858   # We have three types of compiles:
13859   # native  == normal compilation, target system == build system
13860   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13861   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13862   #
13863   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13864     # We're doing a proper cross-compilation
13865     COMPILE_TYPE="cross"
13866   else
13867     COMPILE_TYPE="native"
13868   fi
13869 
13870   if test "x$with_target_bits" != x; then
13871     if test "x$COMPILE_TYPE" = "xcross"; then
13872       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13873     fi
13874 
13875     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13876       # A reduced build is requested
13877       COMPILE_TYPE="reduced"
13878       OPENJDK_TARGET_CPU_BITS=32
13879       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13880         OPENJDK_TARGET_CPU=x86
13881       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13882         OPENJDK_TARGET_CPU=sparc
13883       else
13884         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13885       fi
13886     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13887       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
13888     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13889       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13890 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13891     else
13892       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13893     fi
13894   fi
13895 
13896 
13897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13898 $as_echo_n "checking compilation type... " >&6; }
13899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13900 $as_echo "$COMPILE_TYPE" >&6; }
13901 
13902 
13903   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13904     REQUIRED_OS_NAME=SunOS
13905     REQUIRED_OS_VERSION=5.10
13906   fi
13907   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13908     REQUIRED_OS_NAME=Linux
13909     REQUIRED_OS_VERSION=2.6
13910   fi
13911   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13912     REQUIRED_OS_NAME=Windows
13913     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13914       REQUIRED_OS_VERSION=5.2
13915     else
13916       REQUIRED_OS_VERSION=5.1
13917     fi
13918   fi
13919   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13920     REQUIRED_OS_NAME=Darwin
13921     REQUIRED_OS_VERSION=11.2
13922   fi
13923 
13924 
13925 
13926 
13927 
13928   # Also store the legacy naming of the cpu.
13929   # Ie i586 and amd64 instead of x86 and x86_64
13930   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13931   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13932     OPENJDK_TARGET_CPU_LEGACY="i586"
13933   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13934     # On all platforms except MacOSX replace x86_64 with amd64.
13935     OPENJDK_TARGET_CPU_LEGACY="amd64"
13936   fi
13937 
13938 
13939   # And the second legacy naming of the cpu.
13940   # Ie i386 and amd64 instead of x86 and x86_64.
13941   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13942   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13943     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13944   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13945     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13946   fi
13947 
13948 
13949   # This is the name of the cpu (but using i386 and amd64 instead of
13950   # x86 and x86_64, respectively), preceeded by a /, to be used when
13951   # locating libraries. On macosx, it's empty, though.
13952   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13953   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13954     OPENJDK_TARGET_CPU_LIBDIR=""
13955   fi
13956 
13957 
13958   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13959   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13960   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13961   OPENJDK_TARGET_CPU_ISADIR=""
13962   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13963     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13964       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13965     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13966       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13967     fi
13968   fi
13969 
13970 
13971   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13972   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13973   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13974     # On linux only, we replace x86 with i386.
13975     OPENJDK_TARGET_CPU_OSARCH="i386"
13976   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13977     # On all platforms except macosx, we replace x86_64 with amd64.
13978     OPENJDK_TARGET_CPU_OSARCH="amd64"
13979   fi
13980 
13981 
13982   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13983   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13984     OPENJDK_TARGET_CPU_JLI="i386"
13985   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13986     # On all platforms except macosx, we replace x86_64 with amd64.
13987     OPENJDK_TARGET_CPU_JLI="amd64"
13988   fi
13989   # Now setup the -D flags for building libjli.
13990   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13991   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13992     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13993       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13994     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13995       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13996     fi
13997   fi
13998 
13999 
14000   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
14001   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
14002     OPENJDK_TARGET_OS_API_DIR="solaris"
14003   fi
14004   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14005     OPENJDK_TARGET_OS_API_DIR="windows"
14006   fi
14007 
14008 
14009   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14010       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14011   else
14012       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14013   fi
14014 
14015 
14016   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14017     A_LP64="LP64:="
14018     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14019     # unpack200.exe
14020     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14021       ADD_LP64="-D_LP64=1"
14022     fi
14023   fi
14024   LP64=$A_LP64
14025 
14026 
14027   if test "x$COMPILE_TYPE" = "xcross"; then
14028     # FIXME: ... or should this include reduced builds..?
14029     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14030   else
14031     DEFINE_CROSS_COMPILE_ARCH=""
14032   fi
14033 
14034 
14035   # ZERO_ARCHDEF is used to enable architecture-specific code
14036   case "${OPENJDK_TARGET_CPU}" in
14037     ppc)     ZERO_ARCHDEF=PPC32 ;;
14038     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14039     s390*)   ZERO_ARCHDEF=S390  ;;
14040     sparc*)  ZERO_ARCHDEF=SPARC ;;
14041     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14042     x86)     ZERO_ARCHDEF=IA32  ;;
14043     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14044   esac
14045 
14046 
14047 
14048 
14049 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14050 
14051   # Save the current directory this script was started from
14052   CURDIR="$PWD"
14053 
14054   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14055     PATH_SEP=";"
14056 
14057   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14058   if test $SRC_ROOT_LENGTH -gt 100; then
14059     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14060   fi
14061 
14062   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14064 $as_echo_n "checking cygwin release... " >&6; }
14065     CYGWIN_VERSION=`$UNAME -r`
14066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14067 $as_echo "$CYGWIN_VERSION" >&6; }
14068     WINDOWS_ENV_VENDOR='cygwin'
14069     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14070 
14071     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14072     if test "x$CYGWIN_VERSION_OLD" != x; then
14073       { $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
14074 $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;}
14075       as_fn_error $? "Cannot continue" "$LINENO" 5
14076     fi
14077     if test "x$CYGPATH" = x; then
14078       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14079     fi
14080     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14081 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14082     # The cmd output ends with Windows line endings (CR/LF)
14083     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14084     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14085     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14087 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14088     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14089     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14090     if test "x$test_cygdrive_prefix" = x; then
14091       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14092     fi
14093   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14095 $as_echo_n "checking msys release... " >&6; }
14096     MSYS_VERSION=`$UNAME -r`
14097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14098 $as_echo "$MSYS_VERSION" >&6; }
14099 
14100     WINDOWS_ENV_VENDOR='msys'
14101     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14102 
14103     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14104 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14105     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14106     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14107 
14108   windows_path="$MSYS_ROOT_PATH"
14109   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14110     unix_path=`$CYGPATH -u "$windows_path"`
14111     MSYS_ROOT_PATH="$unix_path"
14112   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14113     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14114     MSYS_ROOT_PATH="$unix_path"
14115   fi
14116 
14117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14118 $as_echo "$MSYS_ROOT_PATH" >&6; }
14119     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14120   else
14121     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14122   fi
14123 
14124   # Test if windows or unix (cygwin/msys) find is first in path.
14125   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14126 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14127   FIND_BINARY_OUTPUT=`find --version 2>&1`
14128   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14129     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14130 $as_echo "unix style" >&6; }
14131   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14133 $as_echo "Windows" >&6; }
14134     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14135 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14136     { $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
14137 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14138     as_fn_error $? "Cannot continue" "$LINENO" 5
14139   else
14140     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14141 $as_echo "unknown" >&6; }
14142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14143 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14144   fi
14145 
14146   else
14147     PATH_SEP=":"
14148   fi
14149 
14150 
14151   # We get the top-level directory from the supporting wrappers.
14152   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14153 $as_echo_n "checking for top-level directory... " >&6; }
14154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14155 $as_echo "$TOPDIR" >&6; }
14156 
14157 
14158   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14159 
14160   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14161 
14162   # Input might be given as Windows format, start by converting to
14163   # unix format.
14164   path="$CURDIR"
14165   new_path=`$CYGPATH -u "$path"`
14166 
14167   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14168   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14169   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14170   # "foo.exe" is OK but "foo" is an error.
14171   #
14172   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14173   # It is also a way to make sure we got the proper file name for the real test later on.
14174   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14175   if test "x$test_shortpath" = x; then
14176     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14177 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14178     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14179   fi
14180 
14181   # Call helper function which possibly converts this using DOS-style short mode.
14182   # If so, the updated path is stored in $new_path.
14183 
14184   input_path="$new_path"
14185   # Check if we need to convert this using DOS-style short mode. If the path
14186   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14187   # take no chances and rewrite it.
14188   # Note: m4 eats our [], so we need to use [ and ] instead.
14189   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14190   if test "x$has_forbidden_chars" != x; then
14191     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14192     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14193     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14194     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14195       # Going to short mode and back again did indeed matter. Since short mode is
14196       # case insensitive, let's make it lowercase to improve readability.
14197       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14198       # Now convert it back to Unix-style (cygpath)
14199       input_path=`$CYGPATH -u "$shortmode_path"`
14200       new_path="$input_path"
14201     fi
14202   fi
14203 
14204   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14205   if test "x$test_cygdrive_prefix" = x; then
14206     # As a simple fix, exclude /usr/bin since it's not a real path.
14207     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14208       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14209       # a path prefixed by /cygdrive for fixpath to work.
14210       new_path="$CYGWIN_ROOT_PATH$input_path"
14211     fi
14212   fi
14213 
14214 
14215   if test "x$path" != "x$new_path"; then
14216     CURDIR="$new_path"
14217     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14218 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14219   fi
14220 
14221   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14222 
14223   path="$CURDIR"
14224   has_colon=`$ECHO $path | $GREP ^.:`
14225   new_path="$path"
14226   if test "x$has_colon" = x; then
14227     # Not in mixed or Windows style, start by that.
14228     new_path=`cmd //c echo $path`
14229   fi
14230 
14231 
14232   input_path="$new_path"
14233   # Check if we need to convert this using DOS-style short mode. If the path
14234   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14235   # take no chances and rewrite it.
14236   # Note: m4 eats our [], so we need to use [ and ] instead.
14237   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14238   if test "x$has_forbidden_chars" != x; then
14239     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14240     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14241   fi
14242 
14243 
14244   windows_path="$new_path"
14245   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14246     unix_path=`$CYGPATH -u "$windows_path"`
14247     new_path="$unix_path"
14248   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14249     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14250     new_path="$unix_path"
14251   fi
14252 
14253   if test "x$path" != "x$new_path"; then
14254     CURDIR="$new_path"
14255     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14256 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14257   fi
14258 
14259   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14260   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14261 
14262   else
14263     # We're on a posix platform. Hooray! :)
14264     path="$CURDIR"
14265     has_space=`$ECHO "$path" | $GREP " "`
14266     if test "x$has_space" != x; then
14267       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14268 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14269       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14270     fi
14271 
14272     # Use eval to expand a potential ~
14273     eval path="$path"
14274     if test ! -f "$path" && test ! -d "$path"; then
14275       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14276     fi
14277 
14278     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14279   fi
14280 
14281 
14282   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14283 
14284   # Input might be given as Windows format, start by converting to
14285   # unix format.
14286   path="$TOPDIR"
14287   new_path=`$CYGPATH -u "$path"`
14288 
14289   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14290   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14291   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14292   # "foo.exe" is OK but "foo" is an error.
14293   #
14294   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14295   # It is also a way to make sure we got the proper file name for the real test later on.
14296   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14297   if test "x$test_shortpath" = x; then
14298     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14299 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14300     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14301   fi
14302 
14303   # Call helper function which possibly converts this using DOS-style short mode.
14304   # If so, the updated path is stored in $new_path.
14305 
14306   input_path="$new_path"
14307   # Check if we need to convert this using DOS-style short mode. If the path
14308   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14309   # take no chances and rewrite it.
14310   # Note: m4 eats our [], so we need to use [ and ] instead.
14311   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14312   if test "x$has_forbidden_chars" != x; then
14313     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14314     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14315     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14316     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14317       # Going to short mode and back again did indeed matter. Since short mode is
14318       # case insensitive, let's make it lowercase to improve readability.
14319       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14320       # Now convert it back to Unix-style (cygpath)
14321       input_path=`$CYGPATH -u "$shortmode_path"`
14322       new_path="$input_path"
14323     fi
14324   fi
14325 
14326   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14327   if test "x$test_cygdrive_prefix" = x; then
14328     # As a simple fix, exclude /usr/bin since it's not a real path.
14329     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14330       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14331       # a path prefixed by /cygdrive for fixpath to work.
14332       new_path="$CYGWIN_ROOT_PATH$input_path"
14333     fi
14334   fi
14335 
14336 
14337   if test "x$path" != "x$new_path"; then
14338     TOPDIR="$new_path"
14339     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14340 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14341   fi
14342 
14343   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14344 
14345   path="$TOPDIR"
14346   has_colon=`$ECHO $path | $GREP ^.:`
14347   new_path="$path"
14348   if test "x$has_colon" = x; then
14349     # Not in mixed or Windows style, start by that.
14350     new_path=`cmd //c echo $path`
14351   fi
14352 
14353 
14354   input_path="$new_path"
14355   # Check if we need to convert this using DOS-style short mode. If the path
14356   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14357   # take no chances and rewrite it.
14358   # Note: m4 eats our [], so we need to use [ and ] instead.
14359   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14360   if test "x$has_forbidden_chars" != x; then
14361     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14362     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14363   fi
14364 
14365 
14366   windows_path="$new_path"
14367   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14368     unix_path=`$CYGPATH -u "$windows_path"`
14369     new_path="$unix_path"
14370   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14371     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14372     new_path="$unix_path"
14373   fi
14374 
14375   if test "x$path" != "x$new_path"; then
14376     TOPDIR="$new_path"
14377     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14378 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14379   fi
14380 
14381   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14382   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14383 
14384   else
14385     # We're on a posix platform. Hooray! :)
14386     path="$TOPDIR"
14387     has_space=`$ECHO "$path" | $GREP " "`
14388     if test "x$has_space" != x; then
14389       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14390 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14391       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14392     fi
14393 
14394     # Use eval to expand a potential ~
14395     eval path="$path"
14396     if test ! -f "$path" && test ! -d "$path"; then
14397       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14398     fi
14399 
14400     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14401   fi
14402 
14403   # SRC_ROOT is a traditional alias for TOPDIR.
14404   SRC_ROOT=$TOPDIR
14405 
14406   # Locate the directory of this script.
14407   AUTOCONF_DIR=$TOPDIR/common/autoconf
14408 
14409 
14410   # Setup default logging of stdout and stderr to build.log in the output root.
14411   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14412   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14413   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14414 
14415 
14416 
14417 
14418 
14419 # Check if it's a pure open build or if custom sources are to be used.
14420 
14421   # Check whether --enable-openjdk-only was given.
14422 if test "${enable_openjdk_only+set}" = set; then :
14423   enableval=$enable_openjdk_only;
14424 else
14425   enable_openjdk_only="no"
14426 fi
14427 
14428 
14429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14430 $as_echo_n "checking for presence of closed sources... " >&6; }
14431   if test -d "$SRC_ROOT/jdk/src/closed"; then
14432     CLOSED_SOURCE_PRESENT=yes
14433   else
14434     CLOSED_SOURCE_PRESENT=no
14435   fi
14436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14437 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14438 
14439   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14440 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14441   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14443 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14444 
14445   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14446     OPENJDK=true
14447     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14448       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14449 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14450     fi
14451   else
14452     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14453       OPENJDK=true
14454     else
14455       OPENJDK=false
14456     fi
14457   fi
14458 
14459   if test "x$OPENJDK" = "xtrue"; then
14460     SET_OPENJDK="OPENJDK=true"
14461   fi
14462 
14463 
14464 
14465 
14466 # These are needed to be able to create a configuration name (and thus the output directory)
14467 
14468   ###############################################################################
14469   #
14470   # Check which variant of the JDK that we want to build.
14471   # Currently we have:
14472   #    normal:   standard edition
14473   # but the custom make system may add other variants
14474   #
14475   # Effectively the JDK variant gives a name to a specific set of
14476   # modules to compile into the JDK. In the future, these modules
14477   # might even be Jigsaw modules.
14478   #
14479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14480 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14481 
14482 # Check whether --with-jdk-variant was given.
14483 if test "${with_jdk_variant+set}" = set; then :
14484   withval=$with_jdk_variant;
14485 fi
14486 
14487 
14488   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14489     JDK_VARIANT="normal"
14490   else
14491     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14492   fi
14493 
14494 
14495 
14496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14497 $as_echo "$JDK_VARIANT" >&6; }
14498 
14499 
14500 ###############################################################################
14501 #
14502 # Check which interpreter of the JVM we want to build.
14503 # Currently we have:
14504 #    template: Template interpreter (the default)
14505 #    cpp     : C++ interpreter
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14507 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14508 
14509 # Check whether --with-jvm-interpreter was given.
14510 if test "${with_jvm_interpreter+set}" = set; then :
14511   withval=$with_jvm_interpreter;
14512 fi
14513 
14514 
14515 if test "x$with_jvm_interpreter" = x; then
14516      with_jvm_interpreter="template"
14517 fi
14518 
14519 JVM_INTERPRETER="$with_jvm_interpreter"
14520 
14521 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14522    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14523 fi
14524 
14525 
14526 
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14528 $as_echo "$with_jvm_interpreter" >&6; }
14529 
14530 
14531 
14532   ###############################################################################
14533   #
14534   # Check which variants of the JVM that we want to build.
14535   # Currently we have:
14536   #    server: normal interpreter and a tiered C1/C2 compiler
14537   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14538   #    minimal1: reduced form of client with optional VM services and features stripped out
14539   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14540   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14541   #    zero: no machine code interpreter, no compiler
14542   #    zeroshark: zero interpreter and shark/llvm compiler backend
14543 #    core: interpreter only, no compiler (only works on some platforms)
14544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14545 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14546 
14547 # Check whether --with-jvm-variants was given.
14548 if test "${with_jvm_variants+set}" = set; then :
14549   withval=$with_jvm_variants;
14550 fi
14551 
14552 
14553   if test "x$with_jvm_variants" = x; then
14554     with_jvm_variants="server"
14555   fi
14556 
14557   JVM_VARIANTS=",$with_jvm_variants,"
14558   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,//'`
14559 
14560   if test "x$TEST_VARIANTS" != "x,"; then
14561      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14562   fi
14563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14564 $as_echo "$with_jvm_variants" >&6; }
14565 
14566   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14567   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14568   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14569   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14570   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14571   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14572   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14573 
14574   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14575     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14576       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14577     fi
14578   fi
14579   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14580     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14581       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14582     fi
14583   fi
14584   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14585     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14586       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14587     fi
14588   fi
14589 
14590   # Replace the commas with AND for use in the build directory name.
14591   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14592   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/'`
14593   if test "x$COUNT_VARIANTS" != "x,1"; then
14594     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14595   else
14596     BUILDING_MULTIPLE_JVM_VARIANTS=no
14597   fi
14598 
14599 
14600 
14601 
14602 
14603 
14604 
14605 
14606 
14607 
14608   INCLUDE_SA=true
14609   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14610     INCLUDE_SA=false
14611   fi
14612   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14613     INCLUDE_SA=false
14614   fi
14615   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14616     INCLUDE_SA=false
14617   fi
14618 
14619 
14620   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14621     MACOSX_UNIVERSAL="false"
14622   fi
14623 
14624 
14625 
14626 
14627   ###############################################################################
14628   #
14629   # Set the debug level
14630   #    release: no debug information, all optimizations, no asserts.
14631   #    fastdebug: debug information (-g), all optimizations, all asserts
14632   #    slowdebug: debug information (-g), no optimizations, all asserts
14633   #
14634   DEBUG_LEVEL="release"
14635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14636 $as_echo_n "checking which debug level to use... " >&6; }
14637   # Check whether --enable-debug was given.
14638 if test "${enable_debug+set}" = set; then :
14639   enableval=$enable_debug;
14640         ENABLE_DEBUG="${enableval}"
14641         DEBUG_LEVEL="fastdebug"
14642 
14643 else
14644   ENABLE_DEBUG="no"
14645 fi
14646 
14647 
14648 
14649 # Check whether --with-debug-level was given.
14650 if test "${with_debug_level+set}" = set; then :
14651   withval=$with_debug_level;
14652         DEBUG_LEVEL="${withval}"
14653         if test "x$ENABLE_DEBUG" = xyes; then
14654           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14655         fi
14656 
14657 fi
14658 
14659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14660 $as_echo "$DEBUG_LEVEL" >&6; }
14661 
14662   if test "x$DEBUG_LEVEL" != xrelease && \
14663       test "x$DEBUG_LEVEL" != xfastdebug && \
14664       test "x$DEBUG_LEVEL" != xslowdebug; then
14665     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14666   fi
14667 
14668 
14669   ###############################################################################
14670   #
14671   # Setup legacy vars/targets and new vars to deal with different debug levels.
14672   #
14673 
14674   case $DEBUG_LEVEL in
14675     release )
14676       VARIANT="OPT"
14677       FASTDEBUG="false"
14678       DEBUG_CLASSFILES="false"
14679       BUILD_VARIANT_RELEASE=""
14680       HOTSPOT_DEBUG_LEVEL="product"
14681       HOTSPOT_EXPORT="product"
14682       ;;
14683     fastdebug )
14684       VARIANT="DBG"
14685       FASTDEBUG="true"
14686       DEBUG_CLASSFILES="true"
14687       BUILD_VARIANT_RELEASE="-fastdebug"
14688       HOTSPOT_DEBUG_LEVEL="fastdebug"
14689       HOTSPOT_EXPORT="fastdebug"
14690       ;;
14691     slowdebug )
14692       VARIANT="DBG"
14693       FASTDEBUG="false"
14694       DEBUG_CLASSFILES="true"
14695       BUILD_VARIANT_RELEASE="-debug"
14696       HOTSPOT_DEBUG_LEVEL="jvmg"
14697       HOTSPOT_EXPORT="debug"
14698       ;;
14699   esac
14700 
14701   #####
14702   # Generate the legacy makefile targets for hotspot.
14703   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14704   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14705   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14706   # But until then ...
14707   HOTSPOT_TARGET=""
14708 
14709   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14710     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14711   fi
14712 
14713   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14714     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14715   fi
14716 
14717   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14718     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14719   fi
14720 
14721   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14722     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14723   fi
14724 
14725   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14726     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14727   fi
14728 
14729   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14730     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14731   fi
14732 
14733   if test "x$JVM_VARIANT_CORE" = xtrue; then
14734     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14735   fi
14736 
14737   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14738 
14739   # On Macosx universal binaries are produced, but they only contain
14740   # 64 bit intel. This invalidates control of which jvms are built
14741   # from configure, but only server is valid anyway. Fix this
14742   # when hotspot makefiles are rewritten.
14743   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14744     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14745   fi
14746 
14747   #####
14748 
14749 
14750 
14751 
14752 
14753 
14754 
14755 
14756 # With basic setup done, call the custom early hook.
14757 
14758 
14759 # Check if we have devkits, extra paths or sysroot set.
14760 
14761 
14762 # Check whether --with-devkit was given.
14763 if test "${with_devkit+set}" = set; then :
14764   withval=$with_devkit;
14765 fi
14766 
14767 
14768   if test "x$with_devkit" = xyes; then
14769     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14770   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14771 
14772   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14773 
14774   # Input might be given as Windows format, start by converting to
14775   # unix format.
14776   path="$with_devkit"
14777   new_path=`$CYGPATH -u "$path"`
14778 
14779   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14780   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14781   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14782   # "foo.exe" is OK but "foo" is an error.
14783   #
14784   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14785   # It is also a way to make sure we got the proper file name for the real test later on.
14786   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14787   if test "x$test_shortpath" = x; then
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14789 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14790     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14791   fi
14792 
14793   # Call helper function which possibly converts this using DOS-style short mode.
14794   # If so, the updated path is stored in $new_path.
14795 
14796   input_path="$new_path"
14797   # Check if we need to convert this using DOS-style short mode. If the path
14798   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14799   # take no chances and rewrite it.
14800   # Note: m4 eats our [], so we need to use [ and ] instead.
14801   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14802   if test "x$has_forbidden_chars" != x; then
14803     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14804     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14805     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14806     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14807       # Going to short mode and back again did indeed matter. Since short mode is
14808       # case insensitive, let's make it lowercase to improve readability.
14809       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14810       # Now convert it back to Unix-style (cygpath)
14811       input_path=`$CYGPATH -u "$shortmode_path"`
14812       new_path="$input_path"
14813     fi
14814   fi
14815 
14816   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14817   if test "x$test_cygdrive_prefix" = x; then
14818     # As a simple fix, exclude /usr/bin since it's not a real path.
14819     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14820       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14821       # a path prefixed by /cygdrive for fixpath to work.
14822       new_path="$CYGWIN_ROOT_PATH$input_path"
14823     fi
14824   fi
14825 
14826 
14827   if test "x$path" != "x$new_path"; then
14828     with_devkit="$new_path"
14829     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14830 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14831   fi
14832 
14833   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14834 
14835   path="$with_devkit"
14836   has_colon=`$ECHO $path | $GREP ^.:`
14837   new_path="$path"
14838   if test "x$has_colon" = x; then
14839     # Not in mixed or Windows style, start by that.
14840     new_path=`cmd //c echo $path`
14841   fi
14842 
14843 
14844   input_path="$new_path"
14845   # Check if we need to convert this using DOS-style short mode. If the path
14846   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14847   # take no chances and rewrite it.
14848   # Note: m4 eats our [], so we need to use [ and ] instead.
14849   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14850   if test "x$has_forbidden_chars" != x; then
14851     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14852     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14853   fi
14854 
14855 
14856   windows_path="$new_path"
14857   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14858     unix_path=`$CYGPATH -u "$windows_path"`
14859     new_path="$unix_path"
14860   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14861     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14862     new_path="$unix_path"
14863   fi
14864 
14865   if test "x$path" != "x$new_path"; then
14866     with_devkit="$new_path"
14867     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14868 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14869   fi
14870 
14871   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14872   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14873 
14874   else
14875     # We're on a posix platform. Hooray! :)
14876     path="$with_devkit"
14877     has_space=`$ECHO "$path" | $GREP " "`
14878     if test "x$has_space" != x; then
14879       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14880 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14881       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14882     fi
14883 
14884     # Use eval to expand a potential ~
14885     eval path="$path"
14886     if test ! -f "$path" && test ! -d "$path"; then
14887       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14888     fi
14889 
14890     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14891   fi
14892 
14893     DEVKIT_ROOT="$with_devkit"
14894     # Check for a meta data info file in the root of the devkit
14895     if test -f "$DEVKIT_ROOT/devkit.info"; then
14896       . $DEVKIT_ROOT/devkit.info
14897       # This potentially sets the following:
14898       # A descriptive name of the devkit
14899 
14900   if test "x$DEVKIT_NAME" = x; then
14901     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14902   fi
14903 
14904       # Corresponds to --with-extra-path
14905 
14906   if test "x$DEVKIT_EXTRA_PATH" = x; then
14907     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14908   fi
14909 
14910       # Corresponds to --with-toolchain-path
14911 
14912   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14913     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14914   fi
14915 
14916       # Corresponds to --with-sysroot
14917 
14918   if test "x$DEVKIT_SYSROOT" = x; then
14919     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14920   fi
14921 
14922 
14923       # Identifies the Visual Studio version in the devkit
14924 
14925   if test "x$DEVKIT_VS_VERSION" = x; then
14926     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14927   fi
14928 
14929       # The Visual Studio include environment variable
14930 
14931   if test "x$DEVKIT_VS_INCLUDE" = x; then
14932     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14933   fi
14934 
14935       # The Visual Studio lib environment variable
14936 
14937   if test "x$DEVKIT_VS_LIB" = x; then
14938     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14939   fi
14940 
14941       # Corresponds to --with-msvcr-dll
14942 
14943   if test "x$DEVKIT_MSVCR_DLL" = x; then
14944     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14945   fi
14946 
14947       # Corresponds to --with-msvcp-dll
14948 
14949   if test "x$DEVKIT_MSVCP_DLL" = x; then
14950     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14951   fi
14952 
14953       # Corresponds to --with-ucrt-dll-dir
14954 
14955   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14956     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14957   fi
14958 
14959     fi
14960 
14961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14962 $as_echo_n "checking for devkit... " >&6; }
14963     if test "x$DEVKIT_NAME" != x; then
14964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14965 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14966     else
14967       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14968 $as_echo "$DEVKIT_ROOT" >&6; }
14969     fi
14970 
14971 
14972   if test "x$DEVKIT_EXTRA_PATH" != x; then
14973     if test "x$EXTRA_PATH" = x; then
14974       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14975     else
14976       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14977     fi
14978   fi
14979 
14980 
14981     # Fallback default of just /bin if DEVKIT_PATH is not defined
14982     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14983       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14984     fi
14985 
14986   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14987     if test "x$TOOLCHAIN_PATH" = x; then
14988       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14989     else
14990       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14991     fi
14992   fi
14993 
14994 
14995     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14996     # places for backwards compatiblity.
14997     if test "x$DEVKIT_SYSROOT" != x; then
14998       SYSROOT="$DEVKIT_SYSROOT"
14999     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
15000       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15001     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15002       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15003     fi
15004 
15005     if test "x$DEVKIT_ROOT" != x; then
15006       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15007       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15008         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15009       fi
15010 
15011     fi
15012   fi
15013 
15014   # You can force the sysroot if the sysroot encoded into the compiler tools
15015   # is not correct.
15016 
15017 # Check whether --with-sys-root was given.
15018 if test "${with_sys_root+set}" = set; then :
15019   withval=$with_sys_root; SYSROOT=$with_sys_root
15020 
15021 fi
15022 
15023 
15024 
15025 # Check whether --with-sysroot was given.
15026 if test "${with_sysroot+set}" = set; then :
15027   withval=$with_sysroot; SYSROOT=$with_sysroot
15028 
15029 fi
15030 
15031 
15032 
15033 # Check whether --with-tools-dir was given.
15034 if test "${with_tools_dir+set}" = set; then :
15035   withval=$with_tools_dir;
15036   if test "x$with_tools_dir" != x; then
15037     if test "x$TOOLCHAIN_PATH" = x; then
15038       TOOLCHAIN_PATH="$with_tools_dir"
15039     else
15040       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15041     fi
15042   fi
15043 
15044 
15045 fi
15046 
15047 
15048 
15049 # Check whether --with-toolchain-path was given.
15050 if test "${with_toolchain_path+set}" = set; then :
15051   withval=$with_toolchain_path;
15052   if test "x$with_toolchain_path" != x; then
15053     if test "x$TOOLCHAIN_PATH" = x; then
15054       TOOLCHAIN_PATH="$with_toolchain_path"
15055     else
15056       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15057     fi
15058   fi
15059 
15060 
15061 fi
15062 
15063 
15064 
15065 # Check whether --with-extra-path was given.
15066 if test "${with_extra_path+set}" = set; then :
15067   withval=$with_extra_path;
15068   if test "x$with_extra_path" != x; then
15069     if test "x$EXTRA_PATH" = x; then
15070       EXTRA_PATH="$with_extra_path"
15071     else
15072       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15073     fi
15074   fi
15075 
15076 
15077 fi
15078 
15079 
15080   # Prepend the extra path to the global path
15081 
15082   if test "x$EXTRA_PATH" != x; then
15083     if test "x$PATH" = x; then
15084       PATH="$EXTRA_PATH"
15085     else
15086       PATH="$EXTRA_PATH:$PATH"
15087     fi
15088   fi
15089 
15090 
15091   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15092     # Add extra search paths on solaris for utilities like ar and as etc...
15093     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15094   fi
15095 
15096   # Xcode version will be validated later
15097 
15098 # Check whether --with-xcode-path was given.
15099 if test "${with_xcode_path+set}" = set; then :
15100   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15101 
15102 fi
15103 
15104 
15105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15106 $as_echo_n "checking for sysroot... " >&6; }
15107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15108 $as_echo "$SYSROOT" >&6; }
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15110 $as_echo_n "checking for toolchain path... " >&6; }
15111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15112 $as_echo "$TOOLCHAIN_PATH" >&6; }
15113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15114 $as_echo_n "checking for extra path... " >&6; }
15115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15116 $as_echo "$EXTRA_PATH" >&6; }
15117 
15118 
15119 # To properly create a configuration name, we need to have the OpenJDK target
15120 # and options (variants and debug level) parsed.
15121 
15122 
15123 
15124 # Check whether --with-conf-name was given.
15125 if test "${with_conf_name+set}" = set; then :
15126   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15127 fi
15128 
15129 
15130   # Test from where we are running configure, in or outside of src root.
15131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15132 $as_echo_n "checking where to store configuration... " >&6; }
15133   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15134       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15135       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15136     # We are running configure from the src root.
15137     # Create a default ./build/target-variant-debuglevel output root.
15138     if test "x${CONF_NAME}" = x; then
15139       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15140 $as_echo "in default location" >&6; }
15141       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15142     else
15143       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15144 $as_echo "in build directory with custom name" >&6; }
15145     fi
15146     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15147     $MKDIR -p "$OUTPUT_ROOT"
15148     if test ! -d "$OUTPUT_ROOT"; then
15149       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15150     fi
15151   else
15152     # We are running configure from outside of the src dir.
15153     # Then use the current directory as output dir!
15154     # If configuration is situated in normal build directory, just use the build
15155     # directory name as configuration name, otherwise use the complete path.
15156     if test "x${CONF_NAME}" = x; then
15157       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15158     fi
15159     OUTPUT_ROOT="$CURDIR"
15160     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15161 $as_echo "in current directory" >&6; }
15162 
15163     # WARNING: This might be a bad thing to do. You need to be sure you want to
15164     # have a configuration in this directory. Do some sanity checks!
15165 
15166     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15167       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15168       # other files
15169       files_present=`$LS $OUTPUT_ROOT`
15170       # Configure has already touched config.log and confdefs.h in the current dir when this check
15171       # is performed.
15172       filtered_files=`$ECHO "$files_present" \
15173           | $SED -e 's/config.log//g' \
15174               -e 's/confdefs.h//g' \
15175               -e 's/fixpath.exe//g' \
15176               -e 's/ //g' \
15177           | $TR -d '\n'`
15178       if test "x$filtered_files" != x; then
15179         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15180 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15181         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15182 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15183         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15184 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15185         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15186 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15187         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15188 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15189         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15190 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15191         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15192 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15193         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15194       fi
15195     fi
15196   fi
15197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15198 $as_echo_n "checking what configuration name to use... " >&6; }
15199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15200 $as_echo "$CONF_NAME" >&6; }
15201 
15202 
15203   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15204 
15205   # Input might be given as Windows format, start by converting to
15206   # unix format.
15207   path="$OUTPUT_ROOT"
15208   new_path=`$CYGPATH -u "$path"`
15209 
15210   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15211   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15212   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15213   # "foo.exe" is OK but "foo" is an error.
15214   #
15215   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15216   # It is also a way to make sure we got the proper file name for the real test later on.
15217   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15218   if test "x$test_shortpath" = x; then
15219     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15220 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15221     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15222   fi
15223 
15224   # Call helper function which possibly converts this using DOS-style short mode.
15225   # If so, the updated path is stored in $new_path.
15226 
15227   input_path="$new_path"
15228   # Check if we need to convert this using DOS-style short mode. If the path
15229   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15230   # take no chances and rewrite it.
15231   # Note: m4 eats our [], so we need to use [ and ] instead.
15232   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15233   if test "x$has_forbidden_chars" != x; then
15234     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15235     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15236     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15237     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15238       # Going to short mode and back again did indeed matter. Since short mode is
15239       # case insensitive, let's make it lowercase to improve readability.
15240       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15241       # Now convert it back to Unix-style (cygpath)
15242       input_path=`$CYGPATH -u "$shortmode_path"`
15243       new_path="$input_path"
15244     fi
15245   fi
15246 
15247   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15248   if test "x$test_cygdrive_prefix" = x; then
15249     # As a simple fix, exclude /usr/bin since it's not a real path.
15250     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15251       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15252       # a path prefixed by /cygdrive for fixpath to work.
15253       new_path="$CYGWIN_ROOT_PATH$input_path"
15254     fi
15255   fi
15256 
15257 
15258   if test "x$path" != "x$new_path"; then
15259     OUTPUT_ROOT="$new_path"
15260     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15261 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15262   fi
15263 
15264   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15265 
15266   path="$OUTPUT_ROOT"
15267   has_colon=`$ECHO $path | $GREP ^.:`
15268   new_path="$path"
15269   if test "x$has_colon" = x; then
15270     # Not in mixed or Windows style, start by that.
15271     new_path=`cmd //c echo $path`
15272   fi
15273 
15274 
15275   input_path="$new_path"
15276   # Check if we need to convert this using DOS-style short mode. If the path
15277   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15278   # take no chances and rewrite it.
15279   # Note: m4 eats our [], so we need to use [ and ] instead.
15280   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15281   if test "x$has_forbidden_chars" != x; then
15282     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15283     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15284   fi
15285 
15286 
15287   windows_path="$new_path"
15288   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15289     unix_path=`$CYGPATH -u "$windows_path"`
15290     new_path="$unix_path"
15291   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15292     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15293     new_path="$unix_path"
15294   fi
15295 
15296   if test "x$path" != "x$new_path"; then
15297     OUTPUT_ROOT="$new_path"
15298     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15299 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15300   fi
15301 
15302   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15303   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15304 
15305   else
15306     # We're on a posix platform. Hooray! :)
15307     path="$OUTPUT_ROOT"
15308     has_space=`$ECHO "$path" | $GREP " "`
15309     if test "x$has_space" != x; then
15310       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15311 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15312       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15313     fi
15314 
15315     # Use eval to expand a potential ~
15316     eval path="$path"
15317     if test ! -f "$path" && test ! -d "$path"; then
15318       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15319     fi
15320 
15321     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15322   fi
15323 
15324 
15325   SPEC=$OUTPUT_ROOT/spec.gmk
15326 
15327   CONF_NAME=$CONF_NAME
15328 
15329   OUTPUT_ROOT=$OUTPUT_ROOT
15330 
15331 
15332   # Most of the probed defines are put into config.h
15333   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15334 
15335   # The spec.gmk file contains all variables for the make system.
15336   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15337 
15338   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15339   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15340 
15341   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15342   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15343 
15344   # The compare.sh is used to compare the build output to other builds.
15345   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15346 
15347   # Spec.sh is currently used by compare-objects.sh
15348   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15349 
15350   # The generated Makefile knows where the spec.gmk is and where the source is.
15351   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15352   # which will look for generated configurations
15353   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15354 
15355 
15356 
15357 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15358 
15359   for ac_prog in apt-get yum port pkgutil pkgadd
15360 do
15361   # Extract the first word of "$ac_prog", so it can be a program name with args.
15362 set dummy $ac_prog; ac_word=$2
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15364 $as_echo_n "checking for $ac_word... " >&6; }
15365 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15366   $as_echo_n "(cached) " >&6
15367 else
15368   if test -n "$PKGHANDLER"; then
15369   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15370 else
15371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15372 for as_dir in $PATH
15373 do
15374   IFS=$as_save_IFS
15375   test -z "$as_dir" && as_dir=.
15376     for ac_exec_ext in '' $ac_executable_extensions; do
15377   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15378     ac_cv_prog_PKGHANDLER="$ac_prog"
15379     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15380     break 2
15381   fi
15382 done
15383   done
15384 IFS=$as_save_IFS
15385 
15386 fi
15387 fi
15388 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15389 if test -n "$PKGHANDLER"; then
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15391 $as_echo "$PKGHANDLER" >&6; }
15392 else
15393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15395 fi
15396 
15397 
15398   test -n "$PKGHANDLER" && break
15399 done
15400 
15401 
15402 
15403 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15404 
15405 
15406   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15407   if test "x$MAKE" != x; then
15408     # User has supplied a make, test it.
15409     if test ! -f "$MAKE"; then
15410       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15411     fi
15412 
15413   MAKE_CANDIDATE=""$MAKE""
15414   DESCRIPTION="user supplied MAKE=$MAKE"
15415   if test "x$MAKE_CANDIDATE" != x; then
15416     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15417 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15418     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15419     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15420     if test "x$IS_GNU_MAKE" = x; then
15421       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15422 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15423     else
15424       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15425       if test "x$IS_MODERN_MAKE" = x; then
15426         { $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
15427 $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;}
15428       else
15429         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15430           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15431             MAKE_EXPECTED_ENV='cygwin'
15432           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15433             MAKE_EXPECTED_ENV='msys'
15434           else
15435             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15436           fi
15437           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15438           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15439         else
15440           # Not relevant for non-Windows
15441           IS_MAKE_CORRECT_ENV=true
15442         fi
15443         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15444           { $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
15445 $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;}
15446         else
15447           FOUND_MAKE=$MAKE_CANDIDATE
15448 
15449   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15450 
15451   # First separate the path from the arguments. This will split at the first
15452   # space.
15453   complete="$FOUND_MAKE"
15454   path="${complete%% *}"
15455   tmp="$complete EOL"
15456   arguments="${tmp#* }"
15457 
15458   # Input might be given as Windows format, start by converting to
15459   # unix format.
15460   new_path=`$CYGPATH -u "$path"`
15461 
15462   # Now try to locate executable using which
15463   new_path=`$WHICH "$new_path" 2> /dev/null`
15464   # bat and cmd files are not always considered executable in cygwin causing which
15465   # to not find them
15466   if test "x$new_path" = x \
15467       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15468       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15469     new_path=`$CYGPATH -u "$path"`
15470   fi
15471   if test "x$new_path" = x; then
15472     # Oops. Which didn't find the executable.
15473     # The splitting of arguments from the executable at a space might have been incorrect,
15474     # since paths with space are more likely in Windows. Give it another try with the whole
15475     # argument.
15476     path="$complete"
15477     arguments="EOL"
15478     new_path=`$CYGPATH -u "$path"`
15479     new_path=`$WHICH "$new_path" 2> /dev/null`
15480     # bat and cmd files are not always considered executable in cygwin causing which
15481     # to not find them
15482     if test "x$new_path" = x \
15483         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15484         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15485       new_path=`$CYGPATH -u "$path"`
15486     fi
15487     if test "x$new_path" = x; then
15488       # It's still not found. Now this is an unrecoverable error.
15489       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15490 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15491       has_space=`$ECHO "$complete" | $GREP " "`
15492       if test "x$has_space" != x; then
15493         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15494 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15495       fi
15496       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15497     fi
15498   fi
15499 
15500   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15501   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15502   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15503   # "foo.exe" is OK but "foo" is an error.
15504   #
15505   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15506   # It is also a way to make sure we got the proper file name for the real test later on.
15507   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15508   if test "x$test_shortpath" = x; then
15509     # Short path failed, file does not exist as specified.
15510     # Try adding .exe or .cmd
15511     if test -f "${new_path}.exe"; then
15512       input_to_shortpath="${new_path}.exe"
15513     elif test -f "${new_path}.cmd"; then
15514       input_to_shortpath="${new_path}.cmd"
15515     else
15516       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15517 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15518       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15519 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15520       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15521     fi
15522   else
15523     input_to_shortpath="$new_path"
15524   fi
15525 
15526   # Call helper function which possibly converts this using DOS-style short mode.
15527   # If so, the updated path is stored in $new_path.
15528   new_path="$input_to_shortpath"
15529 
15530   input_path="$input_to_shortpath"
15531   # Check if we need to convert this using DOS-style short mode. If the path
15532   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15533   # take no chances and rewrite it.
15534   # Note: m4 eats our [], so we need to use [ and ] instead.
15535   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15536   if test "x$has_forbidden_chars" != x; then
15537     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15538     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15539     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15540     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15541       # Going to short mode and back again did indeed matter. Since short mode is
15542       # case insensitive, let's make it lowercase to improve readability.
15543       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15544       # Now convert it back to Unix-style (cygpath)
15545       input_path=`$CYGPATH -u "$shortmode_path"`
15546       new_path="$input_path"
15547     fi
15548   fi
15549 
15550   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15551   if test "x$test_cygdrive_prefix" = x; then
15552     # As a simple fix, exclude /usr/bin since it's not a real path.
15553     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15554       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15555       # a path prefixed by /cygdrive for fixpath to work.
15556       new_path="$CYGWIN_ROOT_PATH$input_path"
15557     fi
15558   fi
15559 
15560   # remove trailing .exe if any
15561   new_path="${new_path/%.exe/}"
15562 
15563   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15564 
15565   # First separate the path from the arguments. This will split at the first
15566   # space.
15567   complete="$FOUND_MAKE"
15568   path="${complete%% *}"
15569   tmp="$complete EOL"
15570   arguments="${tmp#* }"
15571 
15572   # Input might be given as Windows format, start by converting to
15573   # unix format.
15574   new_path="$path"
15575 
15576   windows_path="$new_path"
15577   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15578     unix_path=`$CYGPATH -u "$windows_path"`
15579     new_path="$unix_path"
15580   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15581     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15582     new_path="$unix_path"
15583   fi
15584 
15585 
15586   # Now try to locate executable using which
15587   new_path=`$WHICH "$new_path" 2> /dev/null`
15588 
15589   if test "x$new_path" = x; then
15590     # Oops. Which didn't find the executable.
15591     # The splitting of arguments from the executable at a space might have been incorrect,
15592     # since paths with space are more likely in Windows. Give it another try with the whole
15593     # argument.
15594     path="$complete"
15595     arguments="EOL"
15596     new_path="$path"
15597 
15598   windows_path="$new_path"
15599   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15600     unix_path=`$CYGPATH -u "$windows_path"`
15601     new_path="$unix_path"
15602   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15603     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15604     new_path="$unix_path"
15605   fi
15606 
15607 
15608     new_path=`$WHICH "$new_path" 2> /dev/null`
15609     # bat and cmd files are not always considered executable in MSYS causing which
15610     # to not find them
15611     if test "x$new_path" = x \
15612         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15613         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15614       new_path="$path"
15615 
15616   windows_path="$new_path"
15617   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15618     unix_path=`$CYGPATH -u "$windows_path"`
15619     new_path="$unix_path"
15620   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15621     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15622     new_path="$unix_path"
15623   fi
15624 
15625     fi
15626 
15627     if test "x$new_path" = x; then
15628       # It's still not found. Now this is an unrecoverable error.
15629       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15630 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15631       has_space=`$ECHO "$complete" | $GREP " "`
15632       if test "x$has_space" != x; then
15633         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15634 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15635       fi
15636       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15637     fi
15638   fi
15639 
15640   # Now new_path has a complete unix path to the binary
15641   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15642     # Keep paths in /bin as-is, but remove trailing .exe if any
15643     new_path="${new_path/%.exe/}"
15644     # Do not save /bin paths to all_fixpath_prefixes!
15645   else
15646     # Not in mixed or Windows style, start by that.
15647     new_path=`cmd //c echo $new_path`
15648 
15649   input_path="$new_path"
15650   # Check if we need to convert this using DOS-style short mode. If the path
15651   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15652   # take no chances and rewrite it.
15653   # Note: m4 eats our [], so we need to use [ and ] instead.
15654   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15655   if test "x$has_forbidden_chars" != x; then
15656     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15657     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15658   fi
15659 
15660     # Output is in $new_path
15661 
15662   windows_path="$new_path"
15663   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15664     unix_path=`$CYGPATH -u "$windows_path"`
15665     new_path="$unix_path"
15666   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15667     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15668     new_path="$unix_path"
15669   fi
15670 
15671     # remove trailing .exe if any
15672     new_path="${new_path/%.exe/}"
15673 
15674     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15675     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15676   fi
15677 
15678   else
15679     # We're on a posix platform. Hooray! :)
15680     # First separate the path from the arguments. This will split at the first
15681     # space.
15682     complete="$FOUND_MAKE"
15683     path="${complete%% *}"
15684     tmp="$complete EOL"
15685     arguments="${tmp#* }"
15686 
15687     # Cannot rely on the command "which" here since it doesn't always work.
15688     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15689     if test -z "$is_absolute_path"; then
15690       # Path to executable is not absolute. Find it.
15691       IFS_save="$IFS"
15692       IFS=:
15693       for p in $PATH; do
15694         if test -f "$p/$path" && test -x "$p/$path"; then
15695           new_path="$p/$path"
15696           break
15697         fi
15698       done
15699       IFS="$IFS_save"
15700     else
15701       # This is an absolute path, we can use it without further modifications.
15702       new_path="$path"
15703     fi
15704 
15705     if test "x$new_path" = x; then
15706       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15707 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15708       has_space=`$ECHO "$complete" | $GREP " "`
15709       if test "x$has_space" != x; then
15710         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15711 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15712       fi
15713       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15714     fi
15715   fi
15716 
15717   # Now join together the path and the arguments once again
15718   if test "x$arguments" != xEOL; then
15719     new_complete="$new_path ${arguments% *}"
15720   else
15721     new_complete="$new_path"
15722   fi
15723 
15724   if test "x$complete" != "x$new_complete"; then
15725     FOUND_MAKE="$new_complete"
15726     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15727 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15728   fi
15729 
15730         fi
15731       fi
15732     fi
15733   fi
15734 
15735     if test "x$FOUND_MAKE" = x; then
15736       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15737     fi
15738   else
15739     # Try our hardest to locate a correct version of GNU make
15740     for ac_prog in gmake
15741 do
15742   # Extract the first word of "$ac_prog", so it can be a program name with args.
15743 set dummy $ac_prog; ac_word=$2
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15745 $as_echo_n "checking for $ac_word... " >&6; }
15746 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15747   $as_echo_n "(cached) " >&6
15748 else
15749   case $CHECK_GMAKE in
15750   [\\/]* | ?:[\\/]*)
15751   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15752   ;;
15753   *)
15754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15755 for as_dir in $PATH
15756 do
15757   IFS=$as_save_IFS
15758   test -z "$as_dir" && as_dir=.
15759     for ac_exec_ext in '' $ac_executable_extensions; do
15760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15761     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15763     break 2
15764   fi
15765 done
15766   done
15767 IFS=$as_save_IFS
15768 
15769   ;;
15770 esac
15771 fi
15772 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15773 if test -n "$CHECK_GMAKE"; then
15774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15775 $as_echo "$CHECK_GMAKE" >&6; }
15776 else
15777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15779 fi
15780 
15781 
15782   test -n "$CHECK_GMAKE" && break
15783 done
15784 
15785 
15786   MAKE_CANDIDATE=""$CHECK_GMAKE""
15787   DESCRIPTION="gmake in PATH"
15788   if test "x$MAKE_CANDIDATE" != x; then
15789     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15790 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15791     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15792     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15793     if test "x$IS_GNU_MAKE" = x; then
15794       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15795 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15796     else
15797       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15798       if test "x$IS_MODERN_MAKE" = x; then
15799         { $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
15800 $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;}
15801       else
15802         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15803           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15804             MAKE_EXPECTED_ENV='cygwin'
15805           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15806             MAKE_EXPECTED_ENV='msys'
15807           else
15808             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15809           fi
15810           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15811           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15812         else
15813           # Not relevant for non-Windows
15814           IS_MAKE_CORRECT_ENV=true
15815         fi
15816         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15817           { $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
15818 $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;}
15819         else
15820           FOUND_MAKE=$MAKE_CANDIDATE
15821 
15822   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15823 
15824   # First separate the path from the arguments. This will split at the first
15825   # space.
15826   complete="$FOUND_MAKE"
15827   path="${complete%% *}"
15828   tmp="$complete EOL"
15829   arguments="${tmp#* }"
15830 
15831   # Input might be given as Windows format, start by converting to
15832   # unix format.
15833   new_path=`$CYGPATH -u "$path"`
15834 
15835   # Now try to locate executable using which
15836   new_path=`$WHICH "$new_path" 2> /dev/null`
15837   # bat and cmd files are not always considered executable in cygwin causing which
15838   # to not find them
15839   if test "x$new_path" = x \
15840       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15841       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15842     new_path=`$CYGPATH -u "$path"`
15843   fi
15844   if test "x$new_path" = x; then
15845     # Oops. Which didn't find the executable.
15846     # The splitting of arguments from the executable at a space might have been incorrect,
15847     # since paths with space are more likely in Windows. Give it another try with the whole
15848     # argument.
15849     path="$complete"
15850     arguments="EOL"
15851     new_path=`$CYGPATH -u "$path"`
15852     new_path=`$WHICH "$new_path" 2> /dev/null`
15853     # bat and cmd files are not always considered executable in cygwin causing which
15854     # to not find them
15855     if test "x$new_path" = x \
15856         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15857         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15858       new_path=`$CYGPATH -u "$path"`
15859     fi
15860     if test "x$new_path" = x; then
15861       # It's still not found. Now this is an unrecoverable error.
15862       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15863 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15864       has_space=`$ECHO "$complete" | $GREP " "`
15865       if test "x$has_space" != x; then
15866         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15867 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15868       fi
15869       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15870     fi
15871   fi
15872 
15873   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15874   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15875   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15876   # "foo.exe" is OK but "foo" is an error.
15877   #
15878   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15879   # It is also a way to make sure we got the proper file name for the real test later on.
15880   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15881   if test "x$test_shortpath" = x; then
15882     # Short path failed, file does not exist as specified.
15883     # Try adding .exe or .cmd
15884     if test -f "${new_path}.exe"; then
15885       input_to_shortpath="${new_path}.exe"
15886     elif test -f "${new_path}.cmd"; then
15887       input_to_shortpath="${new_path}.cmd"
15888     else
15889       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15890 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15891       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15892 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15893       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15894     fi
15895   else
15896     input_to_shortpath="$new_path"
15897   fi
15898 
15899   # Call helper function which possibly converts this using DOS-style short mode.
15900   # If so, the updated path is stored in $new_path.
15901   new_path="$input_to_shortpath"
15902 
15903   input_path="$input_to_shortpath"
15904   # Check if we need to convert this using DOS-style short mode. If the path
15905   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15906   # take no chances and rewrite it.
15907   # Note: m4 eats our [], so we need to use [ and ] instead.
15908   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15909   if test "x$has_forbidden_chars" != x; then
15910     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15911     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15912     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15913     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15914       # Going to short mode and back again did indeed matter. Since short mode is
15915       # case insensitive, let's make it lowercase to improve readability.
15916       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15917       # Now convert it back to Unix-style (cygpath)
15918       input_path=`$CYGPATH -u "$shortmode_path"`
15919       new_path="$input_path"
15920     fi
15921   fi
15922 
15923   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15924   if test "x$test_cygdrive_prefix" = x; then
15925     # As a simple fix, exclude /usr/bin since it's not a real path.
15926     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15927       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15928       # a path prefixed by /cygdrive for fixpath to work.
15929       new_path="$CYGWIN_ROOT_PATH$input_path"
15930     fi
15931   fi
15932 
15933   # remove trailing .exe if any
15934   new_path="${new_path/%.exe/}"
15935 
15936   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15937 
15938   # First separate the path from the arguments. This will split at the first
15939   # space.
15940   complete="$FOUND_MAKE"
15941   path="${complete%% *}"
15942   tmp="$complete EOL"
15943   arguments="${tmp#* }"
15944 
15945   # Input might be given as Windows format, start by converting to
15946   # unix format.
15947   new_path="$path"
15948 
15949   windows_path="$new_path"
15950   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15951     unix_path=`$CYGPATH -u "$windows_path"`
15952     new_path="$unix_path"
15953   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15954     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15955     new_path="$unix_path"
15956   fi
15957 
15958 
15959   # Now try to locate executable using which
15960   new_path=`$WHICH "$new_path" 2> /dev/null`
15961 
15962   if test "x$new_path" = x; then
15963     # Oops. Which didn't find the executable.
15964     # The splitting of arguments from the executable at a space might have been incorrect,
15965     # since paths with space are more likely in Windows. Give it another try with the whole
15966     # argument.
15967     path="$complete"
15968     arguments="EOL"
15969     new_path="$path"
15970 
15971   windows_path="$new_path"
15972   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15973     unix_path=`$CYGPATH -u "$windows_path"`
15974     new_path="$unix_path"
15975   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15976     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15977     new_path="$unix_path"
15978   fi
15979 
15980 
15981     new_path=`$WHICH "$new_path" 2> /dev/null`
15982     # bat and cmd files are not always considered executable in MSYS causing which
15983     # to not find them
15984     if test "x$new_path" = x \
15985         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15986         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15987       new_path="$path"
15988 
15989   windows_path="$new_path"
15990   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15991     unix_path=`$CYGPATH -u "$windows_path"`
15992     new_path="$unix_path"
15993   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15994     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15995     new_path="$unix_path"
15996   fi
15997 
15998     fi
15999 
16000     if test "x$new_path" = x; then
16001       # It's still not found. Now this is an unrecoverable error.
16002       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16003 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16004       has_space=`$ECHO "$complete" | $GREP " "`
16005       if test "x$has_space" != x; then
16006         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16007 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16008       fi
16009       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16010     fi
16011   fi
16012 
16013   # Now new_path has a complete unix path to the binary
16014   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16015     # Keep paths in /bin as-is, but remove trailing .exe if any
16016     new_path="${new_path/%.exe/}"
16017     # Do not save /bin paths to all_fixpath_prefixes!
16018   else
16019     # Not in mixed or Windows style, start by that.
16020     new_path=`cmd //c echo $new_path`
16021 
16022   input_path="$new_path"
16023   # Check if we need to convert this using DOS-style short mode. If the path
16024   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16025   # take no chances and rewrite it.
16026   # Note: m4 eats our [], so we need to use [ and ] instead.
16027   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16028   if test "x$has_forbidden_chars" != x; then
16029     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16030     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16031   fi
16032 
16033     # Output is in $new_path
16034 
16035   windows_path="$new_path"
16036   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16037     unix_path=`$CYGPATH -u "$windows_path"`
16038     new_path="$unix_path"
16039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16040     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16041     new_path="$unix_path"
16042   fi
16043 
16044     # remove trailing .exe if any
16045     new_path="${new_path/%.exe/}"
16046 
16047     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16048     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16049   fi
16050 
16051   else
16052     # We're on a posix platform. Hooray! :)
16053     # First separate the path from the arguments. This will split at the first
16054     # space.
16055     complete="$FOUND_MAKE"
16056     path="${complete%% *}"
16057     tmp="$complete EOL"
16058     arguments="${tmp#* }"
16059 
16060     # Cannot rely on the command "which" here since it doesn't always work.
16061     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16062     if test -z "$is_absolute_path"; then
16063       # Path to executable is not absolute. Find it.
16064       IFS_save="$IFS"
16065       IFS=:
16066       for p in $PATH; do
16067         if test -f "$p/$path" && test -x "$p/$path"; then
16068           new_path="$p/$path"
16069           break
16070         fi
16071       done
16072       IFS="$IFS_save"
16073     else
16074       # This is an absolute path, we can use it without further modifications.
16075       new_path="$path"
16076     fi
16077 
16078     if test "x$new_path" = x; then
16079       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16080 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16081       has_space=`$ECHO "$complete" | $GREP " "`
16082       if test "x$has_space" != x; then
16083         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16084 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16085       fi
16086       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16087     fi
16088   fi
16089 
16090   # Now join together the path and the arguments once again
16091   if test "x$arguments" != xEOL; then
16092     new_complete="$new_path ${arguments% *}"
16093   else
16094     new_complete="$new_path"
16095   fi
16096 
16097   if test "x$complete" != "x$new_complete"; then
16098     FOUND_MAKE="$new_complete"
16099     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16100 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16101   fi
16102 
16103         fi
16104       fi
16105     fi
16106   fi
16107 
16108 
16109     if test "x$FOUND_MAKE" = x; then
16110       for ac_prog in make
16111 do
16112   # Extract the first word of "$ac_prog", so it can be a program name with args.
16113 set dummy $ac_prog; ac_word=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16117   $as_echo_n "(cached) " >&6
16118 else
16119   case $CHECK_MAKE in
16120   [\\/]* | ?:[\\/]*)
16121   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16122   ;;
16123   *)
16124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127   IFS=$as_save_IFS
16128   test -z "$as_dir" && as_dir=.
16129     for ac_exec_ext in '' $ac_executable_extensions; do
16130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16131     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16133     break 2
16134   fi
16135 done
16136   done
16137 IFS=$as_save_IFS
16138 
16139   ;;
16140 esac
16141 fi
16142 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16143 if test -n "$CHECK_MAKE"; then
16144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16145 $as_echo "$CHECK_MAKE" >&6; }
16146 else
16147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16148 $as_echo "no" >&6; }
16149 fi
16150 
16151 
16152   test -n "$CHECK_MAKE" && break
16153 done
16154 
16155 
16156   MAKE_CANDIDATE=""$CHECK_MAKE""
16157   DESCRIPTION="make in PATH"
16158   if test "x$MAKE_CANDIDATE" != x; then
16159     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16160 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16161     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16162     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16163     if test "x$IS_GNU_MAKE" = x; then
16164       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16165 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16166     else
16167       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16168       if test "x$IS_MODERN_MAKE" = x; then
16169         { $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
16170 $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;}
16171       else
16172         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16173           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16174             MAKE_EXPECTED_ENV='cygwin'
16175           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16176             MAKE_EXPECTED_ENV='msys'
16177           else
16178             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16179           fi
16180           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16181           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16182         else
16183           # Not relevant for non-Windows
16184           IS_MAKE_CORRECT_ENV=true
16185         fi
16186         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16187           { $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
16188 $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;}
16189         else
16190           FOUND_MAKE=$MAKE_CANDIDATE
16191 
16192   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16193 
16194   # First separate the path from the arguments. This will split at the first
16195   # space.
16196   complete="$FOUND_MAKE"
16197   path="${complete%% *}"
16198   tmp="$complete EOL"
16199   arguments="${tmp#* }"
16200 
16201   # Input might be given as Windows format, start by converting to
16202   # unix format.
16203   new_path=`$CYGPATH -u "$path"`
16204 
16205   # Now try to locate executable using which
16206   new_path=`$WHICH "$new_path" 2> /dev/null`
16207   # bat and cmd files are not always considered executable in cygwin causing which
16208   # to not find them
16209   if test "x$new_path" = x \
16210       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16211       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16212     new_path=`$CYGPATH -u "$path"`
16213   fi
16214   if test "x$new_path" = x; then
16215     # Oops. Which didn't find the executable.
16216     # The splitting of arguments from the executable at a space might have been incorrect,
16217     # since paths with space are more likely in Windows. Give it another try with the whole
16218     # argument.
16219     path="$complete"
16220     arguments="EOL"
16221     new_path=`$CYGPATH -u "$path"`
16222     new_path=`$WHICH "$new_path" 2> /dev/null`
16223     # bat and cmd files are not always considered executable in cygwin causing which
16224     # to not find them
16225     if test "x$new_path" = x \
16226         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16227         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16228       new_path=`$CYGPATH -u "$path"`
16229     fi
16230     if test "x$new_path" = x; then
16231       # It's still not found. Now this is an unrecoverable error.
16232       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16233 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16234       has_space=`$ECHO "$complete" | $GREP " "`
16235       if test "x$has_space" != x; then
16236         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16238       fi
16239       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16240     fi
16241   fi
16242 
16243   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16244   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16245   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16246   # "foo.exe" is OK but "foo" is an error.
16247   #
16248   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16249   # It is also a way to make sure we got the proper file name for the real test later on.
16250   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16251   if test "x$test_shortpath" = x; then
16252     # Short path failed, file does not exist as specified.
16253     # Try adding .exe or .cmd
16254     if test -f "${new_path}.exe"; then
16255       input_to_shortpath="${new_path}.exe"
16256     elif test -f "${new_path}.cmd"; then
16257       input_to_shortpath="${new_path}.cmd"
16258     else
16259       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16260 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16261       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16262 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16263       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16264     fi
16265   else
16266     input_to_shortpath="$new_path"
16267   fi
16268 
16269   # Call helper function which possibly converts this using DOS-style short mode.
16270   # If so, the updated path is stored in $new_path.
16271   new_path="$input_to_shortpath"
16272 
16273   input_path="$input_to_shortpath"
16274   # Check if we need to convert this using DOS-style short mode. If the path
16275   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16276   # take no chances and rewrite it.
16277   # Note: m4 eats our [], so we need to use [ and ] instead.
16278   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16279   if test "x$has_forbidden_chars" != x; then
16280     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16281     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16282     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16283     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16284       # Going to short mode and back again did indeed matter. Since short mode is
16285       # case insensitive, let's make it lowercase to improve readability.
16286       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16287       # Now convert it back to Unix-style (cygpath)
16288       input_path=`$CYGPATH -u "$shortmode_path"`
16289       new_path="$input_path"
16290     fi
16291   fi
16292 
16293   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16294   if test "x$test_cygdrive_prefix" = x; then
16295     # As a simple fix, exclude /usr/bin since it's not a real path.
16296     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16297       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16298       # a path prefixed by /cygdrive for fixpath to work.
16299       new_path="$CYGWIN_ROOT_PATH$input_path"
16300     fi
16301   fi
16302 
16303   # remove trailing .exe if any
16304   new_path="${new_path/%.exe/}"
16305 
16306   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16307 
16308   # First separate the path from the arguments. This will split at the first
16309   # space.
16310   complete="$FOUND_MAKE"
16311   path="${complete%% *}"
16312   tmp="$complete EOL"
16313   arguments="${tmp#* }"
16314 
16315   # Input might be given as Windows format, start by converting to
16316   # unix format.
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   # Now try to locate executable using which
16330   new_path=`$WHICH "$new_path" 2> /dev/null`
16331 
16332   if test "x$new_path" = x; then
16333     # Oops. Which didn't find the executable.
16334     # The splitting of arguments from the executable at a space might have been incorrect,
16335     # since paths with space are more likely in Windows. Give it another try with the whole
16336     # argument.
16337     path="$complete"
16338     arguments="EOL"
16339     new_path="$path"
16340 
16341   windows_path="$new_path"
16342   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16343     unix_path=`$CYGPATH -u "$windows_path"`
16344     new_path="$unix_path"
16345   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16346     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16347     new_path="$unix_path"
16348   fi
16349 
16350 
16351     new_path=`$WHICH "$new_path" 2> /dev/null`
16352     # bat and cmd files are not always considered executable in MSYS causing which
16353     # to not find them
16354     if test "x$new_path" = x \
16355         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16356         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16357       new_path="$path"
16358 
16359   windows_path="$new_path"
16360   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16361     unix_path=`$CYGPATH -u "$windows_path"`
16362     new_path="$unix_path"
16363   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16364     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16365     new_path="$unix_path"
16366   fi
16367 
16368     fi
16369 
16370     if test "x$new_path" = x; then
16371       # It's still not found. Now this is an unrecoverable error.
16372       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16373 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16374       has_space=`$ECHO "$complete" | $GREP " "`
16375       if test "x$has_space" != x; then
16376         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16377 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16378       fi
16379       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16380     fi
16381   fi
16382 
16383   # Now new_path has a complete unix path to the binary
16384   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16385     # Keep paths in /bin as-is, but remove trailing .exe if any
16386     new_path="${new_path/%.exe/}"
16387     # Do not save /bin paths to all_fixpath_prefixes!
16388   else
16389     # Not in mixed or Windows style, start by that.
16390     new_path=`cmd //c echo $new_path`
16391 
16392   input_path="$new_path"
16393   # Check if we need to convert this using DOS-style short mode. If the path
16394   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16395   # take no chances and rewrite it.
16396   # Note: m4 eats our [], so we need to use [ and ] instead.
16397   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16398   if test "x$has_forbidden_chars" != x; then
16399     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16400     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16401   fi
16402 
16403     # Output is in $new_path
16404 
16405   windows_path="$new_path"
16406   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16407     unix_path=`$CYGPATH -u "$windows_path"`
16408     new_path="$unix_path"
16409   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16410     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16411     new_path="$unix_path"
16412   fi
16413 
16414     # remove trailing .exe if any
16415     new_path="${new_path/%.exe/}"
16416 
16417     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16418     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16419   fi
16420 
16421   else
16422     # We're on a posix platform. Hooray! :)
16423     # First separate the path from the arguments. This will split at the first
16424     # space.
16425     complete="$FOUND_MAKE"
16426     path="${complete%% *}"
16427     tmp="$complete EOL"
16428     arguments="${tmp#* }"
16429 
16430     # Cannot rely on the command "which" here since it doesn't always work.
16431     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16432     if test -z "$is_absolute_path"; then
16433       # Path to executable is not absolute. Find it.
16434       IFS_save="$IFS"
16435       IFS=:
16436       for p in $PATH; do
16437         if test -f "$p/$path" && test -x "$p/$path"; then
16438           new_path="$p/$path"
16439           break
16440         fi
16441       done
16442       IFS="$IFS_save"
16443     else
16444       # This is an absolute path, we can use it without further modifications.
16445       new_path="$path"
16446     fi
16447 
16448     if test "x$new_path" = x; then
16449       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16450 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16451       has_space=`$ECHO "$complete" | $GREP " "`
16452       if test "x$has_space" != x; then
16453         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16454 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16455       fi
16456       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16457     fi
16458   fi
16459 
16460   # Now join together the path and the arguments once again
16461   if test "x$arguments" != xEOL; then
16462     new_complete="$new_path ${arguments% *}"
16463   else
16464     new_complete="$new_path"
16465   fi
16466 
16467   if test "x$complete" != "x$new_complete"; then
16468     FOUND_MAKE="$new_complete"
16469     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16470 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16471   fi
16472 
16473         fi
16474       fi
16475     fi
16476   fi
16477 
16478     fi
16479 
16480     if test "x$FOUND_MAKE" = x; then
16481       if test "x$TOOLCHAIN_PATH" != x; then
16482         # We have a toolchain path, check that as well before giving up.
16483         OLD_PATH=$PATH
16484         PATH=$TOOLCHAIN_PATH:$PATH
16485         for ac_prog in gmake
16486 do
16487   # Extract the first word of "$ac_prog", so it can be a program name with args.
16488 set dummy $ac_prog; ac_word=$2
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16490 $as_echo_n "checking for $ac_word... " >&6; }
16491 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16492   $as_echo_n "(cached) " >&6
16493 else
16494   case $CHECK_TOOLSDIR_GMAKE in
16495   [\\/]* | ?:[\\/]*)
16496   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16497   ;;
16498   *)
16499   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16500 for as_dir in $PATH
16501 do
16502   IFS=$as_save_IFS
16503   test -z "$as_dir" && as_dir=.
16504     for ac_exec_ext in '' $ac_executable_extensions; do
16505   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16506     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16507     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16508     break 2
16509   fi
16510 done
16511   done
16512 IFS=$as_save_IFS
16513 
16514   ;;
16515 esac
16516 fi
16517 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16518 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16520 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16521 else
16522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16523 $as_echo "no" >&6; }
16524 fi
16525 
16526 
16527   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16528 done
16529 
16530 
16531   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16532   DESCRIPTION="gmake in tools-dir"
16533   if test "x$MAKE_CANDIDATE" != x; then
16534     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16535 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16536     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16537     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16538     if test "x$IS_GNU_MAKE" = x; then
16539       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16540 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16541     else
16542       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16543       if test "x$IS_MODERN_MAKE" = x; then
16544         { $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
16545 $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;}
16546       else
16547         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16548           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16549             MAKE_EXPECTED_ENV='cygwin'
16550           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16551             MAKE_EXPECTED_ENV='msys'
16552           else
16553             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16554           fi
16555           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16556           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16557         else
16558           # Not relevant for non-Windows
16559           IS_MAKE_CORRECT_ENV=true
16560         fi
16561         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16562           { $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
16563 $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;}
16564         else
16565           FOUND_MAKE=$MAKE_CANDIDATE
16566 
16567   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16568 
16569   # First separate the path from the arguments. This will split at the first
16570   # space.
16571   complete="$FOUND_MAKE"
16572   path="${complete%% *}"
16573   tmp="$complete EOL"
16574   arguments="${tmp#* }"
16575 
16576   # Input might be given as Windows format, start by converting to
16577   # unix format.
16578   new_path=`$CYGPATH -u "$path"`
16579 
16580   # Now try to locate executable using which
16581   new_path=`$WHICH "$new_path" 2> /dev/null`
16582   # bat and cmd files are not always considered executable in cygwin causing which
16583   # to not find them
16584   if test "x$new_path" = x \
16585       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16586       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16587     new_path=`$CYGPATH -u "$path"`
16588   fi
16589   if test "x$new_path" = x; then
16590     # Oops. Which didn't find the executable.
16591     # The splitting of arguments from the executable at a space might have been incorrect,
16592     # since paths with space are more likely in Windows. Give it another try with the whole
16593     # argument.
16594     path="$complete"
16595     arguments="EOL"
16596     new_path=`$CYGPATH -u "$path"`
16597     new_path=`$WHICH "$new_path" 2> /dev/null`
16598     # bat and cmd files are not always considered executable in cygwin causing which
16599     # to not find them
16600     if test "x$new_path" = x \
16601         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16602         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16603       new_path=`$CYGPATH -u "$path"`
16604     fi
16605     if test "x$new_path" = x; then
16606       # It's still not found. Now this is an unrecoverable error.
16607       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16608 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16609       has_space=`$ECHO "$complete" | $GREP " "`
16610       if test "x$has_space" != x; then
16611         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16612 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16613       fi
16614       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16615     fi
16616   fi
16617 
16618   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16619   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16620   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16621   # "foo.exe" is OK but "foo" is an error.
16622   #
16623   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16624   # It is also a way to make sure we got the proper file name for the real test later on.
16625   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16626   if test "x$test_shortpath" = x; then
16627     # Short path failed, file does not exist as specified.
16628     # Try adding .exe or .cmd
16629     if test -f "${new_path}.exe"; then
16630       input_to_shortpath="${new_path}.exe"
16631     elif test -f "${new_path}.cmd"; then
16632       input_to_shortpath="${new_path}.cmd"
16633     else
16634       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16635 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16636       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16637 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16638       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16639     fi
16640   else
16641     input_to_shortpath="$new_path"
16642   fi
16643 
16644   # Call helper function which possibly converts this using DOS-style short mode.
16645   # If so, the updated path is stored in $new_path.
16646   new_path="$input_to_shortpath"
16647 
16648   input_path="$input_to_shortpath"
16649   # Check if we need to convert this using DOS-style short mode. If the path
16650   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16651   # take no chances and rewrite it.
16652   # Note: m4 eats our [], so we need to use [ and ] instead.
16653   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16654   if test "x$has_forbidden_chars" != x; then
16655     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16656     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16657     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16658     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16659       # Going to short mode and back again did indeed matter. Since short mode is
16660       # case insensitive, let's make it lowercase to improve readability.
16661       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16662       # Now convert it back to Unix-style (cygpath)
16663       input_path=`$CYGPATH -u "$shortmode_path"`
16664       new_path="$input_path"
16665     fi
16666   fi
16667 
16668   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16669   if test "x$test_cygdrive_prefix" = x; then
16670     # As a simple fix, exclude /usr/bin since it's not a real path.
16671     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16672       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16673       # a path prefixed by /cygdrive for fixpath to work.
16674       new_path="$CYGWIN_ROOT_PATH$input_path"
16675     fi
16676   fi
16677 
16678   # remove trailing .exe if any
16679   new_path="${new_path/%.exe/}"
16680 
16681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16682 
16683   # First separate the path from the arguments. This will split at the first
16684   # space.
16685   complete="$FOUND_MAKE"
16686   path="${complete%% *}"
16687   tmp="$complete EOL"
16688   arguments="${tmp#* }"
16689 
16690   # Input might be given as Windows format, start by converting to
16691   # unix format.
16692   new_path="$path"
16693 
16694   windows_path="$new_path"
16695   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16696     unix_path=`$CYGPATH -u "$windows_path"`
16697     new_path="$unix_path"
16698   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16699     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16700     new_path="$unix_path"
16701   fi
16702 
16703 
16704   # Now try to locate executable using which
16705   new_path=`$WHICH "$new_path" 2> /dev/null`
16706 
16707   if test "x$new_path" = x; then
16708     # Oops. Which didn't find the executable.
16709     # The splitting of arguments from the executable at a space might have been incorrect,
16710     # since paths with space are more likely in Windows. Give it another try with the whole
16711     # argument.
16712     path="$complete"
16713     arguments="EOL"
16714     new_path="$path"
16715 
16716   windows_path="$new_path"
16717   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16718     unix_path=`$CYGPATH -u "$windows_path"`
16719     new_path="$unix_path"
16720   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16721     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16722     new_path="$unix_path"
16723   fi
16724 
16725 
16726     new_path=`$WHICH "$new_path" 2> /dev/null`
16727     # bat and cmd files are not always considered executable in MSYS causing which
16728     # to not find them
16729     if test "x$new_path" = x \
16730         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16731         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16732       new_path="$path"
16733 
16734   windows_path="$new_path"
16735   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16736     unix_path=`$CYGPATH -u "$windows_path"`
16737     new_path="$unix_path"
16738   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16739     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16740     new_path="$unix_path"
16741   fi
16742 
16743     fi
16744 
16745     if test "x$new_path" = x; then
16746       # It's still not found. Now this is an unrecoverable error.
16747       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16748 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16749       has_space=`$ECHO "$complete" | $GREP " "`
16750       if test "x$has_space" != x; then
16751         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16752 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16753       fi
16754       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16755     fi
16756   fi
16757 
16758   # Now new_path has a complete unix path to the binary
16759   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16760     # Keep paths in /bin as-is, but remove trailing .exe if any
16761     new_path="${new_path/%.exe/}"
16762     # Do not save /bin paths to all_fixpath_prefixes!
16763   else
16764     # Not in mixed or Windows style, start by that.
16765     new_path=`cmd //c echo $new_path`
16766 
16767   input_path="$new_path"
16768   # Check if we need to convert this using DOS-style short mode. If the path
16769   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16770   # take no chances and rewrite it.
16771   # Note: m4 eats our [], so we need to use [ and ] instead.
16772   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16773   if test "x$has_forbidden_chars" != x; then
16774     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16775     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16776   fi
16777 
16778     # Output is in $new_path
16779 
16780   windows_path="$new_path"
16781   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16782     unix_path=`$CYGPATH -u "$windows_path"`
16783     new_path="$unix_path"
16784   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16785     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16786     new_path="$unix_path"
16787   fi
16788 
16789     # remove trailing .exe if any
16790     new_path="${new_path/%.exe/}"
16791 
16792     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16793     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16794   fi
16795 
16796   else
16797     # We're on a posix platform. Hooray! :)
16798     # First separate the path from the arguments. This will split at the first
16799     # space.
16800     complete="$FOUND_MAKE"
16801     path="${complete%% *}"
16802     tmp="$complete EOL"
16803     arguments="${tmp#* }"
16804 
16805     # Cannot rely on the command "which" here since it doesn't always work.
16806     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16807     if test -z "$is_absolute_path"; then
16808       # Path to executable is not absolute. Find it.
16809       IFS_save="$IFS"
16810       IFS=:
16811       for p in $PATH; do
16812         if test -f "$p/$path" && test -x "$p/$path"; then
16813           new_path="$p/$path"
16814           break
16815         fi
16816       done
16817       IFS="$IFS_save"
16818     else
16819       # This is an absolute path, we can use it without further modifications.
16820       new_path="$path"
16821     fi
16822 
16823     if test "x$new_path" = x; then
16824       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16825 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16826       has_space=`$ECHO "$complete" | $GREP " "`
16827       if test "x$has_space" != x; then
16828         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16829 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16830       fi
16831       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16832     fi
16833   fi
16834 
16835   # Now join together the path and the arguments once again
16836   if test "x$arguments" != xEOL; then
16837     new_complete="$new_path ${arguments% *}"
16838   else
16839     new_complete="$new_path"
16840   fi
16841 
16842   if test "x$complete" != "x$new_complete"; then
16843     FOUND_MAKE="$new_complete"
16844     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16845 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16846   fi
16847 
16848         fi
16849       fi
16850     fi
16851   fi
16852 
16853         if test "x$FOUND_MAKE" = x; then
16854           for ac_prog in make
16855 do
16856   # Extract the first word of "$ac_prog", so it can be a program name with args.
16857 set dummy $ac_prog; ac_word=$2
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16859 $as_echo_n "checking for $ac_word... " >&6; }
16860 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16861   $as_echo_n "(cached) " >&6
16862 else
16863   case $CHECK_TOOLSDIR_MAKE in
16864   [\\/]* | ?:[\\/]*)
16865   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16866   ;;
16867   *)
16868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16869 for as_dir in $PATH
16870 do
16871   IFS=$as_save_IFS
16872   test -z "$as_dir" && as_dir=.
16873     for ac_exec_ext in '' $ac_executable_extensions; do
16874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16875     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16877     break 2
16878   fi
16879 done
16880   done
16881 IFS=$as_save_IFS
16882 
16883   ;;
16884 esac
16885 fi
16886 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16887 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16889 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16890 else
16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16892 $as_echo "no" >&6; }
16893 fi
16894 
16895 
16896   test -n "$CHECK_TOOLSDIR_MAKE" && break
16897 done
16898 
16899 
16900   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16901   DESCRIPTION="make in tools-dir"
16902   if test "x$MAKE_CANDIDATE" != x; then
16903     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16904 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16905     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16906     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16907     if test "x$IS_GNU_MAKE" = x; then
16908       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16909 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16910     else
16911       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16912       if test "x$IS_MODERN_MAKE" = x; then
16913         { $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
16914 $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;}
16915       else
16916         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16917           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16918             MAKE_EXPECTED_ENV='cygwin'
16919           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16920             MAKE_EXPECTED_ENV='msys'
16921           else
16922             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16923           fi
16924           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16925           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16926         else
16927           # Not relevant for non-Windows
16928           IS_MAKE_CORRECT_ENV=true
16929         fi
16930         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16931           { $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
16932 $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;}
16933         else
16934           FOUND_MAKE=$MAKE_CANDIDATE
16935 
16936   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16937 
16938   # First separate the path from the arguments. This will split at the first
16939   # space.
16940   complete="$FOUND_MAKE"
16941   path="${complete%% *}"
16942   tmp="$complete EOL"
16943   arguments="${tmp#* }"
16944 
16945   # Input might be given as Windows format, start by converting to
16946   # unix format.
16947   new_path=`$CYGPATH -u "$path"`
16948 
16949   # Now try to locate executable using which
16950   new_path=`$WHICH "$new_path" 2> /dev/null`
16951   # bat and cmd files are not always considered executable in cygwin causing which
16952   # to not find them
16953   if test "x$new_path" = x \
16954       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16955       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16956     new_path=`$CYGPATH -u "$path"`
16957   fi
16958   if test "x$new_path" = x; then
16959     # Oops. Which didn't find the executable.
16960     # The splitting of arguments from the executable at a space might have been incorrect,
16961     # since paths with space are more likely in Windows. Give it another try with the whole
16962     # argument.
16963     path="$complete"
16964     arguments="EOL"
16965     new_path=`$CYGPATH -u "$path"`
16966     new_path=`$WHICH "$new_path" 2> /dev/null`
16967     # bat and cmd files are not always considered executable in cygwin causing which
16968     # to not find them
16969     if test "x$new_path" = x \
16970         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16971         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16972       new_path=`$CYGPATH -u "$path"`
16973     fi
16974     if test "x$new_path" = x; then
16975       # It's still not found. Now this is an unrecoverable error.
16976       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16977 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16978       has_space=`$ECHO "$complete" | $GREP " "`
16979       if test "x$has_space" != x; then
16980         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16981 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16982       fi
16983       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16984     fi
16985   fi
16986 
16987   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16988   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16989   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16990   # "foo.exe" is OK but "foo" is an error.
16991   #
16992   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16993   # It is also a way to make sure we got the proper file name for the real test later on.
16994   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16995   if test "x$test_shortpath" = x; then
16996     # Short path failed, file does not exist as specified.
16997     # Try adding .exe or .cmd
16998     if test -f "${new_path}.exe"; then
16999       input_to_shortpath="${new_path}.exe"
17000     elif test -f "${new_path}.cmd"; then
17001       input_to_shortpath="${new_path}.cmd"
17002     else
17003       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17004 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17005       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17006 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17007       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17008     fi
17009   else
17010     input_to_shortpath="$new_path"
17011   fi
17012 
17013   # Call helper function which possibly converts this using DOS-style short mode.
17014   # If so, the updated path is stored in $new_path.
17015   new_path="$input_to_shortpath"
17016 
17017   input_path="$input_to_shortpath"
17018   # Check if we need to convert this using DOS-style short mode. If the path
17019   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17020   # take no chances and rewrite it.
17021   # Note: m4 eats our [], so we need to use [ and ] instead.
17022   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17023   if test "x$has_forbidden_chars" != x; then
17024     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17025     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17026     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17027     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17028       # Going to short mode and back again did indeed matter. Since short mode is
17029       # case insensitive, let's make it lowercase to improve readability.
17030       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17031       # Now convert it back to Unix-style (cygpath)
17032       input_path=`$CYGPATH -u "$shortmode_path"`
17033       new_path="$input_path"
17034     fi
17035   fi
17036 
17037   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17038   if test "x$test_cygdrive_prefix" = x; then
17039     # As a simple fix, exclude /usr/bin since it's not a real path.
17040     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17041       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17042       # a path prefixed by /cygdrive for fixpath to work.
17043       new_path="$CYGWIN_ROOT_PATH$input_path"
17044     fi
17045   fi
17046 
17047   # remove trailing .exe if any
17048   new_path="${new_path/%.exe/}"
17049 
17050   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17051 
17052   # First separate the path from the arguments. This will split at the first
17053   # space.
17054   complete="$FOUND_MAKE"
17055   path="${complete%% *}"
17056   tmp="$complete EOL"
17057   arguments="${tmp#* }"
17058 
17059   # Input might be given as Windows format, start by converting to
17060   # unix format.
17061   new_path="$path"
17062 
17063   windows_path="$new_path"
17064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17065     unix_path=`$CYGPATH -u "$windows_path"`
17066     new_path="$unix_path"
17067   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17068     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17069     new_path="$unix_path"
17070   fi
17071 
17072 
17073   # Now try to locate executable using which
17074   new_path=`$WHICH "$new_path" 2> /dev/null`
17075 
17076   if test "x$new_path" = x; then
17077     # Oops. Which didn't find the executable.
17078     # The splitting of arguments from the executable at a space might have been incorrect,
17079     # since paths with space are more likely in Windows. Give it another try with the whole
17080     # argument.
17081     path="$complete"
17082     arguments="EOL"
17083     new_path="$path"
17084 
17085   windows_path="$new_path"
17086   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17087     unix_path=`$CYGPATH -u "$windows_path"`
17088     new_path="$unix_path"
17089   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17090     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17091     new_path="$unix_path"
17092   fi
17093 
17094 
17095     new_path=`$WHICH "$new_path" 2> /dev/null`
17096     # bat and cmd files are not always considered executable in MSYS causing which
17097     # to not find them
17098     if test "x$new_path" = x \
17099         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17100         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17101       new_path="$path"
17102 
17103   windows_path="$new_path"
17104   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17105     unix_path=`$CYGPATH -u "$windows_path"`
17106     new_path="$unix_path"
17107   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17108     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17109     new_path="$unix_path"
17110   fi
17111 
17112     fi
17113 
17114     if test "x$new_path" = x; then
17115       # It's still not found. Now this is an unrecoverable error.
17116       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17117 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17118       has_space=`$ECHO "$complete" | $GREP " "`
17119       if test "x$has_space" != x; then
17120         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17121 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17122       fi
17123       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17124     fi
17125   fi
17126 
17127   # Now new_path has a complete unix path to the binary
17128   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17129     # Keep paths in /bin as-is, but remove trailing .exe if any
17130     new_path="${new_path/%.exe/}"
17131     # Do not save /bin paths to all_fixpath_prefixes!
17132   else
17133     # Not in mixed or Windows style, start by that.
17134     new_path=`cmd //c echo $new_path`
17135 
17136   input_path="$new_path"
17137   # Check if we need to convert this using DOS-style short mode. If the path
17138   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17139   # take no chances and rewrite it.
17140   # Note: m4 eats our [], so we need to use [ and ] instead.
17141   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17142   if test "x$has_forbidden_chars" != x; then
17143     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17144     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17145   fi
17146 
17147     # Output is in $new_path
17148 
17149   windows_path="$new_path"
17150   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17151     unix_path=`$CYGPATH -u "$windows_path"`
17152     new_path="$unix_path"
17153   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17154     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17155     new_path="$unix_path"
17156   fi
17157 
17158     # remove trailing .exe if any
17159     new_path="${new_path/%.exe/}"
17160 
17161     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17162     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17163   fi
17164 
17165   else
17166     # We're on a posix platform. Hooray! :)
17167     # First separate the path from the arguments. This will split at the first
17168     # space.
17169     complete="$FOUND_MAKE"
17170     path="${complete%% *}"
17171     tmp="$complete EOL"
17172     arguments="${tmp#* }"
17173 
17174     # Cannot rely on the command "which" here since it doesn't always work.
17175     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17176     if test -z "$is_absolute_path"; then
17177       # Path to executable is not absolute. Find it.
17178       IFS_save="$IFS"
17179       IFS=:
17180       for p in $PATH; do
17181         if test -f "$p/$path" && test -x "$p/$path"; then
17182           new_path="$p/$path"
17183           break
17184         fi
17185       done
17186       IFS="$IFS_save"
17187     else
17188       # This is an absolute path, we can use it without further modifications.
17189       new_path="$path"
17190     fi
17191 
17192     if test "x$new_path" = x; then
17193       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17194 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17195       has_space=`$ECHO "$complete" | $GREP " "`
17196       if test "x$has_space" != x; then
17197         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17198 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17199       fi
17200       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17201     fi
17202   fi
17203 
17204   # Now join together the path and the arguments once again
17205   if test "x$arguments" != xEOL; then
17206     new_complete="$new_path ${arguments% *}"
17207   else
17208     new_complete="$new_path"
17209   fi
17210 
17211   if test "x$complete" != "x$new_complete"; then
17212     FOUND_MAKE="$new_complete"
17213     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17214 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17215   fi
17216 
17217         fi
17218       fi
17219     fi
17220   fi
17221 
17222         fi
17223         PATH=$OLD_PATH
17224       fi
17225     fi
17226 
17227     if test "x$FOUND_MAKE" = x; then
17228       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
17229     fi
17230   fi
17231 
17232   MAKE=$FOUND_MAKE
17233 
17234   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17235 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17236 
17237 
17238 
17239   # Test if find supports -delete
17240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17241 $as_echo_n "checking if find supports -delete... " >&6; }
17242   FIND_DELETE="-delete"
17243 
17244   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17245 
17246   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17247 
17248   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17249   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17250     # No, it does not.
17251     rm $DELETEDIR/TestIfFindSupportsDelete
17252     FIND_DELETE="-exec rm \{\} \+"
17253     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17254 $as_echo "no" >&6; }
17255   else
17256     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17257 $as_echo "yes" >&6; }
17258   fi
17259   rmdir $DELETEDIR
17260 
17261 
17262 
17263   # These tools might not be installed by default,
17264   # need hint on how to install them.
17265 
17266 
17267 
17268   # Publish this variable in the help.
17269 
17270 
17271   if test "x$UNZIP" = x; then
17272     # The variable is not set by user, try to locate tool using the code snippet
17273     for ac_prog in unzip
17274 do
17275   # Extract the first word of "$ac_prog", so it can be a program name with args.
17276 set dummy $ac_prog; ac_word=$2
17277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17278 $as_echo_n "checking for $ac_word... " >&6; }
17279 if ${ac_cv_path_UNZIP+:} false; then :
17280   $as_echo_n "(cached) " >&6
17281 else
17282   case $UNZIP in
17283   [\\/]* | ?:[\\/]*)
17284   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17285   ;;
17286   *)
17287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17288 for as_dir in $PATH
17289 do
17290   IFS=$as_save_IFS
17291   test -z "$as_dir" && as_dir=.
17292     for ac_exec_ext in '' $ac_executable_extensions; do
17293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17294     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17296     break 2
17297   fi
17298 done
17299   done
17300 IFS=$as_save_IFS
17301 
17302   ;;
17303 esac
17304 fi
17305 UNZIP=$ac_cv_path_UNZIP
17306 if test -n "$UNZIP"; then
17307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17308 $as_echo "$UNZIP" >&6; }
17309 else
17310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17311 $as_echo "no" >&6; }
17312 fi
17313 
17314 
17315   test -n "$UNZIP" && break
17316 done
17317 
17318   else
17319     # The variable is set, but is it from the command line or the environment?
17320 
17321     # Try to remove the string !UNZIP! from our list.
17322     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17323     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17324       # If it failed, the variable was not from the command line. Ignore it,
17325       # but warn the user (except for BASH, which is always set by the calling BASH).
17326       if test "xUNZIP" != xBASH; then
17327         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17328 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17329       fi
17330       # Try to locate tool using the code snippet
17331       for ac_prog in unzip
17332 do
17333   # Extract the first word of "$ac_prog", so it can be a program name with args.
17334 set dummy $ac_prog; ac_word=$2
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17336 $as_echo_n "checking for $ac_word... " >&6; }
17337 if ${ac_cv_path_UNZIP+:} false; then :
17338   $as_echo_n "(cached) " >&6
17339 else
17340   case $UNZIP in
17341   [\\/]* | ?:[\\/]*)
17342   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17343   ;;
17344   *)
17345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17346 for as_dir in $PATH
17347 do
17348   IFS=$as_save_IFS
17349   test -z "$as_dir" && as_dir=.
17350     for ac_exec_ext in '' $ac_executable_extensions; do
17351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17352     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17354     break 2
17355   fi
17356 done
17357   done
17358 IFS=$as_save_IFS
17359 
17360   ;;
17361 esac
17362 fi
17363 UNZIP=$ac_cv_path_UNZIP
17364 if test -n "$UNZIP"; then
17365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17366 $as_echo "$UNZIP" >&6; }
17367 else
17368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17370 fi
17371 
17372 
17373   test -n "$UNZIP" && break
17374 done
17375 
17376     else
17377       # If it succeeded, then it was overridden by the user. We will use it
17378       # for the tool.
17379 
17380       # First remove it from the list of overridden variables, so we can test
17381       # for unknown variables in the end.
17382       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17383 
17384       # Check if the provided tool contains a complete path.
17385       tool_specified="$UNZIP"
17386       tool_basename="${tool_specified##*/}"
17387       if test "x$tool_basename" = "x$tool_specified"; then
17388         # A command without a complete path is provided, search $PATH.
17389         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17390 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17391         # Extract the first word of "$tool_basename", so it can be a program name with args.
17392 set dummy $tool_basename; ac_word=$2
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17394 $as_echo_n "checking for $ac_word... " >&6; }
17395 if ${ac_cv_path_UNZIP+:} false; then :
17396   $as_echo_n "(cached) " >&6
17397 else
17398   case $UNZIP in
17399   [\\/]* | ?:[\\/]*)
17400   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17401   ;;
17402   *)
17403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17404 for as_dir in $PATH
17405 do
17406   IFS=$as_save_IFS
17407   test -z "$as_dir" && as_dir=.
17408     for ac_exec_ext in '' $ac_executable_extensions; do
17409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17410     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17412     break 2
17413   fi
17414 done
17415   done
17416 IFS=$as_save_IFS
17417 
17418   ;;
17419 esac
17420 fi
17421 UNZIP=$ac_cv_path_UNZIP
17422 if test -n "$UNZIP"; then
17423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17424 $as_echo "$UNZIP" >&6; }
17425 else
17426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17427 $as_echo "no" >&6; }
17428 fi
17429 
17430 
17431         if test "x$UNZIP" = x; then
17432           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17433         fi
17434       else
17435         # Otherwise we believe it is a complete path. Use it as it is.
17436         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17437 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17438         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17439 $as_echo_n "checking for UNZIP... " >&6; }
17440         if test ! -x "$tool_specified"; then
17441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17442 $as_echo "not found" >&6; }
17443           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17444         fi
17445         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17446 $as_echo "$tool_specified" >&6; }
17447       fi
17448     fi
17449   fi
17450 
17451 
17452 
17453   if test "x$UNZIP" = x; then
17454     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17455   fi
17456 
17457 
17458 
17459 
17460 
17461   # Publish this variable in the help.
17462 
17463 
17464   if test "x$ZIP" = x; then
17465     # The variable is not set by user, try to locate tool using the code snippet
17466     for ac_prog in zip
17467 do
17468   # Extract the first word of "$ac_prog", so it can be a program name with args.
17469 set dummy $ac_prog; ac_word=$2
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17471 $as_echo_n "checking for $ac_word... " >&6; }
17472 if ${ac_cv_path_ZIP+:} false; then :
17473   $as_echo_n "(cached) " >&6
17474 else
17475   case $ZIP in
17476   [\\/]* | ?:[\\/]*)
17477   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17478   ;;
17479   *)
17480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17481 for as_dir in $PATH
17482 do
17483   IFS=$as_save_IFS
17484   test -z "$as_dir" && as_dir=.
17485     for ac_exec_ext in '' $ac_executable_extensions; do
17486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17487     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17489     break 2
17490   fi
17491 done
17492   done
17493 IFS=$as_save_IFS
17494 
17495   ;;
17496 esac
17497 fi
17498 ZIP=$ac_cv_path_ZIP
17499 if test -n "$ZIP"; then
17500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17501 $as_echo "$ZIP" >&6; }
17502 else
17503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17504 $as_echo "no" >&6; }
17505 fi
17506 
17507 
17508   test -n "$ZIP" && break
17509 done
17510 
17511   else
17512     # The variable is set, but is it from the command line or the environment?
17513 
17514     # Try to remove the string !ZIP! from our list.
17515     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17516     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17517       # If it failed, the variable was not from the command line. Ignore it,
17518       # but warn the user (except for BASH, which is always set by the calling BASH).
17519       if test "xZIP" != xBASH; then
17520         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17521 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17522       fi
17523       # Try to locate tool using the code snippet
17524       for ac_prog in zip
17525 do
17526   # Extract the first word of "$ac_prog", so it can be a program name with args.
17527 set dummy $ac_prog; ac_word=$2
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17529 $as_echo_n "checking for $ac_word... " >&6; }
17530 if ${ac_cv_path_ZIP+:} false; then :
17531   $as_echo_n "(cached) " >&6
17532 else
17533   case $ZIP in
17534   [\\/]* | ?:[\\/]*)
17535   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17536   ;;
17537   *)
17538   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17539 for as_dir in $PATH
17540 do
17541   IFS=$as_save_IFS
17542   test -z "$as_dir" && as_dir=.
17543     for ac_exec_ext in '' $ac_executable_extensions; do
17544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17545     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17547     break 2
17548   fi
17549 done
17550   done
17551 IFS=$as_save_IFS
17552 
17553   ;;
17554 esac
17555 fi
17556 ZIP=$ac_cv_path_ZIP
17557 if test -n "$ZIP"; then
17558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17559 $as_echo "$ZIP" >&6; }
17560 else
17561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17562 $as_echo "no" >&6; }
17563 fi
17564 
17565 
17566   test -n "$ZIP" && break
17567 done
17568 
17569     else
17570       # If it succeeded, then it was overridden by the user. We will use it
17571       # for the tool.
17572 
17573       # First remove it from the list of overridden variables, so we can test
17574       # for unknown variables in the end.
17575       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17576 
17577       # Check if the provided tool contains a complete path.
17578       tool_specified="$ZIP"
17579       tool_basename="${tool_specified##*/}"
17580       if test "x$tool_basename" = "x$tool_specified"; then
17581         # A command without a complete path is provided, search $PATH.
17582         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17583 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17584         # Extract the first word of "$tool_basename", so it can be a program name with args.
17585 set dummy $tool_basename; ac_word=$2
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17587 $as_echo_n "checking for $ac_word... " >&6; }
17588 if ${ac_cv_path_ZIP+:} false; then :
17589   $as_echo_n "(cached) " >&6
17590 else
17591   case $ZIP in
17592   [\\/]* | ?:[\\/]*)
17593   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17594   ;;
17595   *)
17596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17597 for as_dir in $PATH
17598 do
17599   IFS=$as_save_IFS
17600   test -z "$as_dir" && as_dir=.
17601     for ac_exec_ext in '' $ac_executable_extensions; do
17602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17603     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17605     break 2
17606   fi
17607 done
17608   done
17609 IFS=$as_save_IFS
17610 
17611   ;;
17612 esac
17613 fi
17614 ZIP=$ac_cv_path_ZIP
17615 if test -n "$ZIP"; then
17616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17617 $as_echo "$ZIP" >&6; }
17618 else
17619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17620 $as_echo "no" >&6; }
17621 fi
17622 
17623 
17624         if test "x$ZIP" = x; then
17625           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17626         fi
17627       else
17628         # Otherwise we believe it is a complete path. Use it as it is.
17629         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17630 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17631         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17632 $as_echo_n "checking for ZIP... " >&6; }
17633         if test ! -x "$tool_specified"; then
17634           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17635 $as_echo "not found" >&6; }
17636           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17637         fi
17638         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17639 $as_echo "$tool_specified" >&6; }
17640       fi
17641     fi
17642   fi
17643 
17644 
17645 
17646   if test "x$ZIP" = x; then
17647     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17648   fi
17649 
17650 
17651 
17652   # Non-required basic tools
17653 
17654 
17655 
17656   # Publish this variable in the help.
17657 
17658 
17659   if test "x$LDD" = x; then
17660     # The variable is not set by user, try to locate tool using the code snippet
17661     for ac_prog in ldd
17662 do
17663   # Extract the first word of "$ac_prog", so it can be a program name with args.
17664 set dummy $ac_prog; ac_word=$2
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17666 $as_echo_n "checking for $ac_word... " >&6; }
17667 if ${ac_cv_path_LDD+:} false; then :
17668   $as_echo_n "(cached) " >&6
17669 else
17670   case $LDD in
17671   [\\/]* | ?:[\\/]*)
17672   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17673   ;;
17674   *)
17675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17676 for as_dir in $PATH
17677 do
17678   IFS=$as_save_IFS
17679   test -z "$as_dir" && as_dir=.
17680     for ac_exec_ext in '' $ac_executable_extensions; do
17681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17682     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17684     break 2
17685   fi
17686 done
17687   done
17688 IFS=$as_save_IFS
17689 
17690   ;;
17691 esac
17692 fi
17693 LDD=$ac_cv_path_LDD
17694 if test -n "$LDD"; then
17695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17696 $as_echo "$LDD" >&6; }
17697 else
17698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17699 $as_echo "no" >&6; }
17700 fi
17701 
17702 
17703   test -n "$LDD" && break
17704 done
17705 
17706   else
17707     # The variable is set, but is it from the command line or the environment?
17708 
17709     # Try to remove the string !LDD! from our list.
17710     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17711     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17712       # If it failed, the variable was not from the command line. Ignore it,
17713       # but warn the user (except for BASH, which is always set by the calling BASH).
17714       if test "xLDD" != xBASH; then
17715         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17716 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17717       fi
17718       # Try to locate tool using the code snippet
17719       for ac_prog in ldd
17720 do
17721   # Extract the first word of "$ac_prog", so it can be a program name with args.
17722 set dummy $ac_prog; ac_word=$2
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17724 $as_echo_n "checking for $ac_word... " >&6; }
17725 if ${ac_cv_path_LDD+:} false; then :
17726   $as_echo_n "(cached) " >&6
17727 else
17728   case $LDD in
17729   [\\/]* | ?:[\\/]*)
17730   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17731   ;;
17732   *)
17733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17734 for as_dir in $PATH
17735 do
17736   IFS=$as_save_IFS
17737   test -z "$as_dir" && as_dir=.
17738     for ac_exec_ext in '' $ac_executable_extensions; do
17739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17740     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17742     break 2
17743   fi
17744 done
17745   done
17746 IFS=$as_save_IFS
17747 
17748   ;;
17749 esac
17750 fi
17751 LDD=$ac_cv_path_LDD
17752 if test -n "$LDD"; then
17753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17754 $as_echo "$LDD" >&6; }
17755 else
17756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17757 $as_echo "no" >&6; }
17758 fi
17759 
17760 
17761   test -n "$LDD" && break
17762 done
17763 
17764     else
17765       # If it succeeded, then it was overridden by the user. We will use it
17766       # for the tool.
17767 
17768       # First remove it from the list of overridden variables, so we can test
17769       # for unknown variables in the end.
17770       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17771 
17772       # Check if the provided tool contains a complete path.
17773       tool_specified="$LDD"
17774       tool_basename="${tool_specified##*/}"
17775       if test "x$tool_basename" = "x$tool_specified"; then
17776         # A command without a complete path is provided, search $PATH.
17777         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17778 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17779         # Extract the first word of "$tool_basename", so it can be a program name with args.
17780 set dummy $tool_basename; ac_word=$2
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17782 $as_echo_n "checking for $ac_word... " >&6; }
17783 if ${ac_cv_path_LDD+:} false; then :
17784   $as_echo_n "(cached) " >&6
17785 else
17786   case $LDD in
17787   [\\/]* | ?:[\\/]*)
17788   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17789   ;;
17790   *)
17791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17793 do
17794   IFS=$as_save_IFS
17795   test -z "$as_dir" && as_dir=.
17796     for ac_exec_ext in '' $ac_executable_extensions; do
17797   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17798     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17799     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17800     break 2
17801   fi
17802 done
17803   done
17804 IFS=$as_save_IFS
17805 
17806   ;;
17807 esac
17808 fi
17809 LDD=$ac_cv_path_LDD
17810 if test -n "$LDD"; then
17811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17812 $as_echo "$LDD" >&6; }
17813 else
17814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17815 $as_echo "no" >&6; }
17816 fi
17817 
17818 
17819         if test "x$LDD" = x; then
17820           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17821         fi
17822       else
17823         # Otherwise we believe it is a complete path. Use it as it is.
17824         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17825 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17826         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17827 $as_echo_n "checking for LDD... " >&6; }
17828         if test ! -x "$tool_specified"; then
17829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17830 $as_echo "not found" >&6; }
17831           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17832         fi
17833         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17834 $as_echo "$tool_specified" >&6; }
17835       fi
17836     fi
17837   fi
17838 
17839 
17840   if test "x$LDD" = "x"; then
17841     # List shared lib dependencies is used for
17842     # debug output and checking for forbidden dependencies.
17843     # We can build without it.
17844     LDD="true"
17845   fi
17846 
17847 
17848   # Publish this variable in the help.
17849 
17850 
17851   if test "x$READELF" = x; then
17852     # The variable is not set by user, try to locate tool using the code snippet
17853     for ac_prog in readelf greadelf
17854 do
17855   # Extract the first word of "$ac_prog", so it can be a program name with args.
17856 set dummy $ac_prog; ac_word=$2
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17858 $as_echo_n "checking for $ac_word... " >&6; }
17859 if ${ac_cv_path_READELF+:} false; then :
17860   $as_echo_n "(cached) " >&6
17861 else
17862   case $READELF in
17863   [\\/]* | ?:[\\/]*)
17864   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17865   ;;
17866   *)
17867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17868 for as_dir in $PATH
17869 do
17870   IFS=$as_save_IFS
17871   test -z "$as_dir" && as_dir=.
17872     for ac_exec_ext in '' $ac_executable_extensions; do
17873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17874     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17876     break 2
17877   fi
17878 done
17879   done
17880 IFS=$as_save_IFS
17881 
17882   ;;
17883 esac
17884 fi
17885 READELF=$ac_cv_path_READELF
17886 if test -n "$READELF"; then
17887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17888 $as_echo "$READELF" >&6; }
17889 else
17890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17891 $as_echo "no" >&6; }
17892 fi
17893 
17894 
17895   test -n "$READELF" && break
17896 done
17897 
17898   else
17899     # The variable is set, but is it from the command line or the environment?
17900 
17901     # Try to remove the string !READELF! from our list.
17902     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17903     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17904       # If it failed, the variable was not from the command line. Ignore it,
17905       # but warn the user (except for BASH, which is always set by the calling BASH).
17906       if test "xREADELF" != xBASH; then
17907         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17908 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17909       fi
17910       # Try to locate tool using the code snippet
17911       for ac_prog in readelf greadelf
17912 do
17913   # Extract the first word of "$ac_prog", so it can be a program name with args.
17914 set dummy $ac_prog; ac_word=$2
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17916 $as_echo_n "checking for $ac_word... " >&6; }
17917 if ${ac_cv_path_READELF+:} false; then :
17918   $as_echo_n "(cached) " >&6
17919 else
17920   case $READELF in
17921   [\\/]* | ?:[\\/]*)
17922   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17923   ;;
17924   *)
17925   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17926 for as_dir in $PATH
17927 do
17928   IFS=$as_save_IFS
17929   test -z "$as_dir" && as_dir=.
17930     for ac_exec_ext in '' $ac_executable_extensions; do
17931   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17932     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17934     break 2
17935   fi
17936 done
17937   done
17938 IFS=$as_save_IFS
17939 
17940   ;;
17941 esac
17942 fi
17943 READELF=$ac_cv_path_READELF
17944 if test -n "$READELF"; then
17945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17946 $as_echo "$READELF" >&6; }
17947 else
17948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17949 $as_echo "no" >&6; }
17950 fi
17951 
17952 
17953   test -n "$READELF" && break
17954 done
17955 
17956     else
17957       # If it succeeded, then it was overridden by the user. We will use it
17958       # for the tool.
17959 
17960       # First remove it from the list of overridden variables, so we can test
17961       # for unknown variables in the end.
17962       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17963 
17964       # Check if the provided tool contains a complete path.
17965       tool_specified="$READELF"
17966       tool_basename="${tool_specified##*/}"
17967       if test "x$tool_basename" = "x$tool_specified"; then
17968         # A command without a complete path is provided, search $PATH.
17969         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17970 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17971         # Extract the first word of "$tool_basename", so it can be a program name with args.
17972 set dummy $tool_basename; ac_word=$2
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17974 $as_echo_n "checking for $ac_word... " >&6; }
17975 if ${ac_cv_path_READELF+:} false; then :
17976   $as_echo_n "(cached) " >&6
17977 else
17978   case $READELF in
17979   [\\/]* | ?:[\\/]*)
17980   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17981   ;;
17982   *)
17983   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17984 for as_dir in $PATH
17985 do
17986   IFS=$as_save_IFS
17987   test -z "$as_dir" && as_dir=.
17988     for ac_exec_ext in '' $ac_executable_extensions; do
17989   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17990     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17991     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17992     break 2
17993   fi
17994 done
17995   done
17996 IFS=$as_save_IFS
17997 
17998   ;;
17999 esac
18000 fi
18001 READELF=$ac_cv_path_READELF
18002 if test -n "$READELF"; then
18003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18004 $as_echo "$READELF" >&6; }
18005 else
18006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18007 $as_echo "no" >&6; }
18008 fi
18009 
18010 
18011         if test "x$READELF" = x; then
18012           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18013         fi
18014       else
18015         # Otherwise we believe it is a complete path. Use it as it is.
18016         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18017 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18018         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18019 $as_echo_n "checking for READELF... " >&6; }
18020         if test ! -x "$tool_specified"; then
18021           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18022 $as_echo "not found" >&6; }
18023           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18024         fi
18025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18026 $as_echo "$tool_specified" >&6; }
18027       fi
18028     fi
18029   fi
18030 
18031 
18032 
18033 
18034   # Publish this variable in the help.
18035 
18036 
18037   if test "x$HG" = x; then
18038     # The variable is not set by user, try to locate tool using the code snippet
18039     for ac_prog in hg
18040 do
18041   # Extract the first word of "$ac_prog", so it can be a program name with args.
18042 set dummy $ac_prog; ac_word=$2
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18044 $as_echo_n "checking for $ac_word... " >&6; }
18045 if ${ac_cv_path_HG+:} false; then :
18046   $as_echo_n "(cached) " >&6
18047 else
18048   case $HG in
18049   [\\/]* | ?:[\\/]*)
18050   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18051   ;;
18052   *)
18053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18054 for as_dir in $PATH
18055 do
18056   IFS=$as_save_IFS
18057   test -z "$as_dir" && as_dir=.
18058     for ac_exec_ext in '' $ac_executable_extensions; do
18059   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18060     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18062     break 2
18063   fi
18064 done
18065   done
18066 IFS=$as_save_IFS
18067 
18068   ;;
18069 esac
18070 fi
18071 HG=$ac_cv_path_HG
18072 if test -n "$HG"; then
18073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18074 $as_echo "$HG" >&6; }
18075 else
18076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18078 fi
18079 
18080 
18081   test -n "$HG" && break
18082 done
18083 
18084   else
18085     # The variable is set, but is it from the command line or the environment?
18086 
18087     # Try to remove the string !HG! from our list.
18088     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18089     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18090       # If it failed, the variable was not from the command line. Ignore it,
18091       # but warn the user (except for BASH, which is always set by the calling BASH).
18092       if test "xHG" != xBASH; then
18093         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18094 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18095       fi
18096       # Try to locate tool using the code snippet
18097       for ac_prog in hg
18098 do
18099   # Extract the first word of "$ac_prog", so it can be a program name with args.
18100 set dummy $ac_prog; ac_word=$2
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18102 $as_echo_n "checking for $ac_word... " >&6; }
18103 if ${ac_cv_path_HG+:} false; then :
18104   $as_echo_n "(cached) " >&6
18105 else
18106   case $HG in
18107   [\\/]* | ?:[\\/]*)
18108   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18109   ;;
18110   *)
18111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18112 for as_dir in $PATH
18113 do
18114   IFS=$as_save_IFS
18115   test -z "$as_dir" && as_dir=.
18116     for ac_exec_ext in '' $ac_executable_extensions; do
18117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18118     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18120     break 2
18121   fi
18122 done
18123   done
18124 IFS=$as_save_IFS
18125 
18126   ;;
18127 esac
18128 fi
18129 HG=$ac_cv_path_HG
18130 if test -n "$HG"; then
18131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18132 $as_echo "$HG" >&6; }
18133 else
18134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18136 fi
18137 
18138 
18139   test -n "$HG" && break
18140 done
18141 
18142     else
18143       # If it succeeded, then it was overridden by the user. We will use it
18144       # for the tool.
18145 
18146       # First remove it from the list of overridden variables, so we can test
18147       # for unknown variables in the end.
18148       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18149 
18150       # Check if the provided tool contains a complete path.
18151       tool_specified="$HG"
18152       tool_basename="${tool_specified##*/}"
18153       if test "x$tool_basename" = "x$tool_specified"; then
18154         # A command without a complete path is provided, search $PATH.
18155         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18156 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18157         # Extract the first word of "$tool_basename", so it can be a program name with args.
18158 set dummy $tool_basename; ac_word=$2
18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18160 $as_echo_n "checking for $ac_word... " >&6; }
18161 if ${ac_cv_path_HG+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164   case $HG in
18165   [\\/]* | ?:[\\/]*)
18166   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18167   ;;
18168   *)
18169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18170 for as_dir in $PATH
18171 do
18172   IFS=$as_save_IFS
18173   test -z "$as_dir" && as_dir=.
18174     for ac_exec_ext in '' $ac_executable_extensions; do
18175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18176     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18178     break 2
18179   fi
18180 done
18181   done
18182 IFS=$as_save_IFS
18183 
18184   ;;
18185 esac
18186 fi
18187 HG=$ac_cv_path_HG
18188 if test -n "$HG"; then
18189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18190 $as_echo "$HG" >&6; }
18191 else
18192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18193 $as_echo "no" >&6; }
18194 fi
18195 
18196 
18197         if test "x$HG" = x; then
18198           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18199         fi
18200       else
18201         # Otherwise we believe it is a complete path. Use it as it is.
18202         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18203 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18205 $as_echo_n "checking for HG... " >&6; }
18206         if test ! -x "$tool_specified"; then
18207           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18208 $as_echo "not found" >&6; }
18209           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18210         fi
18211         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18212 $as_echo "$tool_specified" >&6; }
18213       fi
18214     fi
18215   fi
18216 
18217 
18218 
18219 
18220   # Publish this variable in the help.
18221 
18222 
18223   if test "x$STAT" = x; then
18224     # The variable is not set by user, try to locate tool using the code snippet
18225     for ac_prog in stat
18226 do
18227   # Extract the first word of "$ac_prog", so it can be a program name with args.
18228 set dummy $ac_prog; ac_word=$2
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18230 $as_echo_n "checking for $ac_word... " >&6; }
18231 if ${ac_cv_path_STAT+:} false; then :
18232   $as_echo_n "(cached) " >&6
18233 else
18234   case $STAT in
18235   [\\/]* | ?:[\\/]*)
18236   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18237   ;;
18238   *)
18239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18240 for as_dir in $PATH
18241 do
18242   IFS=$as_save_IFS
18243   test -z "$as_dir" && as_dir=.
18244     for ac_exec_ext in '' $ac_executable_extensions; do
18245   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18246     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18248     break 2
18249   fi
18250 done
18251   done
18252 IFS=$as_save_IFS
18253 
18254   ;;
18255 esac
18256 fi
18257 STAT=$ac_cv_path_STAT
18258 if test -n "$STAT"; then
18259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18260 $as_echo "$STAT" >&6; }
18261 else
18262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18263 $as_echo "no" >&6; }
18264 fi
18265 
18266 
18267   test -n "$STAT" && break
18268 done
18269 
18270   else
18271     # The variable is set, but is it from the command line or the environment?
18272 
18273     # Try to remove the string !STAT! from our list.
18274     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18275     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18276       # If it failed, the variable was not from the command line. Ignore it,
18277       # but warn the user (except for BASH, which is always set by the calling BASH).
18278       if test "xSTAT" != xBASH; then
18279         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18280 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18281       fi
18282       # Try to locate tool using the code snippet
18283       for ac_prog in stat
18284 do
18285   # Extract the first word of "$ac_prog", so it can be a program name with args.
18286 set dummy $ac_prog; ac_word=$2
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18288 $as_echo_n "checking for $ac_word... " >&6; }
18289 if ${ac_cv_path_STAT+:} false; then :
18290   $as_echo_n "(cached) " >&6
18291 else
18292   case $STAT in
18293   [\\/]* | ?:[\\/]*)
18294   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18295   ;;
18296   *)
18297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18298 for as_dir in $PATH
18299 do
18300   IFS=$as_save_IFS
18301   test -z "$as_dir" && as_dir=.
18302     for ac_exec_ext in '' $ac_executable_extensions; do
18303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18304     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18306     break 2
18307   fi
18308 done
18309   done
18310 IFS=$as_save_IFS
18311 
18312   ;;
18313 esac
18314 fi
18315 STAT=$ac_cv_path_STAT
18316 if test -n "$STAT"; then
18317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18318 $as_echo "$STAT" >&6; }
18319 else
18320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18321 $as_echo "no" >&6; }
18322 fi
18323 
18324 
18325   test -n "$STAT" && break
18326 done
18327 
18328     else
18329       # If it succeeded, then it was overridden by the user. We will use it
18330       # for the tool.
18331 
18332       # First remove it from the list of overridden variables, so we can test
18333       # for unknown variables in the end.
18334       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18335 
18336       # Check if the provided tool contains a complete path.
18337       tool_specified="$STAT"
18338       tool_basename="${tool_specified##*/}"
18339       if test "x$tool_basename" = "x$tool_specified"; then
18340         # A command without a complete path is provided, search $PATH.
18341         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18342 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18343         # Extract the first word of "$tool_basename", so it can be a program name with args.
18344 set dummy $tool_basename; ac_word=$2
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18346 $as_echo_n "checking for $ac_word... " >&6; }
18347 if ${ac_cv_path_STAT+:} false; then :
18348   $as_echo_n "(cached) " >&6
18349 else
18350   case $STAT in
18351   [\\/]* | ?:[\\/]*)
18352   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18353   ;;
18354   *)
18355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18356 for as_dir in $PATH
18357 do
18358   IFS=$as_save_IFS
18359   test -z "$as_dir" && as_dir=.
18360     for ac_exec_ext in '' $ac_executable_extensions; do
18361   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18362     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18364     break 2
18365   fi
18366 done
18367   done
18368 IFS=$as_save_IFS
18369 
18370   ;;
18371 esac
18372 fi
18373 STAT=$ac_cv_path_STAT
18374 if test -n "$STAT"; then
18375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18376 $as_echo "$STAT" >&6; }
18377 else
18378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18379 $as_echo "no" >&6; }
18380 fi
18381 
18382 
18383         if test "x$STAT" = x; then
18384           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18385         fi
18386       else
18387         # Otherwise we believe it is a complete path. Use it as it is.
18388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18389 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18390         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18391 $as_echo_n "checking for STAT... " >&6; }
18392         if test ! -x "$tool_specified"; then
18393           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18394 $as_echo "not found" >&6; }
18395           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18396         fi
18397         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18398 $as_echo "$tool_specified" >&6; }
18399       fi
18400     fi
18401   fi
18402 
18403 
18404 
18405 
18406   # Publish this variable in the help.
18407 
18408 
18409   if test "x$TIME" = x; then
18410     # The variable is not set by user, try to locate tool using the code snippet
18411     for ac_prog in time
18412 do
18413   # Extract the first word of "$ac_prog", so it can be a program name with args.
18414 set dummy $ac_prog; ac_word=$2
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18416 $as_echo_n "checking for $ac_word... " >&6; }
18417 if ${ac_cv_path_TIME+:} false; then :
18418   $as_echo_n "(cached) " >&6
18419 else
18420   case $TIME in
18421   [\\/]* | ?:[\\/]*)
18422   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18423   ;;
18424   *)
18425   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18426 for as_dir in $PATH
18427 do
18428   IFS=$as_save_IFS
18429   test -z "$as_dir" && as_dir=.
18430     for ac_exec_ext in '' $ac_executable_extensions; do
18431   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18432     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18433     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18434     break 2
18435   fi
18436 done
18437   done
18438 IFS=$as_save_IFS
18439 
18440   ;;
18441 esac
18442 fi
18443 TIME=$ac_cv_path_TIME
18444 if test -n "$TIME"; then
18445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18446 $as_echo "$TIME" >&6; }
18447 else
18448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18449 $as_echo "no" >&6; }
18450 fi
18451 
18452 
18453   test -n "$TIME" && break
18454 done
18455 
18456   else
18457     # The variable is set, but is it from the command line or the environment?
18458 
18459     # Try to remove the string !TIME! from our list.
18460     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18461     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18462       # If it failed, the variable was not from the command line. Ignore it,
18463       # but warn the user (except for BASH, which is always set by the calling BASH).
18464       if test "xTIME" != xBASH; then
18465         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18466 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18467       fi
18468       # Try to locate tool using the code snippet
18469       for ac_prog in time
18470 do
18471   # Extract the first word of "$ac_prog", so it can be a program name with args.
18472 set dummy $ac_prog; ac_word=$2
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18474 $as_echo_n "checking for $ac_word... " >&6; }
18475 if ${ac_cv_path_TIME+:} false; then :
18476   $as_echo_n "(cached) " >&6
18477 else
18478   case $TIME in
18479   [\\/]* | ?:[\\/]*)
18480   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18481   ;;
18482   *)
18483   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18485 do
18486   IFS=$as_save_IFS
18487   test -z "$as_dir" && as_dir=.
18488     for ac_exec_ext in '' $ac_executable_extensions; do
18489   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18490     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18492     break 2
18493   fi
18494 done
18495   done
18496 IFS=$as_save_IFS
18497 
18498   ;;
18499 esac
18500 fi
18501 TIME=$ac_cv_path_TIME
18502 if test -n "$TIME"; then
18503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18504 $as_echo "$TIME" >&6; }
18505 else
18506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18507 $as_echo "no" >&6; }
18508 fi
18509 
18510 
18511   test -n "$TIME" && break
18512 done
18513 
18514     else
18515       # If it succeeded, then it was overridden by the user. We will use it
18516       # for the tool.
18517 
18518       # First remove it from the list of overridden variables, so we can test
18519       # for unknown variables in the end.
18520       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18521 
18522       # Check if the provided tool contains a complete path.
18523       tool_specified="$TIME"
18524       tool_basename="${tool_specified##*/}"
18525       if test "x$tool_basename" = "x$tool_specified"; then
18526         # A command without a complete path is provided, search $PATH.
18527         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18528 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18529         # Extract the first word of "$tool_basename", so it can be a program name with args.
18530 set dummy $tool_basename; ac_word=$2
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18532 $as_echo_n "checking for $ac_word... " >&6; }
18533 if ${ac_cv_path_TIME+:} false; then :
18534   $as_echo_n "(cached) " >&6
18535 else
18536   case $TIME in
18537   [\\/]* | ?:[\\/]*)
18538   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18539   ;;
18540   *)
18541   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18542 for as_dir in $PATH
18543 do
18544   IFS=$as_save_IFS
18545   test -z "$as_dir" && as_dir=.
18546     for ac_exec_ext in '' $ac_executable_extensions; do
18547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18548     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18550     break 2
18551   fi
18552 done
18553   done
18554 IFS=$as_save_IFS
18555 
18556   ;;
18557 esac
18558 fi
18559 TIME=$ac_cv_path_TIME
18560 if test -n "$TIME"; then
18561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18562 $as_echo "$TIME" >&6; }
18563 else
18564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18565 $as_echo "no" >&6; }
18566 fi
18567 
18568 
18569         if test "x$TIME" = x; then
18570           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18571         fi
18572       else
18573         # Otherwise we believe it is a complete path. Use it as it is.
18574         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18575 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18576         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18577 $as_echo_n "checking for TIME... " >&6; }
18578         if test ! -x "$tool_specified"; then
18579           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18580 $as_echo "not found" >&6; }
18581           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18582         fi
18583         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18584 $as_echo "$tool_specified" >&6; }
18585       fi
18586     fi
18587   fi
18588 
18589 
18590   # Check if it's GNU time
18591   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18592   if test "x$IS_GNU_TIME" != x; then
18593     IS_GNU_TIME=yes
18594   else
18595     IS_GNU_TIME=no
18596   fi
18597 
18598 
18599   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18600 
18601 
18602 
18603   # Publish this variable in the help.
18604 
18605 
18606   if test "x$COMM" = x; then
18607     # The variable is not set by user, try to locate tool using the code snippet
18608     for ac_prog in comm
18609 do
18610   # Extract the first word of "$ac_prog", so it can be a program name with args.
18611 set dummy $ac_prog; ac_word=$2
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18613 $as_echo_n "checking for $ac_word... " >&6; }
18614 if ${ac_cv_path_COMM+:} false; then :
18615   $as_echo_n "(cached) " >&6
18616 else
18617   case $COMM in
18618   [\\/]* | ?:[\\/]*)
18619   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18620   ;;
18621   *)
18622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18623 for as_dir in $PATH
18624 do
18625   IFS=$as_save_IFS
18626   test -z "$as_dir" && as_dir=.
18627     for ac_exec_ext in '' $ac_executable_extensions; do
18628   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18629     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18630     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18631     break 2
18632   fi
18633 done
18634   done
18635 IFS=$as_save_IFS
18636 
18637   ;;
18638 esac
18639 fi
18640 COMM=$ac_cv_path_COMM
18641 if test -n "$COMM"; then
18642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18643 $as_echo "$COMM" >&6; }
18644 else
18645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18646 $as_echo "no" >&6; }
18647 fi
18648 
18649 
18650   test -n "$COMM" && break
18651 done
18652 
18653   else
18654     # The variable is set, but is it from the command line or the environment?
18655 
18656     # Try to remove the string !COMM! from our list.
18657     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18658     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18659       # If it failed, the variable was not from the command line. Ignore it,
18660       # but warn the user (except for BASH, which is always set by the calling BASH).
18661       if test "xCOMM" != xBASH; then
18662         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18663 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18664       fi
18665       # Try to locate tool using the code snippet
18666       for ac_prog in comm
18667 do
18668   # Extract the first word of "$ac_prog", so it can be a program name with args.
18669 set dummy $ac_prog; ac_word=$2
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18671 $as_echo_n "checking for $ac_word... " >&6; }
18672 if ${ac_cv_path_COMM+:} false; then :
18673   $as_echo_n "(cached) " >&6
18674 else
18675   case $COMM in
18676   [\\/]* | ?:[\\/]*)
18677   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18678   ;;
18679   *)
18680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18681 for as_dir in $PATH
18682 do
18683   IFS=$as_save_IFS
18684   test -z "$as_dir" && as_dir=.
18685     for ac_exec_ext in '' $ac_executable_extensions; do
18686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18687     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18689     break 2
18690   fi
18691 done
18692   done
18693 IFS=$as_save_IFS
18694 
18695   ;;
18696 esac
18697 fi
18698 COMM=$ac_cv_path_COMM
18699 if test -n "$COMM"; then
18700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18701 $as_echo "$COMM" >&6; }
18702 else
18703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18704 $as_echo "no" >&6; }
18705 fi
18706 
18707 
18708   test -n "$COMM" && break
18709 done
18710 
18711     else
18712       # If it succeeded, then it was overridden by the user. We will use it
18713       # for the tool.
18714 
18715       # First remove it from the list of overridden variables, so we can test
18716       # for unknown variables in the end.
18717       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18718 
18719       # Check if the provided tool contains a complete path.
18720       tool_specified="$COMM"
18721       tool_basename="${tool_specified##*/}"
18722       if test "x$tool_basename" = "x$tool_specified"; then
18723         # A command without a complete path is provided, search $PATH.
18724         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18725 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18726         # Extract the first word of "$tool_basename", so it can be a program name with args.
18727 set dummy $tool_basename; ac_word=$2
18728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18729 $as_echo_n "checking for $ac_word... " >&6; }
18730 if ${ac_cv_path_COMM+:} false; then :
18731   $as_echo_n "(cached) " >&6
18732 else
18733   case $COMM in
18734   [\\/]* | ?:[\\/]*)
18735   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18736   ;;
18737   *)
18738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18739 for as_dir in $PATH
18740 do
18741   IFS=$as_save_IFS
18742   test -z "$as_dir" && as_dir=.
18743     for ac_exec_ext in '' $ac_executable_extensions; do
18744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18745     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18747     break 2
18748   fi
18749 done
18750   done
18751 IFS=$as_save_IFS
18752 
18753   ;;
18754 esac
18755 fi
18756 COMM=$ac_cv_path_COMM
18757 if test -n "$COMM"; then
18758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18759 $as_echo "$COMM" >&6; }
18760 else
18761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18762 $as_echo "no" >&6; }
18763 fi
18764 
18765 
18766         if test "x$COMM" = x; then
18767           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18768         fi
18769       else
18770         # Otherwise we believe it is a complete path. Use it as it is.
18771         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18772 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18773         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18774 $as_echo_n "checking for COMM... " >&6; }
18775         if test ! -x "$tool_specified"; then
18776           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18777 $as_echo "not found" >&6; }
18778           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18779         fi
18780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18781 $as_echo "$tool_specified" >&6; }
18782       fi
18783     fi
18784   fi
18785 
18786 
18787 
18788   if test "x$COMM" = x; then
18789     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18790   fi
18791 
18792 
18793   fi
18794 
18795   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18796 
18797 
18798 
18799   # Publish this variable in the help.
18800 
18801 
18802   if test "x$DSYMUTIL" = x; then
18803     # The variable is not set by user, try to locate tool using the code snippet
18804     for ac_prog in dsymutil
18805 do
18806   # Extract the first word of "$ac_prog", so it can be a program name with args.
18807 set dummy $ac_prog; ac_word=$2
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18809 $as_echo_n "checking for $ac_word... " >&6; }
18810 if ${ac_cv_path_DSYMUTIL+:} false; then :
18811   $as_echo_n "(cached) " >&6
18812 else
18813   case $DSYMUTIL in
18814   [\\/]* | ?:[\\/]*)
18815   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18816   ;;
18817   *)
18818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18819 for as_dir in $PATH
18820 do
18821   IFS=$as_save_IFS
18822   test -z "$as_dir" && as_dir=.
18823     for ac_exec_ext in '' $ac_executable_extensions; do
18824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18825     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18827     break 2
18828   fi
18829 done
18830   done
18831 IFS=$as_save_IFS
18832 
18833   ;;
18834 esac
18835 fi
18836 DSYMUTIL=$ac_cv_path_DSYMUTIL
18837 if test -n "$DSYMUTIL"; then
18838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18839 $as_echo "$DSYMUTIL" >&6; }
18840 else
18841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18842 $as_echo "no" >&6; }
18843 fi
18844 
18845 
18846   test -n "$DSYMUTIL" && break
18847 done
18848 
18849   else
18850     # The variable is set, but is it from the command line or the environment?
18851 
18852     # Try to remove the string !DSYMUTIL! from our list.
18853     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18854     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18855       # If it failed, the variable was not from the command line. Ignore it,
18856       # but warn the user (except for BASH, which is always set by the calling BASH).
18857       if test "xDSYMUTIL" != xBASH; then
18858         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18859 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18860       fi
18861       # Try to locate tool using the code snippet
18862       for ac_prog in dsymutil
18863 do
18864   # Extract the first word of "$ac_prog", so it can be a program name with args.
18865 set dummy $ac_prog; ac_word=$2
18866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18867 $as_echo_n "checking for $ac_word... " >&6; }
18868 if ${ac_cv_path_DSYMUTIL+:} false; then :
18869   $as_echo_n "(cached) " >&6
18870 else
18871   case $DSYMUTIL in
18872   [\\/]* | ?:[\\/]*)
18873   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18874   ;;
18875   *)
18876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18877 for as_dir in $PATH
18878 do
18879   IFS=$as_save_IFS
18880   test -z "$as_dir" && as_dir=.
18881     for ac_exec_ext in '' $ac_executable_extensions; do
18882   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18883     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18885     break 2
18886   fi
18887 done
18888   done
18889 IFS=$as_save_IFS
18890 
18891   ;;
18892 esac
18893 fi
18894 DSYMUTIL=$ac_cv_path_DSYMUTIL
18895 if test -n "$DSYMUTIL"; then
18896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18897 $as_echo "$DSYMUTIL" >&6; }
18898 else
18899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18900 $as_echo "no" >&6; }
18901 fi
18902 
18903 
18904   test -n "$DSYMUTIL" && break
18905 done
18906 
18907     else
18908       # If it succeeded, then it was overridden by the user. We will use it
18909       # for the tool.
18910 
18911       # First remove it from the list of overridden variables, so we can test
18912       # for unknown variables in the end.
18913       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18914 
18915       # Check if the provided tool contains a complete path.
18916       tool_specified="$DSYMUTIL"
18917       tool_basename="${tool_specified##*/}"
18918       if test "x$tool_basename" = "x$tool_specified"; then
18919         # A command without a complete path is provided, search $PATH.
18920         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18921 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18922         # Extract the first word of "$tool_basename", so it can be a program name with args.
18923 set dummy $tool_basename; ac_word=$2
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18925 $as_echo_n "checking for $ac_word... " >&6; }
18926 if ${ac_cv_path_DSYMUTIL+:} false; then :
18927   $as_echo_n "(cached) " >&6
18928 else
18929   case $DSYMUTIL in
18930   [\\/]* | ?:[\\/]*)
18931   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18932   ;;
18933   *)
18934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18935 for as_dir in $PATH
18936 do
18937   IFS=$as_save_IFS
18938   test -z "$as_dir" && as_dir=.
18939     for ac_exec_ext in '' $ac_executable_extensions; do
18940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18941     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18943     break 2
18944   fi
18945 done
18946   done
18947 IFS=$as_save_IFS
18948 
18949   ;;
18950 esac
18951 fi
18952 DSYMUTIL=$ac_cv_path_DSYMUTIL
18953 if test -n "$DSYMUTIL"; then
18954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18955 $as_echo "$DSYMUTIL" >&6; }
18956 else
18957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18958 $as_echo "no" >&6; }
18959 fi
18960 
18961 
18962         if test "x$DSYMUTIL" = x; then
18963           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18964         fi
18965       else
18966         # Otherwise we believe it is a complete path. Use it as it is.
18967         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18968 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18969         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18970 $as_echo_n "checking for DSYMUTIL... " >&6; }
18971         if test ! -x "$tool_specified"; then
18972           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18973 $as_echo "not found" >&6; }
18974           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18975         fi
18976         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18977 $as_echo "$tool_specified" >&6; }
18978       fi
18979     fi
18980   fi
18981 
18982 
18983 
18984   if test "x$DSYMUTIL" = x; then
18985     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18986   fi
18987 
18988 
18989 
18990 
18991 
18992   # Publish this variable in the help.
18993 
18994 
18995   if test "x$XATTR" = x; then
18996     # The variable is not set by user, try to locate tool using the code snippet
18997     for ac_prog in xattr
18998 do
18999   # Extract the first word of "$ac_prog", so it can be a program name with args.
19000 set dummy $ac_prog; ac_word=$2
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19002 $as_echo_n "checking for $ac_word... " >&6; }
19003 if ${ac_cv_path_XATTR+:} false; then :
19004   $as_echo_n "(cached) " >&6
19005 else
19006   case $XATTR in
19007   [\\/]* | ?:[\\/]*)
19008   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19009   ;;
19010   *)
19011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19012 for as_dir in $PATH
19013 do
19014   IFS=$as_save_IFS
19015   test -z "$as_dir" && as_dir=.
19016     for ac_exec_ext in '' $ac_executable_extensions; do
19017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19018     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19020     break 2
19021   fi
19022 done
19023   done
19024 IFS=$as_save_IFS
19025 
19026   ;;
19027 esac
19028 fi
19029 XATTR=$ac_cv_path_XATTR
19030 if test -n "$XATTR"; then
19031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19032 $as_echo "$XATTR" >&6; }
19033 else
19034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19036 fi
19037 
19038 
19039   test -n "$XATTR" && break
19040 done
19041 
19042   else
19043     # The variable is set, but is it from the command line or the environment?
19044 
19045     # Try to remove the string !XATTR! from our list.
19046     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19047     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19048       # If it failed, the variable was not from the command line. Ignore it,
19049       # but warn the user (except for BASH, which is always set by the calling BASH).
19050       if test "xXATTR" != xBASH; then
19051         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19052 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19053       fi
19054       # Try to locate tool using the code snippet
19055       for ac_prog in xattr
19056 do
19057   # Extract the first word of "$ac_prog", so it can be a program name with args.
19058 set dummy $ac_prog; ac_word=$2
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19060 $as_echo_n "checking for $ac_word... " >&6; }
19061 if ${ac_cv_path_XATTR+:} false; then :
19062   $as_echo_n "(cached) " >&6
19063 else
19064   case $XATTR in
19065   [\\/]* | ?:[\\/]*)
19066   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19067   ;;
19068   *)
19069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19070 for as_dir in $PATH
19071 do
19072   IFS=$as_save_IFS
19073   test -z "$as_dir" && as_dir=.
19074     for ac_exec_ext in '' $ac_executable_extensions; do
19075   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19076     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19078     break 2
19079   fi
19080 done
19081   done
19082 IFS=$as_save_IFS
19083 
19084   ;;
19085 esac
19086 fi
19087 XATTR=$ac_cv_path_XATTR
19088 if test -n "$XATTR"; then
19089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19090 $as_echo "$XATTR" >&6; }
19091 else
19092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19093 $as_echo "no" >&6; }
19094 fi
19095 
19096 
19097   test -n "$XATTR" && break
19098 done
19099 
19100     else
19101       # If it succeeded, then it was overridden by the user. We will use it
19102       # for the tool.
19103 
19104       # First remove it from the list of overridden variables, so we can test
19105       # for unknown variables in the end.
19106       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19107 
19108       # Check if the provided tool contains a complete path.
19109       tool_specified="$XATTR"
19110       tool_basename="${tool_specified##*/}"
19111       if test "x$tool_basename" = "x$tool_specified"; then
19112         # A command without a complete path is provided, search $PATH.
19113         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19114 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19115         # Extract the first word of "$tool_basename", so it can be a program name with args.
19116 set dummy $tool_basename; ac_word=$2
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118 $as_echo_n "checking for $ac_word... " >&6; }
19119 if ${ac_cv_path_XATTR+:} false; then :
19120   $as_echo_n "(cached) " >&6
19121 else
19122   case $XATTR in
19123   [\\/]* | ?:[\\/]*)
19124   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19125   ;;
19126   *)
19127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19128 for as_dir in $PATH
19129 do
19130   IFS=$as_save_IFS
19131   test -z "$as_dir" && as_dir=.
19132     for ac_exec_ext in '' $ac_executable_extensions; do
19133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19134     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19136     break 2
19137   fi
19138 done
19139   done
19140 IFS=$as_save_IFS
19141 
19142   ;;
19143 esac
19144 fi
19145 XATTR=$ac_cv_path_XATTR
19146 if test -n "$XATTR"; then
19147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19148 $as_echo "$XATTR" >&6; }
19149 else
19150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151 $as_echo "no" >&6; }
19152 fi
19153 
19154 
19155         if test "x$XATTR" = x; then
19156           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19157         fi
19158       else
19159         # Otherwise we believe it is a complete path. Use it as it is.
19160         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19161 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19163 $as_echo_n "checking for XATTR... " >&6; }
19164         if test ! -x "$tool_specified"; then
19165           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19166 $as_echo "not found" >&6; }
19167           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19168         fi
19169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19170 $as_echo "$tool_specified" >&6; }
19171       fi
19172     fi
19173   fi
19174 
19175 
19176 
19177   if test "x$XATTR" = x; then
19178     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19179   fi
19180 
19181 
19182 
19183 
19184   # Publish this variable in the help.
19185 
19186 
19187   if test "x$CODESIGN" = x; then
19188     # The variable is not set by user, try to locate tool using the code snippet
19189     for ac_prog in codesign
19190 do
19191   # Extract the first word of "$ac_prog", so it can be a program name with args.
19192 set dummy $ac_prog; ac_word=$2
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19194 $as_echo_n "checking for $ac_word... " >&6; }
19195 if ${ac_cv_path_CODESIGN+:} false; then :
19196   $as_echo_n "(cached) " >&6
19197 else
19198   case $CODESIGN in
19199   [\\/]* | ?:[\\/]*)
19200   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19201   ;;
19202   *)
19203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19204 for as_dir in $PATH
19205 do
19206   IFS=$as_save_IFS
19207   test -z "$as_dir" && as_dir=.
19208     for ac_exec_ext in '' $ac_executable_extensions; do
19209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19210     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19212     break 2
19213   fi
19214 done
19215   done
19216 IFS=$as_save_IFS
19217 
19218   ;;
19219 esac
19220 fi
19221 CODESIGN=$ac_cv_path_CODESIGN
19222 if test -n "$CODESIGN"; then
19223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19224 $as_echo "$CODESIGN" >&6; }
19225 else
19226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19227 $as_echo "no" >&6; }
19228 fi
19229 
19230 
19231   test -n "$CODESIGN" && break
19232 done
19233 
19234   else
19235     # The variable is set, but is it from the command line or the environment?
19236 
19237     # Try to remove the string !CODESIGN! from our list.
19238     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19239     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19240       # If it failed, the variable was not from the command line. Ignore it,
19241       # but warn the user (except for BASH, which is always set by the calling BASH).
19242       if test "xCODESIGN" != xBASH; then
19243         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19244 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19245       fi
19246       # Try to locate tool using the code snippet
19247       for ac_prog in codesign
19248 do
19249   # Extract the first word of "$ac_prog", so it can be a program name with args.
19250 set dummy $ac_prog; ac_word=$2
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19252 $as_echo_n "checking for $ac_word... " >&6; }
19253 if ${ac_cv_path_CODESIGN+:} false; then :
19254   $as_echo_n "(cached) " >&6
19255 else
19256   case $CODESIGN in
19257   [\\/]* | ?:[\\/]*)
19258   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19259   ;;
19260   *)
19261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19262 for as_dir in $PATH
19263 do
19264   IFS=$as_save_IFS
19265   test -z "$as_dir" && as_dir=.
19266     for ac_exec_ext in '' $ac_executable_extensions; do
19267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19268     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19270     break 2
19271   fi
19272 done
19273   done
19274 IFS=$as_save_IFS
19275 
19276   ;;
19277 esac
19278 fi
19279 CODESIGN=$ac_cv_path_CODESIGN
19280 if test -n "$CODESIGN"; then
19281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19282 $as_echo "$CODESIGN" >&6; }
19283 else
19284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19285 $as_echo "no" >&6; }
19286 fi
19287 
19288 
19289   test -n "$CODESIGN" && break
19290 done
19291 
19292     else
19293       # If it succeeded, then it was overridden by the user. We will use it
19294       # for the tool.
19295 
19296       # First remove it from the list of overridden variables, so we can test
19297       # for unknown variables in the end.
19298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19299 
19300       # Check if the provided tool contains a complete path.
19301       tool_specified="$CODESIGN"
19302       tool_basename="${tool_specified##*/}"
19303       if test "x$tool_basename" = "x$tool_specified"; then
19304         # A command without a complete path is provided, search $PATH.
19305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19306 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19307         # Extract the first word of "$tool_basename", so it can be a program name with args.
19308 set dummy $tool_basename; ac_word=$2
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19310 $as_echo_n "checking for $ac_word... " >&6; }
19311 if ${ac_cv_path_CODESIGN+:} false; then :
19312   $as_echo_n "(cached) " >&6
19313 else
19314   case $CODESIGN in
19315   [\\/]* | ?:[\\/]*)
19316   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19317   ;;
19318   *)
19319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19320 for as_dir in $PATH
19321 do
19322   IFS=$as_save_IFS
19323   test -z "$as_dir" && as_dir=.
19324     for ac_exec_ext in '' $ac_executable_extensions; do
19325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19326     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19328     break 2
19329   fi
19330 done
19331   done
19332 IFS=$as_save_IFS
19333 
19334   ;;
19335 esac
19336 fi
19337 CODESIGN=$ac_cv_path_CODESIGN
19338 if test -n "$CODESIGN"; then
19339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19340 $as_echo "$CODESIGN" >&6; }
19341 else
19342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343 $as_echo "no" >&6; }
19344 fi
19345 
19346 
19347         if test "x$CODESIGN" = x; then
19348           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19349         fi
19350       else
19351         # Otherwise we believe it is a complete path. Use it as it is.
19352         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19353 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19355 $as_echo_n "checking for CODESIGN... " >&6; }
19356         if test ! -x "$tool_specified"; then
19357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19358 $as_echo "not found" >&6; }
19359           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19360         fi
19361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19362 $as_echo "$tool_specified" >&6; }
19363       fi
19364     fi
19365   fi
19366 
19367 
19368     if test "x$CODESIGN" != "x"; then
19369       # Verify that the openjdk_codesign certificate is present
19370       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19371 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19372       rm -f codesign-testfile
19373       touch codesign-testfile
19374       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19375       rm -f codesign-testfile
19376       if test "x$CODESIGN" = x; then
19377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19378 $as_echo "no" >&6; }
19379       else
19380         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19381 $as_echo "yes" >&6; }
19382       fi
19383     fi
19384   fi
19385 
19386 
19387 # Check if pkg-config is available.
19388 
19389 
19390 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19391         if test -n "$ac_tool_prefix"; then
19392   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19393 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19395 $as_echo_n "checking for $ac_word... " >&6; }
19396 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   case $PKG_CONFIG in
19400   [\\/]* | ?:[\\/]*)
19401   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19402   ;;
19403   *)
19404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19405 for as_dir in $PATH
19406 do
19407   IFS=$as_save_IFS
19408   test -z "$as_dir" && as_dir=.
19409     for ac_exec_ext in '' $ac_executable_extensions; do
19410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19411     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19413     break 2
19414   fi
19415 done
19416   done
19417 IFS=$as_save_IFS
19418 
19419   ;;
19420 esac
19421 fi
19422 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19423 if test -n "$PKG_CONFIG"; then
19424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19425 $as_echo "$PKG_CONFIG" >&6; }
19426 else
19427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19428 $as_echo "no" >&6; }
19429 fi
19430 
19431 
19432 fi
19433 if test -z "$ac_cv_path_PKG_CONFIG"; then
19434   ac_pt_PKG_CONFIG=$PKG_CONFIG
19435   # Extract the first word of "pkg-config", so it can be a program name with args.
19436 set dummy pkg-config; ac_word=$2
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19438 $as_echo_n "checking for $ac_word... " >&6; }
19439 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19440   $as_echo_n "(cached) " >&6
19441 else
19442   case $ac_pt_PKG_CONFIG in
19443   [\\/]* | ?:[\\/]*)
19444   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19445   ;;
19446   *)
19447   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19448 for as_dir in $PATH
19449 do
19450   IFS=$as_save_IFS
19451   test -z "$as_dir" && as_dir=.
19452     for ac_exec_ext in '' $ac_executable_extensions; do
19453   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19454     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19456     break 2
19457   fi
19458 done
19459   done
19460 IFS=$as_save_IFS
19461 
19462   ;;
19463 esac
19464 fi
19465 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19466 if test -n "$ac_pt_PKG_CONFIG"; then
19467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19468 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19469 else
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19471 $as_echo "no" >&6; }
19472 fi
19473 
19474   if test "x$ac_pt_PKG_CONFIG" = x; then
19475     PKG_CONFIG=""
19476   else
19477     case $cross_compiling:$ac_tool_warned in
19478 yes:)
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19481 ac_tool_warned=yes ;;
19482 esac
19483     PKG_CONFIG=$ac_pt_PKG_CONFIG
19484   fi
19485 else
19486   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19487 fi
19488 
19489 fi
19490 if test -n "$PKG_CONFIG"; then
19491         _pkg_min_version=0.9.0
19492         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19493 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19494         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19495                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19496 $as_echo "yes" >&6; }
19497         else
19498                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19499 $as_echo "no" >&6; }
19500                 PKG_CONFIG=""
19501         fi
19502 
19503 fi
19504 
19505 # After basic tools have been setup, we can check build os specific details.
19506 
19507   ###############################################################################
19508 
19509   # Note that this is the build platform OS version!
19510 
19511   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19512   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19513   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19514   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19515 
19516 
19517 
19518 
19519 
19520 # Setup builddeps, for automatic downloading of tools we need.
19521 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19522 # boot-jdk setup, but we need to have basic tools setup first.
19523 
19524 
19525 # Check whether --with-builddeps-conf was given.
19526 if test "${with_builddeps_conf+set}" = set; then :
19527   withval=$with_builddeps_conf;
19528 fi
19529 
19530 
19531 
19532 # Check whether --with-builddeps-server was given.
19533 if test "${with_builddeps_server+set}" = set; then :
19534   withval=$with_builddeps_server;
19535 fi
19536 
19537 
19538 
19539 # Check whether --with-builddeps-dir was given.
19540 if test "${with_builddeps_dir+set}" = set; then :
19541   withval=$with_builddeps_dir;
19542 else
19543   with_builddeps_dir=/localhome/builddeps
19544 fi
19545 
19546 
19547 
19548 # Check whether --with-builddeps-group was given.
19549 if test "${with_builddeps_group+set}" = set; then :
19550   withval=$with_builddeps_group;
19551 fi
19552 
19553 
19554 
19555 
19556   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19557     if test "x$with_builddeps_conf" != x; then
19558       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19559 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19560       builddepsfile=$with_builddeps_conf
19561       if test -s $builddepsfile; then
19562         . $builddepsfile
19563         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19564 $as_echo "loaded!" >&6; }
19565       else
19566         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19567       fi
19568     else
19569       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19570 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19571       builddepsfile=`mktemp`
19572       touch $builddepsfile
19573       # Put all found confs into a single file.
19574       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19575       # Source the file to acquire the variables
19576       if test -s $builddepsfile; then
19577         . $builddepsfile
19578         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19579 $as_echo "found at least one!" >&6; }
19580       else
19581         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19582       fi
19583     fi
19584     # Create build and target names that use _ instead of "-" and ".".
19585     # This is necessary to use them in variable names.
19586     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19587     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19588     # Extract rewrite information for build and target
19589     eval rewritten_build=\${REWRITE_${build_var}}
19590     if test "x$rewritten_build" = x; then
19591       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19592       echo Build stays the same $rewritten_build
19593     else
19594       echo Rewriting build for builddeps into $rewritten_build
19595     fi
19596     eval rewritten_target=\${REWRITE_${target_var}}
19597     if test "x$rewritten_target" = x; then
19598       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19599       echo Target stays the same $rewritten_target
19600     else
19601       echo Rewriting target for builddeps into $rewritten_target
19602     fi
19603     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19604     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19605   fi
19606   for ac_prog in 7z unzip
19607 do
19608   # Extract the first word of "$ac_prog", so it can be a program name with args.
19609 set dummy $ac_prog; ac_word=$2
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19611 $as_echo_n "checking for $ac_word... " >&6; }
19612 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19613   $as_echo_n "(cached) " >&6
19614 else
19615   if test -n "$BDEPS_UNZIP"; then
19616   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19617 else
19618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19619 for as_dir in $PATH
19620 do
19621   IFS=$as_save_IFS
19622   test -z "$as_dir" && as_dir=.
19623     for ac_exec_ext in '' $ac_executable_extensions; do
19624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19625     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19627     break 2
19628   fi
19629 done
19630   done
19631 IFS=$as_save_IFS
19632 
19633 fi
19634 fi
19635 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19636 if test -n "$BDEPS_UNZIP"; then
19637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19638 $as_echo "$BDEPS_UNZIP" >&6; }
19639 else
19640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19641 $as_echo "no" >&6; }
19642 fi
19643 
19644 
19645   test -n "$BDEPS_UNZIP" && break
19646 done
19647 
19648   if test "x$BDEPS_UNZIP" = x7z; then
19649     BDEPS_UNZIP="7z x"
19650   fi
19651 
19652   for ac_prog in wget lftp ftp
19653 do
19654   # Extract the first word of "$ac_prog", so it can be a program name with args.
19655 set dummy $ac_prog; ac_word=$2
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19657 $as_echo_n "checking for $ac_word... " >&6; }
19658 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661   if test -n "$BDEPS_FTP"; then
19662   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19663 else
19664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19665 for as_dir in $PATH
19666 do
19667   IFS=$as_save_IFS
19668   test -z "$as_dir" && as_dir=.
19669     for ac_exec_ext in '' $ac_executable_extensions; do
19670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19671     ac_cv_prog_BDEPS_FTP="$ac_prog"
19672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19673     break 2
19674   fi
19675 done
19676   done
19677 IFS=$as_save_IFS
19678 
19679 fi
19680 fi
19681 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19682 if test -n "$BDEPS_FTP"; then
19683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19684 $as_echo "$BDEPS_FTP" >&6; }
19685 else
19686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19687 $as_echo "no" >&6; }
19688 fi
19689 
19690 
19691   test -n "$BDEPS_FTP" && break
19692 done
19693 
19694 
19695 
19696 ###############################################################################
19697 #
19698 # Determine OpenJDK variants, options and version numbers.
19699 #
19700 ###############################################################################
19701 
19702 # We need build & target for this.
19703 
19704 
19705   ###############################################################################
19706   #
19707   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19708   # We always build headless support.
19709   #
19710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19711 $as_echo_n "checking headful support... " >&6; }
19712   # Check whether --enable-headful was given.
19713 if test "${enable_headful+set}" = set; then :
19714   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19715 else
19716   SUPPORT_HEADFUL=yes
19717 fi
19718 
19719 
19720   SUPPORT_HEADLESS=yes
19721   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19722 
19723   if test "x$SUPPORT_HEADFUL" = xyes; then
19724     # We are building both headful and headless.
19725     headful_msg="include support for both headful and headless"
19726   fi
19727 
19728   if test "x$SUPPORT_HEADFUL" = xno; then
19729     # Thus we are building headless only.
19730     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19731     headful_msg="headless only"
19732   fi
19733 
19734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19735 $as_echo "$headful_msg" >&6; }
19736 
19737 
19738 
19739 
19740 
19741   # Control wether Hotspot runs Queens test after build.
19742   # Check whether --enable-hotspot-test-in-build was given.
19743 if test "${enable_hotspot_test_in_build+set}" = set; then :
19744   enableval=$enable_hotspot_test_in_build;
19745 else
19746   enable_hotspot_test_in_build=no
19747 fi
19748 
19749   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19750     TEST_IN_BUILD=true
19751   else
19752     TEST_IN_BUILD=false
19753   fi
19754 
19755 
19756   ###############################################################################
19757   #
19758   # Choose cacerts source file
19759   #
19760 
19761 # Check whether --with-cacerts-file was given.
19762 if test "${with_cacerts_file+set}" = set; then :
19763   withval=$with_cacerts_file;
19764 fi
19765 
19766   if test "x$with_cacerts_file" != x; then
19767     CACERTS_FILE=$with_cacerts_file
19768   fi
19769 
19770 
19771   ###############################################################################
19772   #
19773   # Enable or disable unlimited crypto
19774   #
19775   # Check whether --enable-unlimited-crypto was given.
19776 if test "${enable_unlimited_crypto+set}" = set; then :
19777   enableval=$enable_unlimited_crypto;
19778 else
19779   enable_unlimited_crypto=no
19780 fi
19781 
19782   if test "x$enable_unlimited_crypto" = "xyes"; then
19783     UNLIMITED_CRYPTO=true
19784   else
19785     UNLIMITED_CRYPTO=false
19786   fi
19787 
19788 
19789   ###############################################################################
19790   #
19791   # Enable or disable the elliptic curve crypto implementation
19792   #
19793 
19794 
19795   ###############################################################################
19796   #
19797   # Compress jars
19798   #
19799   COMPRESS_JARS=false
19800 
19801 
19802 
19803 
19804   # Source the version numbers
19805   . $AUTOCONF_DIR/version-numbers
19806 
19807   # Get the settings from parameters
19808 
19809 # Check whether --with-milestone was given.
19810 if test "${with_milestone+set}" = set; then :
19811   withval=$with_milestone;
19812 fi
19813 
19814   if test "x$with_milestone" = xyes; then
19815     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19816   elif test "x$with_milestone" != x; then
19817     MILESTONE="$with_milestone"
19818   fi
19819   if test "x$MILESTONE" = x; then
19820     MILESTONE=internal
19821   fi
19822 
19823 
19824 # Check whether --with-update-version was given.
19825 if test "${with_update_version+set}" = set; then :
19826   withval=$with_update_version;
19827 fi
19828 
19829   if test "x$with_update_version" = xyes; then
19830     as_fn_error $? "Update version must have a value" "$LINENO" 5
19831   elif test "x$with_update_version" != x; then
19832     JDK_UPDATE_VERSION="$with_update_version"
19833     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19834     # to a bug in expr (which reduces it to just X). To work around this, we
19835     # always add a 0 to one digit update versions.
19836     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19837       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19838     fi
19839   fi
19840 
19841 
19842 # Check whether --with-user-release-suffix was given.
19843 if test "${with_user_release_suffix+set}" = set; then :
19844   withval=$with_user_release_suffix;
19845 fi
19846 
19847   if test "x$with_user_release_suffix" = xyes; then
19848     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19849   elif test "x$with_user_release_suffix" != x; then
19850     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19851   fi
19852 
19853 
19854 # Check whether --with-build-number was given.
19855 if test "${with_build_number+set}" = set; then :
19856   withval=$with_build_number;
19857 fi
19858 
19859   if test "x$with_build_number" = xyes; then
19860     as_fn_error $? "Build number must have a value" "$LINENO" 5
19861   elif test "x$with_build_number" != x; then
19862     JDK_BUILD_NUMBER="$with_build_number"
19863   fi
19864   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19865   if test "x$JDK_BUILD_NUMBER" = x; then
19866     JDK_BUILD_NUMBER=b00
19867     if test "x$USER_RELEASE_SUFFIX" = x; then
19868       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19869       # Avoid [:alnum:] since it depends on the locale.
19870       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19871       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19872     fi
19873   fi
19874 
19875   # Now set the JDK version, milestone, build number etc.
19876 
19877 
19878 
19879 
19880 
19881 
19882 
19883 
19884 
19885 
19886 
19887 
19888 
19889 
19890   # The vendor name, if any
19891 
19892 # Check whether --with-vendor-name was given.
19893 if test "${with_vendor_name+set}" = set; then :
19894   withval=$with_vendor_name;
19895 fi
19896 
19897   if test "x$with_vendor_name" = xyes; then
19898     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19899   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19900     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19901   elif test "x$with_vendor_name" != x; then
19902     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19903     # Otherwise we will use the value from "version-numbers" included above.
19904     COMPANY_NAME="$with_vendor_name"
19905   fi
19906 
19907 
19908   # The vendor URL, if any
19909 
19910 # Check whether --with-vendor-url was given.
19911 if test "${with_vendor_url+set}" = set; then :
19912   withval=$with_vendor_url;
19913 fi
19914 
19915   if test "x$with_vendor_url" = xyes; then
19916     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19917   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19918     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19919   else
19920     VENDOR_URL="$with_vendor_url"
19921   fi
19922 
19923 
19924   # The vendor bug URL, if any
19925 
19926 # Check whether --with-vendor-bug-url was given.
19927 if test "${with_vendor_bug_url+set}" = set; then :
19928   withval=$with_vendor_bug_url;
19929 fi
19930 
19931   if test "x$with_vendor_bug_url" = xyes; then
19932     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19933   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19934     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19935   else
19936     VENDOR_URL_BUG="$with_vendor_bug_url"
19937   fi
19938 
19939 
19940   # The vendor VM bug URL, if any
19941 
19942 # Check whether --with-vendor-vm-bug-url was given.
19943 if test "${with_vendor_vm_bug_url+set}" = set; then :
19944   withval=$with_vendor_vm_bug_url;
19945 fi
19946 
19947   if test "x$with_vendor_vm_bug_url" = xyes; then
19948     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19949   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19950     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
19951   else
19952     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
19953   fi
19954 
19955 
19956 
19957 # Check whether --with-copyright-year was given.
19958 if test "${with_copyright_year+set}" = set; then :
19959   withval=$with_copyright_year;
19960 fi
19961 
19962   if test "x$with_copyright_year" = xyes; then
19963     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19964   elif test "x$with_copyright_year" != x; then
19965     COPYRIGHT_YEAR="$with_copyright_year"
19966   else
19967     COPYRIGHT_YEAR=`date +'%Y'`
19968   fi
19969 
19970 
19971   if test "x$JDK_UPDATE_VERSION" != x; then
19972     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19973   else
19974     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19975   fi
19976 
19977 
19978   # The cooked update version used to encode trailing letters in the update
19979   # version into a trailing number. That is no longer needed, but need to
19980   # keep the format in 8u for compatibility.
19981   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19982 
19983 
19984   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19985 
19986 
19987 
19988 ###############################################################################
19989 #
19990 # Setup BootJDK, used to bootstrap the build.
19991 #
19992 ###############################################################################
19993 
19994 
19995   BOOT_JDK_FOUND=no
19996 
19997 # Check whether --with-boot-jdk was given.
19998 if test "${with_boot_jdk+set}" = set; then :
19999   withval=$with_boot_jdk;
20000 fi
20001 
20002 
20003   # We look for the Boot JDK through various means, going from more certain to
20004   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20005   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20006   # must check if this is indeed valid; otherwise we'll continue looking.
20007 
20008   # Test: Is bootjdk explicitely set by command line arguments?
20009 
20010   if test "x$BOOT_JDK_FOUND" = xno; then
20011     # Now execute the test
20012 
20013   if test "x$with_boot_jdk" != x; then
20014     BOOT_JDK=$with_boot_jdk
20015     BOOT_JDK_FOUND=maybe
20016     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20017 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20018   fi
20019 
20020 
20021     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20022     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20023       # Do we have a bin/java?
20024       if test ! -x "$BOOT_JDK/bin/java"; then
20025         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20026 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20027         BOOT_JDK_FOUND=no
20028       else
20029         # Do we have a bin/javac?
20030         if test ! -x "$BOOT_JDK/bin/javac"; then
20031           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20032 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20033           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20034 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20035           BOOT_JDK_FOUND=no
20036         else
20037           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20038           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20039             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20040 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20041             BOOT_JDK_FOUND=no
20042           else
20043             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20044             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20045 
20046             # Extra M4 quote needed to protect [] in grep expression.
20047             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20048             if test "x$FOUND_VERSION_78" = x; then
20049               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20050 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20051               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20052 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20053               BOOT_JDK_FOUND=no
20054             else
20055               # We're done! :-)
20056               BOOT_JDK_FOUND=yes
20057 
20058   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20059 
20060   # Input might be given as Windows format, start by converting to
20061   # unix format.
20062   path="$BOOT_JDK"
20063   new_path=`$CYGPATH -u "$path"`
20064 
20065   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20066   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20067   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20068   # "foo.exe" is OK but "foo" is an error.
20069   #
20070   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20071   # It is also a way to make sure we got the proper file name for the real test later on.
20072   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20073   if test "x$test_shortpath" = x; then
20074     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20075 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20076     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20077   fi
20078 
20079   # Call helper function which possibly converts this using DOS-style short mode.
20080   # If so, the updated path is stored in $new_path.
20081 
20082   input_path="$new_path"
20083   # Check if we need to convert this using DOS-style short mode. If the path
20084   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20085   # take no chances and rewrite it.
20086   # Note: m4 eats our [], so we need to use [ and ] instead.
20087   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20088   if test "x$has_forbidden_chars" != x; then
20089     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20090     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20091     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20092     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20093       # Going to short mode and back again did indeed matter. Since short mode is
20094       # case insensitive, let's make it lowercase to improve readability.
20095       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20096       # Now convert it back to Unix-style (cygpath)
20097       input_path=`$CYGPATH -u "$shortmode_path"`
20098       new_path="$input_path"
20099     fi
20100   fi
20101 
20102   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20103   if test "x$test_cygdrive_prefix" = x; then
20104     # As a simple fix, exclude /usr/bin since it's not a real path.
20105     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20106       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20107       # a path prefixed by /cygdrive for fixpath to work.
20108       new_path="$CYGWIN_ROOT_PATH$input_path"
20109     fi
20110   fi
20111 
20112 
20113   if test "x$path" != "x$new_path"; then
20114     BOOT_JDK="$new_path"
20115     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20116 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20117   fi
20118 
20119   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20120 
20121   path="$BOOT_JDK"
20122   has_colon=`$ECHO $path | $GREP ^.:`
20123   new_path="$path"
20124   if test "x$has_colon" = x; then
20125     # Not in mixed or Windows style, start by that.
20126     new_path=`cmd //c echo $path`
20127   fi
20128 
20129 
20130   input_path="$new_path"
20131   # Check if we need to convert this using DOS-style short mode. If the path
20132   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20133   # take no chances and rewrite it.
20134   # Note: m4 eats our [], so we need to use [ and ] instead.
20135   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20136   if test "x$has_forbidden_chars" != x; then
20137     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20138     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20139   fi
20140 
20141 
20142   windows_path="$new_path"
20143   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20144     unix_path=`$CYGPATH -u "$windows_path"`
20145     new_path="$unix_path"
20146   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20147     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20148     new_path="$unix_path"
20149   fi
20150 
20151   if test "x$path" != "x$new_path"; then
20152     BOOT_JDK="$new_path"
20153     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20154 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20155   fi
20156 
20157   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20158   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20159 
20160   else
20161     # We're on a posix platform. Hooray! :)
20162     path="$BOOT_JDK"
20163     has_space=`$ECHO "$path" | $GREP " "`
20164     if test "x$has_space" != x; then
20165       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20166 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20167       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20168     fi
20169 
20170     # Use eval to expand a potential ~
20171     eval path="$path"
20172     if test ! -f "$path" && test ! -d "$path"; then
20173       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20174     fi
20175 
20176     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20177   fi
20178 
20179               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20180 $as_echo_n "checking for Boot JDK... " >&6; }
20181               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20182 $as_echo "$BOOT_JDK" >&6; }
20183               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20184 $as_echo_n "checking Boot JDK version... " >&6; }
20185               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20186               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20187 $as_echo "$BOOT_JDK_VERSION" >&6; }
20188             fi # end check jdk version
20189           fi # end check rt.jar
20190         fi # end check javac
20191       fi # end check java
20192     fi # end check boot jdk found
20193   fi
20194 
20195   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20196     # Having specified an argument which is incorrect will produce an instant failure;
20197     # we should not go on looking
20198     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20199   fi
20200 
20201   # Test: Is bootjdk available from builddeps?
20202 
20203   if test "x$BOOT_JDK_FOUND" = xno; then
20204     # Now execute the test
20205 
20206 
20207 
20208   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20209     # Source the builddeps file again, to make sure it uses the latest variables!
20210     . $builddepsfile
20211     # Look for a target and build machine specific resource!
20212     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20213     if test "x$resource" = x; then
20214       # Ok, lets instead look for a target specific resource
20215       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20216     fi
20217     if test "x$resource" = x; then
20218       # Ok, lets instead look for a build specific resource
20219       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20220     fi
20221     if test "x$resource" = x; then
20222       # Ok, lets instead look for a generic resource
20223       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20224       resource=${builddep_bootjdk}
20225     fi
20226     if test "x$resource" != x; then
20227       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20228 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20229       # If the resource in the builddeps.conf file is an existing directory,
20230       # for example /java/linux/cups
20231       if test -d ${resource}; then
20232         depdir=${resource}
20233       else
20234 
20235   # bootjdk is for example mymodule
20236   # $resource is for example libs/general/libmymod_1_2_3.zip
20237   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20238   # $with_builddeps_dir is for example /localhome/builddeps
20239   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20240   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20241   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20242   filename=`basename $resource`
20243   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20244   filebase=${filename%%.*}
20245   extension=${filename#*.}
20246   installdir=$with_builddeps_dir/$filebase
20247   if test ! -f $installdir/$filename.unpacked; then
20248     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20249 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20250     if test ! -d $installdir; then
20251       mkdir -p $installdir
20252     fi
20253     if test ! -d $installdir; then
20254       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20255     fi
20256     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20257     touch $tmpfile
20258     if test ! -f $tmpfile; then
20259       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20260     fi
20261 
20262   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20263   # $tmpfile is the local file name for the downloaded file.
20264   VALID_TOOL=no
20265   if test "x$BDEPS_FTP" = xwget; then
20266     VALID_TOOL=yes
20267     wget -O $tmpfile $with_builddeps_server/$resource
20268   fi
20269   if test "x$BDEPS_FTP" = xlftp; then
20270     VALID_TOOL=yes
20271     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20272   fi
20273   if test "x$BDEPS_FTP" = xftp; then
20274     VALID_TOOL=yes
20275     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20276     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20277     FTPUSERPWD=${FTPSERVER%%@*}
20278     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20279       FTPUSER=${userpwd%%:*}
20280       FTPPWD=${userpwd#*@}
20281       FTPSERVER=${FTPSERVER#*@}
20282     else
20283       FTPUSER=ftp
20284       FTPPWD=ftp
20285     fi
20286     # the "pass" command does not work on some
20287     # ftp clients (read ftp.exe) but if it works,
20288     # passive mode is better!
20289     ( \
20290         echo "user $FTPUSER $FTPPWD"        ; \
20291         echo "pass"                         ; \
20292         echo "bin"                          ; \
20293         echo "get $FTPPATH $tmpfile"              ; \
20294     ) | ftp -in $FTPSERVER
20295   fi
20296   if test "x$VALID_TOOL" != xyes; then
20297     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20298   fi
20299 
20300     mv $tmpfile $installdir/$filename
20301     if test ! -s $installdir/$filename; then
20302       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20303     fi
20304     case "$extension" in
20305       zip)  echo "Unzipping $installdir/$filename..."
20306         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20307         ;;
20308       tar.gz) echo "Untaring $installdir/$filename..."
20309         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20310         ;;
20311       tgz) echo "Untaring $installdir/$filename..."
20312         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20313         ;;
20314       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20315         ;;
20316     esac
20317   fi
20318   if test -f $installdir/$filename.unpacked; then
20319     depdir=$installdir
20320   fi
20321 
20322       fi
20323       # Source the builddeps file again, because in the previous command, the depdir
20324       # was updated to point at the current build dependency install directory.
20325       . $builddepsfile
20326       # Now extract variables from the builddeps.conf files.
20327       theroot=${builddep_bootjdk_ROOT}
20328       thecflags=${builddep_bootjdk_CFLAGS}
20329       thelibs=${builddep_bootjdk_LIBS}
20330       if test "x$depdir" = x; then
20331         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20332       fi
20333       BOOT_JDK=$depdir
20334       if test "x$theroot" != x; then
20335         BOOT_JDK="$theroot"
20336       fi
20337       if test "x$thecflags" != x; then
20338         BOOT_JDK_CFLAGS="$thecflags"
20339       fi
20340       if test "x$thelibs" != x; then
20341         BOOT_JDK_LIBS="$thelibs"
20342       fi
20343       BOOT_JDK_FOUND=maybe
20344       else BOOT_JDK_FOUND=no
20345 
20346     fi
20347     else BOOT_JDK_FOUND=no
20348 
20349   fi
20350 
20351 
20352 
20353     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20354     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20355       # Do we have a bin/java?
20356       if test ! -x "$BOOT_JDK/bin/java"; then
20357         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20358 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20359         BOOT_JDK_FOUND=no
20360       else
20361         # Do we have a bin/javac?
20362         if test ! -x "$BOOT_JDK/bin/javac"; then
20363           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20364 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20365           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20366 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20367           BOOT_JDK_FOUND=no
20368         else
20369           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20370           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20371             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20372 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20373             BOOT_JDK_FOUND=no
20374           else
20375             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20376             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20377 
20378             # Extra M4 quote needed to protect [] in grep expression.
20379             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20380             if test "x$FOUND_VERSION_78" = x; then
20381               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20383               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20384 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20385               BOOT_JDK_FOUND=no
20386             else
20387               # We're done! :-)
20388               BOOT_JDK_FOUND=yes
20389 
20390   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20391 
20392   # Input might be given as Windows format, start by converting to
20393   # unix format.
20394   path="$BOOT_JDK"
20395   new_path=`$CYGPATH -u "$path"`
20396 
20397   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20398   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20399   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20400   # "foo.exe" is OK but "foo" is an error.
20401   #
20402   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20403   # It is also a way to make sure we got the proper file name for the real test later on.
20404   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20405   if test "x$test_shortpath" = x; then
20406     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20407 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20408     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20409   fi
20410 
20411   # Call helper function which possibly converts this using DOS-style short mode.
20412   # If so, the updated path is stored in $new_path.
20413 
20414   input_path="$new_path"
20415   # Check if we need to convert this using DOS-style short mode. If the path
20416   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20417   # take no chances and rewrite it.
20418   # Note: m4 eats our [], so we need to use [ and ] instead.
20419   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20420   if test "x$has_forbidden_chars" != x; then
20421     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20422     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20423     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20424     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20425       # Going to short mode and back again did indeed matter. Since short mode is
20426       # case insensitive, let's make it lowercase to improve readability.
20427       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20428       # Now convert it back to Unix-style (cygpath)
20429       input_path=`$CYGPATH -u "$shortmode_path"`
20430       new_path="$input_path"
20431     fi
20432   fi
20433 
20434   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20435   if test "x$test_cygdrive_prefix" = x; then
20436     # As a simple fix, exclude /usr/bin since it's not a real path.
20437     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20438       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20439       # a path prefixed by /cygdrive for fixpath to work.
20440       new_path="$CYGWIN_ROOT_PATH$input_path"
20441     fi
20442   fi
20443 
20444 
20445   if test "x$path" != "x$new_path"; then
20446     BOOT_JDK="$new_path"
20447     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20449   fi
20450 
20451   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20452 
20453   path="$BOOT_JDK"
20454   has_colon=`$ECHO $path | $GREP ^.:`
20455   new_path="$path"
20456   if test "x$has_colon" = x; then
20457     # Not in mixed or Windows style, start by that.
20458     new_path=`cmd //c echo $path`
20459   fi
20460 
20461 
20462   input_path="$new_path"
20463   # Check if we need to convert this using DOS-style short mode. If the path
20464   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20465   # take no chances and rewrite it.
20466   # Note: m4 eats our [], so we need to use [ and ] instead.
20467   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20468   if test "x$has_forbidden_chars" != x; then
20469     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20470     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20471   fi
20472 
20473 
20474   windows_path="$new_path"
20475   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20476     unix_path=`$CYGPATH -u "$windows_path"`
20477     new_path="$unix_path"
20478   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20479     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20480     new_path="$unix_path"
20481   fi
20482 
20483   if test "x$path" != "x$new_path"; then
20484     BOOT_JDK="$new_path"
20485     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20486 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20487   fi
20488 
20489   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20490   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20491 
20492   else
20493     # We're on a posix platform. Hooray! :)
20494     path="$BOOT_JDK"
20495     has_space=`$ECHO "$path" | $GREP " "`
20496     if test "x$has_space" != x; then
20497       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20498 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20499       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20500     fi
20501 
20502     # Use eval to expand a potential ~
20503     eval path="$path"
20504     if test ! -f "$path" && test ! -d "$path"; then
20505       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20506     fi
20507 
20508     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20509   fi
20510 
20511               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20512 $as_echo_n "checking for Boot JDK... " >&6; }
20513               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20514 $as_echo "$BOOT_JDK" >&6; }
20515               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20516 $as_echo_n "checking Boot JDK version... " >&6; }
20517               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20518               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20519 $as_echo "$BOOT_JDK_VERSION" >&6; }
20520             fi # end check jdk version
20521           fi # end check rt.jar
20522         fi # end check javac
20523       fi # end check java
20524     fi # end check boot jdk found
20525   fi
20526 
20527 
20528   # Test: Is $JAVA_HOME set?
20529 
20530   if test "x$BOOT_JDK_FOUND" = xno; then
20531     # Now execute the test
20532 
20533   if test "x$JAVA_HOME" != x; then
20534     JAVA_HOME_PROCESSED="$JAVA_HOME"
20535 
20536   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20537 
20538   # Input might be given as Windows format, start by converting to
20539   # unix format.
20540   path="$JAVA_HOME_PROCESSED"
20541   new_path=`$CYGPATH -u "$path"`
20542 
20543   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20544   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20545   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20546   # "foo.exe" is OK but "foo" is an error.
20547   #
20548   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20549   # It is also a way to make sure we got the proper file name for the real test later on.
20550   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20551   if test "x$test_shortpath" = x; then
20552     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20553 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20554     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20555   fi
20556 
20557   # Call helper function which possibly converts this using DOS-style short mode.
20558   # If so, the updated path is stored in $new_path.
20559 
20560   input_path="$new_path"
20561   # Check if we need to convert this using DOS-style short mode. If the path
20562   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20563   # take no chances and rewrite it.
20564   # Note: m4 eats our [], so we need to use [ and ] instead.
20565   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20566   if test "x$has_forbidden_chars" != x; then
20567     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20568     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20569     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20570     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20571       # Going to short mode and back again did indeed matter. Since short mode is
20572       # case insensitive, let's make it lowercase to improve readability.
20573       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20574       # Now convert it back to Unix-style (cygpath)
20575       input_path=`$CYGPATH -u "$shortmode_path"`
20576       new_path="$input_path"
20577     fi
20578   fi
20579 
20580   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20581   if test "x$test_cygdrive_prefix" = x; then
20582     # As a simple fix, exclude /usr/bin since it's not a real path.
20583     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20584       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20585       # a path prefixed by /cygdrive for fixpath to work.
20586       new_path="$CYGWIN_ROOT_PATH$input_path"
20587     fi
20588   fi
20589 
20590 
20591   if test "x$path" != "x$new_path"; then
20592     JAVA_HOME_PROCESSED="$new_path"
20593     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20594 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20595   fi
20596 
20597   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20598 
20599   path="$JAVA_HOME_PROCESSED"
20600   has_colon=`$ECHO $path | $GREP ^.:`
20601   new_path="$path"
20602   if test "x$has_colon" = x; then
20603     # Not in mixed or Windows style, start by that.
20604     new_path=`cmd //c echo $path`
20605   fi
20606 
20607 
20608   input_path="$new_path"
20609   # Check if we need to convert this using DOS-style short mode. If the path
20610   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20611   # take no chances and rewrite it.
20612   # Note: m4 eats our [], so we need to use [ and ] instead.
20613   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20614   if test "x$has_forbidden_chars" != x; then
20615     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20616     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20617   fi
20618 
20619 
20620   windows_path="$new_path"
20621   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20622     unix_path=`$CYGPATH -u "$windows_path"`
20623     new_path="$unix_path"
20624   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20625     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20626     new_path="$unix_path"
20627   fi
20628 
20629   if test "x$path" != "x$new_path"; then
20630     JAVA_HOME_PROCESSED="$new_path"
20631     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20632 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20633   fi
20634 
20635   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20636   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20637 
20638   else
20639     # We're on a posix platform. Hooray! :)
20640     path="$JAVA_HOME_PROCESSED"
20641     has_space=`$ECHO "$path" | $GREP " "`
20642     if test "x$has_space" != x; then
20643       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20644 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20645       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20646     fi
20647 
20648     # Use eval to expand a potential ~
20649     eval path="$path"
20650     if test ! -f "$path" && test ! -d "$path"; then
20651       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20652     fi
20653 
20654     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20655   fi
20656 
20657     if test ! -d "$JAVA_HOME_PROCESSED"; then
20658       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20659 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20660     else
20661       # Aha, the user has set a JAVA_HOME
20662       # let us use that as the Boot JDK.
20663       BOOT_JDK="$JAVA_HOME_PROCESSED"
20664       BOOT_JDK_FOUND=maybe
20665       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20666 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20667     fi
20668   fi
20669 
20670 
20671     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20672     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20673       # Do we have a bin/java?
20674       if test ! -x "$BOOT_JDK/bin/java"; then
20675         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20677         BOOT_JDK_FOUND=no
20678       else
20679         # Do we have a bin/javac?
20680         if test ! -x "$BOOT_JDK/bin/javac"; then
20681           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20682 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20683           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20684 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20685           BOOT_JDK_FOUND=no
20686         else
20687           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20688           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20689             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20691             BOOT_JDK_FOUND=no
20692           else
20693             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20694             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20695 
20696             # Extra M4 quote needed to protect [] in grep expression.
20697             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20698             if test "x$FOUND_VERSION_78" = x; then
20699               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20700 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20701               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20702 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20703               BOOT_JDK_FOUND=no
20704             else
20705               # We're done! :-)
20706               BOOT_JDK_FOUND=yes
20707 
20708   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20709 
20710   # Input might be given as Windows format, start by converting to
20711   # unix format.
20712   path="$BOOT_JDK"
20713   new_path=`$CYGPATH -u "$path"`
20714 
20715   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20716   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20717   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20718   # "foo.exe" is OK but "foo" is an error.
20719   #
20720   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20721   # It is also a way to make sure we got the proper file name for the real test later on.
20722   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20723   if test "x$test_shortpath" = x; then
20724     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20725 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20726     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20727   fi
20728 
20729   # Call helper function which possibly converts this using DOS-style short mode.
20730   # If so, the updated path is stored in $new_path.
20731 
20732   input_path="$new_path"
20733   # Check if we need to convert this using DOS-style short mode. If the path
20734   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20735   # take no chances and rewrite it.
20736   # Note: m4 eats our [], so we need to use [ and ] instead.
20737   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20738   if test "x$has_forbidden_chars" != x; then
20739     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20740     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20741     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20742     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20743       # Going to short mode and back again did indeed matter. Since short mode is
20744       # case insensitive, let's make it lowercase to improve readability.
20745       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20746       # Now convert it back to Unix-style (cygpath)
20747       input_path=`$CYGPATH -u "$shortmode_path"`
20748       new_path="$input_path"
20749     fi
20750   fi
20751 
20752   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20753   if test "x$test_cygdrive_prefix" = x; then
20754     # As a simple fix, exclude /usr/bin since it's not a real path.
20755     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20756       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20757       # a path prefixed by /cygdrive for fixpath to work.
20758       new_path="$CYGWIN_ROOT_PATH$input_path"
20759     fi
20760   fi
20761 
20762 
20763   if test "x$path" != "x$new_path"; then
20764     BOOT_JDK="$new_path"
20765     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20766 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20767   fi
20768 
20769   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20770 
20771   path="$BOOT_JDK"
20772   has_colon=`$ECHO $path | $GREP ^.:`
20773   new_path="$path"
20774   if test "x$has_colon" = x; then
20775     # Not in mixed or Windows style, start by that.
20776     new_path=`cmd //c echo $path`
20777   fi
20778 
20779 
20780   input_path="$new_path"
20781   # Check if we need to convert this using DOS-style short mode. If the path
20782   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20783   # take no chances and rewrite it.
20784   # Note: m4 eats our [], so we need to use [ and ] instead.
20785   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20786   if test "x$has_forbidden_chars" != x; then
20787     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20788     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20789   fi
20790 
20791 
20792   windows_path="$new_path"
20793   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20794     unix_path=`$CYGPATH -u "$windows_path"`
20795     new_path="$unix_path"
20796   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20797     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20798     new_path="$unix_path"
20799   fi
20800 
20801   if test "x$path" != "x$new_path"; then
20802     BOOT_JDK="$new_path"
20803     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20804 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20805   fi
20806 
20807   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20808   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20809 
20810   else
20811     # We're on a posix platform. Hooray! :)
20812     path="$BOOT_JDK"
20813     has_space=`$ECHO "$path" | $GREP " "`
20814     if test "x$has_space" != x; then
20815       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20816 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20817       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20818     fi
20819 
20820     # Use eval to expand a potential ~
20821     eval path="$path"
20822     if test ! -f "$path" && test ! -d "$path"; then
20823       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20824     fi
20825 
20826     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20827   fi
20828 
20829               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20830 $as_echo_n "checking for Boot JDK... " >&6; }
20831               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20832 $as_echo "$BOOT_JDK" >&6; }
20833               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20834 $as_echo_n "checking Boot JDK version... " >&6; }
20835               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20836               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20837 $as_echo "$BOOT_JDK_VERSION" >&6; }
20838             fi # end check jdk version
20839           fi # end check rt.jar
20840         fi # end check javac
20841       fi # end check java
20842     fi # end check boot jdk found
20843   fi
20844 
20845 
20846   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20847 
20848   if test "x$BOOT_JDK_FOUND" = xno; then
20849     # Now execute the test
20850 
20851   if test -x /usr/libexec/java_home; then
20852     BOOT_JDK=`/usr/libexec/java_home`
20853     BOOT_JDK_FOUND=maybe
20854     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20855 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20856   fi
20857 
20858 
20859     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20860     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20861       # Do we have a bin/java?
20862       if test ! -x "$BOOT_JDK/bin/java"; then
20863         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20865         BOOT_JDK_FOUND=no
20866       else
20867         # Do we have a bin/javac?
20868         if test ! -x "$BOOT_JDK/bin/javac"; then
20869           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20870 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20871           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20872 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20873           BOOT_JDK_FOUND=no
20874         else
20875           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20876           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20877             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20878 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20879             BOOT_JDK_FOUND=no
20880           else
20881             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20882             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20883 
20884             # Extra M4 quote needed to protect [] in grep expression.
20885             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20886             if test "x$FOUND_VERSION_78" = x; then
20887               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20889               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20890 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20891               BOOT_JDK_FOUND=no
20892             else
20893               # We're done! :-)
20894               BOOT_JDK_FOUND=yes
20895 
20896   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20897 
20898   # Input might be given as Windows format, start by converting to
20899   # unix format.
20900   path="$BOOT_JDK"
20901   new_path=`$CYGPATH -u "$path"`
20902 
20903   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20904   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20905   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20906   # "foo.exe" is OK but "foo" is an error.
20907   #
20908   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20909   # It is also a way to make sure we got the proper file name for the real test later on.
20910   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20911   if test "x$test_shortpath" = x; then
20912     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20913 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20914     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20915   fi
20916 
20917   # Call helper function which possibly converts this using DOS-style short mode.
20918   # If so, the updated path is stored in $new_path.
20919 
20920   input_path="$new_path"
20921   # Check if we need to convert this using DOS-style short mode. If the path
20922   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20923   # take no chances and rewrite it.
20924   # Note: m4 eats our [], so we need to use [ and ] instead.
20925   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20926   if test "x$has_forbidden_chars" != x; then
20927     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20928     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20929     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20930     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20931       # Going to short mode and back again did indeed matter. Since short mode is
20932       # case insensitive, let's make it lowercase to improve readability.
20933       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20934       # Now convert it back to Unix-style (cygpath)
20935       input_path=`$CYGPATH -u "$shortmode_path"`
20936       new_path="$input_path"
20937     fi
20938   fi
20939 
20940   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20941   if test "x$test_cygdrive_prefix" = x; then
20942     # As a simple fix, exclude /usr/bin since it's not a real path.
20943     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20944       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20945       # a path prefixed by /cygdrive for fixpath to work.
20946       new_path="$CYGWIN_ROOT_PATH$input_path"
20947     fi
20948   fi
20949 
20950 
20951   if test "x$path" != "x$new_path"; then
20952     BOOT_JDK="$new_path"
20953     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20954 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20955   fi
20956 
20957   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20958 
20959   path="$BOOT_JDK"
20960   has_colon=`$ECHO $path | $GREP ^.:`
20961   new_path="$path"
20962   if test "x$has_colon" = x; then
20963     # Not in mixed or Windows style, start by that.
20964     new_path=`cmd //c echo $path`
20965   fi
20966 
20967 
20968   input_path="$new_path"
20969   # Check if we need to convert this using DOS-style short mode. If the path
20970   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20971   # take no chances and rewrite it.
20972   # Note: m4 eats our [], so we need to use [ and ] instead.
20973   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20974   if test "x$has_forbidden_chars" != x; then
20975     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20976     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20977   fi
20978 
20979 
20980   windows_path="$new_path"
20981   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20982     unix_path=`$CYGPATH -u "$windows_path"`
20983     new_path="$unix_path"
20984   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20985     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20986     new_path="$unix_path"
20987   fi
20988 
20989   if test "x$path" != "x$new_path"; then
20990     BOOT_JDK="$new_path"
20991     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20992 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20993   fi
20994 
20995   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20996   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20997 
20998   else
20999     # We're on a posix platform. Hooray! :)
21000     path="$BOOT_JDK"
21001     has_space=`$ECHO "$path" | $GREP " "`
21002     if test "x$has_space" != x; then
21003       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21004 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21005       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21006     fi
21007 
21008     # Use eval to expand a potential ~
21009     eval path="$path"
21010     if test ! -f "$path" && test ! -d "$path"; then
21011       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21012     fi
21013 
21014     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21015   fi
21016 
21017               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21018 $as_echo_n "checking for Boot JDK... " >&6; }
21019               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21020 $as_echo "$BOOT_JDK" >&6; }
21021               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21022 $as_echo_n "checking Boot JDK version... " >&6; }
21023               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21024               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21025 $as_echo "$BOOT_JDK_VERSION" >&6; }
21026             fi # end check jdk version
21027           fi # end check rt.jar
21028         fi # end check javac
21029       fi # end check java
21030     fi # end check boot jdk found
21031   fi
21032 
21033 
21034   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21035 
21036   if test "x$BOOT_JDK_FOUND" = xno; then
21037     # Now execute the test
21038 
21039   # Extract the first word of "javac", so it can be a program name with args.
21040 set dummy javac; ac_word=$2
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21042 $as_echo_n "checking for $ac_word... " >&6; }
21043 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21044   $as_echo_n "(cached) " >&6
21045 else
21046   case $JAVAC_CHECK in
21047   [\\/]* | ?:[\\/]*)
21048   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21049   ;;
21050   *)
21051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21052 for as_dir in $PATH
21053 do
21054   IFS=$as_save_IFS
21055   test -z "$as_dir" && as_dir=.
21056     for ac_exec_ext in '' $ac_executable_extensions; do
21057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21058     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21059     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21060     break 2
21061   fi
21062 done
21063   done
21064 IFS=$as_save_IFS
21065 
21066   ;;
21067 esac
21068 fi
21069 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21070 if test -n "$JAVAC_CHECK"; then
21071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21072 $as_echo "$JAVAC_CHECK" >&6; }
21073 else
21074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21075 $as_echo "no" >&6; }
21076 fi
21077 
21078 
21079   # Extract the first word of "java", so it can be a program name with args.
21080 set dummy java; ac_word=$2
21081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21082 $as_echo_n "checking for $ac_word... " >&6; }
21083 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21084   $as_echo_n "(cached) " >&6
21085 else
21086   case $JAVA_CHECK in
21087   [\\/]* | ?:[\\/]*)
21088   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21089   ;;
21090   *)
21091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21092 for as_dir in $PATH
21093 do
21094   IFS=$as_save_IFS
21095   test -z "$as_dir" && as_dir=.
21096     for ac_exec_ext in '' $ac_executable_extensions; do
21097   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21098     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21100     break 2
21101   fi
21102 done
21103   done
21104 IFS=$as_save_IFS
21105 
21106   ;;
21107 esac
21108 fi
21109 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21110 if test -n "$JAVA_CHECK"; then
21111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21112 $as_echo "$JAVA_CHECK" >&6; }
21113 else
21114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21115 $as_echo "no" >&6; }
21116 fi
21117 
21118 
21119   BINARY="$JAVAC_CHECK"
21120   if test "x$JAVAC_CHECK" = x; then
21121     BINARY="$JAVA_CHECK"
21122   fi
21123   if test "x$BINARY" != x; then
21124     # So there is a java(c) binary, it might be part of a JDK.
21125     # Lets find the JDK/JRE directory by following symbolic links.
21126     # Linux/GNU systems often have links from /usr/bin/java to
21127     # /etc/alternatives/java to the real JDK binary.
21128 
21129   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21130     # Follow a chain of symbolic links. Use readlink
21131     # where it exists, else fall back to horribly
21132     # complicated shell code.
21133     if test "x$READLINK_TESTED" != yes; then
21134       # On MacOSX there is a readlink tool with a different
21135       # purpose than the GNU readlink tool. Check the found readlink.
21136       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21137       if test "x$ISGNU" = x; then
21138         # A readlink that we do not know how to use.
21139         # Are there other non-GNU readlinks out there?
21140         READLINK_TESTED=yes
21141         READLINK=
21142       fi
21143     fi
21144 
21145     if test "x$READLINK" != x; then
21146       BINARY=`$READLINK -f $BINARY`
21147     else
21148       # Save the current directory for restoring afterwards
21149       STARTDIR=$PWD
21150       COUNTER=0
21151       sym_link_dir=`$DIRNAME $BINARY`
21152       sym_link_file=`$BASENAME $BINARY`
21153       cd $sym_link_dir
21154       # Use -P flag to resolve symlinks in directories.
21155       cd `$THEPWDCMD -P`
21156       sym_link_dir=`$THEPWDCMD -P`
21157       # Resolve file symlinks
21158       while test $COUNTER -lt 20; do
21159         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21160         if test "x$ISLINK" == x; then
21161           # This is not a symbolic link! We are done!
21162           break
21163         fi
21164         # Again resolve directory symlinks since the target of the just found
21165         # link could be in a different directory
21166         cd `$DIRNAME $ISLINK`
21167         sym_link_dir=`$THEPWDCMD -P`
21168         sym_link_file=`$BASENAME $ISLINK`
21169         let COUNTER=COUNTER+1
21170       done
21171       cd $STARTDIR
21172       BINARY=$sym_link_dir/$sym_link_file
21173     fi
21174   fi
21175 
21176     BOOT_JDK=`dirname "$BINARY"`
21177     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21178     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21179       # Looks like we found ourselves an JDK
21180       BOOT_JDK_FOUND=maybe
21181       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21182 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21183     fi
21184   fi
21185 
21186 
21187     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21188     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21189       # Do we have a bin/java?
21190       if test ! -x "$BOOT_JDK/bin/java"; then
21191         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21192 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21193         BOOT_JDK_FOUND=no
21194       else
21195         # Do we have a bin/javac?
21196         if test ! -x "$BOOT_JDK/bin/javac"; then
21197           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21199           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21200 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21201           BOOT_JDK_FOUND=no
21202         else
21203           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21204           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21205             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21207             BOOT_JDK_FOUND=no
21208           else
21209             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21210             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21211 
21212             # Extra M4 quote needed to protect [] in grep expression.
21213             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21214             if test "x$FOUND_VERSION_78" = x; then
21215               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21216 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21217               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21218 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21219               BOOT_JDK_FOUND=no
21220             else
21221               # We're done! :-)
21222               BOOT_JDK_FOUND=yes
21223 
21224   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21225 
21226   # Input might be given as Windows format, start by converting to
21227   # unix format.
21228   path="$BOOT_JDK"
21229   new_path=`$CYGPATH -u "$path"`
21230 
21231   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21232   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21233   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21234   # "foo.exe" is OK but "foo" is an error.
21235   #
21236   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21237   # It is also a way to make sure we got the proper file name for the real test later on.
21238   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21239   if test "x$test_shortpath" = x; then
21240     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21241 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21242     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21243   fi
21244 
21245   # Call helper function which possibly converts this using DOS-style short mode.
21246   # If so, the updated path is stored in $new_path.
21247 
21248   input_path="$new_path"
21249   # Check if we need to convert this using DOS-style short mode. If the path
21250   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21251   # take no chances and rewrite it.
21252   # Note: m4 eats our [], so we need to use [ and ] instead.
21253   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21254   if test "x$has_forbidden_chars" != x; then
21255     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21256     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21257     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21258     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21259       # Going to short mode and back again did indeed matter. Since short mode is
21260       # case insensitive, let's make it lowercase to improve readability.
21261       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21262       # Now convert it back to Unix-style (cygpath)
21263       input_path=`$CYGPATH -u "$shortmode_path"`
21264       new_path="$input_path"
21265     fi
21266   fi
21267 
21268   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21269   if test "x$test_cygdrive_prefix" = x; then
21270     # As a simple fix, exclude /usr/bin since it's not a real path.
21271     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21272       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21273       # a path prefixed by /cygdrive for fixpath to work.
21274       new_path="$CYGWIN_ROOT_PATH$input_path"
21275     fi
21276   fi
21277 
21278 
21279   if test "x$path" != "x$new_path"; then
21280     BOOT_JDK="$new_path"
21281     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21282 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21283   fi
21284 
21285   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21286 
21287   path="$BOOT_JDK"
21288   has_colon=`$ECHO $path | $GREP ^.:`
21289   new_path="$path"
21290   if test "x$has_colon" = x; then
21291     # Not in mixed or Windows style, start by that.
21292     new_path=`cmd //c echo $path`
21293   fi
21294 
21295 
21296   input_path="$new_path"
21297   # Check if we need to convert this using DOS-style short mode. If the path
21298   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21299   # take no chances and rewrite it.
21300   # Note: m4 eats our [], so we need to use [ and ] instead.
21301   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21302   if test "x$has_forbidden_chars" != x; then
21303     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21304     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21305   fi
21306 
21307 
21308   windows_path="$new_path"
21309   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21310     unix_path=`$CYGPATH -u "$windows_path"`
21311     new_path="$unix_path"
21312   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21313     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21314     new_path="$unix_path"
21315   fi
21316 
21317   if test "x$path" != "x$new_path"; then
21318     BOOT_JDK="$new_path"
21319     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21320 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21321   fi
21322 
21323   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21324   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21325 
21326   else
21327     # We're on a posix platform. Hooray! :)
21328     path="$BOOT_JDK"
21329     has_space=`$ECHO "$path" | $GREP " "`
21330     if test "x$has_space" != x; then
21331       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21332 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21333       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21334     fi
21335 
21336     # Use eval to expand a potential ~
21337     eval path="$path"
21338     if test ! -f "$path" && test ! -d "$path"; then
21339       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21340     fi
21341 
21342     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21343   fi
21344 
21345               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21346 $as_echo_n "checking for Boot JDK... " >&6; }
21347               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21348 $as_echo "$BOOT_JDK" >&6; }
21349               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21350 $as_echo_n "checking Boot JDK version... " >&6; }
21351               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21352               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21353 $as_echo "$BOOT_JDK_VERSION" >&6; }
21354             fi # end check jdk version
21355           fi # end check rt.jar
21356         fi # end check javac
21357       fi # end check java
21358     fi # end check boot jdk found
21359   fi
21360 
21361 
21362   # Test: Is there a JDK installed in default, well-known locations?
21363 
21364   if test "x$BOOT_JDK_FOUND" = xno; then
21365     # Now execute the test
21366 
21367   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21368 
21369   if test "x$BOOT_JDK_FOUND" = xno; then
21370     # Now execute the test
21371 
21372   if test "x$ProgramW6432" != x; then
21373     VIRTUAL_DIR="$ProgramW6432/Java"
21374 
21375   windows_path="$VIRTUAL_DIR"
21376   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21377     unix_path=`$CYGPATH -u "$windows_path"`
21378     VIRTUAL_DIR="$unix_path"
21379   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21380     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21381     VIRTUAL_DIR="$unix_path"
21382   fi
21383 
21384 
21385   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21386   BOOT_JDK_SUFFIX=""
21387   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21388   if test "x$ALL_JDKS_FOUND" != x; then
21389     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21390 
21391   if test "x$BOOT_JDK_FOUND" = xno; then
21392     # Now execute the test
21393 
21394         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21395         if test -d "$BOOT_JDK"; then
21396           BOOT_JDK_FOUND=maybe
21397           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21398 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21399         fi
21400 
21401 
21402     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21403     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21404       # Do we have a bin/java?
21405       if test ! -x "$BOOT_JDK/bin/java"; then
21406         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21407 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21408         BOOT_JDK_FOUND=no
21409       else
21410         # Do we have a bin/javac?
21411         if test ! -x "$BOOT_JDK/bin/javac"; then
21412           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21414           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21415 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21416           BOOT_JDK_FOUND=no
21417         else
21418           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21419           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21420             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21422             BOOT_JDK_FOUND=no
21423           else
21424             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21425             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21426 
21427             # Extra M4 quote needed to protect [] in grep expression.
21428             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21429             if test "x$FOUND_VERSION_78" = x; then
21430               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21431 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21432               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21433 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21434               BOOT_JDK_FOUND=no
21435             else
21436               # We're done! :-)
21437               BOOT_JDK_FOUND=yes
21438 
21439   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21440 
21441   # Input might be given as Windows format, start by converting to
21442   # unix format.
21443   path="$BOOT_JDK"
21444   new_path=`$CYGPATH -u "$path"`
21445 
21446   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21447   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21448   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21449   # "foo.exe" is OK but "foo" is an error.
21450   #
21451   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21452   # It is also a way to make sure we got the proper file name for the real test later on.
21453   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21454   if test "x$test_shortpath" = x; then
21455     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21456 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21457     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21458   fi
21459 
21460   # Call helper function which possibly converts this using DOS-style short mode.
21461   # If so, the updated path is stored in $new_path.
21462 
21463   input_path="$new_path"
21464   # Check if we need to convert this using DOS-style short mode. If the path
21465   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21466   # take no chances and rewrite it.
21467   # Note: m4 eats our [], so we need to use [ and ] instead.
21468   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21469   if test "x$has_forbidden_chars" != x; then
21470     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21471     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21472     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21473     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21474       # Going to short mode and back again did indeed matter. Since short mode is
21475       # case insensitive, let's make it lowercase to improve readability.
21476       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21477       # Now convert it back to Unix-style (cygpath)
21478       input_path=`$CYGPATH -u "$shortmode_path"`
21479       new_path="$input_path"
21480     fi
21481   fi
21482 
21483   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21484   if test "x$test_cygdrive_prefix" = x; then
21485     # As a simple fix, exclude /usr/bin since it's not a real path.
21486     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21487       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21488       # a path prefixed by /cygdrive for fixpath to work.
21489       new_path="$CYGWIN_ROOT_PATH$input_path"
21490     fi
21491   fi
21492 
21493 
21494   if test "x$path" != "x$new_path"; then
21495     BOOT_JDK="$new_path"
21496     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21497 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21498   fi
21499 
21500   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21501 
21502   path="$BOOT_JDK"
21503   has_colon=`$ECHO $path | $GREP ^.:`
21504   new_path="$path"
21505   if test "x$has_colon" = x; then
21506     # Not in mixed or Windows style, start by that.
21507     new_path=`cmd //c echo $path`
21508   fi
21509 
21510 
21511   input_path="$new_path"
21512   # Check if we need to convert this using DOS-style short mode. If the path
21513   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21514   # take no chances and rewrite it.
21515   # Note: m4 eats our [], so we need to use [ and ] instead.
21516   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21517   if test "x$has_forbidden_chars" != x; then
21518     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21519     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21520   fi
21521 
21522 
21523   windows_path="$new_path"
21524   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21525     unix_path=`$CYGPATH -u "$windows_path"`
21526     new_path="$unix_path"
21527   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21528     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21529     new_path="$unix_path"
21530   fi
21531 
21532   if test "x$path" != "x$new_path"; then
21533     BOOT_JDK="$new_path"
21534     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21535 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21536   fi
21537 
21538   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21539   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21540 
21541   else
21542     # We're on a posix platform. Hooray! :)
21543     path="$BOOT_JDK"
21544     has_space=`$ECHO "$path" | $GREP " "`
21545     if test "x$has_space" != x; then
21546       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21547 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21548       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21549     fi
21550 
21551     # Use eval to expand a potential ~
21552     eval path="$path"
21553     if test ! -f "$path" && test ! -d "$path"; then
21554       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21555     fi
21556 
21557     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21558   fi
21559 
21560               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21561 $as_echo_n "checking for Boot JDK... " >&6; }
21562               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21563 $as_echo "$BOOT_JDK" >&6; }
21564               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21565 $as_echo_n "checking Boot JDK version... " >&6; }
21566               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21567               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21568 $as_echo "$BOOT_JDK_VERSION" >&6; }
21569             fi # end check jdk version
21570           fi # end check rt.jar
21571         fi # end check javac
21572       fi # end check java
21573     fi # end check boot jdk found
21574   fi
21575 
21576     done
21577   fi
21578 
21579   fi
21580 
21581 
21582     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21583     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21584       # Do we have a bin/java?
21585       if test ! -x "$BOOT_JDK/bin/java"; then
21586         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21588         BOOT_JDK_FOUND=no
21589       else
21590         # Do we have a bin/javac?
21591         if test ! -x "$BOOT_JDK/bin/javac"; then
21592           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21593 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21594           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21595 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21596           BOOT_JDK_FOUND=no
21597         else
21598           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21599           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21600             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21601 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21602             BOOT_JDK_FOUND=no
21603           else
21604             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21605             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21606 
21607             # Extra M4 quote needed to protect [] in grep expression.
21608             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21609             if test "x$FOUND_VERSION_78" = x; then
21610               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21611 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21612               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21613 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21614               BOOT_JDK_FOUND=no
21615             else
21616               # We're done! :-)
21617               BOOT_JDK_FOUND=yes
21618 
21619   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21620 
21621   # Input might be given as Windows format, start by converting to
21622   # unix format.
21623   path="$BOOT_JDK"
21624   new_path=`$CYGPATH -u "$path"`
21625 
21626   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21627   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21628   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21629   # "foo.exe" is OK but "foo" is an error.
21630   #
21631   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21632   # It is also a way to make sure we got the proper file name for the real test later on.
21633   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21634   if test "x$test_shortpath" = x; then
21635     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21636 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21637     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21638   fi
21639 
21640   # Call helper function which possibly converts this using DOS-style short mode.
21641   # If so, the updated path is stored in $new_path.
21642 
21643   input_path="$new_path"
21644   # Check if we need to convert this using DOS-style short mode. If the path
21645   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21646   # take no chances and rewrite it.
21647   # Note: m4 eats our [], so we need to use [ and ] instead.
21648   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21649   if test "x$has_forbidden_chars" != x; then
21650     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21651     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21652     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21653     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21654       # Going to short mode and back again did indeed matter. Since short mode is
21655       # case insensitive, let's make it lowercase to improve readability.
21656       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21657       # Now convert it back to Unix-style (cygpath)
21658       input_path=`$CYGPATH -u "$shortmode_path"`
21659       new_path="$input_path"
21660     fi
21661   fi
21662 
21663   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21664   if test "x$test_cygdrive_prefix" = x; then
21665     # As a simple fix, exclude /usr/bin since it's not a real path.
21666     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21667       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21668       # a path prefixed by /cygdrive for fixpath to work.
21669       new_path="$CYGWIN_ROOT_PATH$input_path"
21670     fi
21671   fi
21672 
21673 
21674   if test "x$path" != "x$new_path"; then
21675     BOOT_JDK="$new_path"
21676     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21677 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21678   fi
21679 
21680   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21681 
21682   path="$BOOT_JDK"
21683   has_colon=`$ECHO $path | $GREP ^.:`
21684   new_path="$path"
21685   if test "x$has_colon" = x; then
21686     # Not in mixed or Windows style, start by that.
21687     new_path=`cmd //c echo $path`
21688   fi
21689 
21690 
21691   input_path="$new_path"
21692   # Check if we need to convert this using DOS-style short mode. If the path
21693   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21694   # take no chances and rewrite it.
21695   # Note: m4 eats our [], so we need to use [ and ] instead.
21696   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21697   if test "x$has_forbidden_chars" != x; then
21698     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21699     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21700   fi
21701 
21702 
21703   windows_path="$new_path"
21704   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21705     unix_path=`$CYGPATH -u "$windows_path"`
21706     new_path="$unix_path"
21707   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21708     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21709     new_path="$unix_path"
21710   fi
21711 
21712   if test "x$path" != "x$new_path"; then
21713     BOOT_JDK="$new_path"
21714     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21715 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21716   fi
21717 
21718   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21719   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21720 
21721   else
21722     # We're on a posix platform. Hooray! :)
21723     path="$BOOT_JDK"
21724     has_space=`$ECHO "$path" | $GREP " "`
21725     if test "x$has_space" != x; then
21726       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21728       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21729     fi
21730 
21731     # Use eval to expand a potential ~
21732     eval path="$path"
21733     if test ! -f "$path" && test ! -d "$path"; then
21734       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21735     fi
21736 
21737     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21738   fi
21739 
21740               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21741 $as_echo_n "checking for Boot JDK... " >&6; }
21742               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21743 $as_echo "$BOOT_JDK" >&6; }
21744               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21745 $as_echo_n "checking Boot JDK version... " >&6; }
21746               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21747               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21748 $as_echo "$BOOT_JDK_VERSION" >&6; }
21749             fi # end check jdk version
21750           fi # end check rt.jar
21751         fi # end check javac
21752       fi # end check java
21753     fi # end check boot jdk found
21754   fi
21755 
21756 
21757   if test "x$BOOT_JDK_FOUND" = xno; then
21758     # Now execute the test
21759 
21760   if test "x$PROGRAMW6432" != x; then
21761     VIRTUAL_DIR="$PROGRAMW6432/Java"
21762 
21763   windows_path="$VIRTUAL_DIR"
21764   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21765     unix_path=`$CYGPATH -u "$windows_path"`
21766     VIRTUAL_DIR="$unix_path"
21767   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21768     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21769     VIRTUAL_DIR="$unix_path"
21770   fi
21771 
21772 
21773   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21774   BOOT_JDK_SUFFIX=""
21775   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21776   if test "x$ALL_JDKS_FOUND" != x; then
21777     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21778 
21779   if test "x$BOOT_JDK_FOUND" = xno; then
21780     # Now execute the test
21781 
21782         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21783         if test -d "$BOOT_JDK"; then
21784           BOOT_JDK_FOUND=maybe
21785           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21786 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21787         fi
21788 
21789 
21790     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21791     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21792       # Do we have a bin/java?
21793       if test ! -x "$BOOT_JDK/bin/java"; then
21794         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21795 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21796         BOOT_JDK_FOUND=no
21797       else
21798         # Do we have a bin/javac?
21799         if test ! -x "$BOOT_JDK/bin/javac"; then
21800           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21801 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21802           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21803 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21804           BOOT_JDK_FOUND=no
21805         else
21806           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21807           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21808             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21810             BOOT_JDK_FOUND=no
21811           else
21812             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21813             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21814 
21815             # Extra M4 quote needed to protect [] in grep expression.
21816             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21817             if test "x$FOUND_VERSION_78" = x; then
21818               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21819 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21820               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21821 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21822               BOOT_JDK_FOUND=no
21823             else
21824               # We're done! :-)
21825               BOOT_JDK_FOUND=yes
21826 
21827   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21828 
21829   # Input might be given as Windows format, start by converting to
21830   # unix format.
21831   path="$BOOT_JDK"
21832   new_path=`$CYGPATH -u "$path"`
21833 
21834   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21835   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21836   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21837   # "foo.exe" is OK but "foo" is an error.
21838   #
21839   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21840   # It is also a way to make sure we got the proper file name for the real test later on.
21841   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21842   if test "x$test_shortpath" = x; then
21843     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21844 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21845     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21846   fi
21847 
21848   # Call helper function which possibly converts this using DOS-style short mode.
21849   # If so, the updated path is stored in $new_path.
21850 
21851   input_path="$new_path"
21852   # Check if we need to convert this using DOS-style short mode. If the path
21853   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21854   # take no chances and rewrite it.
21855   # Note: m4 eats our [], so we need to use [ and ] instead.
21856   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21857   if test "x$has_forbidden_chars" != x; then
21858     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21859     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21860     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21861     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21862       # Going to short mode and back again did indeed matter. Since short mode is
21863       # case insensitive, let's make it lowercase to improve readability.
21864       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21865       # Now convert it back to Unix-style (cygpath)
21866       input_path=`$CYGPATH -u "$shortmode_path"`
21867       new_path="$input_path"
21868     fi
21869   fi
21870 
21871   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21872   if test "x$test_cygdrive_prefix" = x; then
21873     # As a simple fix, exclude /usr/bin since it's not a real path.
21874     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21875       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21876       # a path prefixed by /cygdrive for fixpath to work.
21877       new_path="$CYGWIN_ROOT_PATH$input_path"
21878     fi
21879   fi
21880 
21881 
21882   if test "x$path" != "x$new_path"; then
21883     BOOT_JDK="$new_path"
21884     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21885 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21886   fi
21887 
21888   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21889 
21890   path="$BOOT_JDK"
21891   has_colon=`$ECHO $path | $GREP ^.:`
21892   new_path="$path"
21893   if test "x$has_colon" = x; then
21894     # Not in mixed or Windows style, start by that.
21895     new_path=`cmd //c echo $path`
21896   fi
21897 
21898 
21899   input_path="$new_path"
21900   # Check if we need to convert this using DOS-style short mode. If the path
21901   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21902   # take no chances and rewrite it.
21903   # Note: m4 eats our [], so we need to use [ and ] instead.
21904   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21905   if test "x$has_forbidden_chars" != x; then
21906     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21907     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21908   fi
21909 
21910 
21911   windows_path="$new_path"
21912   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21913     unix_path=`$CYGPATH -u "$windows_path"`
21914     new_path="$unix_path"
21915   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21916     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21917     new_path="$unix_path"
21918   fi
21919 
21920   if test "x$path" != "x$new_path"; then
21921     BOOT_JDK="$new_path"
21922     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21923 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21924   fi
21925 
21926   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21927   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21928 
21929   else
21930     # We're on a posix platform. Hooray! :)
21931     path="$BOOT_JDK"
21932     has_space=`$ECHO "$path" | $GREP " "`
21933     if test "x$has_space" != x; then
21934       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21935 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21936       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21937     fi
21938 
21939     # Use eval to expand a potential ~
21940     eval path="$path"
21941     if test ! -f "$path" && test ! -d "$path"; then
21942       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21943     fi
21944 
21945     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21946   fi
21947 
21948               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21949 $as_echo_n "checking for Boot JDK... " >&6; }
21950               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21951 $as_echo "$BOOT_JDK" >&6; }
21952               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21953 $as_echo_n "checking Boot JDK version... " >&6; }
21954               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21955               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21956 $as_echo "$BOOT_JDK_VERSION" >&6; }
21957             fi # end check jdk version
21958           fi # end check rt.jar
21959         fi # end check javac
21960       fi # end check java
21961     fi # end check boot jdk found
21962   fi
21963 
21964     done
21965   fi
21966 
21967   fi
21968 
21969 
21970     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21971     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21972       # Do we have a bin/java?
21973       if test ! -x "$BOOT_JDK/bin/java"; then
21974         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21975 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21976         BOOT_JDK_FOUND=no
21977       else
21978         # Do we have a bin/javac?
21979         if test ! -x "$BOOT_JDK/bin/javac"; then
21980           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21981 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21982           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21983 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21984           BOOT_JDK_FOUND=no
21985         else
21986           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21987           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21988             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21989 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21990             BOOT_JDK_FOUND=no
21991           else
21992             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21993             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21994 
21995             # Extra M4 quote needed to protect [] in grep expression.
21996             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21997             if test "x$FOUND_VERSION_78" = x; then
21998               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21999 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22000               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22001 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22002               BOOT_JDK_FOUND=no
22003             else
22004               # We're done! :-)
22005               BOOT_JDK_FOUND=yes
22006 
22007   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22008 
22009   # Input might be given as Windows format, start by converting to
22010   # unix format.
22011   path="$BOOT_JDK"
22012   new_path=`$CYGPATH -u "$path"`
22013 
22014   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22015   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22016   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22017   # "foo.exe" is OK but "foo" is an error.
22018   #
22019   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22020   # It is also a way to make sure we got the proper file name for the real test later on.
22021   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22022   if test "x$test_shortpath" = x; then
22023     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22024 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22025     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22026   fi
22027 
22028   # Call helper function which possibly converts this using DOS-style short mode.
22029   # If so, the updated path is stored in $new_path.
22030 
22031   input_path="$new_path"
22032   # Check if we need to convert this using DOS-style short mode. If the path
22033   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22034   # take no chances and rewrite it.
22035   # Note: m4 eats our [], so we need to use [ and ] instead.
22036   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22037   if test "x$has_forbidden_chars" != x; then
22038     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22039     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22040     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22041     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22042       # Going to short mode and back again did indeed matter. Since short mode is
22043       # case insensitive, let's make it lowercase to improve readability.
22044       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22045       # Now convert it back to Unix-style (cygpath)
22046       input_path=`$CYGPATH -u "$shortmode_path"`
22047       new_path="$input_path"
22048     fi
22049   fi
22050 
22051   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22052   if test "x$test_cygdrive_prefix" = x; then
22053     # As a simple fix, exclude /usr/bin since it's not a real path.
22054     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22055       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22056       # a path prefixed by /cygdrive for fixpath to work.
22057       new_path="$CYGWIN_ROOT_PATH$input_path"
22058     fi
22059   fi
22060 
22061 
22062   if test "x$path" != "x$new_path"; then
22063     BOOT_JDK="$new_path"
22064     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22065 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22066   fi
22067 
22068   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22069 
22070   path="$BOOT_JDK"
22071   has_colon=`$ECHO $path | $GREP ^.:`
22072   new_path="$path"
22073   if test "x$has_colon" = x; then
22074     # Not in mixed or Windows style, start by that.
22075     new_path=`cmd //c echo $path`
22076   fi
22077 
22078 
22079   input_path="$new_path"
22080   # Check if we need to convert this using DOS-style short mode. If the path
22081   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22082   # take no chances and rewrite it.
22083   # Note: m4 eats our [], so we need to use [ and ] instead.
22084   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22085   if test "x$has_forbidden_chars" != x; then
22086     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22087     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22088   fi
22089 
22090 
22091   windows_path="$new_path"
22092   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22093     unix_path=`$CYGPATH -u "$windows_path"`
22094     new_path="$unix_path"
22095   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22096     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22097     new_path="$unix_path"
22098   fi
22099 
22100   if test "x$path" != "x$new_path"; then
22101     BOOT_JDK="$new_path"
22102     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22103 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22104   fi
22105 
22106   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22107   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22108 
22109   else
22110     # We're on a posix platform. Hooray! :)
22111     path="$BOOT_JDK"
22112     has_space=`$ECHO "$path" | $GREP " "`
22113     if test "x$has_space" != x; then
22114       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22115 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22116       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22117     fi
22118 
22119     # Use eval to expand a potential ~
22120     eval path="$path"
22121     if test ! -f "$path" && test ! -d "$path"; then
22122       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22123     fi
22124 
22125     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22126   fi
22127 
22128               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22129 $as_echo_n "checking for Boot JDK... " >&6; }
22130               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22131 $as_echo "$BOOT_JDK" >&6; }
22132               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22133 $as_echo_n "checking Boot JDK version... " >&6; }
22134               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22135               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22136 $as_echo "$BOOT_JDK_VERSION" >&6; }
22137             fi # end check jdk version
22138           fi # end check rt.jar
22139         fi # end check javac
22140       fi # end check java
22141     fi # end check boot jdk found
22142   fi
22143 
22144 
22145   if test "x$BOOT_JDK_FOUND" = xno; then
22146     # Now execute the test
22147 
22148   if test "x$PROGRAMFILES" != x; then
22149     VIRTUAL_DIR="$PROGRAMFILES/Java"
22150 
22151   windows_path="$VIRTUAL_DIR"
22152   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22153     unix_path=`$CYGPATH -u "$windows_path"`
22154     VIRTUAL_DIR="$unix_path"
22155   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22156     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22157     VIRTUAL_DIR="$unix_path"
22158   fi
22159 
22160 
22161   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22162   BOOT_JDK_SUFFIX=""
22163   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22164   if test "x$ALL_JDKS_FOUND" != x; then
22165     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22166 
22167   if test "x$BOOT_JDK_FOUND" = xno; then
22168     # Now execute the test
22169 
22170         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22171         if test -d "$BOOT_JDK"; then
22172           BOOT_JDK_FOUND=maybe
22173           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22174 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22175         fi
22176 
22177 
22178     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22179     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22180       # Do we have a bin/java?
22181       if test ! -x "$BOOT_JDK/bin/java"; then
22182         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22183 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22184         BOOT_JDK_FOUND=no
22185       else
22186         # Do we have a bin/javac?
22187         if test ! -x "$BOOT_JDK/bin/javac"; then
22188           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22189 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22190           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22191 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22192           BOOT_JDK_FOUND=no
22193         else
22194           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22195           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22196             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22198             BOOT_JDK_FOUND=no
22199           else
22200             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22201             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22202 
22203             # Extra M4 quote needed to protect [] in grep expression.
22204             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22205             if test "x$FOUND_VERSION_78" = x; then
22206               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22208               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22209 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22210               BOOT_JDK_FOUND=no
22211             else
22212               # We're done! :-)
22213               BOOT_JDK_FOUND=yes
22214 
22215   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22216 
22217   # Input might be given as Windows format, start by converting to
22218   # unix format.
22219   path="$BOOT_JDK"
22220   new_path=`$CYGPATH -u "$path"`
22221 
22222   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22223   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22224   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22225   # "foo.exe" is OK but "foo" is an error.
22226   #
22227   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22228   # It is also a way to make sure we got the proper file name for the real test later on.
22229   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22230   if test "x$test_shortpath" = x; then
22231     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22232 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22233     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22234   fi
22235 
22236   # Call helper function which possibly converts this using DOS-style short mode.
22237   # If so, the updated path is stored in $new_path.
22238 
22239   input_path="$new_path"
22240   # Check if we need to convert this using DOS-style short mode. If the path
22241   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22242   # take no chances and rewrite it.
22243   # Note: m4 eats our [], so we need to use [ and ] instead.
22244   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22245   if test "x$has_forbidden_chars" != x; then
22246     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22247     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22248     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22249     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22250       # Going to short mode and back again did indeed matter. Since short mode is
22251       # case insensitive, let's make it lowercase to improve readability.
22252       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22253       # Now convert it back to Unix-style (cygpath)
22254       input_path=`$CYGPATH -u "$shortmode_path"`
22255       new_path="$input_path"
22256     fi
22257   fi
22258 
22259   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22260   if test "x$test_cygdrive_prefix" = x; then
22261     # As a simple fix, exclude /usr/bin since it's not a real path.
22262     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22263       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22264       # a path prefixed by /cygdrive for fixpath to work.
22265       new_path="$CYGWIN_ROOT_PATH$input_path"
22266     fi
22267   fi
22268 
22269 
22270   if test "x$path" != "x$new_path"; then
22271     BOOT_JDK="$new_path"
22272     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22273 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22274   fi
22275 
22276   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22277 
22278   path="$BOOT_JDK"
22279   has_colon=`$ECHO $path | $GREP ^.:`
22280   new_path="$path"
22281   if test "x$has_colon" = x; then
22282     # Not in mixed or Windows style, start by that.
22283     new_path=`cmd //c echo $path`
22284   fi
22285 
22286 
22287   input_path="$new_path"
22288   # Check if we need to convert this using DOS-style short mode. If the path
22289   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22290   # take no chances and rewrite it.
22291   # Note: m4 eats our [], so we need to use [ and ] instead.
22292   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22293   if test "x$has_forbidden_chars" != x; then
22294     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22295     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22296   fi
22297 
22298 
22299   windows_path="$new_path"
22300   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22301     unix_path=`$CYGPATH -u "$windows_path"`
22302     new_path="$unix_path"
22303   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22304     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22305     new_path="$unix_path"
22306   fi
22307 
22308   if test "x$path" != "x$new_path"; then
22309     BOOT_JDK="$new_path"
22310     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22311 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22312   fi
22313 
22314   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22315   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22316 
22317   else
22318     # We're on a posix platform. Hooray! :)
22319     path="$BOOT_JDK"
22320     has_space=`$ECHO "$path" | $GREP " "`
22321     if test "x$has_space" != x; then
22322       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22323 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22324       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22325     fi
22326 
22327     # Use eval to expand a potential ~
22328     eval path="$path"
22329     if test ! -f "$path" && test ! -d "$path"; then
22330       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22331     fi
22332 
22333     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22334   fi
22335 
22336               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22337 $as_echo_n "checking for Boot JDK... " >&6; }
22338               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22339 $as_echo "$BOOT_JDK" >&6; }
22340               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22341 $as_echo_n "checking Boot JDK version... " >&6; }
22342               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22343               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22344 $as_echo "$BOOT_JDK_VERSION" >&6; }
22345             fi # end check jdk version
22346           fi # end check rt.jar
22347         fi # end check javac
22348       fi # end check java
22349     fi # end check boot jdk found
22350   fi
22351 
22352     done
22353   fi
22354 
22355   fi
22356 
22357 
22358     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22359     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22360       # Do we have a bin/java?
22361       if test ! -x "$BOOT_JDK/bin/java"; then
22362         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22363 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22364         BOOT_JDK_FOUND=no
22365       else
22366         # Do we have a bin/javac?
22367         if test ! -x "$BOOT_JDK/bin/javac"; then
22368           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22370           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22371 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22372           BOOT_JDK_FOUND=no
22373         else
22374           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22375           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22376             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22377 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22378             BOOT_JDK_FOUND=no
22379           else
22380             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22381             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22382 
22383             # Extra M4 quote needed to protect [] in grep expression.
22384             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22385             if test "x$FOUND_VERSION_78" = x; then
22386               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22387 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22388               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22389 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22390               BOOT_JDK_FOUND=no
22391             else
22392               # We're done! :-)
22393               BOOT_JDK_FOUND=yes
22394 
22395   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22396 
22397   # Input might be given as Windows format, start by converting to
22398   # unix format.
22399   path="$BOOT_JDK"
22400   new_path=`$CYGPATH -u "$path"`
22401 
22402   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22403   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22404   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22405   # "foo.exe" is OK but "foo" is an error.
22406   #
22407   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22408   # It is also a way to make sure we got the proper file name for the real test later on.
22409   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22410   if test "x$test_shortpath" = x; then
22411     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22412 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22413     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22414   fi
22415 
22416   # Call helper function which possibly converts this using DOS-style short mode.
22417   # If so, the updated path is stored in $new_path.
22418 
22419   input_path="$new_path"
22420   # Check if we need to convert this using DOS-style short mode. If the path
22421   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22422   # take no chances and rewrite it.
22423   # Note: m4 eats our [], so we need to use [ and ] instead.
22424   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22425   if test "x$has_forbidden_chars" != x; then
22426     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22427     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22428     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22429     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22430       # Going to short mode and back again did indeed matter. Since short mode is
22431       # case insensitive, let's make it lowercase to improve readability.
22432       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22433       # Now convert it back to Unix-style (cygpath)
22434       input_path=`$CYGPATH -u "$shortmode_path"`
22435       new_path="$input_path"
22436     fi
22437   fi
22438 
22439   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22440   if test "x$test_cygdrive_prefix" = x; then
22441     # As a simple fix, exclude /usr/bin since it's not a real path.
22442     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22443       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22444       # a path prefixed by /cygdrive for fixpath to work.
22445       new_path="$CYGWIN_ROOT_PATH$input_path"
22446     fi
22447   fi
22448 
22449 
22450   if test "x$path" != "x$new_path"; then
22451     BOOT_JDK="$new_path"
22452     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22453 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22454   fi
22455 
22456   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22457 
22458   path="$BOOT_JDK"
22459   has_colon=`$ECHO $path | $GREP ^.:`
22460   new_path="$path"
22461   if test "x$has_colon" = x; then
22462     # Not in mixed or Windows style, start by that.
22463     new_path=`cmd //c echo $path`
22464   fi
22465 
22466 
22467   input_path="$new_path"
22468   # Check if we need to convert this using DOS-style short mode. If the path
22469   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22470   # take no chances and rewrite it.
22471   # Note: m4 eats our [], so we need to use [ and ] instead.
22472   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22473   if test "x$has_forbidden_chars" != x; then
22474     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22475     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22476   fi
22477 
22478 
22479   windows_path="$new_path"
22480   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22481     unix_path=`$CYGPATH -u "$windows_path"`
22482     new_path="$unix_path"
22483   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22484     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22485     new_path="$unix_path"
22486   fi
22487 
22488   if test "x$path" != "x$new_path"; then
22489     BOOT_JDK="$new_path"
22490     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22491 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22492   fi
22493 
22494   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22495   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22496 
22497   else
22498     # We're on a posix platform. Hooray! :)
22499     path="$BOOT_JDK"
22500     has_space=`$ECHO "$path" | $GREP " "`
22501     if test "x$has_space" != x; then
22502       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22504       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22505     fi
22506 
22507     # Use eval to expand a potential ~
22508     eval path="$path"
22509     if test ! -f "$path" && test ! -d "$path"; then
22510       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22511     fi
22512 
22513     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22514   fi
22515 
22516               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22517 $as_echo_n "checking for Boot JDK... " >&6; }
22518               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22519 $as_echo "$BOOT_JDK" >&6; }
22520               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22521 $as_echo_n "checking Boot JDK version... " >&6; }
22522               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22523               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22524 $as_echo "$BOOT_JDK_VERSION" >&6; }
22525             fi # end check jdk version
22526           fi # end check rt.jar
22527         fi # end check javac
22528       fi # end check java
22529     fi # end check boot jdk found
22530   fi
22531 
22532 
22533   if test "x$BOOT_JDK_FOUND" = xno; then
22534     # Now execute the test
22535 
22536   if test "x$ProgramFiles" != x; then
22537     VIRTUAL_DIR="$ProgramFiles/Java"
22538 
22539   windows_path="$VIRTUAL_DIR"
22540   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22541     unix_path=`$CYGPATH -u "$windows_path"`
22542     VIRTUAL_DIR="$unix_path"
22543   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22544     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22545     VIRTUAL_DIR="$unix_path"
22546   fi
22547 
22548 
22549   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22550   BOOT_JDK_SUFFIX=""
22551   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22552   if test "x$ALL_JDKS_FOUND" != x; then
22553     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22554 
22555   if test "x$BOOT_JDK_FOUND" = xno; then
22556     # Now execute the test
22557 
22558         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22559         if test -d "$BOOT_JDK"; then
22560           BOOT_JDK_FOUND=maybe
22561           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22562 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22563         fi
22564 
22565 
22566     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22567     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22568       # Do we have a bin/java?
22569       if test ! -x "$BOOT_JDK/bin/java"; then
22570         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22571 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22572         BOOT_JDK_FOUND=no
22573       else
22574         # Do we have a bin/javac?
22575         if test ! -x "$BOOT_JDK/bin/javac"; then
22576           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22577 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22578           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22579 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22580           BOOT_JDK_FOUND=no
22581         else
22582           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22583           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22584             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22586             BOOT_JDK_FOUND=no
22587           else
22588             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22589             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22590 
22591             # Extra M4 quote needed to protect [] in grep expression.
22592             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22593             if test "x$FOUND_VERSION_78" = x; then
22594               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22595 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22596               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22597 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22598               BOOT_JDK_FOUND=no
22599             else
22600               # We're done! :-)
22601               BOOT_JDK_FOUND=yes
22602 
22603   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22604 
22605   # Input might be given as Windows format, start by converting to
22606   # unix format.
22607   path="$BOOT_JDK"
22608   new_path=`$CYGPATH -u "$path"`
22609 
22610   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22611   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22612   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22613   # "foo.exe" is OK but "foo" is an error.
22614   #
22615   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22616   # It is also a way to make sure we got the proper file name for the real test later on.
22617   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22618   if test "x$test_shortpath" = x; then
22619     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22620 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22621     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22622   fi
22623 
22624   # Call helper function which possibly converts this using DOS-style short mode.
22625   # If so, the updated path is stored in $new_path.
22626 
22627   input_path="$new_path"
22628   # Check if we need to convert this using DOS-style short mode. If the path
22629   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22630   # take no chances and rewrite it.
22631   # Note: m4 eats our [], so we need to use [ and ] instead.
22632   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22633   if test "x$has_forbidden_chars" != x; then
22634     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22635     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22636     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22637     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22638       # Going to short mode and back again did indeed matter. Since short mode is
22639       # case insensitive, let's make it lowercase to improve readability.
22640       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22641       # Now convert it back to Unix-style (cygpath)
22642       input_path=`$CYGPATH -u "$shortmode_path"`
22643       new_path="$input_path"
22644     fi
22645   fi
22646 
22647   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22648   if test "x$test_cygdrive_prefix" = x; then
22649     # As a simple fix, exclude /usr/bin since it's not a real path.
22650     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22651       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22652       # a path prefixed by /cygdrive for fixpath to work.
22653       new_path="$CYGWIN_ROOT_PATH$input_path"
22654     fi
22655   fi
22656 
22657 
22658   if test "x$path" != "x$new_path"; then
22659     BOOT_JDK="$new_path"
22660     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22661 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22662   fi
22663 
22664   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22665 
22666   path="$BOOT_JDK"
22667   has_colon=`$ECHO $path | $GREP ^.:`
22668   new_path="$path"
22669   if test "x$has_colon" = x; then
22670     # Not in mixed or Windows style, start by that.
22671     new_path=`cmd //c echo $path`
22672   fi
22673 
22674 
22675   input_path="$new_path"
22676   # Check if we need to convert this using DOS-style short mode. If the path
22677   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22678   # take no chances and rewrite it.
22679   # Note: m4 eats our [], so we need to use [ and ] instead.
22680   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22681   if test "x$has_forbidden_chars" != x; then
22682     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22683     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22684   fi
22685 
22686 
22687   windows_path="$new_path"
22688   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22689     unix_path=`$CYGPATH -u "$windows_path"`
22690     new_path="$unix_path"
22691   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22692     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22693     new_path="$unix_path"
22694   fi
22695 
22696   if test "x$path" != "x$new_path"; then
22697     BOOT_JDK="$new_path"
22698     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22699 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22700   fi
22701 
22702   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22703   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22704 
22705   else
22706     # We're on a posix platform. Hooray! :)
22707     path="$BOOT_JDK"
22708     has_space=`$ECHO "$path" | $GREP " "`
22709     if test "x$has_space" != x; then
22710       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22711 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22712       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22713     fi
22714 
22715     # Use eval to expand a potential ~
22716     eval path="$path"
22717     if test ! -f "$path" && test ! -d "$path"; then
22718       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22719     fi
22720 
22721     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22722   fi
22723 
22724               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22725 $as_echo_n "checking for Boot JDK... " >&6; }
22726               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22727 $as_echo "$BOOT_JDK" >&6; }
22728               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22729 $as_echo_n "checking Boot JDK version... " >&6; }
22730               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22731               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22732 $as_echo "$BOOT_JDK_VERSION" >&6; }
22733             fi # end check jdk version
22734           fi # end check rt.jar
22735         fi # end check javac
22736       fi # end check java
22737     fi # end check boot jdk found
22738   fi
22739 
22740     done
22741   fi
22742 
22743   fi
22744 
22745 
22746     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22747     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22748       # Do we have a bin/java?
22749       if test ! -x "$BOOT_JDK/bin/java"; then
22750         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22752         BOOT_JDK_FOUND=no
22753       else
22754         # Do we have a bin/javac?
22755         if test ! -x "$BOOT_JDK/bin/javac"; then
22756           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22757 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22758           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22759 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22760           BOOT_JDK_FOUND=no
22761         else
22762           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22763           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22764             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22766             BOOT_JDK_FOUND=no
22767           else
22768             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22769             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22770 
22771             # Extra M4 quote needed to protect [] in grep expression.
22772             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22773             if test "x$FOUND_VERSION_78" = x; then
22774               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22776               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22777 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22778               BOOT_JDK_FOUND=no
22779             else
22780               # We're done! :-)
22781               BOOT_JDK_FOUND=yes
22782 
22783   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22784 
22785   # Input might be given as Windows format, start by converting to
22786   # unix format.
22787   path="$BOOT_JDK"
22788   new_path=`$CYGPATH -u "$path"`
22789 
22790   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22791   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22792   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22793   # "foo.exe" is OK but "foo" is an error.
22794   #
22795   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22796   # It is also a way to make sure we got the proper file name for the real test later on.
22797   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22798   if test "x$test_shortpath" = x; then
22799     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22800 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22801     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22802   fi
22803 
22804   # Call helper function which possibly converts this using DOS-style short mode.
22805   # If so, the updated path is stored in $new_path.
22806 
22807   input_path="$new_path"
22808   # Check if we need to convert this using DOS-style short mode. If the path
22809   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22810   # take no chances and rewrite it.
22811   # Note: m4 eats our [], so we need to use [ and ] instead.
22812   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22813   if test "x$has_forbidden_chars" != x; then
22814     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22815     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22816     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22817     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22818       # Going to short mode and back again did indeed matter. Since short mode is
22819       # case insensitive, let's make it lowercase to improve readability.
22820       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22821       # Now convert it back to Unix-style (cygpath)
22822       input_path=`$CYGPATH -u "$shortmode_path"`
22823       new_path="$input_path"
22824     fi
22825   fi
22826 
22827   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22828   if test "x$test_cygdrive_prefix" = x; then
22829     # As a simple fix, exclude /usr/bin since it's not a real path.
22830     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22831       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22832       # a path prefixed by /cygdrive for fixpath to work.
22833       new_path="$CYGWIN_ROOT_PATH$input_path"
22834     fi
22835   fi
22836 
22837 
22838   if test "x$path" != "x$new_path"; then
22839     BOOT_JDK="$new_path"
22840     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22841 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22842   fi
22843 
22844   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22845 
22846   path="$BOOT_JDK"
22847   has_colon=`$ECHO $path | $GREP ^.:`
22848   new_path="$path"
22849   if test "x$has_colon" = x; then
22850     # Not in mixed or Windows style, start by that.
22851     new_path=`cmd //c echo $path`
22852   fi
22853 
22854 
22855   input_path="$new_path"
22856   # Check if we need to convert this using DOS-style short mode. If the path
22857   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22858   # take no chances and rewrite it.
22859   # Note: m4 eats our [], so we need to use [ and ] instead.
22860   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22861   if test "x$has_forbidden_chars" != x; then
22862     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22863     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22864   fi
22865 
22866 
22867   windows_path="$new_path"
22868   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22869     unix_path=`$CYGPATH -u "$windows_path"`
22870     new_path="$unix_path"
22871   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22872     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22873     new_path="$unix_path"
22874   fi
22875 
22876   if test "x$path" != "x$new_path"; then
22877     BOOT_JDK="$new_path"
22878     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22879 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22880   fi
22881 
22882   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22883   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22884 
22885   else
22886     # We're on a posix platform. Hooray! :)
22887     path="$BOOT_JDK"
22888     has_space=`$ECHO "$path" | $GREP " "`
22889     if test "x$has_space" != x; then
22890       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22892       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22893     fi
22894 
22895     # Use eval to expand a potential ~
22896     eval path="$path"
22897     if test ! -f "$path" && test ! -d "$path"; then
22898       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22899     fi
22900 
22901     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22902   fi
22903 
22904               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22905 $as_echo_n "checking for Boot JDK... " >&6; }
22906               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22907 $as_echo "$BOOT_JDK" >&6; }
22908               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22909 $as_echo_n "checking Boot JDK version... " >&6; }
22910               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22911               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22912 $as_echo "$BOOT_JDK_VERSION" >&6; }
22913             fi # end check jdk version
22914           fi # end check rt.jar
22915         fi # end check javac
22916       fi # end check java
22917     fi # end check boot jdk found
22918   fi
22919 
22920 
22921   if test "x$BOOT_JDK_FOUND" = xno; then
22922     # Now execute the test
22923 
22924   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22925   BOOT_JDK_SUFFIX=""
22926   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22927   if test "x$ALL_JDKS_FOUND" != x; then
22928     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22929 
22930   if test "x$BOOT_JDK_FOUND" = xno; then
22931     # Now execute the test
22932 
22933         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22934         if test -d "$BOOT_JDK"; then
22935           BOOT_JDK_FOUND=maybe
22936           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22937 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22938         fi
22939 
22940 
22941     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22942     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22943       # Do we have a bin/java?
22944       if test ! -x "$BOOT_JDK/bin/java"; then
22945         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22947         BOOT_JDK_FOUND=no
22948       else
22949         # Do we have a bin/javac?
22950         if test ! -x "$BOOT_JDK/bin/javac"; then
22951           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22953           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22954 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22955           BOOT_JDK_FOUND=no
22956         else
22957           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22958           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22959             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22960 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22961             BOOT_JDK_FOUND=no
22962           else
22963             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22964             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22965 
22966             # Extra M4 quote needed to protect [] in grep expression.
22967             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22968             if test "x$FOUND_VERSION_78" = x; then
22969               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22971               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22972 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22973               BOOT_JDK_FOUND=no
22974             else
22975               # We're done! :-)
22976               BOOT_JDK_FOUND=yes
22977 
22978   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22979 
22980   # Input might be given as Windows format, start by converting to
22981   # unix format.
22982   path="$BOOT_JDK"
22983   new_path=`$CYGPATH -u "$path"`
22984 
22985   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22986   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22987   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22988   # "foo.exe" is OK but "foo" is an error.
22989   #
22990   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22991   # It is also a way to make sure we got the proper file name for the real test later on.
22992   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22993   if test "x$test_shortpath" = x; then
22994     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22995 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22996     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22997   fi
22998 
22999   # Call helper function which possibly converts this using DOS-style short mode.
23000   # If so, the updated path is stored in $new_path.
23001 
23002   input_path="$new_path"
23003   # Check if we need to convert this using DOS-style short mode. If the path
23004   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23005   # take no chances and rewrite it.
23006   # Note: m4 eats our [], so we need to use [ and ] instead.
23007   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23008   if test "x$has_forbidden_chars" != x; then
23009     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23010     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23011     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23012     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23013       # Going to short mode and back again did indeed matter. Since short mode is
23014       # case insensitive, let's make it lowercase to improve readability.
23015       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23016       # Now convert it back to Unix-style (cygpath)
23017       input_path=`$CYGPATH -u "$shortmode_path"`
23018       new_path="$input_path"
23019     fi
23020   fi
23021 
23022   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23023   if test "x$test_cygdrive_prefix" = x; then
23024     # As a simple fix, exclude /usr/bin since it's not a real path.
23025     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23026       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23027       # a path prefixed by /cygdrive for fixpath to work.
23028       new_path="$CYGWIN_ROOT_PATH$input_path"
23029     fi
23030   fi
23031 
23032 
23033   if test "x$path" != "x$new_path"; then
23034     BOOT_JDK="$new_path"
23035     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23036 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23037   fi
23038 
23039   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23040 
23041   path="$BOOT_JDK"
23042   has_colon=`$ECHO $path | $GREP ^.:`
23043   new_path="$path"
23044   if test "x$has_colon" = x; then
23045     # Not in mixed or Windows style, start by that.
23046     new_path=`cmd //c echo $path`
23047   fi
23048 
23049 
23050   input_path="$new_path"
23051   # Check if we need to convert this using DOS-style short mode. If the path
23052   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23053   # take no chances and rewrite it.
23054   # Note: m4 eats our [], so we need to use [ and ] instead.
23055   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23056   if test "x$has_forbidden_chars" != x; then
23057     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23058     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23059   fi
23060 
23061 
23062   windows_path="$new_path"
23063   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23064     unix_path=`$CYGPATH -u "$windows_path"`
23065     new_path="$unix_path"
23066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23067     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23068     new_path="$unix_path"
23069   fi
23070 
23071   if test "x$path" != "x$new_path"; then
23072     BOOT_JDK="$new_path"
23073     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23075   fi
23076 
23077   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23078   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23079 
23080   else
23081     # We're on a posix platform. Hooray! :)
23082     path="$BOOT_JDK"
23083     has_space=`$ECHO "$path" | $GREP " "`
23084     if test "x$has_space" != x; then
23085       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23086 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23087       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23088     fi
23089 
23090     # Use eval to expand a potential ~
23091     eval path="$path"
23092     if test ! -f "$path" && test ! -d "$path"; then
23093       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23094     fi
23095 
23096     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23097   fi
23098 
23099               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23100 $as_echo_n "checking for Boot JDK... " >&6; }
23101               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23102 $as_echo "$BOOT_JDK" >&6; }
23103               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23104 $as_echo_n "checking Boot JDK version... " >&6; }
23105               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23106               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23107 $as_echo "$BOOT_JDK_VERSION" >&6; }
23108             fi # end check jdk version
23109           fi # end check rt.jar
23110         fi # end check javac
23111       fi # end check java
23112     fi # end check boot jdk found
23113   fi
23114 
23115     done
23116   fi
23117 
23118 
23119     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23120     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23121       # Do we have a bin/java?
23122       if test ! -x "$BOOT_JDK/bin/java"; then
23123         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23124 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23125         BOOT_JDK_FOUND=no
23126       else
23127         # Do we have a bin/javac?
23128         if test ! -x "$BOOT_JDK/bin/javac"; then
23129           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23131           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23132 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23133           BOOT_JDK_FOUND=no
23134         else
23135           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23136           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23137             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23138 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23139             BOOT_JDK_FOUND=no
23140           else
23141             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23142             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23143 
23144             # Extra M4 quote needed to protect [] in grep expression.
23145             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23146             if test "x$FOUND_VERSION_78" = x; then
23147               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23149               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23150 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23151               BOOT_JDK_FOUND=no
23152             else
23153               # We're done! :-)
23154               BOOT_JDK_FOUND=yes
23155 
23156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23157 
23158   # Input might be given as Windows format, start by converting to
23159   # unix format.
23160   path="$BOOT_JDK"
23161   new_path=`$CYGPATH -u "$path"`
23162 
23163   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23164   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23165   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23166   # "foo.exe" is OK but "foo" is an error.
23167   #
23168   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23169   # It is also a way to make sure we got the proper file name for the real test later on.
23170   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23171   if test "x$test_shortpath" = x; then
23172     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23173 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23174     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23175   fi
23176 
23177   # Call helper function which possibly converts this using DOS-style short mode.
23178   # If so, the updated path is stored in $new_path.
23179 
23180   input_path="$new_path"
23181   # Check if we need to convert this using DOS-style short mode. If the path
23182   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23183   # take no chances and rewrite it.
23184   # Note: m4 eats our [], so we need to use [ and ] instead.
23185   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23186   if test "x$has_forbidden_chars" != x; then
23187     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23188     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23189     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23190     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23191       # Going to short mode and back again did indeed matter. Since short mode is
23192       # case insensitive, let's make it lowercase to improve readability.
23193       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23194       # Now convert it back to Unix-style (cygpath)
23195       input_path=`$CYGPATH -u "$shortmode_path"`
23196       new_path="$input_path"
23197     fi
23198   fi
23199 
23200   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23201   if test "x$test_cygdrive_prefix" = x; then
23202     # As a simple fix, exclude /usr/bin since it's not a real path.
23203     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23204       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23205       # a path prefixed by /cygdrive for fixpath to work.
23206       new_path="$CYGWIN_ROOT_PATH$input_path"
23207     fi
23208   fi
23209 
23210 
23211   if test "x$path" != "x$new_path"; then
23212     BOOT_JDK="$new_path"
23213     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23214 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23215   fi
23216 
23217   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23218 
23219   path="$BOOT_JDK"
23220   has_colon=`$ECHO $path | $GREP ^.:`
23221   new_path="$path"
23222   if test "x$has_colon" = x; then
23223     # Not in mixed or Windows style, start by that.
23224     new_path=`cmd //c echo $path`
23225   fi
23226 
23227 
23228   input_path="$new_path"
23229   # Check if we need to convert this using DOS-style short mode. If the path
23230   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23231   # take no chances and rewrite it.
23232   # Note: m4 eats our [], so we need to use [ and ] instead.
23233   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23234   if test "x$has_forbidden_chars" != x; then
23235     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23236     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23237   fi
23238 
23239 
23240   windows_path="$new_path"
23241   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23242     unix_path=`$CYGPATH -u "$windows_path"`
23243     new_path="$unix_path"
23244   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23245     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23246     new_path="$unix_path"
23247   fi
23248 
23249   if test "x$path" != "x$new_path"; then
23250     BOOT_JDK="$new_path"
23251     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23252 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23253   fi
23254 
23255   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23256   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23257 
23258   else
23259     # We're on a posix platform. Hooray! :)
23260     path="$BOOT_JDK"
23261     has_space=`$ECHO "$path" | $GREP " "`
23262     if test "x$has_space" != x; then
23263       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23264 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23265       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23266     fi
23267 
23268     # Use eval to expand a potential ~
23269     eval path="$path"
23270     if test ! -f "$path" && test ! -d "$path"; then
23271       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23272     fi
23273 
23274     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23275   fi
23276 
23277               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23278 $as_echo_n "checking for Boot JDK... " >&6; }
23279               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23280 $as_echo "$BOOT_JDK" >&6; }
23281               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23282 $as_echo_n "checking Boot JDK version... " >&6; }
23283               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23284               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23285 $as_echo "$BOOT_JDK_VERSION" >&6; }
23286             fi # end check jdk version
23287           fi # end check rt.jar
23288         fi # end check javac
23289       fi # end check java
23290     fi # end check boot jdk found
23291   fi
23292 
23293   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23294 
23295   if test "x$BOOT_JDK_FOUND" = xno; then
23296     # Now execute the test
23297 
23298   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23299   BOOT_JDK_SUFFIX="/Contents/Home"
23300   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23301   if test "x$ALL_JDKS_FOUND" != x; then
23302     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23303 
23304   if test "x$BOOT_JDK_FOUND" = xno; then
23305     # Now execute the test
23306 
23307         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23308         if test -d "$BOOT_JDK"; then
23309           BOOT_JDK_FOUND=maybe
23310           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23311 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23312         fi
23313 
23314 
23315     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23316     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23317       # Do we have a bin/java?
23318       if test ! -x "$BOOT_JDK/bin/java"; then
23319         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23320 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23321         BOOT_JDK_FOUND=no
23322       else
23323         # Do we have a bin/javac?
23324         if test ! -x "$BOOT_JDK/bin/javac"; then
23325           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23327           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23328 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23329           BOOT_JDK_FOUND=no
23330         else
23331           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23332           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23333             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23335             BOOT_JDK_FOUND=no
23336           else
23337             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23338             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23339 
23340             # Extra M4 quote needed to protect [] in grep expression.
23341             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23342             if test "x$FOUND_VERSION_78" = x; then
23343               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23344 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23345               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23346 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23347               BOOT_JDK_FOUND=no
23348             else
23349               # We're done! :-)
23350               BOOT_JDK_FOUND=yes
23351 
23352   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23353 
23354   # Input might be given as Windows format, start by converting to
23355   # unix format.
23356   path="$BOOT_JDK"
23357   new_path=`$CYGPATH -u "$path"`
23358 
23359   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23360   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23361   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23362   # "foo.exe" is OK but "foo" is an error.
23363   #
23364   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23365   # It is also a way to make sure we got the proper file name for the real test later on.
23366   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23367   if test "x$test_shortpath" = x; then
23368     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23370     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23371   fi
23372 
23373   # Call helper function which possibly converts this using DOS-style short mode.
23374   # If so, the updated path is stored in $new_path.
23375 
23376   input_path="$new_path"
23377   # Check if we need to convert this using DOS-style short mode. If the path
23378   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23379   # take no chances and rewrite it.
23380   # Note: m4 eats our [], so we need to use [ and ] instead.
23381   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23382   if test "x$has_forbidden_chars" != x; then
23383     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23384     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23385     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23386     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23387       # Going to short mode and back again did indeed matter. Since short mode is
23388       # case insensitive, let's make it lowercase to improve readability.
23389       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23390       # Now convert it back to Unix-style (cygpath)
23391       input_path=`$CYGPATH -u "$shortmode_path"`
23392       new_path="$input_path"
23393     fi
23394   fi
23395 
23396   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23397   if test "x$test_cygdrive_prefix" = x; then
23398     # As a simple fix, exclude /usr/bin since it's not a real path.
23399     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23400       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23401       # a path prefixed by /cygdrive for fixpath to work.
23402       new_path="$CYGWIN_ROOT_PATH$input_path"
23403     fi
23404   fi
23405 
23406 
23407   if test "x$path" != "x$new_path"; then
23408     BOOT_JDK="$new_path"
23409     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23410 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23411   fi
23412 
23413   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23414 
23415   path="$BOOT_JDK"
23416   has_colon=`$ECHO $path | $GREP ^.:`
23417   new_path="$path"
23418   if test "x$has_colon" = x; then
23419     # Not in mixed or Windows style, start by that.
23420     new_path=`cmd //c echo $path`
23421   fi
23422 
23423 
23424   input_path="$new_path"
23425   # Check if we need to convert this using DOS-style short mode. If the path
23426   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23427   # take no chances and rewrite it.
23428   # Note: m4 eats our [], so we need to use [ and ] instead.
23429   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23430   if test "x$has_forbidden_chars" != x; then
23431     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23432     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23433   fi
23434 
23435 
23436   windows_path="$new_path"
23437   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23438     unix_path=`$CYGPATH -u "$windows_path"`
23439     new_path="$unix_path"
23440   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23441     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23442     new_path="$unix_path"
23443   fi
23444 
23445   if test "x$path" != "x$new_path"; then
23446     BOOT_JDK="$new_path"
23447     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23449   fi
23450 
23451   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23452   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23453 
23454   else
23455     # We're on a posix platform. Hooray! :)
23456     path="$BOOT_JDK"
23457     has_space=`$ECHO "$path" | $GREP " "`
23458     if test "x$has_space" != x; then
23459       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23461       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23462     fi
23463 
23464     # Use eval to expand a potential ~
23465     eval path="$path"
23466     if test ! -f "$path" && test ! -d "$path"; then
23467       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23468     fi
23469 
23470     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23471   fi
23472 
23473               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23474 $as_echo_n "checking for Boot JDK... " >&6; }
23475               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23476 $as_echo "$BOOT_JDK" >&6; }
23477               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23478 $as_echo_n "checking Boot JDK version... " >&6; }
23479               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23480               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23481 $as_echo "$BOOT_JDK_VERSION" >&6; }
23482             fi # end check jdk version
23483           fi # end check rt.jar
23484         fi # end check javac
23485       fi # end check java
23486     fi # end check boot jdk found
23487   fi
23488 
23489     done
23490   fi
23491 
23492 
23493     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23494     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23495       # Do we have a bin/java?
23496       if test ! -x "$BOOT_JDK/bin/java"; then
23497         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23498 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23499         BOOT_JDK_FOUND=no
23500       else
23501         # Do we have a bin/javac?
23502         if test ! -x "$BOOT_JDK/bin/javac"; then
23503           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23504 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23505           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23506 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23507           BOOT_JDK_FOUND=no
23508         else
23509           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23510           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23511             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23513             BOOT_JDK_FOUND=no
23514           else
23515             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23516             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23517 
23518             # Extra M4 quote needed to protect [] in grep expression.
23519             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23520             if test "x$FOUND_VERSION_78" = x; then
23521               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23522 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23523               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23524 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23525               BOOT_JDK_FOUND=no
23526             else
23527               # We're done! :-)
23528               BOOT_JDK_FOUND=yes
23529 
23530   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23531 
23532   # Input might be given as Windows format, start by converting to
23533   # unix format.
23534   path="$BOOT_JDK"
23535   new_path=`$CYGPATH -u "$path"`
23536 
23537   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23538   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23539   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23540   # "foo.exe" is OK but "foo" is an error.
23541   #
23542   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23543   # It is also a way to make sure we got the proper file name for the real test later on.
23544   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23545   if test "x$test_shortpath" = x; then
23546     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23547 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23548     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23549   fi
23550 
23551   # Call helper function which possibly converts this using DOS-style short mode.
23552   # If so, the updated path is stored in $new_path.
23553 
23554   input_path="$new_path"
23555   # Check if we need to convert this using DOS-style short mode. If the path
23556   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23557   # take no chances and rewrite it.
23558   # Note: m4 eats our [], so we need to use [ and ] instead.
23559   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23560   if test "x$has_forbidden_chars" != x; then
23561     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23562     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23563     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23564     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23565       # Going to short mode and back again did indeed matter. Since short mode is
23566       # case insensitive, let's make it lowercase to improve readability.
23567       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23568       # Now convert it back to Unix-style (cygpath)
23569       input_path=`$CYGPATH -u "$shortmode_path"`
23570       new_path="$input_path"
23571     fi
23572   fi
23573 
23574   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23575   if test "x$test_cygdrive_prefix" = x; then
23576     # As a simple fix, exclude /usr/bin since it's not a real path.
23577     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23578       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23579       # a path prefixed by /cygdrive for fixpath to work.
23580       new_path="$CYGWIN_ROOT_PATH$input_path"
23581     fi
23582   fi
23583 
23584 
23585   if test "x$path" != "x$new_path"; then
23586     BOOT_JDK="$new_path"
23587     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23588 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23589   fi
23590 
23591   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23592 
23593   path="$BOOT_JDK"
23594   has_colon=`$ECHO $path | $GREP ^.:`
23595   new_path="$path"
23596   if test "x$has_colon" = x; then
23597     # Not in mixed or Windows style, start by that.
23598     new_path=`cmd //c echo $path`
23599   fi
23600 
23601 
23602   input_path="$new_path"
23603   # Check if we need to convert this using DOS-style short mode. If the path
23604   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23605   # take no chances and rewrite it.
23606   # Note: m4 eats our [], so we need to use [ and ] instead.
23607   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23608   if test "x$has_forbidden_chars" != x; then
23609     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23610     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23611   fi
23612 
23613 
23614   windows_path="$new_path"
23615   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23616     unix_path=`$CYGPATH -u "$windows_path"`
23617     new_path="$unix_path"
23618   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23619     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23620     new_path="$unix_path"
23621   fi
23622 
23623   if test "x$path" != "x$new_path"; then
23624     BOOT_JDK="$new_path"
23625     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23626 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23627   fi
23628 
23629   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23630   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23631 
23632   else
23633     # We're on a posix platform. Hooray! :)
23634     path="$BOOT_JDK"
23635     has_space=`$ECHO "$path" | $GREP " "`
23636     if test "x$has_space" != x; then
23637       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23638 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23639       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23640     fi
23641 
23642     # Use eval to expand a potential ~
23643     eval path="$path"
23644     if test ! -f "$path" && test ! -d "$path"; then
23645       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23646     fi
23647 
23648     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23649   fi
23650 
23651               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23652 $as_echo_n "checking for Boot JDK... " >&6; }
23653               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23654 $as_echo "$BOOT_JDK" >&6; }
23655               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23656 $as_echo_n "checking Boot JDK version... " >&6; }
23657               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23658               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23659 $as_echo "$BOOT_JDK_VERSION" >&6; }
23660             fi # end check jdk version
23661           fi # end check rt.jar
23662         fi # end check javac
23663       fi # end check java
23664     fi # end check boot jdk found
23665   fi
23666 
23667 
23668   if test "x$BOOT_JDK_FOUND" = xno; then
23669     # Now execute the test
23670 
23671   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23672   BOOT_JDK_SUFFIX="/Contents/Home"
23673   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23674   if test "x$ALL_JDKS_FOUND" != x; then
23675     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23676 
23677   if test "x$BOOT_JDK_FOUND" = xno; then
23678     # Now execute the test
23679 
23680         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23681         if test -d "$BOOT_JDK"; then
23682           BOOT_JDK_FOUND=maybe
23683           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23684 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23685         fi
23686 
23687 
23688     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23689     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23690       # Do we have a bin/java?
23691       if test ! -x "$BOOT_JDK/bin/java"; then
23692         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23694         BOOT_JDK_FOUND=no
23695       else
23696         # Do we have a bin/javac?
23697         if test ! -x "$BOOT_JDK/bin/javac"; then
23698           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23700           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23701 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23702           BOOT_JDK_FOUND=no
23703         else
23704           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23705           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23706             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23708             BOOT_JDK_FOUND=no
23709           else
23710             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23711             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23712 
23713             # Extra M4 quote needed to protect [] in grep expression.
23714             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23715             if test "x$FOUND_VERSION_78" = x; then
23716               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23718               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23719 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23720               BOOT_JDK_FOUND=no
23721             else
23722               # We're done! :-)
23723               BOOT_JDK_FOUND=yes
23724 
23725   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23726 
23727   # Input might be given as Windows format, start by converting to
23728   # unix format.
23729   path="$BOOT_JDK"
23730   new_path=`$CYGPATH -u "$path"`
23731 
23732   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23733   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23734   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23735   # "foo.exe" is OK but "foo" is an error.
23736   #
23737   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23738   # It is also a way to make sure we got the proper file name for the real test later on.
23739   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23740   if test "x$test_shortpath" = x; then
23741     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23742 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23743     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23744   fi
23745 
23746   # Call helper function which possibly converts this using DOS-style short mode.
23747   # If so, the updated path is stored in $new_path.
23748 
23749   input_path="$new_path"
23750   # Check if we need to convert this using DOS-style short mode. If the path
23751   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23752   # take no chances and rewrite it.
23753   # Note: m4 eats our [], so we need to use [ and ] instead.
23754   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23755   if test "x$has_forbidden_chars" != x; then
23756     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23757     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23758     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23759     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23760       # Going to short mode and back again did indeed matter. Since short mode is
23761       # case insensitive, let's make it lowercase to improve readability.
23762       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23763       # Now convert it back to Unix-style (cygpath)
23764       input_path=`$CYGPATH -u "$shortmode_path"`
23765       new_path="$input_path"
23766     fi
23767   fi
23768 
23769   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23770   if test "x$test_cygdrive_prefix" = x; then
23771     # As a simple fix, exclude /usr/bin since it's not a real path.
23772     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23773       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23774       # a path prefixed by /cygdrive for fixpath to work.
23775       new_path="$CYGWIN_ROOT_PATH$input_path"
23776     fi
23777   fi
23778 
23779 
23780   if test "x$path" != "x$new_path"; then
23781     BOOT_JDK="$new_path"
23782     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23783 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23784   fi
23785 
23786   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23787 
23788   path="$BOOT_JDK"
23789   has_colon=`$ECHO $path | $GREP ^.:`
23790   new_path="$path"
23791   if test "x$has_colon" = x; then
23792     # Not in mixed or Windows style, start by that.
23793     new_path=`cmd //c echo $path`
23794   fi
23795 
23796 
23797   input_path="$new_path"
23798   # Check if we need to convert this using DOS-style short mode. If the path
23799   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23800   # take no chances and rewrite it.
23801   # Note: m4 eats our [], so we need to use [ and ] instead.
23802   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23803   if test "x$has_forbidden_chars" != x; then
23804     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23805     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23806   fi
23807 
23808 
23809   windows_path="$new_path"
23810   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23811     unix_path=`$CYGPATH -u "$windows_path"`
23812     new_path="$unix_path"
23813   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23814     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23815     new_path="$unix_path"
23816   fi
23817 
23818   if test "x$path" != "x$new_path"; then
23819     BOOT_JDK="$new_path"
23820     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23821 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23822   fi
23823 
23824   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23825   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23826 
23827   else
23828     # We're on a posix platform. Hooray! :)
23829     path="$BOOT_JDK"
23830     has_space=`$ECHO "$path" | $GREP " "`
23831     if test "x$has_space" != x; then
23832       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23833 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23834       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23835     fi
23836 
23837     # Use eval to expand a potential ~
23838     eval path="$path"
23839     if test ! -f "$path" && test ! -d "$path"; then
23840       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23841     fi
23842 
23843     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23844   fi
23845 
23846               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23847 $as_echo_n "checking for Boot JDK... " >&6; }
23848               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23849 $as_echo "$BOOT_JDK" >&6; }
23850               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23851 $as_echo_n "checking Boot JDK version... " >&6; }
23852               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23853               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23854 $as_echo "$BOOT_JDK_VERSION" >&6; }
23855             fi # end check jdk version
23856           fi # end check rt.jar
23857         fi # end check javac
23858       fi # end check java
23859     fi # end check boot jdk found
23860   fi
23861 
23862     done
23863   fi
23864 
23865 
23866     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23867     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23868       # Do we have a bin/java?
23869       if test ! -x "$BOOT_JDK/bin/java"; then
23870         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23872         BOOT_JDK_FOUND=no
23873       else
23874         # Do we have a bin/javac?
23875         if test ! -x "$BOOT_JDK/bin/javac"; then
23876           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23878           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23879 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23880           BOOT_JDK_FOUND=no
23881         else
23882           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23883           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23884             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23885 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23886             BOOT_JDK_FOUND=no
23887           else
23888             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23889             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23890 
23891             # Extra M4 quote needed to protect [] in grep expression.
23892             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23893             if test "x$FOUND_VERSION_78" = x; then
23894               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23895 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23896               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23897 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23898               BOOT_JDK_FOUND=no
23899             else
23900               # We're done! :-)
23901               BOOT_JDK_FOUND=yes
23902 
23903   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23904 
23905   # Input might be given as Windows format, start by converting to
23906   # unix format.
23907   path="$BOOT_JDK"
23908   new_path=`$CYGPATH -u "$path"`
23909 
23910   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23911   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23912   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23913   # "foo.exe" is OK but "foo" is an error.
23914   #
23915   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23916   # It is also a way to make sure we got the proper file name for the real test later on.
23917   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23918   if test "x$test_shortpath" = x; then
23919     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23920 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23921     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23922   fi
23923 
23924   # Call helper function which possibly converts this using DOS-style short mode.
23925   # If so, the updated path is stored in $new_path.
23926 
23927   input_path="$new_path"
23928   # Check if we need to convert this using DOS-style short mode. If the path
23929   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23930   # take no chances and rewrite it.
23931   # Note: m4 eats our [], so we need to use [ and ] instead.
23932   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23933   if test "x$has_forbidden_chars" != x; then
23934     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23935     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23936     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23937     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23938       # Going to short mode and back again did indeed matter. Since short mode is
23939       # case insensitive, let's make it lowercase to improve readability.
23940       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23941       # Now convert it back to Unix-style (cygpath)
23942       input_path=`$CYGPATH -u "$shortmode_path"`
23943       new_path="$input_path"
23944     fi
23945   fi
23946 
23947   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23948   if test "x$test_cygdrive_prefix" = x; then
23949     # As a simple fix, exclude /usr/bin since it's not a real path.
23950     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23951       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23952       # a path prefixed by /cygdrive for fixpath to work.
23953       new_path="$CYGWIN_ROOT_PATH$input_path"
23954     fi
23955   fi
23956 
23957 
23958   if test "x$path" != "x$new_path"; then
23959     BOOT_JDK="$new_path"
23960     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23961 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23962   fi
23963 
23964   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23965 
23966   path="$BOOT_JDK"
23967   has_colon=`$ECHO $path | $GREP ^.:`
23968   new_path="$path"
23969   if test "x$has_colon" = x; then
23970     # Not in mixed or Windows style, start by that.
23971     new_path=`cmd //c echo $path`
23972   fi
23973 
23974 
23975   input_path="$new_path"
23976   # Check if we need to convert this using DOS-style short mode. If the path
23977   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23978   # take no chances and rewrite it.
23979   # Note: m4 eats our [], so we need to use [ and ] instead.
23980   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23981   if test "x$has_forbidden_chars" != x; then
23982     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23983     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23984   fi
23985 
23986 
23987   windows_path="$new_path"
23988   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23989     unix_path=`$CYGPATH -u "$windows_path"`
23990     new_path="$unix_path"
23991   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23992     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23993     new_path="$unix_path"
23994   fi
23995 
23996   if test "x$path" != "x$new_path"; then
23997     BOOT_JDK="$new_path"
23998     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23999 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24000   fi
24001 
24002   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24003   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24004 
24005   else
24006     # We're on a posix platform. Hooray! :)
24007     path="$BOOT_JDK"
24008     has_space=`$ECHO "$path" | $GREP " "`
24009     if test "x$has_space" != x; then
24010       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24011 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24012       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24013     fi
24014 
24015     # Use eval to expand a potential ~
24016     eval path="$path"
24017     if test ! -f "$path" && test ! -d "$path"; then
24018       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24019     fi
24020 
24021     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24022   fi
24023 
24024               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24025 $as_echo_n "checking for Boot JDK... " >&6; }
24026               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24027 $as_echo "$BOOT_JDK" >&6; }
24028               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24029 $as_echo_n "checking Boot JDK version... " >&6; }
24030               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24031               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24032 $as_echo "$BOOT_JDK_VERSION" >&6; }
24033             fi # end check jdk version
24034           fi # end check rt.jar
24035         fi # end check javac
24036       fi # end check java
24037     fi # end check boot jdk found
24038   fi
24039 
24040   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24041 
24042   if test "x$BOOT_JDK_FOUND" = xno; then
24043     # Now execute the test
24044 
24045   BOOT_JDK_PREFIX="/usr/lib/jvm"
24046   BOOT_JDK_SUFFIX=""
24047   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24048   if test "x$ALL_JDKS_FOUND" != x; then
24049     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24050 
24051   if test "x$BOOT_JDK_FOUND" = xno; then
24052     # Now execute the test
24053 
24054         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24055         if test -d "$BOOT_JDK"; then
24056           BOOT_JDK_FOUND=maybe
24057           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24058 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24059         fi
24060 
24061 
24062     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24063     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24064       # Do we have a bin/java?
24065       if test ! -x "$BOOT_JDK/bin/java"; then
24066         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24068         BOOT_JDK_FOUND=no
24069       else
24070         # Do we have a bin/javac?
24071         if test ! -x "$BOOT_JDK/bin/javac"; then
24072           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24073 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24074           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24075 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24076           BOOT_JDK_FOUND=no
24077         else
24078           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24079           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24080             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24082             BOOT_JDK_FOUND=no
24083           else
24084             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24085             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24086 
24087             # Extra M4 quote needed to protect [] in grep expression.
24088             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24089             if test "x$FOUND_VERSION_78" = x; then
24090               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24091 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24092               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24093 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24094               BOOT_JDK_FOUND=no
24095             else
24096               # We're done! :-)
24097               BOOT_JDK_FOUND=yes
24098 
24099   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24100 
24101   # Input might be given as Windows format, start by converting to
24102   # unix format.
24103   path="$BOOT_JDK"
24104   new_path=`$CYGPATH -u "$path"`
24105 
24106   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24107   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24108   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24109   # "foo.exe" is OK but "foo" is an error.
24110   #
24111   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24112   # It is also a way to make sure we got the proper file name for the real test later on.
24113   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24114   if test "x$test_shortpath" = x; then
24115     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24116 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24117     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24118   fi
24119 
24120   # Call helper function which possibly converts this using DOS-style short mode.
24121   # If so, the updated path is stored in $new_path.
24122 
24123   input_path="$new_path"
24124   # Check if we need to convert this using DOS-style short mode. If the path
24125   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24126   # take no chances and rewrite it.
24127   # Note: m4 eats our [], so we need to use [ and ] instead.
24128   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24129   if test "x$has_forbidden_chars" != x; then
24130     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24131     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24132     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24133     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24134       # Going to short mode and back again did indeed matter. Since short mode is
24135       # case insensitive, let's make it lowercase to improve readability.
24136       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24137       # Now convert it back to Unix-style (cygpath)
24138       input_path=`$CYGPATH -u "$shortmode_path"`
24139       new_path="$input_path"
24140     fi
24141   fi
24142 
24143   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24144   if test "x$test_cygdrive_prefix" = x; then
24145     # As a simple fix, exclude /usr/bin since it's not a real path.
24146     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24147       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24148       # a path prefixed by /cygdrive for fixpath to work.
24149       new_path="$CYGWIN_ROOT_PATH$input_path"
24150     fi
24151   fi
24152 
24153 
24154   if test "x$path" != "x$new_path"; then
24155     BOOT_JDK="$new_path"
24156     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24157 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24158   fi
24159 
24160   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24161 
24162   path="$BOOT_JDK"
24163   has_colon=`$ECHO $path | $GREP ^.:`
24164   new_path="$path"
24165   if test "x$has_colon" = x; then
24166     # Not in mixed or Windows style, start by that.
24167     new_path=`cmd //c echo $path`
24168   fi
24169 
24170 
24171   input_path="$new_path"
24172   # Check if we need to convert this using DOS-style short mode. If the path
24173   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24174   # take no chances and rewrite it.
24175   # Note: m4 eats our [], so we need to use [ and ] instead.
24176   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24177   if test "x$has_forbidden_chars" != x; then
24178     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24179     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24180   fi
24181 
24182 
24183   windows_path="$new_path"
24184   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24185     unix_path=`$CYGPATH -u "$windows_path"`
24186     new_path="$unix_path"
24187   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24188     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24189     new_path="$unix_path"
24190   fi
24191 
24192   if test "x$path" != "x$new_path"; then
24193     BOOT_JDK="$new_path"
24194     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24195 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24196   fi
24197 
24198   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24199   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24200 
24201   else
24202     # We're on a posix platform. Hooray! :)
24203     path="$BOOT_JDK"
24204     has_space=`$ECHO "$path" | $GREP " "`
24205     if test "x$has_space" != x; then
24206       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24207 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24208       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24209     fi
24210 
24211     # Use eval to expand a potential ~
24212     eval path="$path"
24213     if test ! -f "$path" && test ! -d "$path"; then
24214       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24215     fi
24216 
24217     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24218   fi
24219 
24220               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24221 $as_echo_n "checking for Boot JDK... " >&6; }
24222               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24223 $as_echo "$BOOT_JDK" >&6; }
24224               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24225 $as_echo_n "checking Boot JDK version... " >&6; }
24226               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24227               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24228 $as_echo "$BOOT_JDK_VERSION" >&6; }
24229             fi # end check jdk version
24230           fi # end check rt.jar
24231         fi # end check javac
24232       fi # end check java
24233     fi # end check boot jdk found
24234   fi
24235 
24236     done
24237   fi
24238 
24239 
24240     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24241     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24242       # Do we have a bin/java?
24243       if test ! -x "$BOOT_JDK/bin/java"; then
24244         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24246         BOOT_JDK_FOUND=no
24247       else
24248         # Do we have a bin/javac?
24249         if test ! -x "$BOOT_JDK/bin/javac"; then
24250           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24251 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24252           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24253 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24254           BOOT_JDK_FOUND=no
24255         else
24256           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24257           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24258             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24259 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24260             BOOT_JDK_FOUND=no
24261           else
24262             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24263             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24264 
24265             # Extra M4 quote needed to protect [] in grep expression.
24266             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24267             if test "x$FOUND_VERSION_78" = x; then
24268               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24269 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24270               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24271 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24272               BOOT_JDK_FOUND=no
24273             else
24274               # We're done! :-)
24275               BOOT_JDK_FOUND=yes
24276 
24277   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24278 
24279   # Input might be given as Windows format, start by converting to
24280   # unix format.
24281   path="$BOOT_JDK"
24282   new_path=`$CYGPATH -u "$path"`
24283 
24284   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24285   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24286   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24287   # "foo.exe" is OK but "foo" is an error.
24288   #
24289   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24290   # It is also a way to make sure we got the proper file name for the real test later on.
24291   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24292   if test "x$test_shortpath" = x; then
24293     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24294 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24295     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24296   fi
24297 
24298   # Call helper function which possibly converts this using DOS-style short mode.
24299   # If so, the updated path is stored in $new_path.
24300 
24301   input_path="$new_path"
24302   # Check if we need to convert this using DOS-style short mode. If the path
24303   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24304   # take no chances and rewrite it.
24305   # Note: m4 eats our [], so we need to use [ and ] instead.
24306   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24307   if test "x$has_forbidden_chars" != x; then
24308     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24309     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24310     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24311     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24312       # Going to short mode and back again did indeed matter. Since short mode is
24313       # case insensitive, let's make it lowercase to improve readability.
24314       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24315       # Now convert it back to Unix-style (cygpath)
24316       input_path=`$CYGPATH -u "$shortmode_path"`
24317       new_path="$input_path"
24318     fi
24319   fi
24320 
24321   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24322   if test "x$test_cygdrive_prefix" = x; then
24323     # As a simple fix, exclude /usr/bin since it's not a real path.
24324     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24325       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24326       # a path prefixed by /cygdrive for fixpath to work.
24327       new_path="$CYGWIN_ROOT_PATH$input_path"
24328     fi
24329   fi
24330 
24331 
24332   if test "x$path" != "x$new_path"; then
24333     BOOT_JDK="$new_path"
24334     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24335 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24336   fi
24337 
24338   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24339 
24340   path="$BOOT_JDK"
24341   has_colon=`$ECHO $path | $GREP ^.:`
24342   new_path="$path"
24343   if test "x$has_colon" = x; then
24344     # Not in mixed or Windows style, start by that.
24345     new_path=`cmd //c echo $path`
24346   fi
24347 
24348 
24349   input_path="$new_path"
24350   # Check if we need to convert this using DOS-style short mode. If the path
24351   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24352   # take no chances and rewrite it.
24353   # Note: m4 eats our [], so we need to use [ and ] instead.
24354   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24355   if test "x$has_forbidden_chars" != x; then
24356     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24357     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24358   fi
24359 
24360 
24361   windows_path="$new_path"
24362   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24363     unix_path=`$CYGPATH -u "$windows_path"`
24364     new_path="$unix_path"
24365   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24366     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24367     new_path="$unix_path"
24368   fi
24369 
24370   if test "x$path" != "x$new_path"; then
24371     BOOT_JDK="$new_path"
24372     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24373 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24374   fi
24375 
24376   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24377   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24378 
24379   else
24380     # We're on a posix platform. Hooray! :)
24381     path="$BOOT_JDK"
24382     has_space=`$ECHO "$path" | $GREP " "`
24383     if test "x$has_space" != x; then
24384       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24385 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24386       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24387     fi
24388 
24389     # Use eval to expand a potential ~
24390     eval path="$path"
24391     if test ! -f "$path" && test ! -d "$path"; then
24392       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24393     fi
24394 
24395     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24396   fi
24397 
24398               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24399 $as_echo_n "checking for Boot JDK... " >&6; }
24400               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24401 $as_echo "$BOOT_JDK" >&6; }
24402               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24403 $as_echo_n "checking Boot JDK version... " >&6; }
24404               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24405               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24406 $as_echo "$BOOT_JDK_VERSION" >&6; }
24407             fi # end check jdk version
24408           fi # end check rt.jar
24409         fi # end check javac
24410       fi # end check java
24411     fi # end check boot jdk found
24412   fi
24413 
24414   fi
24415 
24416 
24417     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24418     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24419       # Do we have a bin/java?
24420       if test ! -x "$BOOT_JDK/bin/java"; then
24421         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24423         BOOT_JDK_FOUND=no
24424       else
24425         # Do we have a bin/javac?
24426         if test ! -x "$BOOT_JDK/bin/javac"; then
24427           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24429           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24430 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24431           BOOT_JDK_FOUND=no
24432         else
24433           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24434           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24435             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24437             BOOT_JDK_FOUND=no
24438           else
24439             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24440             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24441 
24442             # Extra M4 quote needed to protect [] in grep expression.
24443             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24444             if test "x$FOUND_VERSION_78" = x; then
24445               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24447               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24448 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24449               BOOT_JDK_FOUND=no
24450             else
24451               # We're done! :-)
24452               BOOT_JDK_FOUND=yes
24453 
24454   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24455 
24456   # Input might be given as Windows format, start by converting to
24457   # unix format.
24458   path="$BOOT_JDK"
24459   new_path=`$CYGPATH -u "$path"`
24460 
24461   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24462   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24463   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24464   # "foo.exe" is OK but "foo" is an error.
24465   #
24466   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24467   # It is also a way to make sure we got the proper file name for the real test later on.
24468   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24469   if test "x$test_shortpath" = x; then
24470     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24471 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24472     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24473   fi
24474 
24475   # Call helper function which possibly converts this using DOS-style short mode.
24476   # If so, the updated path is stored in $new_path.
24477 
24478   input_path="$new_path"
24479   # Check if we need to convert this using DOS-style short mode. If the path
24480   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24481   # take no chances and rewrite it.
24482   # Note: m4 eats our [], so we need to use [ and ] instead.
24483   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24484   if test "x$has_forbidden_chars" != x; then
24485     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24486     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24487     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24488     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24489       # Going to short mode and back again did indeed matter. Since short mode is
24490       # case insensitive, let's make it lowercase to improve readability.
24491       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24492       # Now convert it back to Unix-style (cygpath)
24493       input_path=`$CYGPATH -u "$shortmode_path"`
24494       new_path="$input_path"
24495     fi
24496   fi
24497 
24498   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24499   if test "x$test_cygdrive_prefix" = x; then
24500     # As a simple fix, exclude /usr/bin since it's not a real path.
24501     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24502       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24503       # a path prefixed by /cygdrive for fixpath to work.
24504       new_path="$CYGWIN_ROOT_PATH$input_path"
24505     fi
24506   fi
24507 
24508 
24509   if test "x$path" != "x$new_path"; then
24510     BOOT_JDK="$new_path"
24511     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24512 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24513   fi
24514 
24515   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24516 
24517   path="$BOOT_JDK"
24518   has_colon=`$ECHO $path | $GREP ^.:`
24519   new_path="$path"
24520   if test "x$has_colon" = x; then
24521     # Not in mixed or Windows style, start by that.
24522     new_path=`cmd //c echo $path`
24523   fi
24524 
24525 
24526   input_path="$new_path"
24527   # Check if we need to convert this using DOS-style short mode. If the path
24528   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24529   # take no chances and rewrite it.
24530   # Note: m4 eats our [], so we need to use [ and ] instead.
24531   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24532   if test "x$has_forbidden_chars" != x; then
24533     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24534     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24535   fi
24536 
24537 
24538   windows_path="$new_path"
24539   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24540     unix_path=`$CYGPATH -u "$windows_path"`
24541     new_path="$unix_path"
24542   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24543     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24544     new_path="$unix_path"
24545   fi
24546 
24547   if test "x$path" != "x$new_path"; then
24548     BOOT_JDK="$new_path"
24549     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24550 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24551   fi
24552 
24553   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24554   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24555 
24556   else
24557     # We're on a posix platform. Hooray! :)
24558     path="$BOOT_JDK"
24559     has_space=`$ECHO "$path" | $GREP " "`
24560     if test "x$has_space" != x; then
24561       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24562 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24563       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24564     fi
24565 
24566     # Use eval to expand a potential ~
24567     eval path="$path"
24568     if test ! -f "$path" && test ! -d "$path"; then
24569       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24570     fi
24571 
24572     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24573   fi
24574 
24575               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24576 $as_echo_n "checking for Boot JDK... " >&6; }
24577               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24578 $as_echo "$BOOT_JDK" >&6; }
24579               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24580 $as_echo_n "checking Boot JDK version... " >&6; }
24581               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24582               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24583 $as_echo "$BOOT_JDK_VERSION" >&6; }
24584             fi # end check jdk version
24585           fi # end check rt.jar
24586         fi # end check javac
24587       fi # end check java
24588     fi # end check boot jdk found
24589   fi
24590 
24591 
24592   # If we haven't found anything yet, we've truly lost. Give up.
24593   if test "x$BOOT_JDK_FOUND" = xno; then
24594 
24595   # Print a helpful message on how to acquire the necessary build dependency.
24596   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24597   MISSING_DEPENDENCY=openjdk
24598 
24599   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24600     cygwin_help $MISSING_DEPENDENCY
24601   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24602     msys_help $MISSING_DEPENDENCY
24603   else
24604     PKGHANDLER_COMMAND=
24605 
24606     case $PKGHANDLER in
24607       apt-get)
24608         apt_help     $MISSING_DEPENDENCY ;;
24609       yum)
24610         yum_help     $MISSING_DEPENDENCY ;;
24611       port)
24612         port_help    $MISSING_DEPENDENCY ;;
24613       pkgutil)
24614         pkgutil_help $MISSING_DEPENDENCY ;;
24615       pkgadd)
24616         pkgadd_help  $MISSING_DEPENDENCY ;;
24617     esac
24618 
24619     if test "x$PKGHANDLER_COMMAND" != x; then
24620       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24621     fi
24622   fi
24623 
24624     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24625 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24626     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24627 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24628     as_fn_error $? "Cannot continue" "$LINENO" 5
24629   fi
24630 
24631   # Setup proper paths for what we found
24632   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24633   if test ! -f "$BOOT_RTJAR"; then
24634     # On MacOSX it is called classes.jar
24635     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24636     if test -f "$BOOT_RTJAR"; then
24637       # Remove the ..
24638       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24639     fi
24640   fi
24641   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24642   BOOT_JDK="$BOOT_JDK"
24643 
24644 
24645 
24646 
24647   # Setup tools from the Boot JDK.
24648 
24649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24650 $as_echo_n "checking for java in Boot JDK... " >&6; }
24651   JAVA=$BOOT_JDK/bin/java
24652   if test ! -x $JAVA; then
24653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24654 $as_echo "not found" >&6; }
24655     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24656 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24657     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24658   fi
24659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24660 $as_echo "ok" >&6; }
24661 
24662 
24663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24664 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24665   JAVAC=$BOOT_JDK/bin/javac
24666   if test ! -x $JAVAC; then
24667     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24668 $as_echo "not found" >&6; }
24669     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24670 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24671     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24672   fi
24673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24674 $as_echo "ok" >&6; }
24675 
24676 
24677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24678 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24679   JAVAH=$BOOT_JDK/bin/javah
24680   if test ! -x $JAVAH; then
24681     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24682 $as_echo "not found" >&6; }
24683     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24684 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24685     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24686   fi
24687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24688 $as_echo "ok" >&6; }
24689 
24690 
24691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24692 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24693   JAVAP=$BOOT_JDK/bin/javap
24694   if test ! -x $JAVAP; then
24695     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24696 $as_echo "not found" >&6; }
24697     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24698 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24699     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24700   fi
24701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24702 $as_echo "ok" >&6; }
24703 
24704 
24705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24706 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24707   JAR=$BOOT_JDK/bin/jar
24708   if test ! -x $JAR; then
24709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24710 $as_echo "not found" >&6; }
24711     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24712 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24713     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24714   fi
24715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24716 $as_echo "ok" >&6; }
24717 
24718 
24719   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24720 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24721   RMIC=$BOOT_JDK/bin/rmic
24722   if test ! -x $RMIC; then
24723     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24724 $as_echo "not found" >&6; }
24725     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24726 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24727     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24728   fi
24729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24730 $as_echo "ok" >&6; }
24731 
24732 
24733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24734 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24735   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24736   if test ! -x $NATIVE2ASCII; then
24737     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24738 $as_echo "not found" >&6; }
24739     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24740 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24741     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24742   fi
24743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24744 $as_echo "ok" >&6; }
24745 
24746 
24747   # Finally, set some other options...
24748 
24749   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24750   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24751 
24752 
24753 
24754   # Check if the boot jdk is 32 or 64 bit
24755   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24756     BOOT_JDK_BITS="64"
24757   else
24758     BOOT_JDK_BITS="32"
24759   fi
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24761 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24763 $as_echo "$BOOT_JDK_BITS" >&6; }
24764 
24765 
24766 
24767   ##############################################################################
24768   #
24769   # Specify options for anything that is run with the Boot JDK.
24770   #
24771 
24772 # Check whether --with-boot-jdk-jvmargs was given.
24773 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24774   withval=$with_boot_jdk_jvmargs;
24775 fi
24776 
24777 
24778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24779 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24780 
24781   # Disable special log output when a debug build is used as Boot JDK...
24782 
24783   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24784   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24785   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24786   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24787   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24788   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24789     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24790     JVM_ARG_OK=true
24791   else
24792     $ECHO "Arg failed:" >&5
24793     $ECHO "$OUTPUT" >&5
24794     JVM_ARG_OK=false
24795   fi
24796 
24797 
24798   # Apply user provided options.
24799 
24800   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24801   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24802   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24803   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24804   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24805   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24806     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24807     JVM_ARG_OK=true
24808   else
24809     $ECHO "Arg failed:" >&5
24810     $ECHO "$OUTPUT" >&5
24811     JVM_ARG_OK=false
24812   fi
24813 
24814 
24815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24816 $as_echo "$boot_jdk_jvmargs" >&6; }
24817 
24818   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24819   JAVA_FLAGS=$boot_jdk_jvmargs
24820 
24821 
24822 
24823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24824 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24825 
24826   # Starting amount of heap memory.
24827 
24828   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24829   $ECHO "Command: $JAVA -Xms64M -version" >&5
24830   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24831   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24832   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24833   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24834     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24835     JVM_ARG_OK=true
24836   else
24837     $ECHO "Arg failed:" >&5
24838     $ECHO "$OUTPUT" &