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 NO_LIFETIME_DSE_CFLAG
 690 NO_DELETE_NULL_POINTER_CHECKS_CFLAG
 691 LEGACY_EXTRA_LDFLAGS
 692 LEGACY_EXTRA_CXXFLAGS
 693 LEGACY_EXTRA_CFLAGS
 694 CXXSTD_CXXFLAG
 695 CXX_O_FLAG_NONE
 696 CXX_O_FLAG_NORM
 697 CXX_O_FLAG_HI
 698 CXX_O_FLAG_HIGHEST
 699 C_O_FLAG_NONE
 700 C_O_FLAG_NORM
 701 C_O_FLAG_HI
 702 C_O_FLAG_HIGHEST
 703 CXXFLAGS_DEBUG_SYMBOLS
 704 CFLAGS_DEBUG_SYMBOLS
 705 ASFLAGS_DEBUG_SYMBOLS
 706 CXX_FLAG_DEPS
 707 C_FLAG_DEPS
 708 SET_SHARED_LIBRARY_MAPFILE
 709 SET_SHARED_LIBRARY_NAME
 710 SET_SHARED_LIBRARY_ORIGIN
 711 SET_EXECUTABLE_ORIGIN
 712 SHARED_LIBRARY_FLAGS
 713 CXX_FLAG_REORDER
 714 C_FLAG_REORDER
 715 SYSROOT_LDFLAGS
 716 SYSROOT_CFLAGS
 717 RC_FLAGS
 718 AR_OUT_OPTION
 719 LD_OUT_OPTION
 720 EXE_OUT_OPTION
 721 CC_OUT_OPTION
 722 POST_MCS_CMD
 723 POST_STRIP_CMD
 724 ARFLAGS
 725 COMPILER_TARGET_BITS_FLAG
 726 JT_HOME
 727 JTREGEXE
 728 USING_BROKEN_SUSE_LD
 729 PACKAGE_PATH
 730 LDEXECXX
 731 LDEXE
 732 USE_CLANG
 733 HOTSPOT_LD
 734 HOTSPOT_CXX
 735 HOTSPOT_RC
 736 HOTSPOT_MT
 737 BUILD_LD
 738 BUILD_CXX
 739 BUILD_CC
 740 ac_ct_OBJDUMP
 741 OBJDUMP
 742 ac_ct_OBJCOPY
 743 OBJCOPY
 744 ac_ct_NM
 745 OTOOL
 746 ac_ct_STRIP
 747 MCS
 748 GNM
 749 NM
 750 STRIP
 751 MSBUILD
 752 DUMPBIN
 753 RC
 754 MT
 755 LIPO
 756 ac_ct_OBJC
 757 OBJCFLAGS
 758 OBJC
 759 ac_ct_AR
 760 AR
 761 AS
 762 LDCXX
 763 LD
 764 CXXCPP
 765 CPP
 766 CXX_VERSION_NUMBER
 767 CC_VERSION_NUMBER
 768 ac_ct_CXX
 769 CXXFLAGS
 770 CXX
 771 ac_ct_PROPER_COMPILER_CXX
 772 PROPER_COMPILER_CXX
 773 TOOLCHAIN_PATH_CXX
 774 POTENTIAL_CXX
 775 OBJEXT
 776 EXEEXT
 777 ac_ct_CC
 778 CPPFLAGS
 779 LDFLAGS
 780 CFLAGS
 781 CC
 782 ac_ct_PROPER_COMPILER_CC
 783 PROPER_COMPILER_CC
 784 TOOLCHAIN_PATH_CC
 785 POTENTIAL_CC
 786 SDKPATH
 787 XCODEBUILD
 788 SET_DEVELOPER_DIR
 789 VS_LIB
 790 VS_INCLUDE
 791 VS_PATH
 792 CYGWIN_LINK
 793 EXE_SUFFIX
 794 OBJ_SUFFIX
 795 STATIC_LIBRARY
 796 SHARED_LIBRARY
 797 STATIC_LIBRARY_SUFFIX
 798 SHARED_LIBRARY_SUFFIX
 799 LIBRARY_PREFIX
 800 TOOLCHAIN_TYPE
 801 BUILD_HOTSPOT
 802 HOTSPOT_DIST
 803 BUILD_OUTPUT
 804 OVERRIDE_SRC_ROOT
 805 ADD_SRC_ROOT
 806 JDK_TOPDIR
 807 NASHORN_TOPDIR
 808 HOTSPOT_TOPDIR
 809 JAXWS_TOPDIR
 810 JAXP_TOPDIR
 811 CORBA_TOPDIR
 812 LANGTOOLS_TOPDIR
 813 JAVA_FLAGS_SMALL
 814 JAVA_FLAGS_BIG
 815 JAVA_FLAGS
 816 BOOT_JDK_BITS
 817 JAVAC_FLAGS
 818 BOOT_JDK_SOURCETARGET
 819 BOOT_JDK
 820 BOOT_TOOLSJAR
 821 BOOT_RTJAR
 822 JAVA_CHECK
 823 JAVAC_CHECK
 824 COOKED_BUILD_NUMBER
 825 COOKED_JDK_UPDATE_VERSION
 826 JDK_VERSION
 827 COPYRIGHT_YEAR
 828 VENDOR_URL_VM_BUG
 829 VENDOR_URL_BUG
 830 VENDOR_URL
 831 COMPANY_NAME
 832 MACOSX_BUNDLE_ID_BASE
 833 MACOSX_BUNDLE_NAME_BASE
 834 JDK_RC_PLATFORM_NAME
 835 PRODUCT_SUFFIX
 836 PRODUCT_NAME
 837 LAUNCHER_NAME
 838 MILESTONE
 839 JDK_BUILD_NUMBER
 840 JDK_UPDATE_VERSION
 841 JDK_MICRO_VERSION
 842 JDK_MINOR_VERSION
 843 JDK_MAJOR_VERSION
 844 USER_RELEASE_SUFFIX
 845 COMPRESS_JARS
 846 UNLIMITED_CRYPTO
 847 CACERTS_FILE
 848 TEST_IN_BUILD
 849 BUILD_HEADLESS
 850 SUPPORT_HEADFUL
 851 SUPPORT_HEADLESS
 852 BDEPS_FTP
 853 BDEPS_UNZIP
 854 OS_VERSION_MICRO
 855 OS_VERSION_MINOR
 856 OS_VERSION_MAJOR
 857 PKG_CONFIG
 858 CODESIGN
 859 XATTR
 860 DSYMUTIL
 861 IS_GNU_TIME
 862 TIME
 863 STAT
 864 HG
 865 READELF
 866 LDD
 867 ZIP
 868 UNZIP
 869 FIND_DELETE
 870 MAKE
 871 CHECK_TOOLSDIR_MAKE
 872 CHECK_TOOLSDIR_GMAKE
 873 CHECK_MAKE
 874 CHECK_GMAKE
 875 PKGHANDLER
 876 OUTPUT_ROOT
 877 CONF_NAME
 878 SPEC
 879 DEVKIT_LIB_DIR
 880 BUILD_VARIANT_RELEASE
 881 DEBUG_CLASSFILES
 882 FASTDEBUG
 883 VARIANT
 884 DEBUG_LEVEL
 885 MACOSX_UNIVERSAL
 886 INCLUDE_SA
 887 JVM_VARIANT_CORE
 888 JVM_VARIANT_ZEROSHARK
 889 JVM_VARIANT_ZERO
 890 JVM_VARIANT_KERNEL
 891 JVM_VARIANT_MINIMAL1
 892 JVM_VARIANT_CLIENT
 893 JVM_VARIANT_SERVER
 894 JVM_VARIANTS
 895 JVM_INTERPRETER
 896 JDK_VARIANT
 897 SET_OPENJDK
 898 BUILD_LOG_WRAPPER
 899 BUILD_LOG_PREVIOUS
 900 BUILD_LOG
 901 TOPDIR
 902 PATH_SEP
 903 ZERO_ARCHDEF
 904 DEFINE_CROSS_COMPILE_ARCH
 905 LP64
 906 OPENJDK_TARGET_OS_EXPORT_DIR
 907 OPENJDK_TARGET_OS_API_DIR
 908 OPENJDK_TARGET_CPU_JLI_CFLAGS
 909 OPENJDK_TARGET_CPU_OSARCH
 910 OPENJDK_TARGET_CPU_ISADIR
 911 OPENJDK_TARGET_CPU_LIBDIR
 912 OPENJDK_TARGET_CPU_LEGACY_LIB
 913 OPENJDK_TARGET_CPU_LEGACY
 914 REQUIRED_OS_VERSION
 915 REQUIRED_OS_NAME
 916 COMPILE_TYPE
 917 OPENJDK_TARGET_CPU_ENDIAN
 918 OPENJDK_TARGET_CPU_BITS
 919 OPENJDK_TARGET_CPU_ARCH
 920 OPENJDK_TARGET_CPU
 921 OPENJDK_TARGET_OS_ENV
 922 OPENJDK_TARGET_OS_API
 923 OPENJDK_TARGET_OS
 924 OPENJDK_BUILD_CPU_ENDIAN
 925 OPENJDK_BUILD_CPU_BITS
 926 OPENJDK_BUILD_CPU_ARCH
 927 OPENJDK_BUILD_CPU
 928 OPENJDK_BUILD_OS_ENV
 929 OPENJDK_BUILD_OS_API
 930 OPENJDK_BUILD_OS
 931 OPENJDK_BUILD_AUTOCONF_NAME
 932 OPENJDK_TARGET_AUTOCONF_NAME
 933 target_os
 934 target_vendor
 935 target_cpu
 936 target
 937 host_os
 938 host_vendor
 939 host_cpu
 940 host
 941 build_os
 942 build_vendor
 943 build_cpu
 944 build
 945 CPIO
 946 SETFILE
 947 DF
 948 READLINK
 949 CYGPATH
 950 SED
 951 FGREP
 952 EGREP
 953 GREP
 954 AWK
 955 XARGS
 956 WHICH
 957 WC
 958 UNIQ
 959 UNAME
 960 TR
 961 TOUCH
 962 TEE
 963 TAR
 964 TAIL
 965 SORT
 966 SH
 967 RM
 968 PRINTF
 969 NAWK
 970 MV
 971 MKTEMP
 972 MKDIR
 973 LS
 974 LN
 975 HEAD
 976 FIND
 977 FILE
 978 EXPR
 979 ECHO
 980 DIRNAME
 981 DIFF
 982 DATE
 983 CUT
 984 CP
 985 COMM
 986 CMP
 987 CHMOD
 988 CAT
 989 BASH
 990 BASENAME
 991 DATE_WHEN_CONFIGURED
 992 CONFIGURE_COMMAND_LINE
 993 CUSTOM_MAKE_DIR
 994 target_alias
 995 host_alias
 996 build_alias
 997 LIBS
 998 ECHO_T
 999 ECHO_N
1000 ECHO_C
1001 DEFS
1002 mandir
1003 localedir
1004 libdir
1005 psdir
1006 pdfdir
1007 dvidir
1008 htmldir
1009 infodir
1010 docdir
1011 oldincludedir
1012 includedir
1013 localstatedir
1014 sharedstatedir
1015 sysconfdir
1016 datadir
1017 datarootdir
1018 libexecdir
1019 sbindir
1020 bindir
1021 program_transform_name
1022 prefix
1023 exec_prefix
1024 PACKAGE_URL
1025 PACKAGE_BUGREPORT
1026 PACKAGE_STRING
1027 PACKAGE_VERSION
1028 PACKAGE_TARNAME
1029 PACKAGE_NAME
1030 PATH_SEPARATOR
1031 SHELL'
1032 ac_subst_files=''
1033 ac_user_opts='
1034 enable_option_checking
1035 with_custom_make_dir
1036 with_target_bits
1037 enable_openjdk_only
1038 with_jdk_variant
1039 with_jvm_interpreter
1040 with_jvm_variants
1041 enable_debug
1042 with_debug_level
1043 with_devkit
1044 with_sys_root
1045 with_sysroot
1046 with_tools_dir
1047 with_toolchain_path
1048 with_extra_path
1049 with_xcode_path
1050 with_conf_name
1051 with_builddeps_conf
1052 with_builddeps_server
1053 with_builddeps_dir
1054 with_builddeps_group
1055 enable_headful
1056 enable_hotspot_test_in_build
1057 with_cacerts_file
1058 enable_unlimited_crypto
1059 with_milestone
1060 with_update_version
1061 with_user_release_suffix
1062 with_build_number
1063 with_vendor_name
1064 with_vendor_url
1065 with_vendor_bug_url
1066 with_vendor_vm_bug_url
1067 with_copyright_year
1068 with_boot_jdk
1069 with_boot_jdk_jvmargs
1070 with_add_source_root
1071 with_override_source_root
1072 with_adds_and_overrides
1073 with_override_langtools
1074 with_override_corba
1075 with_override_jaxp
1076 with_override_jaxws
1077 with_override_hotspot
1078 with_override_nashorn
1079 with_override_jdk
1080 with_import_hotspot
1081 with_toolchain_type
1082 with_toolchain_version
1083 with_jtreg
1084 with_extra_cflags
1085 with_extra_cxxflags
1086 with_extra_ldflags
1087 enable_debug_symbols
1088 enable_zip_debug_info
1089 with_native_debug_symbols
1090 enable_macosx_runtime_support
1091 with_x
1092 with_cups
1093 with_cups_include
1094 with_freetype
1095 with_freetype_include
1096 with_freetype_lib
1097 with_freetype_src
1098 enable_freetype_bundling
1099 with_alsa
1100 with_alsa_include
1101 with_alsa_lib
1102 with_fontconfig
1103 with_fontconfig_include
1104 with_giflib
1105 with_zlib
1106 with_stdc__lib
1107 with_msvcr_dll
1108 with_msvcp_dll
1109 with_ucrt_dll_dir
1110 with_dxsdk
1111 with_dxsdk_lib
1112 with_dxsdk_include
1113 with_num_cores
1114 with_memory_size
1115 with_jobs
1116 with_sjavac_server_java
1117 enable_sjavac
1118 enable_precompiled_headers
1119 enable_ccache
1120 with_ccache_dir
1121 '
1122       ac_precious_vars='build_alias
1123 host_alias
1124 target_alias
1125 BASENAME
1126 BASH
1127 CAT
1128 CHMOD
1129 CMP
1130 COMM
1131 CP
1132 CUT
1133 DATE
1134 DIFF
1135 DIRNAME
1136 ECHO
1137 EXPR
1138 FILE
1139 FIND
1140 HEAD
1141 LN
1142 LS
1143 MKDIR
1144 MKTEMP
1145 MV
1146 NAWK
1147 PRINTF
1148 RM
1149 SH
1150 SORT
1151 TAIL
1152 TAR
1153 TEE
1154 TOUCH
1155 TR
1156 UNAME
1157 UNIQ
1158 WC
1159 WHICH
1160 XARGS
1161 AWK
1162 GREP
1163 EGREP
1164 FGREP
1165 SED
1166 CYGPATH
1167 READLINK
1168 DF
1169 SETFILE
1170 CPIO
1171 UNZIP
1172 ZIP
1173 LDD
1174 READELF
1175 HG
1176 STAT
1177 TIME
1178 DSYMUTIL
1179 XATTR
1180 CODESIGN
1181 PKG_CONFIG
1182 CC
1183 CFLAGS
1184 LDFLAGS
1185 LIBS
1186 CPPFLAGS
1187 CXX
1188 CXXFLAGS
1189 CCC
1190 CPP
1191 CXXCPP
1192 AS
1193 AR
1194 OBJC
1195 OBJCFLAGS
1196 LIPO
1197 STRIP
1198 NM
1199 GNM
1200 MCS
1201 OBJCOPY
1202 OBJDUMP
1203 BUILD_CC
1204 BUILD_CXX
1205 BUILD_LD
1206 JTREGEXE
1207 XMKMF
1208 FREETYPE_CFLAGS
1209 FREETYPE_LIBS
1210 ALSA_CFLAGS
1211 ALSA_LIBS
1212 LIBFFI_CFLAGS
1213 LIBFFI_LIBS
1214 CCACHE'
1215 
1216 
1217 # Initialize some variables set by options.
1218 ac_init_help=
1219 ac_init_version=false
1220 ac_unrecognized_opts=
1221 ac_unrecognized_sep=
1222 # The variables have the same names as the options, with
1223 # dashes changed to underlines.
1224 cache_file=/dev/null
1225 exec_prefix=NONE
1226 no_create=
1227 no_recursion=
1228 prefix=NONE
1229 program_prefix=NONE
1230 program_suffix=NONE
1231 program_transform_name=s,x,x,
1232 silent=
1233 site=
1234 srcdir=
1235 verbose=
1236 x_includes=NONE
1237 x_libraries=NONE
1238 
1239 # Installation directory options.
1240 # These are left unexpanded so users can "make install exec_prefix=/foo"
1241 # and all the variables that are supposed to be based on exec_prefix
1242 # by default will actually change.
1243 # Use braces instead of parens because sh, perl, etc. also accept them.
1244 # (The list follows the same order as the GNU Coding Standards.)
1245 bindir='${exec_prefix}/bin'
1246 sbindir='${exec_prefix}/sbin'
1247 libexecdir='${exec_prefix}/libexec'
1248 datarootdir='${prefix}/share'
1249 datadir='${datarootdir}'
1250 sysconfdir='${prefix}/etc'
1251 sharedstatedir='${prefix}/com'
1252 localstatedir='${prefix}/var'
1253 includedir='${prefix}/include'
1254 oldincludedir='/usr/include'
1255 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1256 infodir='${datarootdir}/info'
1257 htmldir='${docdir}'
1258 dvidir='${docdir}'
1259 pdfdir='${docdir}'
1260 psdir='${docdir}'
1261 libdir='${exec_prefix}/lib'
1262 localedir='${datarootdir}/locale'
1263 mandir='${datarootdir}/man'
1264 
1265 ac_prev=
1266 ac_dashdash=
1267 for ac_option
1268 do
1269   # If the previous option needs an argument, assign it.
1270   if test -n "$ac_prev"; then
1271     eval $ac_prev=\$ac_option
1272     ac_prev=
1273     continue
1274   fi
1275 
1276   case $ac_option in
1277   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1278   *=)   ac_optarg= ;;
1279   *)    ac_optarg=yes ;;
1280   esac
1281 
1282   # Accept the important Cygnus configure options, so we can diagnose typos.
1283 
1284   case $ac_dashdash$ac_option in
1285   --)
1286     ac_dashdash=yes ;;
1287 
1288   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1289     ac_prev=bindir ;;
1290   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1291     bindir=$ac_optarg ;;
1292 
1293   -build | --build | --buil | --bui | --bu)
1294     ac_prev=build_alias ;;
1295   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1296     build_alias=$ac_optarg ;;
1297 
1298   -cache-file | --cache-file | --cache-fil | --cache-fi \
1299   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1300     ac_prev=cache_file ;;
1301   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1302   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1303     cache_file=$ac_optarg ;;
1304 
1305   --config-cache | -C)
1306     cache_file=config.cache ;;
1307 
1308   -datadir | --datadir | --datadi | --datad)
1309     ac_prev=datadir ;;
1310   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1311     datadir=$ac_optarg ;;
1312 
1313   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1314   | --dataroo | --dataro | --datar)
1315     ac_prev=datarootdir ;;
1316   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1317   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1318     datarootdir=$ac_optarg ;;
1319 
1320   -disable-* | --disable-*)
1321     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324       as_fn_error $? "invalid feature name: $ac_useropt"
1325     ac_useropt_orig=$ac_useropt
1326     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1327     case $ac_user_opts in
1328       *"
1329 "enable_$ac_useropt"
1330 "*) ;;
1331       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1332          ac_unrecognized_sep=', ';;
1333     esac
1334     eval enable_$ac_useropt=no ;;
1335 
1336   -docdir | --docdir | --docdi | --doc | --do)
1337     ac_prev=docdir ;;
1338   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1339     docdir=$ac_optarg ;;
1340 
1341   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1342     ac_prev=dvidir ;;
1343   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1344     dvidir=$ac_optarg ;;
1345 
1346   -enable-* | --enable-*)
1347     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1348     # Reject names that are not valid shell variable names.
1349     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350       as_fn_error $? "invalid feature name: $ac_useropt"
1351     ac_useropt_orig=$ac_useropt
1352     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353     case $ac_user_opts in
1354       *"
1355 "enable_$ac_useropt"
1356 "*) ;;
1357       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1358          ac_unrecognized_sep=', ';;
1359     esac
1360     eval enable_$ac_useropt=\$ac_optarg ;;
1361 
1362   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1363   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1364   | --exec | --exe | --ex)
1365     ac_prev=exec_prefix ;;
1366   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1367   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1368   | --exec=* | --exe=* | --ex=*)
1369     exec_prefix=$ac_optarg ;;
1370 
1371   -gas | --gas | --ga | --g)
1372     # Obsolete; use --with-gas.
1373     with_gas=yes ;;
1374 
1375   -help | --help | --hel | --he | -h)
1376     ac_init_help=long ;;
1377   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1378     ac_init_help=recursive ;;
1379   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1380     ac_init_help=short ;;
1381 
1382   -host | --host | --hos | --ho)
1383     ac_prev=host_alias ;;
1384   -host=* | --host=* | --hos=* | --ho=*)
1385     host_alias=$ac_optarg ;;
1386 
1387   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1388     ac_prev=htmldir ;;
1389   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1390   | --ht=*)
1391     htmldir=$ac_optarg ;;
1392 
1393   -includedir | --includedir | --includedi | --included | --include \
1394   | --includ | --inclu | --incl | --inc)
1395     ac_prev=includedir ;;
1396   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1397   | --includ=* | --inclu=* | --incl=* | --inc=*)
1398     includedir=$ac_optarg ;;
1399 
1400   -infodir | --infodir | --infodi | --infod | --info | --inf)
1401     ac_prev=infodir ;;
1402   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1403     infodir=$ac_optarg ;;
1404 
1405   -libdir | --libdir | --libdi | --libd)
1406     ac_prev=libdir ;;
1407   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1408     libdir=$ac_optarg ;;
1409 
1410   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1411   | --libexe | --libex | --libe)
1412     ac_prev=libexecdir ;;
1413   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1414   | --libexe=* | --libex=* | --libe=*)
1415     libexecdir=$ac_optarg ;;
1416 
1417   -localedir | --localedir | --localedi | --localed | --locale)
1418     ac_prev=localedir ;;
1419   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1420     localedir=$ac_optarg ;;
1421 
1422   -localstatedir | --localstatedir | --localstatedi | --localstated \
1423   | --localstate | --localstat | --localsta | --localst | --locals)
1424     ac_prev=localstatedir ;;
1425   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1426   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1427     localstatedir=$ac_optarg ;;
1428 
1429   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1430     ac_prev=mandir ;;
1431   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1432     mandir=$ac_optarg ;;
1433 
1434   -nfp | --nfp | --nf)
1435     # Obsolete; use --without-fp.
1436     with_fp=no ;;
1437 
1438   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1439   | --no-cr | --no-c | -n)
1440     no_create=yes ;;
1441 
1442   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1443   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1444     no_recursion=yes ;;
1445 
1446   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1447   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1448   | --oldin | --oldi | --old | --ol | --o)
1449     ac_prev=oldincludedir ;;
1450   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1451   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1452   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1453     oldincludedir=$ac_optarg ;;
1454 
1455   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1456     ac_prev=prefix ;;
1457   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1458     prefix=$ac_optarg ;;
1459 
1460   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1461   | --program-pre | --program-pr | --program-p)
1462     ac_prev=program_prefix ;;
1463   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1464   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1465     program_prefix=$ac_optarg ;;
1466 
1467   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1468   | --program-suf | --program-su | --program-s)
1469     ac_prev=program_suffix ;;
1470   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1471   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1472     program_suffix=$ac_optarg ;;
1473 
1474   -program-transform-name | --program-transform-name \
1475   | --program-transform-nam | --program-transform-na \
1476   | --program-transform-n | --program-transform- \
1477   | --program-transform | --program-transfor \
1478   | --program-transfo | --program-transf \
1479   | --program-trans | --program-tran \
1480   | --progr-tra | --program-tr | --program-t)
1481     ac_prev=program_transform_name ;;
1482   -program-transform-name=* | --program-transform-name=* \
1483   | --program-transform-nam=* | --program-transform-na=* \
1484   | --program-transform-n=* | --program-transform-=* \
1485   | --program-transform=* | --program-transfor=* \
1486   | --program-transfo=* | --program-transf=* \
1487   | --program-trans=* | --program-tran=* \
1488   | --progr-tra=* | --program-tr=* | --program-t=*)
1489     program_transform_name=$ac_optarg ;;
1490 
1491   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1492     ac_prev=pdfdir ;;
1493   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1494     pdfdir=$ac_optarg ;;
1495 
1496   -psdir | --psdir | --psdi | --psd | --ps)
1497     ac_prev=psdir ;;
1498   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1499     psdir=$ac_optarg ;;
1500 
1501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1502   | -silent | --silent | --silen | --sile | --sil)
1503     silent=yes ;;
1504 
1505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1506     ac_prev=sbindir ;;
1507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1508   | --sbi=* | --sb=*)
1509     sbindir=$ac_optarg ;;
1510 
1511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1513   | --sharedst | --shareds | --shared | --share | --shar \
1514   | --sha | --sh)
1515     ac_prev=sharedstatedir ;;
1516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1519   | --sha=* | --sh=*)
1520     sharedstatedir=$ac_optarg ;;
1521 
1522   -site | --site | --sit)
1523     ac_prev=site ;;
1524   -site=* | --site=* | --sit=*)
1525     site=$ac_optarg ;;
1526 
1527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1528     ac_prev=srcdir ;;
1529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1530     srcdir=$ac_optarg ;;
1531 
1532   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1533   | --syscon | --sysco | --sysc | --sys | --sy)
1534     ac_prev=sysconfdir ;;
1535   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1536   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1537     sysconfdir=$ac_optarg ;;
1538 
1539   -target | --target | --targe | --targ | --tar | --ta | --t)
1540     ac_prev=target_alias ;;
1541   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1542     target_alias=$ac_optarg ;;
1543 
1544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1545     verbose=yes ;;
1546 
1547   -version | --version | --versio | --versi | --vers | -V)
1548     ac_init_version=: ;;
1549 
1550   -with-* | --with-*)
1551     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1552     # Reject names that are not valid shell variable names.
1553     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1554       as_fn_error $? "invalid package name: $ac_useropt"
1555     ac_useropt_orig=$ac_useropt
1556     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1557     case $ac_user_opts in
1558       *"
1559 "with_$ac_useropt"
1560 "*) ;;
1561       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1562          ac_unrecognized_sep=', ';;
1563     esac
1564     eval with_$ac_useropt=\$ac_optarg ;;
1565 
1566   -without-* | --without-*)
1567     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1568     # Reject names that are not valid shell variable names.
1569     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1570       as_fn_error $? "invalid package name: $ac_useropt"
1571     ac_useropt_orig=$ac_useropt
1572     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1573     case $ac_user_opts in
1574       *"
1575 "with_$ac_useropt"
1576 "*) ;;
1577       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1578          ac_unrecognized_sep=', ';;
1579     esac
1580     eval with_$ac_useropt=no ;;
1581 
1582   --x)
1583     # Obsolete; use --with-x.
1584     with_x=yes ;;
1585 
1586   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1587   | --x-incl | --x-inc | --x-in | --x-i)
1588     ac_prev=x_includes ;;
1589   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1590   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1591     x_includes=$ac_optarg ;;
1592 
1593   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1594   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1595     ac_prev=x_libraries ;;
1596   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1597   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1598     x_libraries=$ac_optarg ;;
1599 
1600   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1601 Try \`$0 --help' for more information"
1602     ;;
1603 
1604   *=*)
1605     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1606     # Reject names that are not valid shell variable names.
1607     case $ac_envvar in #(
1608       '' | [0-9]* | *[!_$as_cr_alnum]* )
1609       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1610     esac
1611     eval $ac_envvar=\$ac_optarg
1612     export $ac_envvar ;;
1613 
1614   *)
1615     # FIXME: should be removed in autoconf 3.0.
1616     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1617     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1618       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1619     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1620     ;;
1621 
1622   esac
1623 done
1624 
1625 if test -n "$ac_prev"; then
1626   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1627   as_fn_error $? "missing argument to $ac_option"
1628 fi
1629 
1630 if test -n "$ac_unrecognized_opts"; then
1631   case $enable_option_checking in
1632     no) ;;
1633     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1634     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1635   esac
1636 fi
1637 
1638 # Check all directory arguments for consistency.
1639 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1640                 datadir sysconfdir sharedstatedir localstatedir includedir \
1641                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1642                 libdir localedir mandir
1643 do
1644   eval ac_val=\$$ac_var
1645   # Remove trailing slashes.
1646   case $ac_val in
1647     */ )
1648       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1649       eval $ac_var=\$ac_val;;
1650   esac
1651   # Be sure to have absolute directory names.
1652   case $ac_val in
1653     [\\/$]* | ?:[\\/]* )  continue;;
1654     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1655   esac
1656   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1657 done
1658 
1659 # There might be people who depend on the old broken behavior: `$host'
1660 # used to hold the argument of --host etc.
1661 # FIXME: To remove some day.
1662 build=$build_alias
1663 host=$host_alias
1664 target=$target_alias
1665 
1666 # FIXME: To remove some day.
1667 if test "x$host_alias" != x; then
1668   if test "x$build_alias" = x; then
1669     cross_compiling=maybe
1670   elif test "x$build_alias" != "x$host_alias"; then
1671     cross_compiling=yes
1672   fi
1673 fi
1674 
1675 ac_tool_prefix=
1676 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1677 
1678 test "$silent" = yes && exec 6>/dev/null
1679 
1680 
1681 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1682 ac_ls_di=`ls -di .` &&
1683 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1684   as_fn_error $? "working directory cannot be determined"
1685 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1686   as_fn_error $? "pwd does not report name of working directory"
1687 
1688 
1689 # Find the source files, if location was not specified.
1690 if test -z "$srcdir"; then
1691   ac_srcdir_defaulted=yes
1692   # Try the directory containing this script, then the parent directory.
1693   ac_confdir=`$as_dirname -- "$as_myself" ||
1694 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1695          X"$as_myself" : 'X\(//\)[^/]' \| \
1696          X"$as_myself" : 'X\(//\)$' \| \
1697          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1698 $as_echo X"$as_myself" |
1699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1700             s//\1/
1701             q
1702           }
1703           /^X\(\/\/\)[^/].*/{
1704             s//\1/
1705             q
1706           }
1707           /^X\(\/\/\)$/{
1708             s//\1/
1709             q
1710           }
1711           /^X\(\/\).*/{
1712             s//\1/
1713             q
1714           }
1715           s/.*/./; q'`
1716   srcdir=$ac_confdir
1717   if test ! -r "$srcdir/$ac_unique_file"; then
1718     srcdir=..
1719   fi
1720 else
1721   ac_srcdir_defaulted=no
1722 fi
1723 if test ! -r "$srcdir/$ac_unique_file"; then
1724   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1725   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1726 fi
1727 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1728 ac_abs_confdir=`(
1729         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1730         pwd)`
1731 # When building in place, set srcdir=.
1732 if test "$ac_abs_confdir" = "$ac_pwd"; then
1733   srcdir=.
1734 fi
1735 # Remove unnecessary trailing slashes from srcdir.
1736 # Double slashes in file names in object file debugging info
1737 # mess up M-x gdb in Emacs.
1738 case $srcdir in
1739 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1740 esac
1741 for ac_var in $ac_precious_vars; do
1742   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1743   eval ac_env_${ac_var}_value=\$${ac_var}
1744   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1745   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1746 done
1747 
1748 #
1749 # Report the --help message.
1750 #
1751 if test "$ac_init_help" = "long"; then
1752   # Omit some internal or obsolete options to make the list less imposing.
1753   # This message is too long to be a string in the A/UX 3.1 sh.
1754   cat <<_ACEOF
1755 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems.
1756 
1757 Usage: $0 [OPTION]... [VAR=VALUE]...
1758 
1759 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1760 VAR=VALUE.  See below for descriptions of some of the useful variables.
1761 
1762 Defaults for the options are specified in brackets.
1763 
1764 Configuration:
1765   -h, --help              display this help and exit
1766       --help=short        display options specific to this package
1767       --help=recursive    display the short help of all the included packages
1768   -V, --version           display version information and exit
1769   -q, --quiet, --silent   do not print \`checking ...' messages
1770       --cache-file=FILE   cache test results in FILE [disabled]
1771   -C, --config-cache      alias for \`--cache-file=config.cache'
1772   -n, --no-create         do not create output files
1773       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1774 
1775 Installation directories:
1776   --prefix=PREFIX         install architecture-independent files in PREFIX
1777                           [$ac_default_prefix]
1778   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1779                           [PREFIX]
1780 
1781 By default, \`make install' will install all the files in
1782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1784 for instance \`--prefix=\$HOME'.
1785 
1786 For better control, use the options below.
1787 
1788 Fine tuning of the installation directories:
1789   --bindir=DIR            user executables [EPREFIX/bin]
1790   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1791   --libexecdir=DIR        program executables [EPREFIX/libexec]
1792   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1793   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1794   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1795   --libdir=DIR            object code libraries [EPREFIX/lib]
1796   --includedir=DIR        C header files [PREFIX/include]
1797   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1798   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1799   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1800   --infodir=DIR           info documentation [DATAROOTDIR/info]
1801   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1802   --mandir=DIR            man documentation [DATAROOTDIR/man]
1803   --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1804   --htmldir=DIR           html documentation [DOCDIR]
1805   --dvidir=DIR            dvi documentation [DOCDIR]
1806   --pdfdir=DIR            pdf documentation [DOCDIR]
1807   --psdir=DIR             ps documentation [DOCDIR]
1808 _ACEOF
1809 
1810   cat <<\_ACEOF
1811 
1812 X features:
1813   --x-includes=DIR    X include files are in DIR
1814   --x-libraries=DIR   X library files are in DIR
1815 
1816 System types:
1817   --build=BUILD     configure for building on BUILD [guessed]
1818   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1819   --target=TARGET   configure for building compilers for TARGET [HOST]
1820 _ACEOF
1821 fi
1822 
1823 if test -n "$ac_init_help"; then
1824   case $ac_init_help in
1825      short | recursive ) echo "Configuration of OpenJDK jdk8:";;
1826    esac
1827   cat <<\_ACEOF
1828 
1829 Optional Features:
1830   --disable-option-checking  ignore unrecognized --enable/--with options
1831   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1832   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1833   --enable-openjdk-only   suppress building custom source even if present
1834                           [disabled]
1835   --enable-debug          set the debug level to fastdebug (shorthand for
1836                           --with-debug-level=fastdebug) [disabled]
1837   --disable-headful       disable building headful support (graphical UI
1838                           support) [enabled]
1839   --enable-hotspot-test-in-build
1840                           run the Queens test after Hotspot build [disabled]
1841   --enable-unlimited-crypto
1842                           Enable unlimited crypto policy [disabled]
1843   --disable-debug-symbols disable generation of debug symbols [enabled]
1844   --disable-zip-debug-info
1845                           disable zipping of debug-info files [enabled]
1846   --enable-macosx-runtime-support
1847                           Deprecated. Option is kept for backwards
1848                           compatibility and is ignored
1849   --disable-freetype-bundling
1850                           disable bundling of the freetype library with the
1851                           build result [enabled on Windows or when using
1852                           --with-freetype, disabled otherwise]
1853   --enable-sjavac         use sjavac to do fast incremental compiles
1854                           [disabled]
1855   --disable-precompiled-headers
1856                           disable using precompiled headers when compiling C++
1857                           [enabled]
1858   --enable-ccache         enable using ccache to speed up recompilations
1859                           [disabled]
1860 
1861 Optional Packages:
1862   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1863   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1864   --with-custom-make-dir  use this directory for custom build/make files
1865   --with-target-bits      build 32-bit or 64-bit binaries (for platforms that
1866                           support it), e.g. --with-target-bits=32 [guessed]
1867   --with-jdk-variant      JDK variant to build (normal) [normal]
1868   --with-jvm-interpreter  JVM interpreter to build (template, cpp) [template]
1869   --with-jvm-variants     JVM variants (separated by commas) to build (server,
1870                           client, minimal1, kernel, zero, zeroshark, core)
1871                           [server]
1872   --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1873                           [release]
1874   --with-devkit           use this devkit for compilers, tools and resources
1875   --with-sys-root         alias for --with-sysroot for backwards compatability
1876   --with-sysroot          use this directory as sysroot)
1877   --with-tools-dir        alias for --with-toolchain-path for backwards
1878                           compatibility
1879   --with-toolchain-path   prepend these directories when searching for
1880                           toolchain binaries (compilers etc)
1881   --with-extra-path       prepend these directories to the default path
1882   --with-xcode-path       explicit path to Xcode 4 (generally for building on
1883                           10.9 and later)
1884   --with-conf-name        use this as the name of the configuration [generated
1885                           from important configuration options]
1886   --with-builddeps-conf   use this configuration file for the builddeps
1887   --with-builddeps-server download and use build dependencies from this server
1888                           url
1889   --with-builddeps-dir    store downloaded build dependencies here
1890                           [/localhome/builddeps]
1891   --with-builddeps-group  chgrp the downloaded build dependencies to this
1892                           group
1893   --with-cacerts-file     specify alternative cacerts file
1894   --with-milestone        Set milestone value for build [internal]
1895   --with-update-version   Set update version value for build [b00]
1896   --with-user-release-suffix
1897                           Add a custom string to the version string if build
1898                           number isn't set.[username_builddateb00]
1899   --with-build-number     Set build number value for build [b00]
1900   --with-vendor-name      Set vendor name. Among others, used to set the
1901                           'java.vendor' and 'java.vm.vendor' system
1902                           properties. [not specified]
1903   --with-vendor-url       Set the 'java.vendor.url' system property [not
1904                           specified]
1905   --with-vendor-bug-url   Set the 'java.vendor.url.bug' system property [not
1906                           specified]
1907   --with-vendor-vm-bug-url
1908                           Sets the bug URL which will be displayed when the VM
1909                           crashes [not specified]
1910   --with-copyright-year   Set copyright year value for build [current year]
1911   --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1912   --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1913                           invocations of the Boot JDK, overriding the default
1914                           values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1915                           -enableassertions"
1916   --with-add-source-root  for each and every source directory, look in this
1917                           additional source root for the same directory; if it
1918                           exists and have files in it, include it in the build
1919   --with-override-source-root
1920                           for each and every source directory, look in this
1921                           override source root for the same directory; if it
1922                           exists, use that directory instead and ignore the
1923                           directory in the original source root
1924   --with-adds-and-overrides
1925                           use the subdirs 'adds' and 'overrides' in the
1926                           specified directory as add-source-root and
1927                           override-source-root
1928   --with-override-langtools
1929                           use this langtools dir for the build
1930   --with-override-corba   use this corba dir for the build
1931   --with-override-jaxp    use this jaxp dir for the build
1932   --with-override-jaxws   use this jaxws dir for the build
1933   --with-override-hotspot use this hotspot dir for the build
1934   --with-override-nashorn use this nashorn dir for the build
1935   --with-override-jdk     use this jdk dir for the build
1936   --with-import-hotspot   import hotspot binaries from this jdk image or
1937                           hotspot build dist dir instead of building from
1938                           source
1939   --with-toolchain-type   the toolchain type (or family) to use, use '--help'
1940                           to show possible values [platform dependent]
1941   --with-toolchain-version
1942                           the version of the toolchain to look for, use
1943                           '--help' to show possible values [platform
1944                           dependent]
1945   --with-jtreg            Regression Test Harness [probed]
1946   --with-extra-cflags     extra flags to be used when compiling jdk c-files
1947   --with-extra-cxxflags   extra flags to be used when compiling jdk c++-files
1948   --with-extra-ldflags    extra flags to be used when linking jdk
1949   --with-native-debug-symbols
1950                           set the native debug symbol configuration (none,
1951                           internal, external, zipped) [varying]
1952   --with-x                use the X Window System
1953   --with-cups             specify prefix directory for the cups package
1954                           (expecting the headers under PATH/include)
1955   --with-cups-include     specify directory for the cups include files
1956   --with-freetype         specify prefix directory for the freetype package
1957                           (expecting the libraries under PATH/lib and the
1958                           headers under PATH/include)
1959   --with-freetype-include specify directory for the freetype include files
1960   --with-freetype-lib     specify directory for the freetype library
1961   --with-freetype-src     specify directory with freetype sources to
1962                           automatically build the library (experimental,
1963                           Windows-only)
1964   --with-alsa             specify prefix directory for the alsa package
1965                           (expecting the libraries under PATH/lib and the
1966                           headers under PATH/include)
1967   --with-alsa-include     specify directory for the alsa include files
1968   --with-alsa-lib         specify directory for the alsa library
1969   --with-fontconfig       specify prefix directory for the fontconfig package
1970                           (expecting the headers under PATH/include)
1971   --with-fontconfig-include
1972                           specify directory for the fontconfig include files
1973   --with-giflib           use giflib from build system or OpenJDK source
1974                           (system, bundled) [bundled]
1975   --with-zlib             use zlib from build system or OpenJDK source
1976                           (system, bundled) [bundled]
1977   --with-stdc++lib=<static>,<dynamic>,<default>
1978                           force linking of the C++ runtime on Linux to either
1979                           static or dynamic, default is static with dynamic as
1980                           fallback
1981   --with-msvcr-dll        path to microsoft C runtime dll (msvcr*.dll)
1982                           (Windows only) [probed]
1983   --with-msvcp-dll        path to microsoft C++ runtime dll (msvcp*.dll)
1984                           (Windows only) [probed]
1985   --with-ucrt-dll-dir     path to Microsoft Windows Kit UCRT DLL dir (Windows
1986                           only) [probed]
1987   --with-dxsdk            Deprecated. Option is kept for backwards
1988                           compatibility and is ignored
1989   --with-dxsdk-lib        Deprecated. Option is kept for backwards
1990                           compatibility and is ignored
1991   --with-dxsdk-include    Deprecated. Option is kept for backwards
1992                           compatibility and is ignored
1993   --with-num-cores        number of cores in the build system, e.g.
1994                           --with-num-cores=8 [probed]
1995   --with-memory-size      memory (in MB) available in the build system, e.g.
1996                           --with-memory-size=1024 [probed]
1997   --with-jobs             number of parallel jobs to let make run [calculated
1998                           based on cores and memory]
1999   --with-sjavac-server-java
2000                           use this java binary for running the sjavac
2001                           background server [Boot JDK java]
2002   --with-ccache-dir       where to store ccache files [~/.ccache]
2003 
2004 Some influential environment variables:
2005   BASENAME    Override default value for BASENAME
2006   BASH        Override default value for BASH
2007   CAT         Override default value for CAT
2008   CHMOD       Override default value for CHMOD
2009   CMP         Override default value for CMP
2010   COMM        Override default value for COMM
2011   CP          Override default value for CP
2012   CUT         Override default value for CUT
2013   DATE        Override default value for DATE
2014   DIFF        Override default value for DIFF
2015   DIRNAME     Override default value for DIRNAME
2016   ECHO        Override default value for ECHO
2017   EXPR        Override default value for EXPR
2018   FILE        Override default value for FILE
2019   FIND        Override default value for FIND
2020   HEAD        Override default value for HEAD
2021   LN          Override default value for LN
2022   LS          Override default value for LS
2023   MKDIR       Override default value for MKDIR
2024   MKTEMP      Override default value for MKTEMP
2025   MV          Override default value for MV
2026   NAWK        Override default value for NAWK
2027   PRINTF      Override default value for PRINTF
2028   RM          Override default value for RM
2029   SH          Override default value for SH
2030   SORT        Override default value for SORT
2031   TAIL        Override default value for TAIL
2032   TAR         Override default value for TAR
2033   TEE         Override default value for TEE
2034   TOUCH       Override default value for TOUCH
2035   TR          Override default value for TR
2036   UNAME       Override default value for UNAME
2037   UNIQ        Override default value for UNIQ
2038   WC          Override default value for WC
2039   WHICH       Override default value for WHICH
2040   XARGS       Override default value for XARGS
2041   AWK         Override default value for AWK
2042   GREP        Override default value for GREP
2043   EGREP       Override default value for EGREP
2044   FGREP       Override default value for FGREP
2045   SED         Override default value for SED
2046   CYGPATH     Override default value for CYGPATH
2047   READLINK    Override default value for READLINK
2048   DF          Override default value for DF
2049   SETFILE     Override default value for SETFILE
2050   CPIO        Override default value for CPIO
2051   UNZIP       Override default value for UNZIP
2052   ZIP         Override default value for ZIP
2053   LDD         Override default value for LDD
2054   READELF     Override default value for READELF
2055   HG          Override default value for HG
2056   STAT        Override default value for STAT
2057   TIME        Override default value for TIME
2058   DSYMUTIL    Override default value for DSYMUTIL
2059   XATTR       Override default value for XATTR
2060   CODESIGN    Override default value for CODESIGN
2061   PKG_CONFIG  path to pkg-config utility
2062   CC          C compiler command
2063   CFLAGS      C compiler flags
2064   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2065               nonstandard directory <lib dir>
2066   LIBS        libraries to pass to the linker, e.g. -l<library>
2067   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2068               you have headers in a nonstandard directory <include dir>
2069   CXX         C++ compiler command
2070   CXXFLAGS    C++ compiler flags
2071   CPP         C preprocessor
2072   CXXCPP      C++ preprocessor
2073   AS          Override default value for AS
2074   AR          Override default value for AR
2075   OBJC        Objective C compiler command
2076   OBJCFLAGS   Objective C compiler flags
2077   LIPO        Override default value for LIPO
2078   STRIP       Override default value for STRIP
2079   NM          Override default value for NM
2080   GNM         Override default value for GNM
2081   MCS         Override default value for MCS
2082   OBJCOPY     Override default value for OBJCOPY
2083   OBJDUMP     Override default value for OBJDUMP
2084   BUILD_CC    Override default value for BUILD_CC
2085   BUILD_CXX   Override default value for BUILD_CXX
2086   BUILD_LD    Override default value for BUILD_LD
2087   JTREGEXE    Override default value for JTREGEXE
2088   XMKMF       Path to xmkmf, Makefile generator for X Window System
2089   FREETYPE_CFLAGS
2090               C compiler flags for FREETYPE, overriding pkg-config
2091   FREETYPE_LIBS
2092               linker flags for FREETYPE, overriding pkg-config
2093   ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
2094   ALSA_LIBS   linker flags for ALSA, overriding pkg-config
2095   LIBFFI_CFLAGS
2096               C compiler flags for LIBFFI, overriding pkg-config
2097   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
2098   CCACHE      Override default value for CCACHE
2099 
2100 Use these variables to override the choices made by `configure' or to help
2101 it to find libraries and programs with nonstandard names/locations.
2102 
2103 Report bugs to <build-dev@openjdk.java.net>.
2104 OpenJDK home page: <http://openjdk.java.net>.
2105 _ACEOF
2106 ac_status=$?
2107 fi
2108 
2109 if test "$ac_init_help" = "recursive"; then
2110   # If there are subdirs, report their specific --help.
2111   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2112     test -d "$ac_dir" ||
2113       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2114       continue
2115     ac_builddir=.
2116 
2117 case "$ac_dir" in
2118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2119 *)
2120   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2121   # A ".." for each directory in $ac_dir_suffix.
2122   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2123   case $ac_top_builddir_sub in
2124   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2125   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2126   esac ;;
2127 esac
2128 ac_abs_top_builddir=$ac_pwd
2129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2130 # for backward compatibility:
2131 ac_top_builddir=$ac_top_build_prefix
2132 
2133 case $srcdir in
2134   .)  # We are building in place.
2135     ac_srcdir=.
2136     ac_top_srcdir=$ac_top_builddir_sub
2137     ac_abs_top_srcdir=$ac_pwd ;;
2138   [\\/]* | ?:[\\/]* )  # Absolute name.
2139     ac_srcdir=$srcdir$ac_dir_suffix;
2140     ac_top_srcdir=$srcdir
2141     ac_abs_top_srcdir=$srcdir ;;
2142   *) # Relative name.
2143     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2144     ac_top_srcdir=$ac_top_build_prefix$srcdir
2145     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2146 esac
2147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2148 
2149     cd "$ac_dir" || { ac_status=$?; continue; }
2150     # Check for guested configure.
2151     if test -f "$ac_srcdir/configure.gnu"; then
2152       echo &&
2153       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2154     elif test -f "$ac_srcdir/configure"; then
2155       echo &&
2156       $SHELL "$ac_srcdir/configure" --help=recursive
2157     else
2158       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2159     fi || ac_status=$?
2160     cd "$ac_pwd" || { ac_status=$?; break; }
2161   done
2162 fi
2163 
2164 test -n "$ac_init_help" && exit $ac_status
2165 if $ac_init_version; then
2166   cat <<\_ACEOF
2167 OpenJDK configure jdk8
2168 generated by GNU Autoconf 2.69
2169 
2170 Copyright (C) 2012 Free Software Foundation, Inc.
2171 This configure script is free software; the Free Software Foundation
2172 gives unlimited permission to copy, distribute and modify it.
2173 _ACEOF
2174   exit
2175 fi
2176 
2177 ## ------------------------ ##
2178 ## Autoconf initialization. ##
2179 ## ------------------------ ##
2180 
2181 # ac_fn_c_try_compile LINENO
2182 # --------------------------
2183 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2184 ac_fn_c_try_compile ()
2185 {
2186   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2187   rm -f conftest.$ac_objext
2188   if { { ac_try="$ac_compile"
2189 case "(($ac_try" in
2190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2191   *) ac_try_echo=$ac_try;;
2192 esac
2193 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2194 $as_echo "$ac_try_echo"; } >&5
2195   (eval "$ac_compile") 2>conftest.err
2196   ac_status=$?
2197   if test -s conftest.err; then
2198     grep -v '^ *+' conftest.err >conftest.er1
2199     cat conftest.er1 >&5
2200     mv -f conftest.er1 conftest.err
2201   fi
2202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2203   test $ac_status = 0; } && {
2204          test -z "$ac_c_werror_flag" ||
2205          test ! -s conftest.err
2206        } && test -s conftest.$ac_objext; then :
2207   ac_retval=0
2208 else
2209   $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211 
2212         ac_retval=1
2213 fi
2214   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2215   as_fn_set_status $ac_retval
2216 
2217 } # ac_fn_c_try_compile
2218 
2219 # ac_fn_cxx_try_compile LINENO
2220 # ----------------------------
2221 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2222 ac_fn_cxx_try_compile ()
2223 {
2224   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225   rm -f conftest.$ac_objext
2226   if { { ac_try="$ac_compile"
2227 case "(($ac_try" in
2228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229   *) ac_try_echo=$ac_try;;
2230 esac
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233   (eval "$ac_compile") 2>conftest.err
2234   ac_status=$?
2235   if test -s conftest.err; then
2236     grep -v '^ *+' conftest.err >conftest.er1
2237     cat conftest.er1 >&5
2238     mv -f conftest.er1 conftest.err
2239   fi
2240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241   test $ac_status = 0; } && {
2242          test -z "$ac_cxx_werror_flag" ||
2243          test ! -s conftest.err
2244        } && test -s conftest.$ac_objext; then :
2245   ac_retval=0
2246 else
2247   $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2249 
2250         ac_retval=1
2251 fi
2252   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2253   as_fn_set_status $ac_retval
2254 
2255 } # ac_fn_cxx_try_compile
2256 
2257 # ac_fn_c_try_cpp LINENO
2258 # ----------------------
2259 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_c_try_cpp ()
2261 {
2262   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263   if { { ac_try="$ac_cpp conftest.$ac_ext"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2271   ac_status=$?
2272   if test -s conftest.err; then
2273     grep -v '^ *+' conftest.err >conftest.er1
2274     cat conftest.er1 >&5
2275     mv -f conftest.er1 conftest.err
2276   fi
2277   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278   test $ac_status = 0; } > conftest.i && {
2279          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2280          test ! -s conftest.err
2281        }; then :
2282   ac_retval=0
2283 else
2284   $as_echo "$as_me: failed program was:" >&5
2285 sed 's/^/| /' conftest.$ac_ext >&5
2286 
2287     ac_retval=1
2288 fi
2289   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290   as_fn_set_status $ac_retval
2291 
2292 } # ac_fn_c_try_cpp
2293 
2294 # ac_fn_cxx_try_cpp LINENO
2295 # ------------------------
2296 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2297 ac_fn_cxx_try_cpp ()
2298 {
2299   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300   if { { ac_try="$ac_cpp conftest.$ac_ext"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2308   ac_status=$?
2309   if test -s conftest.err; then
2310     grep -v '^ *+' conftest.err >conftest.er1
2311     cat conftest.er1 >&5
2312     mv -f conftest.er1 conftest.err
2313   fi
2314   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315   test $ac_status = 0; } > conftest.i && {
2316          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2317          test ! -s conftest.err
2318        }; then :
2319   ac_retval=0
2320 else
2321   $as_echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2323 
2324     ac_retval=1
2325 fi
2326   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327   as_fn_set_status $ac_retval
2328 
2329 } # ac_fn_cxx_try_cpp
2330 
2331 # ac_fn_objc_try_compile LINENO
2332 # -----------------------------
2333 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_objc_try_compile ()
2335 {
2336   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337   rm -f conftest.$ac_objext
2338   if { { ac_try="$ac_compile"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2344 $as_echo "$ac_try_echo"; } >&5
2345   (eval "$ac_compile") 2>conftest.err
2346   ac_status=$?
2347   if test -s conftest.err; then
2348     grep -v '^ *+' conftest.err >conftest.er1
2349     cat conftest.er1 >&5
2350     mv -f conftest.er1 conftest.err
2351   fi
2352   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353   test $ac_status = 0; } && {
2354          test -z "$ac_objc_werror_flag" ||
2355          test ! -s conftest.err
2356        } && test -s conftest.$ac_objext; then :
2357   ac_retval=0
2358 else
2359   $as_echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2361 
2362         ac_retval=1
2363 fi
2364   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2365   as_fn_set_status $ac_retval
2366 
2367 } # ac_fn_objc_try_compile
2368 
2369 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2370 # ---------------------------------------------------------
2371 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2372 # the include files in INCLUDES and setting the cache variable VAR
2373 # accordingly.
2374 ac_fn_cxx_check_header_mongrel ()
2375 {
2376   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377   if eval \${$3+:} false; then :
2378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 $as_echo_n "checking for $2... " >&6; }
2380 if eval \${$3+:} false; then :
2381   $as_echo_n "(cached) " >&6
2382 fi
2383 eval ac_res=\$$3
2384                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 else
2387   # Is the header compilable?
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2389 $as_echo_n "checking $2 usability... " >&6; }
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 $4
2393 #include <$2>
2394 _ACEOF
2395 if ac_fn_cxx_try_compile "$LINENO"; then :
2396   ac_header_compiler=yes
2397 else
2398   ac_header_compiler=no
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2402 $as_echo "$ac_header_compiler" >&6; }
2403 
2404 # Is the header present?
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2406 $as_echo_n "checking $2 presence... " >&6; }
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h.  */
2409 #include <$2>
2410 _ACEOF
2411 if ac_fn_cxx_try_cpp "$LINENO"; then :
2412   ac_header_preproc=yes
2413 else
2414   ac_header_preproc=no
2415 fi
2416 rm -f conftest.err conftest.i conftest.$ac_ext
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2418 $as_echo "$ac_header_preproc" >&6; }
2419 
2420 # So?  What about this header?
2421 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2422   yes:no: )
2423     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2424 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2425     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2426 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2427     ;;
2428   no:yes:* )
2429     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2430 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2431     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2432 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2433     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2434 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2435     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2436 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2437     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2438 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2439 ( $as_echo "## ----------------------------------------- ##
2440 ## Report this to build-dev@openjdk.java.net ##
2441 ## ----------------------------------------- ##"
2442      ) | sed "s/^/$as_me: WARNING:     /" >&2
2443     ;;
2444 esac
2445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2446 $as_echo_n "checking for $2... " >&6; }
2447 if eval \${$3+:} false; then :
2448   $as_echo_n "(cached) " >&6
2449 else
2450   eval "$3=\$ac_header_compiler"
2451 fi
2452 eval ac_res=\$$3
2453                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2454 $as_echo "$ac_res" >&6; }
2455 fi
2456   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2457 
2458 } # ac_fn_cxx_check_header_mongrel
2459 
2460 # ac_fn_cxx_try_run LINENO
2461 # ------------------------
2462 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2463 # that executables *can* be run.
2464 ac_fn_cxx_try_run ()
2465 {
2466   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467   if { { ac_try="$ac_link"
2468 case "(($ac_try" in
2469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470   *) ac_try_echo=$ac_try;;
2471 esac
2472 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2473 $as_echo "$ac_try_echo"; } >&5
2474   (eval "$ac_link") 2>&5
2475   ac_status=$?
2476   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2477   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2478   { { case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 $as_echo "$ac_try_echo"; } >&5
2484   (eval "$ac_try") 2>&5
2485   ac_status=$?
2486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487   test $ac_status = 0; }; }; then :
2488   ac_retval=0
2489 else
2490   $as_echo "$as_me: program exited with status $ac_status" >&5
2491        $as_echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2493 
2494        ac_retval=$ac_status
2495 fi
2496   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2497   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498   as_fn_set_status $ac_retval
2499 
2500 } # ac_fn_cxx_try_run
2501 
2502 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2503 # ---------------------------------------------------------
2504 # Tests whether HEADER exists and can be compiled using the include files in
2505 # INCLUDES, setting the cache variable VAR accordingly.
2506 ac_fn_cxx_check_header_compile ()
2507 {
2508   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2510 $as_echo_n "checking for $2... " >&6; }
2511 if eval \${$3+:} false; then :
2512   $as_echo_n "(cached) " >&6
2513 else
2514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h.  */
2516 $4
2517 #include <$2>
2518 _ACEOF
2519 if ac_fn_cxx_try_compile "$LINENO"; then :
2520   eval "$3=yes"
2521 else
2522   eval "$3=no"
2523 fi
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 fi
2526 eval ac_res=\$$3
2527                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2528 $as_echo "$ac_res" >&6; }
2529   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2530 
2531 } # ac_fn_cxx_check_header_compile
2532 
2533 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2534 # ----------------------------------------------
2535 # Tries to find the compile-time value of EXPR in a program that includes
2536 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2537 # computed
2538 ac_fn_cxx_compute_int ()
2539 {
2540   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2541   if test "$cross_compiling" = yes; then
2542     # Depending upon the size, compute the lo and hi bounds.
2543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h.  */
2545 $4
2546 int
2547 main ()
2548 {
2549 static int test_array [1 - 2 * !(($2) >= 0)];
2550 test_array [0] = 0;
2551 return test_array [0];
2552 
2553   ;
2554   return 0;
2555 }
2556 _ACEOF
2557 if ac_fn_cxx_try_compile "$LINENO"; then :
2558   ac_lo=0 ac_mid=0
2559   while :; do
2560     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h.  */
2562 $4
2563 int
2564 main ()
2565 {
2566 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2567 test_array [0] = 0;
2568 return test_array [0];
2569 
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 if ac_fn_cxx_try_compile "$LINENO"; then :
2575   ac_hi=$ac_mid; break
2576 else
2577   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2578                         if test $ac_lo -le $ac_mid; then
2579                           ac_lo= ac_hi=
2580                           break
2581                         fi
2582                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585   done
2586 else
2587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h.  */
2589 $4
2590 int
2591 main ()
2592 {
2593 static int test_array [1 - 2 * !(($2) < 0)];
2594 test_array [0] = 0;
2595 return test_array [0];
2596 
2597   ;
2598   return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_cxx_try_compile "$LINENO"; then :
2602   ac_hi=-1 ac_mid=-1
2603   while :; do
2604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h.  */
2606 $4
2607 int
2608 main ()
2609 {
2610 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2611 test_array [0] = 0;
2612 return test_array [0];
2613 
2614   ;
2615   return 0;
2616 }
2617 _ACEOF
2618 if ac_fn_cxx_try_compile "$LINENO"; then :
2619   ac_lo=$ac_mid; break
2620 else
2621   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2622                         if test $ac_mid -le $ac_hi; then
2623                           ac_lo= ac_hi=
2624                           break
2625                         fi
2626                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2627 fi
2628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2629   done
2630 else
2631   ac_lo= ac_hi=
2632 fi
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 # Binary search between lo and hi bounds.
2637 while test "x$ac_lo" != "x$ac_hi"; do
2638   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h.  */
2641 $4
2642 int
2643 main ()
2644 {
2645 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2646 test_array [0] = 0;
2647 return test_array [0];
2648 
2649   ;
2650   return 0;
2651 }
2652 _ACEOF
2653 if ac_fn_cxx_try_compile "$LINENO"; then :
2654   ac_hi=$ac_mid
2655 else
2656   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 done
2660 case $ac_lo in #((
2661 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2662 '') ac_retval=1 ;;
2663 esac
2664   else
2665     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h.  */
2667 $4
2668 static long int longval () { return $2; }
2669 static unsigned long int ulongval () { return $2; }
2670 #include <stdio.h>
2671 #include <stdlib.h>
2672 int
2673 main ()
2674 {
2675 
2676   FILE *f = fopen ("conftest.val", "w");
2677   if (! f)
2678     return 1;
2679   if (($2) < 0)
2680     {
2681       long int i = longval ();
2682       if (i != ($2))
2683         return 1;
2684       fprintf (f, "%ld", i);
2685     }
2686   else
2687     {
2688       unsigned long int i = ulongval ();
2689       if (i != ($2))
2690         return 1;
2691       fprintf (f, "%lu", i);
2692     }
2693   /* Do not output a trailing newline, as this causes \r\n confusion
2694      on some platforms.  */
2695   return ferror (f) || fclose (f) != 0;
2696 
2697   ;
2698   return 0;
2699 }
2700 _ACEOF
2701 if ac_fn_cxx_try_run "$LINENO"; then :
2702   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2703 else
2704   ac_retval=1
2705 fi
2706 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2707   conftest.$ac_objext conftest.beam conftest.$ac_ext
2708 rm -f conftest.val
2709 
2710   fi
2711   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2712   as_fn_set_status $ac_retval
2713 
2714 } # ac_fn_cxx_compute_int
2715 
2716 # ac_fn_cxx_try_link LINENO
2717 # -------------------------
2718 # Try to link conftest.$ac_ext, and return whether this succeeded.
2719 ac_fn_cxx_try_link ()
2720 {
2721   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2722   rm -f conftest.$ac_objext conftest$ac_exeext
2723   if { { ac_try="$ac_link"
2724 case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2729 $as_echo "$ac_try_echo"; } >&5
2730   (eval "$ac_link") 2>conftest.err
2731   ac_status=$?
2732   if test -s conftest.err; then
2733     grep -v '^ *+' conftest.err >conftest.er1
2734     cat conftest.er1 >&5
2735     mv -f conftest.er1 conftest.err
2736   fi
2737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2738   test $ac_status = 0; } && {
2739          test -z "$ac_cxx_werror_flag" ||
2740          test ! -s conftest.err
2741        } && test -s conftest$ac_exeext && {
2742          test "$cross_compiling" = yes ||
2743          test -x conftest$ac_exeext
2744        }; then :
2745   ac_retval=0
2746 else
2747   $as_echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2749 
2750         ac_retval=1
2751 fi
2752   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2753   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2754   # interfere with the next link command; also delete a directory that is
2755   # left behind by Apple's compiler.  We do this before executing the actions.
2756   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2757   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2758   as_fn_set_status $ac_retval
2759 
2760 } # ac_fn_cxx_try_link
2761 
2762 # ac_fn_cxx_check_func LINENO FUNC VAR
2763 # ------------------------------------
2764 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2765 ac_fn_cxx_check_func ()
2766 {
2767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2768   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2769 $as_echo_n "checking for $2... " >&6; }
2770 if eval \${$3+:} false; then :
2771   $as_echo_n "(cached) " >&6
2772 else
2773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h.  */
2775 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2776    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2777 #define $2 innocuous_$2
2778 
2779 /* System header to define __stub macros and hopefully few prototypes,
2780     which can conflict with char $2 (); below.
2781     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2782     <limits.h> exists even on freestanding compilers.  */
2783 
2784 #ifdef __STDC__
2785 # include <limits.h>
2786 #else
2787 # include <assert.h>
2788 #endif
2789 
2790 #undef $2
2791 
2792 /* Override any GCC internal prototype to avoid an error.
2793    Use char because int might match the return type of a GCC
2794    builtin and then its argument prototype would still apply.  */
2795 #ifdef __cplusplus
2796 extern "C"
2797 #endif
2798 char $2 ();
2799 /* The GNU C library defines this for functions which it implements
2800     to always fail with ENOSYS.  Some functions are actually named
2801     something starting with __ and the normal name is an alias.  */
2802 #if defined __stub_$2 || defined __stub___$2
2803 choke me
2804 #endif
2805 
2806 int
2807 main ()
2808 {
2809 return $2 ();
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 if ac_fn_cxx_try_link "$LINENO"; then :
2815   eval "$3=yes"
2816 else
2817   eval "$3=no"
2818 fi
2819 rm -f core conftest.err conftest.$ac_objext \
2820     conftest$ac_exeext conftest.$ac_ext
2821 fi
2822 eval ac_res=\$$3
2823                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2824 $as_echo "$ac_res" >&6; }
2825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2826 
2827 } # ac_fn_cxx_check_func
2828 
2829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2830 # -------------------------------------------------------
2831 # Tests whether HEADER exists and can be compiled using the include files in
2832 # INCLUDES, setting the cache variable VAR accordingly.
2833 ac_fn_c_check_header_compile ()
2834 {
2835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2837 $as_echo_n "checking for $2... " >&6; }
2838 if eval \${$3+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h.  */
2843 $4
2844 #include <$2>
2845 _ACEOF
2846 if ac_fn_c_try_compile "$LINENO"; then :
2847   eval "$3=yes"
2848 else
2849   eval "$3=no"
2850 fi
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 fi
2853 eval ac_res=\$$3
2854                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2857 
2858 } # ac_fn_c_check_header_compile
2859 cat >config.log <<_ACEOF
2860 This file contains any messages produced by compilers while
2861 running configure, to aid debugging if configure makes a mistake.
2862 
2863 It was created by OpenJDK $as_me jdk8, which was
2864 generated by GNU Autoconf 2.69.  Invocation command line was
2865 
2866   $ $0 $@
2867 
2868 _ACEOF
2869 exec 5>>config.log
2870 {
2871 cat <<_ASUNAME
2872 ## --------- ##
2873 ## Platform. ##
2874 ## --------- ##
2875 
2876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2881 
2882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2883 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2884 
2885 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2886 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2888 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2889 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2890 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2891 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2892 
2893 _ASUNAME
2894 
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898   IFS=$as_save_IFS
2899   test -z "$as_dir" && as_dir=.
2900     $as_echo "PATH: $as_dir"
2901   done
2902 IFS=$as_save_IFS
2903 
2904 } >&5
2905 
2906 cat >&5 <<_ACEOF
2907 
2908 
2909 ## ----------- ##
2910 ## Core tests. ##
2911 ## ----------- ##
2912 
2913 _ACEOF
2914 
2915 
2916 # Keep a trace of the command line.
2917 # Strip out --no-create and --no-recursion so they do not pile up.
2918 # Strip out --silent because we don't want to record it for future runs.
2919 # Also quote any args containing shell meta-characters.
2920 # Make two passes to allow for proper duplicate-argument suppression.
2921 ac_configure_args=
2922 ac_configure_args0=
2923 ac_configure_args1=
2924 ac_must_keep_next=false
2925 for ac_pass in 1 2
2926 do
2927   for ac_arg
2928   do
2929     case $ac_arg in
2930     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2931     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2932     | -silent | --silent | --silen | --sile | --sil)
2933       continue ;;
2934     *\'*)
2935       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2936     esac
2937     case $ac_pass in
2938     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2939     2)
2940       as_fn_append ac_configure_args1 " '$ac_arg'"
2941       if test $ac_must_keep_next = true; then
2942         ac_must_keep_next=false # Got value, back to normal.
2943       else
2944         case $ac_arg in
2945           *=* | --config-cache | -C | -disable-* | --disable-* \
2946           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2947           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2948           | -with-* | --with-* | -without-* | --without-* | --x)
2949             case "$ac_configure_args0 " in
2950               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2951             esac
2952             ;;
2953           -* ) ac_must_keep_next=true ;;
2954         esac
2955       fi
2956       as_fn_append ac_configure_args " '$ac_arg'"
2957       ;;
2958     esac
2959   done
2960 done
2961 { ac_configure_args0=; unset ac_configure_args0;}
2962 { ac_configure_args1=; unset ac_configure_args1;}
2963 
2964 # When interrupted or exit'd, cleanup temporary files, and complete
2965 # config.log.  We remove comments because anyway the quotes in there
2966 # would cause problems or look ugly.
2967 # WARNING: Use '\'' to represent an apostrophe within the trap.
2968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2969 trap 'exit_status=$?
2970   # Save into config.log some information that might help in debugging.
2971   {
2972     echo
2973 
2974     $as_echo "## ---------------- ##
2975 ## Cache variables. ##
2976 ## ---------------- ##"
2977     echo
2978     # The following way of writing the cache mishandles newlines in values,
2979 (
2980   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2981     eval ac_val=\$$ac_var
2982     case $ac_val in #(
2983     *${as_nl}*)
2984       case $ac_var in #(
2985       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2987       esac
2988       case $ac_var in #(
2989       _ | IFS | as_nl) ;; #(
2990       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2991       *) { eval $ac_var=; unset $ac_var;} ;;
2992       esac ;;
2993     esac
2994   done
2995   (set) 2>&1 |
2996     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2997     *${as_nl}ac_space=\ *)
2998       sed -n \
2999         "s/'\''/'\''\\\\'\'''\''/g;
3000           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3001       ;; #(
3002     *)
3003       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3004       ;;
3005     esac |
3006     sort
3007 )
3008     echo
3009 
3010     $as_echo "## ----------------- ##
3011 ## Output variables. ##
3012 ## ----------------- ##"
3013     echo
3014     for ac_var in $ac_subst_vars
3015     do
3016       eval ac_val=\$$ac_var
3017       case $ac_val in
3018       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3019       esac
3020       $as_echo "$ac_var='\''$ac_val'\''"
3021     done | sort
3022     echo
3023 
3024     if test -n "$ac_subst_files"; then
3025       $as_echo "## ------------------- ##
3026 ## File substitutions. ##
3027 ## ------------------- ##"
3028       echo
3029       for ac_var in $ac_subst_files
3030       do
3031         eval ac_val=\$$ac_var
3032         case $ac_val in
3033         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3034         esac
3035         $as_echo "$ac_var='\''$ac_val'\''"
3036       done | sort
3037       echo
3038     fi
3039 
3040     if test -s confdefs.h; then
3041       $as_echo "## ----------- ##
3042 ## confdefs.h. ##
3043 ## ----------- ##"
3044       echo
3045       cat confdefs.h
3046       echo
3047     fi
3048     test "$ac_signal" != 0 &&
3049       $as_echo "$as_me: caught signal $ac_signal"
3050     $as_echo "$as_me: exit $exit_status"
3051   } >&5
3052   rm -f core *.core core.conftest.* &&
3053     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3054     exit $exit_status
3055 ' 0
3056 for ac_signal in 1 2 13 15; do
3057   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3058 done
3059 ac_signal=0
3060 
3061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3062 rm -f -r conftest* confdefs.h
3063 
3064 $as_echo "/* confdefs.h */" > confdefs.h
3065 
3066 # Predefined preprocessor variables.
3067 
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_NAME "$PACKAGE_NAME"
3070 _ACEOF
3071 
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3074 _ACEOF
3075 
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3078 _ACEOF
3079 
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_STRING "$PACKAGE_STRING"
3082 _ACEOF
3083 
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3086 _ACEOF
3087 
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_URL "$PACKAGE_URL"
3090 _ACEOF
3091 
3092 
3093 # Let the site file select an alternate cache file if it wants to.
3094 # Prefer an explicitly selected file to automatically selected ones.
3095 ac_site_file1=NONE
3096 ac_site_file2=NONE
3097 if test -n "$CONFIG_SITE"; then
3098   # We do not want a PATH search for config.site.
3099   case $CONFIG_SITE in #((
3100     -*)  ac_site_file1=./$CONFIG_SITE;;
3101     */*) ac_site_file1=$CONFIG_SITE;;
3102     *)   ac_site_file1=./$CONFIG_SITE;;
3103   esac
3104 elif test "x$prefix" != xNONE; then
3105   ac_site_file1=$prefix/share/config.site
3106   ac_site_file2=$prefix/etc/config.site
3107 else
3108   ac_site_file1=$ac_default_prefix/share/config.site
3109   ac_site_file2=$ac_default_prefix/etc/config.site
3110 fi
3111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3112 do
3113   test "x$ac_site_file" = xNONE && continue
3114   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3115     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3117     sed 's/^/| /' "$ac_site_file" >&5
3118     . "$ac_site_file" \
3119       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "failed to load site script $ac_site_file
3122 See \`config.log' for more details" "$LINENO" 5; }
3123   fi
3124 done
3125 
3126 if test -r "$cache_file"; then
3127   # Some versions of bash will fail to source /dev/null (special files
3128   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3129   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3130     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3131 $as_echo "$as_me: loading cache $cache_file" >&6;}
3132     case $cache_file in
3133       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3134       *)                      . "./$cache_file";;
3135     esac
3136   fi
3137 else
3138   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3139 $as_echo "$as_me: creating cache $cache_file" >&6;}
3140   >$cache_file
3141 fi
3142 
3143 # Check that the precious variables saved in the cache have kept the same
3144 # value.
3145 ac_cache_corrupted=false
3146 for ac_var in $ac_precious_vars; do
3147   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3148   eval ac_new_set=\$ac_env_${ac_var}_set
3149   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3150   eval ac_new_val=\$ac_env_${ac_var}_value
3151   case $ac_old_set,$ac_new_set in
3152     set,)
3153       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3154 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3155       ac_cache_corrupted=: ;;
3156     ,set)
3157       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3158 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3159       ac_cache_corrupted=: ;;
3160     ,);;
3161     *)
3162       if test "x$ac_old_val" != "x$ac_new_val"; then
3163         # differences in whitespace do not lead to failure.
3164         ac_old_val_w=`echo x $ac_old_val`
3165         ac_new_val_w=`echo x $ac_new_val`
3166         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3167           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3168 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3169           ac_cache_corrupted=:
3170         else
3171           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3172 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3173           eval $ac_var=\$ac_old_val
3174         fi
3175         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3176 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3177         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3178 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3179       fi;;
3180   esac
3181   # Pass precious variables to config.status.
3182   if test "$ac_new_set" = set; then
3183     case $ac_new_val in
3184     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3185     *) ac_arg=$ac_var=$ac_new_val ;;
3186     esac
3187     case " $ac_configure_args " in
3188       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3189       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3190     esac
3191   fi
3192 done
3193 if $ac_cache_corrupted; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3197 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3198   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3199 fi
3200 ## -------------------- ##
3201 ## Main body of script. ##
3202 ## -------------------- ##
3203 
3204 ac_ext=c
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 
3210 
3211 
3212 ac_aux_dir=
3213 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do
3214   if test -f "$ac_dir/install-sh"; then
3215     ac_aux_dir=$ac_dir
3216     ac_install_sh="$ac_aux_dir/install-sh -c"
3217     break
3218   elif 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/shtool"; then
3223     ac_aux_dir=$ac_dir
3224     ac_install_sh="$ac_aux_dir/shtool install -c"
3225     break
3226   fi
3227 done
3228 if test -z "$ac_aux_dir"; then
3229   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
3230 fi
3231 
3232 # These three variables are undocumented and unsupported,
3233 # and are intended to be withdrawn in a future Autoconf release.
3234 # They can cause serious problems if a builder's source tree is in a directory
3235 # whose full name contains unusual characters.
3236 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3237 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3238 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3239 
3240 
3241 # pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
3242 
3243 #
3244 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3245 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3246 #
3247 # This code is free software; you can redistribute it and/or modify it
3248 # under the terms of the GNU General Public License version 2 only, as
3249 # published by the Free Software Foundation.  Oracle designates this
3250 # particular file as subject to the "Classpath" exception as provided
3251 # by Oracle in the LICENSE file that accompanied this code.
3252 #
3253 # This code is distributed in the hope that it will be useful, but WITHOUT
3254 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3255 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3256 # version 2 for more details (a copy is included in the LICENSE file that
3257 # accompanied this code).
3258 #
3259 # You should have received a copy of the GNU General Public License version
3260 # 2 along with this work; if not, write to the Free Software Foundation,
3261 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3262 #
3263 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3264 # or visit www.oracle.com if you need additional information or have any
3265 # questions.
3266 #
3267 
3268 #
3269 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
3270 #
3271 # This program is free software; you can redistribute it and/or modify
3272 # it under the terms of the GNU General Public License as published by
3273 # the Free Software Foundation; either version 2 of the License, or
3274 # (at your option) any later version.
3275 #
3276 # This program is distributed in the hope that it will be useful, but
3277 # WITHOUT ANY WARRANTY; without even the implied warranty of
3278 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3279 # General Public License for more details.
3280 #
3281 # You should have received a copy of the GNU General Public License
3282 # along with this program; if not, write to the Free Software
3283 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3284 #
3285 # As a special exception to the GNU General Public License, if you
3286 # distribute this file as part of a program that contains a
3287 # configuration script generated by Autoconf, you may include it under
3288 # the same distribution terms that you use for the rest of that program.
3289 
3290 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
3291 # ----------------------------------
3292 # PKG_PROG_PKG_CONFIG
3293 
3294 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
3295 #
3296 # Check to see whether a particular set of modules exists.  Similar
3297 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
3298 #
3299 #
3300 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
3301 # this or PKG_CHECK_MODULES is called, or make sure to call
3302 # PKG_CHECK_EXISTS manually
3303 # --------------------------------------------------------------
3304 
3305 
3306 
3307 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3308 # ---------------------------------------------
3309 # _PKG_CONFIG
3310 
3311 # _PKG_SHORT_ERRORS_SUPPORTED
3312 # -----------------------------
3313 # _PKG_SHORT_ERRORS_SUPPORTED
3314 
3315 
3316 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3317 # [ACTION-IF-NOT-FOUND])
3318 #
3319 #
3320 # Note that if there is a possibility the first call to
3321 # PKG_CHECK_MODULES might not happen, you should be sure to include an
3322 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3323 #
3324 #
3325 # --------------------------------------------------------------
3326 # PKG_CHECK_MODULES
3327 
3328 
3329 # Include these first...
3330 #
3331 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3332 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3333 #
3334 # This code is free software; you can redistribute it and/or modify it
3335 # under the terms of the GNU General Public License version 2 only, as
3336 # published by the Free Software Foundation.  Oracle designates this
3337 # particular file as subject to the "Classpath" exception as provided
3338 # by Oracle in the LICENSE file that accompanied this code.
3339 #
3340 # This code is distributed in the hope that it will be useful, but WITHOUT
3341 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3342 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3343 # version 2 for more details (a copy is included in the LICENSE file that
3344 # accompanied this code).
3345 #
3346 # You should have received a copy of the GNU General Public License version
3347 # 2 along with this work; if not, write to the Free Software Foundation,
3348 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3349 #
3350 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3351 # or visit www.oracle.com if you need additional information or have any
3352 # questions.
3353 #
3354 
3355 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3)
3356 # If so, then append $1 to $2 \
3357 # Also set JVM_ARG_OK to true/false depending on outcome.
3358 
3359 
3360 # Appends a string to a path variable, only adding the : when needed.
3361 
3362 
3363 # Prepends a string to a path variable, only adding the : when needed.
3364 
3365 
3366 # This will make sure the given variable points to a full and proper
3367 # path. This means:
3368 # 1) There will be no spaces in the path. On posix platforms,
3369 #    spaces in the path will result in an error. On Windows,
3370 #    the path will be rewritten using short-style to be space-free.
3371 # 2) The path will be absolute, and it will be in unix-style (on
3372 #     cygwin).
3373 # $1: The name of the variable to fix
3374 
3375 
3376 # This will make sure the given variable points to a executable
3377 # with a full and proper path. This means:
3378 # 1) There will be no spaces in the path. On posix platforms,
3379 #    spaces in the path will result in an error. On Windows,
3380 #    the path will be rewritten using short-style to be space-free.
3381 # 2) The path will be absolute, and it will be in unix-style (on
3382 #     cygwin).
3383 # Any arguments given to the executable is preserved.
3384 # If the input variable does not have a directory specification, then
3385 # it need to be in the PATH.
3386 # $1: The name of the variable to fix
3387 
3388 
3389 
3390 
3391 # Register a --with argument but mark it as deprecated
3392 # $1: The name of the with argument to deprecate, not including --with-
3393 
3394 
3395 # Register a --enable argument but mark it as deprecated
3396 # $1: The name of the with argument to deprecate, not including --enable-
3397 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -)
3398 
3399 
3400 
3401 
3402 # Test that variable $1 denoting a program is not empty. If empty, exit with an error.
3403 # $1: variable to check
3404 
3405 
3406 # Check that there are no unprocessed overridden variables left.
3407 # If so, they are an incorrect argument and we will exit with an error.
3408 
3409 
3410 # Setup a tool for the given variable. If correctly specified by the user,
3411 # use that value, otherwise search for the tool using the supplied code snippet.
3412 # $1: variable to set
3413 # $2: code snippet to call to look for the tool
3414 
3415 
3416 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool
3417 # $1: variable to set
3418 # $2: executable name (or list of names) to look for
3419 
3420 
3421 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool
3422 # $1: variable to set
3423 # $2: executable name (or list of names) to look for
3424 
3425 
3426 # Like BASIC_PATH_PROGS but fails if no tool was found.
3427 # $1: variable to set
3428 # $2: executable name (or list of names) to look for
3429 
3430 
3431 # Like BASIC_SETUP_TOOL but fails if no tool was found.
3432 # $1: variable to set
3433 # $2: autoconf macro to call to look for the special tool
3434 
3435 
3436 # Setup the most fundamental tools that relies on not much else to set up,
3437 # but is used by much of the early bootstrap code.
3438 
3439 
3440 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3441 
3442 
3443 # Evaluates platform specific overrides for devkit variables.
3444 # $1: Name of variable
3445 
3446 
3447 
3448 
3449 
3450 
3451 
3452 
3453 
3454 #%%% Simple tools %%%
3455 
3456 # Check if we have found a usable version of make
3457 # $1: the path to a potential make binary (or empty)
3458 # $2: the description on how we found this
3459 
3460 
3461 # Goes looking for a usable version of GNU make.
3462 
3463 
3464 
3465 
3466 
3467 
3468 # Check if build directory is on local disk. If not possible to determine,
3469 # we prefer to claim it's local.
3470 # Argument 1: directory to test
3471 # Argument 2: what to do if it is on local disk
3472 # Argument 3: what to do otherwise (remote disk or failure)
3473 
3474 
3475 # Check that source files have basic read permissions set. This might
3476 # not be the case in cygwin in certain conditions.
3477 
3478 
3479 
3480 
3481 #
3482 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3483 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3484 #
3485 # This code is free software; you can redistribute it and/or modify it
3486 # under the terms of the GNU General Public License version 2 only, as
3487 # published by the Free Software Foundation.  Oracle designates this
3488 # particular file as subject to the "Classpath" exception as provided
3489 # by Oracle in the LICENSE file that accompanied this code.
3490 #
3491 # This code is distributed in the hope that it will be useful, but WITHOUT
3492 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3493 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3494 # version 2 for more details (a copy is included in the LICENSE file that
3495 # accompanied this code).
3496 #
3497 # You should have received a copy of the GNU General Public License version
3498 # 2 along with this work; if not, write to the Free Software Foundation,
3499 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3500 #
3501 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3502 # or visit www.oracle.com if you need additional information or have any
3503 # questions.
3504 #
3505 
3506 
3507 
3508 
3509 
3510 # Helper function which possibly converts a path using DOS-style short mode.
3511 # If so, the updated path is stored in $new_path.
3512 # $1: The path to check
3513 
3514 
3515 # Helper function which possibly converts a path using DOS-style short mode.
3516 # If so, the updated path is stored in $new_path.
3517 # $1: The path to check
3518 
3519 
3520 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted
3521 # and could probably be heavily simplified. However, all changes in this
3522 # area tend to need lot of testing in different scenarios, and in lack of
3523 # proper unit testing, cleaning this up has not been deemed worth the effort
3524 # at the moment.
3525 
3526 
3527 
3528 
3529 
3530 
3531 
3532 
3533 
3534 # Setup basic configuration paths, and platform-specific stuff related to PATHs.
3535 
3536 
3537 
3538 
3539 #
3540 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3541 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3542 #
3543 # This code is free software; you can redistribute it and/or modify it
3544 # under the terms of the GNU General Public License version 2 only, as
3545 # published by the Free Software Foundation.  Oracle designates this
3546 # particular file as subject to the "Classpath" exception as provided
3547 # by Oracle in the LICENSE file that accompanied this code.
3548 #
3549 # This code is distributed in the hope that it will be useful, but WITHOUT
3550 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3551 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3552 # version 2 for more details (a copy is included in the LICENSE file that
3553 # accompanied this code).
3554 #
3555 # You should have received a copy of the GNU General Public License version
3556 # 2 along with this work; if not, write to the Free Software Foundation,
3557 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3558 #
3559 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3560 # or visit www.oracle.com if you need additional information or have any
3561 # questions.
3562 #
3563 
3564 
3565 
3566 
3567 
3568 
3569 
3570 
3571 
3572 
3573 
3574 # ... then the rest
3575 #
3576 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3577 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3578 #
3579 # This code is free software; you can redistribute it and/or modify it
3580 # under the terms of the GNU General Public License version 2 only, as
3581 # published by the Free Software Foundation.  Oracle designates this
3582 # particular file as subject to the "Classpath" exception as provided
3583 # by Oracle in the LICENSE file that accompanied this code.
3584 #
3585 # This code is distributed in the hope that it will be useful, but WITHOUT
3586 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3587 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3588 # version 2 for more details (a copy is included in the LICENSE file that
3589 # accompanied this code).
3590 #
3591 # You should have received a copy of the GNU General Public License version
3592 # 2 along with this work; if not, write to the Free Software Foundation,
3593 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3594 #
3595 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3596 # or visit www.oracle.com if you need additional information or have any
3597 # questions.
3598 #
3599 
3600 # Execute the check given as argument, and verify the result
3601 # If the Boot JDK was previously found, do nothing
3602 # $1 A command line (typically autoconf macro) to execute
3603 
3604 
3605 # Test: Is bootjdk explicitely set by command line arguments?
3606 
3607 
3608 # Test: Is bootjdk available from builddeps?
3609 
3610 
3611 # Test: Is $JAVA_HOME set?
3612 
3613 
3614 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
3615 
3616 
3617 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
3618 
3619 
3620 # Look for a jdk in the given path. If there are multiple, try to select the newest.
3621 # If found, set BOOT_JDK and BOOT_JDK_FOUND.
3622 # $1 = Path to directory containing jdk installations.
3623 # $2 = String to append to the found JDK directory to get the proper JDK home
3624 
3625 
3626 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given
3627 # environmental variable as base for where to look.
3628 # $1 Name of an environmal variable, assumed to point to the Program Files directory.
3629 
3630 
3631 # Test: Is there a JDK installed in default, well-known locations?
3632 
3633 
3634 # Check that a command-line tool in the Boot JDK is correct
3635 # $1 = name of variable to assign
3636 # $2 = name of binary
3637 
3638 
3639 ###############################################################################
3640 #
3641 # We need a Boot JDK to bootstrap the build.
3642 #
3643 
3644 
3645 
3646 
3647 
3648 #
3649 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3650 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3651 #
3652 # This code is free software; you can redistribute it and/or modify it
3653 # under the terms of the GNU General Public License version 2 only, as
3654 # published by the Free Software Foundation.  Oracle designates this
3655 # particular file as subject to the "Classpath" exception as provided
3656 # by Oracle in the LICENSE file that accompanied this code.
3657 #
3658 # This code is distributed in the hope that it will be useful, but WITHOUT
3659 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3660 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3661 # version 2 for more details (a copy is included in the LICENSE file that
3662 # accompanied this code).
3663 #
3664 # You should have received a copy of the GNU General Public License version
3665 # 2 along with this work; if not, write to the Free Software Foundation,
3666 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3667 #
3668 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3669 # or visit www.oracle.com if you need additional information or have any
3670 # questions.
3671 #
3672 
3673 
3674 
3675 
3676 
3677 
3678 
3679 
3680 
3681 
3682 
3683 
3684 
3685 
3686 
3687 
3688 
3689 
3690 
3691 
3692 #
3693 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3694 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3695 #
3696 # This code is free software; you can redistribute it and/or modify it
3697 # under the terms of the GNU General Public License version 2 only, as
3698 # published by the Free Software Foundation.  Oracle designates this
3699 # particular file as subject to the "Classpath" exception as provided
3700 # by Oracle in the LICENSE file that accompanied this code.
3701 #
3702 # This code is distributed in the hope that it will be useful, but WITHOUT
3703 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3704 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3705 # version 2 for more details (a copy is included in the LICENSE file that
3706 # accompanied this code).
3707 #
3708 # You should have received a copy of the GNU General Public License version
3709 # 2 along with this work; if not, write to the Free Software Foundation,
3710 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3711 #
3712 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3713 # or visit www.oracle.com if you need additional information or have any
3714 # questions.
3715 #
3716 
3717 
3718 
3719 
3720 
3721 # Documentation on common flags used for solstudio in HIGHEST.
3722 #
3723 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
3724 #          done with care, there are some assumptions below that need to
3725 #          be understood about the use of pointers, and IEEE behavior.
3726 #
3727 # -fns: Use non-standard floating point mode (not IEEE 754)
3728 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754)
3729 # -fsingle: Use single precision floating point with 'float'
3730 # -xalias_level=basic: Assume memory references via basic pointer types do not alias
3731 #   (Source with excessing pointer casting and data access with mixed
3732 #    pointer types are not recommended)
3733 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions
3734 #   (If you expect perfect errno behavior, do not use this)
3735 # -xdepend: Loop data dependency optimizations (need -xO3 or higher)
3736 # -xrestrict: Pointer parameters to functions do not overlap
3737 #   (Similar to -xalias_level=basic usage, but less obvious sometimes.
3738 #    If you pass in multiple pointers to the same data, do not use this)
3739 # -xlibmil: Inline some library routines
3740 #   (If you expect perfect errno behavior, do not use this)
3741 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED)
3742 #   (If you expect perfect errno behavior, do not use this)
3743 #  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
3744 
3745     # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore.
3746     # Bug?
3747     #if test "x$OPENJDK_TARGET_CPU" = xsparc; then
3748     #  CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s"
3749     #  CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s"
3750     #fi
3751 
3752 
3753 
3754 
3755 
3756 
3757 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3758 #                                  [RUN-IF-FALSE])
3759 # ------------------------------------------------------------
3760 # Check that the C compiler supports an argument
3761 
3762 
3763 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3764 #                                    [RUN-IF-FALSE])
3765 # ------------------------------------------------------------
3766 # Check that the C++ compiler supports an argument
3767 
3768 
3769 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE],
3770 #                                [RUN-IF-FALSE])
3771 # ------------------------------------------------------------
3772 # Check that the C and C++ compilers support an argument
3773 
3774 
3775 
3776 
3777 
3778 
3779 
3780 #
3781 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3782 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3783 #
3784 # This code is free software; you can redistribute it and/or modify it
3785 # under the terms of the GNU General Public License version 2 only, as
3786 # published by the Free Software Foundation.  Oracle designates this
3787 # particular file as subject to the "Classpath" exception as provided
3788 # by Oracle in the LICENSE file that accompanied this code.
3789 #
3790 # This code is distributed in the hope that it will be useful, but WITHOUT
3791 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3792 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3793 # version 2 for more details (a copy is included in the LICENSE file that
3794 # accompanied this code).
3795 #
3796 # You should have received a copy of the GNU General Public License version
3797 # 2 along with this work; if not, write to the Free Software Foundation,
3798 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3799 #
3800 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3801 # or visit www.oracle.com if you need additional information or have any
3802 # questions.
3803 #
3804 
3805 
3806 
3807 
3808 
3809 cygwin_help() {
3810   case $1 in
3811     unzip)
3812       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )"
3813       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3814       ;;
3815     zip)
3816       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )"
3817       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3818       ;;
3819     make)
3820       PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )"
3821       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3822       ;;
3823     freetype)
3824       HELP_MSG="
3825 The freetype library can now be build during the configure process.
3826 Download the freetype sources and unpack them into an arbitrary directory:
3827 
3828 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz
3829 tar -xzf freetype-2.5.3.tar.gz
3830 
3831 Then run configure with '--with-freetype-src=<freetype_src>'. This will
3832 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit
3833 builds or into '<freetype_src>/lib32' for 32-bit builds.
3834 Afterwards you can always use '--with-freetype-include=<freetype_src>/include'
3835 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds."
3836       ;;
3837   esac
3838 }
3839 
3840 msys_help() {
3841   PKGHANDLER_COMMAND=""
3842 }
3843 
3844 apt_help() {
3845   case $1 in
3846     devkit)
3847       PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3848     openjdk)
3849       PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3850     alsa)
3851       PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3852     cups)
3853       PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3854     fontconfig)
3855       PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;;
3856     freetype)
3857       PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3858     pulse)
3859       PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3860     x11)
3861       PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;;
3862     ccache)
3863       PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3864   esac
3865 }
3866 
3867 yum_help() {
3868   case $1 in
3869     devkit)
3870       PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3871     openjdk)
3872       PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3873     alsa)
3874       PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3875     cups)
3876       PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3877     fontconfig)
3878       PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;;
3879     freetype)
3880       PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;;
3881     pulse)
3882       PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3883     x11)
3884       PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;;
3885     ccache)
3886       PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3887   esac
3888 }
3889 
3890 port_help() {
3891   PKGHANDLER_COMMAND=""
3892 }
3893 
3894 pkgutil_help() {
3895   PKGHANDLER_COMMAND=""
3896 }
3897 
3898 pkgadd_help() {
3899   PKGHANDLER_COMMAND=""
3900 }
3901 
3902 # This function will check if we're called from the "configure" wrapper while
3903 # printing --help. If so, we will print out additional information that can
3904 # only be extracted within the autoconf script, and then exit. This must be
3905 # called at the very beginning in configure.ac.
3906 
3907 
3908 
3909 
3910 #
3911 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3912 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3913 #
3914 # This code is free software; you can redistribute it and/or modify it
3915 # under the terms of the GNU General Public License version 2 only, as
3916 # published by the Free Software Foundation.  Oracle designates this
3917 # particular file as subject to the "Classpath" exception as provided
3918 # by Oracle in the LICENSE file that accompanied this code.
3919 #
3920 # This code is distributed in the hope that it will be useful, but WITHOUT
3921 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3922 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3923 # version 2 for more details (a copy is included in the LICENSE file that
3924 # accompanied this code).
3925 #
3926 # You should have received a copy of the GNU General Public License version
3927 # 2 along with this work; if not, write to the Free Software Foundation,
3928 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3929 #
3930 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3931 # or visit www.oracle.com if you need additional information or have any
3932 # questions.
3933 #
3934 
3935 
3936 
3937 
3938 
3939 
3940 
3941 
3942 
3943 
3944 ###############################################################################
3945 #
3946 # Should we build only OpenJDK even if closed sources are present?
3947 #
3948 
3949 
3950 
3951 
3952 ###############################################################################
3953 #
3954 # Setup version numbers
3955 #
3956 
3957 
3958 
3959 
3960 
3961 
3962 # Support for customization of the build process. Some build files
3963 # will include counterparts from this location, if they exist. This allows
3964 # for a degree of customization of the build targets and the rules/recipes
3965 # to create them
3966 
3967 # Check whether --with-custom-make-dir was given.
3968 if test "${with_custom_make_dir+set}" = set; then :
3969   withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir
3970 fi
3971 
3972 
3973 
3974 #
3975 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
3976 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3977 #
3978 # This code is free software; you can redistribute it and/or modify it
3979 # under the terms of the GNU General Public License version 2 only, as
3980 # published by the Free Software Foundation.  Oracle designates this
3981 # particular file as subject to the "Classpath" exception as provided
3982 # by Oracle in the LICENSE file that accompanied this code.
3983 #
3984 # This code is distributed in the hope that it will be useful, but WITHOUT
3985 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3986 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3987 # version 2 for more details (a copy is included in the LICENSE file that
3988 # accompanied this code).
3989 #
3990 # You should have received a copy of the GNU General Public License version
3991 # 2 along with this work; if not, write to the Free Software Foundation,
3992 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3993 #
3994 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3995 # or visit www.oracle.com if you need additional information or have any
3996 # questions.
3997 #
3998 
3999 
4000 
4001 
4002 
4003 
4004 
4005 
4006 
4007 
4008 
4009 
4010 
4011 
4012 
4013 ################################################################################
4014 # Setup fontconfig
4015 ################################################################################
4016 
4017 
4018 
4019 
4020 
4021 
4022 
4023 
4024 #
4025 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4026 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4027 #
4028 # This code is free software; you can redistribute it and/or modify it
4029 # under the terms of the GNU General Public License version 2 only, as
4030 # published by the Free Software Foundation.  Oracle designates this
4031 # particular file as subject to the "Classpath" exception as provided
4032 # by Oracle in the LICENSE file that accompanied this code.
4033 #
4034 # This code is distributed in the hope that it will be useful, but WITHOUT
4035 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4036 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4037 # version 2 for more details (a copy is included in the LICENSE file that
4038 # accompanied this code).
4039 #
4040 # You should have received a copy of the GNU General Public License version
4041 # 2 along with this work; if not, write to the Free Software Foundation,
4042 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4043 #
4044 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4045 # or visit www.oracle.com if you need additional information or have any
4046 # questions.
4047 #
4048 
4049 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4050 # Converts autoconf style CPU name to OpenJDK style, into
4051 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN.
4052 
4053 
4054 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD.
4055 # Converts autoconf style OS name to OpenJDK style, into
4056 # VAR_OS and VAR_OS_API.
4057 
4058 
4059 # Expects $host_os $host_cpu $build_os and $build_cpu
4060 # and $with_target_bits to have been setup!
4061 #
4062 # Translate the standard triplet(quadruplet) definition
4063 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU,
4064 # OPENJDK_BUILD_OS, etc.
4065 
4066 
4067 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour
4068 # accordingly. Must be done after setting up build and target system, but before
4069 # doing anything else with these values.
4070 
4071 
4072 # Setup the legacy variables, for controlling the old makefiles.
4073 #
4074 
4075 
4076 
4077 
4078 #%%% Build and target systems %%%
4079 
4080 
4081 
4082 
4083 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS.
4084 # Add -mX to various FLAGS variables.
4085 
4086 
4087 
4088 
4089 
4090 
4091 #
4092 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
4093 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4094 #
4095 # This code is free software; you can redistribute it and/or modify it
4096 # under the terms of the GNU General Public License version 2 only, as
4097 # published by the Free Software Foundation.  Oracle designates this
4098 # particular file as subject to the "Classpath" exception as provided
4099 # by Oracle in the LICENSE file that accompanied this code.
4100 #
4101 # This code is distributed in the hope that it will be useful, but WITHOUT
4102 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4103 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4104 # version 2 for more details (a copy is included in the LICENSE file that
4105 # accompanied this code).
4106 #
4107 # You should have received a copy of the GNU General Public License version
4108 # 2 along with this work; if not, write to the Free Software Foundation,
4109 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4110 #
4111 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4112 # or visit www.oracle.com if you need additional information or have any
4113 # questions.
4114 #
4115 
4116 
4117 
4118 
4119 
4120 
4121 
4122 
4123 #
4124 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4125 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4126 #
4127 # This code is free software; you can redistribute it and/or modify it
4128 # under the terms of the GNU General Public License version 2 only, as
4129 # published by the Free Software Foundation.  Oracle designates this
4130 # particular file as subject to the "Classpath" exception as provided
4131 # by Oracle in the LICENSE file that accompanied this code.
4132 #
4133 # This code is distributed in the hope that it will be useful, but WITHOUT
4134 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4135 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4136 # version 2 for more details (a copy is included in the LICENSE file that
4137 # accompanied this code).
4138 #
4139 # You should have received a copy of the GNU General Public License version
4140 # 2 along with this work; if not, write to the Free Software Foundation,
4141 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4142 #
4143 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4144 # or visit www.oracle.com if you need additional information or have any
4145 # questions.
4146 #
4147 
4148 ########################################################################
4149 # This file is responsible for detecting, verifying and setting up the
4150 # toolchain, i.e. the compiler, linker and related utilities. It will setup
4151 # proper paths to the binaries, but it will not setup any flags.
4152 #
4153 # The binaries used is determined by the toolchain type, which is the family of
4154 # compilers and related tools that are used.
4155 ########################################################################
4156 
4157 
4158 # All valid toolchains, regardless of platform (used by help.m4)
4159 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft"
4160 
4161 # These toolchains are valid on different platforms
4162 VALID_TOOLCHAINS_linux="gcc clang"
4163 VALID_TOOLCHAINS_solaris="solstudio"
4164 VALID_TOOLCHAINS_macosx="gcc clang"
4165 VALID_TOOLCHAINS_aix="xlc"
4166 VALID_TOOLCHAINS_windows="microsoft"
4167 
4168 # Toolchain descriptions
4169 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM"
4170 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection"
4171 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio"
4172 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio"
4173 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++"
4174 
4175 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called.
4176 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER.
4177 # $1 - optional variable prefix for compiler and version variables (BUILD_)
4178 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_)
4179 
4180 
4181 # Check if the configured compiler (C and C++) is of a specific version or
4182 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before.
4183 #
4184 # Arguments:
4185 #   $1:   The version string to check against the found version
4186 #   $2:   block to run if the compiler is at least this version (>=)
4187 #   $3:   block to run if the compiler is older than this version (<)
4188 
4189 
4190 
4191 # Setup a number of variables describing how native output files are
4192 # named on this platform/toolchain.
4193 
4194 
4195 # Determine which toolchain type to use, and make sure it is valid for this
4196 # platform. Setup various information about the selected toolchain.
4197 
4198 
4199 # Before we start detecting the toolchain executables, we might need some
4200 # special setup, e.g. additional paths etc.
4201 
4202 
4203 # Restore path, etc
4204 
4205 
4206 # Check if a compiler is of the toolchain type we expect, and save the version
4207 # information from it. If the compiler does not match the expected type,
4208 # this function will abort using AC_MSG_ERROR. If it matches, the version will
4209 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and
4210 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING.
4211 #
4212 # $1 = compiler to test (CC or CXX)
4213 # $2 = human readable name of compiler (C or C++)
4214 
4215 
4216 
4217 # Try to locate the given C or C++ compiler in the path, or otherwise.
4218 #
4219 # $1 = compiler to test (CC or CXX)
4220 # $2 = human readable name of compiler (C or C++)
4221 # $3 = list of compiler names to search for
4222 
4223 
4224 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX),
4225 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the
4226 # archiver (AR). Verify that the compilers are correct according to the
4227 # toolchain type.
4228 
4229 
4230 # Setup additional tools that is considered a part of the toolchain, but not the
4231 # core part. Many of these are highly platform-specific and do not exist,
4232 # and/or are not needed on all platforms.
4233 
4234 
4235 # Setup the build tools (i.e, the compiler and linker used to build programs
4236 # that should be run on the build platform, not the target platform, as a build
4237 # helper). Since the non-cross-compile case uses the normal, target compilers
4238 # for this, we can only do this after these have been setup.
4239 
4240 
4241 # Setup legacy variables that are still needed as alternative ways to refer to
4242 # parts of the toolchain.
4243 
4244 
4245 # Do some additional checks on the detected tools.
4246 
4247 
4248 # Setup the JTReg Regression Test Harness.
4249 
4250 
4251 
4252 #
4253 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved.
4254 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4255 #
4256 # This code is free software; you can redistribute it and/or modify it
4257 # under the terms of the GNU General Public License version 2 only, as
4258 # published by the Free Software Foundation.  Oracle designates this
4259 # particular file as subject to the "Classpath" exception as provided
4260 # by Oracle in the LICENSE file that accompanied this code.
4261 #
4262 # This code is distributed in the hope that it will be useful, but WITHOUT
4263 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4264 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
4265 # version 2 for more details (a copy is included in the LICENSE file that
4266 # accompanied this code).
4267 #
4268 # You should have received a copy of the GNU General Public License version
4269 # 2 along with this work; if not, write to the Free Software Foundation,
4270 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4271 #
4272 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
4273 # or visit www.oracle.com if you need additional information or have any
4274 # questions.
4275 #
4276 
4277 ################################################################################
4278 # The order of these defines the priority by which we try to find them.
4279 VALID_VS_VERSIONS="2010 2012 2013 2015 2017"
4280 
4281 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010"
4282 VS_VERSION_INTERNAL_2010=100
4283 VS_MSVCR_2010=msvcr100.dll
4284 # We don't use msvcp on Visual Studio 2010
4285 #VS_MSVCP_2010=msvcp100.dll
4286 VS_ENVVAR_2010="VS100COMNTOOLS"
4287 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0"
4288 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1"
4289 VS_VS_PLATFORM_NAME_2010="v100"
4290 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK"
4291 
4292 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012"
4293 VS_VERSION_INTERNAL_2012=110
4294 VS_MSVCR_2012=msvcr110.dll
4295 VS_MSVCP_2012=msvcp110.dll
4296 VS_ENVVAR_2012="VS110COMNTOOLS"
4297 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0"
4298 VS_SDK_INSTALLDIR_2012=
4299 VS_VS_PLATFORM_NAME_2012="v110"
4300 VS_SDK_PLATFORM_NAME_2012=
4301 
4302 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013"
4303 VS_VERSION_INTERNAL_2013=120
4304 VS_MSVCR_2013=msvcr120.dll
4305 VS_MSVCP_2013=msvcp120.dll
4306 VS_ENVVAR_2013="VS120COMNTOOLS"
4307 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0"
4308 VS_SDK_INSTALLDIR_2013=
4309 VS_VS_PLATFORM_NAME_2013="v120"
4310 VS_SDK_PLATFORM_NAME_2013=
4311 
4312 VS_DESCRIPTION_2015="Microsoft Visual Studio 2015 - CURRENTLY NOT WORKING"
4313 VS_VERSION_INTERNAL_2015=140
4314 VS_MSVCR_2015=vcruntime140.dll
4315 VS_MSVCP_2015=msvcp140.dll
4316 VS_ENVVAR_2015="VS140COMNTOOLS"
4317 VS_VS_INSTALLDIR_2015="Microsoft Visual Studio 14.0"
4318 VS_SDK_INSTALLDIR_2015=
4319 VS_VS_PLATFORM_NAME_2015="v140"
4320 VS_SDK_PLATFORM_NAME_2015=
4321 # The vcvars of 2015 breaks if 2017 is also installed. Work around this by
4322 # explicitly specifying Windows Kit 8.1 to be used.
4323 VS_ENV_ARGS_2015="8.1"
4324 
4325 VS_DESCRIPTION_2017="Microsoft Visual Studio 2017 - CURRENTLY NOT WORKING"
4326 VS_VERSION_INTERNAL_2017=141
4327 VS_MSVCR_2017=vcruntime140.dll
4328 VS_MSVCP_2017=msvcp140.dll
4329 VS_ENVVAR_2017="VS150COMNTOOLS"
4330 VS_USE_UCRT_2017="true"
4331 VS_VS_INSTALLDIR_2017="Microsoft Visual Studio/2017"
4332 VS_EDITIONS_2017="Community Professional Enterprise"
4333 VS_SDK_INSTALLDIR_2017=
4334 VS_VS_PLATFORM_NAME_2017="v141"
4335 VS_SDK_PLATFORM_NAME_2017=
4336 
4337 ################################################################################
4338 
4339 
4340 
4341 ################################################################################
4342 
4343 
4344 
4345 ################################################################################
4346 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper
4347 # build environment and assigns it to VS_ENV_CMD
4348 
4349 
4350 ################################################################################
4351 
4352 
4353 
4354 ################################################################################
4355 # Check if the VS env variables were setup prior to running configure.
4356 # If not, then find vcvarsall.bat and run it automatically, and integrate
4357 # the set env variables into the spec file.
4358 
4359 
4360 
4361 
4362 
4363 
4364 
4365 
4366 
4367 
4368 
4369 
4370 
4371 
4372 # This line needs to be here, verbatim, after all includes and the dummy hook
4373 # definitions. It is replaced with custom functionality when building
4374 # custom sources.
4375 #CUSTOM_AUTOCONF_INCLUDE
4376 
4377 # Do not change or remove the following line, it is needed for consistency checks:
4378 DATE_WHEN_GENERATED=1553405262
4379 
4380 ###############################################################################
4381 #
4382 # Initialization / Boot-strapping
4383 #
4384 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4385 # thus it jumps back and forth, each time gaining something needed later on.
4386 #
4387 ###############################################################################
4388 
4389 # If we are requested to print additional help, do that and then exit.
4390 # This must be the very first call.
4391 
4392   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4393     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4394     $PRINTF "Which are valid to use depends on the build platform.\n"
4395     for toolchain in $VALID_TOOLCHAINS_all; do
4396       # Use indirect variable referencing
4397       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4398       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}
4399       $PRINTF "  %-10s  %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION"
4400     done
4401 
4402     # And now exit directly
4403     exit 0
4404   fi
4405 
4406 
4407 # Basic initialization that must happen first of all in the normal process.
4408 
4409   # Save the original command line. This is passed to us by the wrapper configure script.
4410 
4411   DATE_WHEN_CONFIGURED=`LANG=C date`
4412 
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5
4414 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;}
4415   { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5
4416 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;}
4417 
4418 
4419   # Start with tools that do not need have cross compilation support
4420   # and can be expected to be found in the default PATH. These tools are
4421   # used by configure. Nor are these tools expected to be found in the
4422   # devkit from the builddeps server either, since they are
4423   # needed to download the devkit.
4424 
4425   # First are all the simple required tools.
4426 
4427 
4428 
4429   # Publish this variable in the help.
4430 
4431 
4432   if test "x$BASENAME" = x; then
4433     # The variable is not set by user, try to locate tool using the code snippet
4434     for ac_prog in basename
4435 do
4436   # Extract the first word of "$ac_prog", so it can be a program name with args.
4437 set dummy $ac_prog; ac_word=$2
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4439 $as_echo_n "checking for $ac_word... " >&6; }
4440 if ${ac_cv_path_BASENAME+:} false; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   case $BASENAME in
4444   [\\/]* | ?:[\\/]*)
4445   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4446   ;;
4447   *)
4448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449 for as_dir in $PATH
4450 do
4451   IFS=$as_save_IFS
4452   test -z "$as_dir" && as_dir=.
4453     for ac_exec_ext in '' $ac_executable_extensions; do
4454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4457     break 2
4458   fi
4459 done
4460   done
4461 IFS=$as_save_IFS
4462 
4463   ;;
4464 esac
4465 fi
4466 BASENAME=$ac_cv_path_BASENAME
4467 if test -n "$BASENAME"; then
4468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4469 $as_echo "$BASENAME" >&6; }
4470 else
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473 fi
4474 
4475 
4476   test -n "$BASENAME" && break
4477 done
4478 
4479   else
4480     # The variable is set, but is it from the command line or the environment?
4481 
4482     # Try to remove the string !BASENAME! from our list.
4483     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/}
4484     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4485       # If it failed, the variable was not from the command line. Ignore it,
4486       # but warn the user (except for BASH, which is always set by the calling BASH).
4487       if test "xBASENAME" != xBASH; then
4488         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5
4489 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;}
4490       fi
4491       # Try to locate tool using the code snippet
4492       for ac_prog in basename
4493 do
4494   # Extract the first word of "$ac_prog", so it can be a program name with args.
4495 set dummy $ac_prog; ac_word=$2
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 $as_echo_n "checking for $ac_word... " >&6; }
4498 if ${ac_cv_path_BASENAME+:} false; then :
4499   $as_echo_n "(cached) " >&6
4500 else
4501   case $BASENAME in
4502   [\\/]* | ?:[\\/]*)
4503   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4504   ;;
4505   *)
4506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511     for ac_exec_ext in '' $ac_executable_extensions; do
4512   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4514     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518   done
4519 IFS=$as_save_IFS
4520 
4521   ;;
4522 esac
4523 fi
4524 BASENAME=$ac_cv_path_BASENAME
4525 if test -n "$BASENAME"; then
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4527 $as_echo "$BASENAME" >&6; }
4528 else
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 fi
4532 
4533 
4534   test -n "$BASENAME" && break
4535 done
4536 
4537     else
4538       # If it succeeded, then it was overridden by the user. We will use it
4539       # for the tool.
4540 
4541       # First remove it from the list of overridden variables, so we can test
4542       # for unknown variables in the end.
4543       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4544 
4545       # Check if the provided tool contains a complete path.
4546       tool_specified="$BASENAME"
4547       tool_basename="${tool_specified##*/}"
4548       if test "x$tool_basename" = "x$tool_specified"; then
4549         # A command without a complete path is provided, search $PATH.
4550         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5
4551 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;}
4552         # Extract the first word of "$tool_basename", so it can be a program name with args.
4553 set dummy $tool_basename; ac_word=$2
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555 $as_echo_n "checking for $ac_word... " >&6; }
4556 if ${ac_cv_path_BASENAME+:} false; then :
4557   $as_echo_n "(cached) " >&6
4558 else
4559   case $BASENAME in
4560   [\\/]* | ?:[\\/]*)
4561   ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path.
4562   ;;
4563   *)
4564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569     for ac_exec_ext in '' $ac_executable_extensions; do
4570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4571     ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext"
4572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576   done
4577 IFS=$as_save_IFS
4578 
4579   ;;
4580 esac
4581 fi
4582 BASENAME=$ac_cv_path_BASENAME
4583 if test -n "$BASENAME"; then
4584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5
4585 $as_echo "$BASENAME" >&6; }
4586 else
4587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4589 fi
4590 
4591 
4592         if test "x$BASENAME" = x; then
4593           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4594         fi
4595       else
4596         # Otherwise we believe it is a complete path. Use it as it is.
4597         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5
4598 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;}
4599         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5
4600 $as_echo_n "checking for BASENAME... " >&6; }
4601         if test ! -x "$tool_specified"; then
4602           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4603 $as_echo "not found" >&6; }
4604           as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5
4605         fi
4606         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4607 $as_echo "$tool_specified" >&6; }
4608       fi
4609     fi
4610   fi
4611 
4612 
4613 
4614   if test "x$BASENAME" = x; then
4615     as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5
4616   fi
4617 
4618 
4619 
4620 
4621 
4622   # Publish this variable in the help.
4623 
4624 
4625   if test "x$BASH" = x; then
4626     # The variable is not set by user, try to locate tool using the code snippet
4627     for ac_prog in bash
4628 do
4629   # Extract the first word of "$ac_prog", so it can be a program name with args.
4630 set dummy $ac_prog; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_path_BASH+:} false; then :
4634   $as_echo_n "(cached) " >&6
4635 else
4636   case $BASH in
4637   [\\/]* | ?:[\\/]*)
4638   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4639   ;;
4640   *)
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646     for ac_exec_ext in '' $ac_executable_extensions; do
4647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650     break 2
4651   fi
4652 done
4653   done
4654 IFS=$as_save_IFS
4655 
4656   ;;
4657 esac
4658 fi
4659 BASH=$ac_cv_path_BASH
4660 if test -n "$BASH"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4662 $as_echo "$BASH" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667 
4668 
4669   test -n "$BASH" && break
4670 done
4671 
4672   else
4673     # The variable is set, but is it from the command line or the environment?
4674 
4675     # Try to remove the string !BASH! from our list.
4676     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/}
4677     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4678       # If it failed, the variable was not from the command line. Ignore it,
4679       # but warn the user (except for BASH, which is always set by the calling BASH).
4680       if test "xBASH" != xBASH; then
4681         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5
4682 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;}
4683       fi
4684       # Try to locate tool using the code snippet
4685       for ac_prog in bash
4686 do
4687   # Extract the first word of "$ac_prog", so it can be a program name with args.
4688 set dummy $ac_prog; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_path_BASH+:} false; then :
4692   $as_echo_n "(cached) " >&6
4693 else
4694   case $BASH in
4695   [\\/]* | ?:[\\/]*)
4696   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4697   ;;
4698   *)
4699   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704     for ac_exec_ext in '' $ac_executable_extensions; do
4705   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4706     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708     break 2
4709   fi
4710 done
4711   done
4712 IFS=$as_save_IFS
4713 
4714   ;;
4715 esac
4716 fi
4717 BASH=$ac_cv_path_BASH
4718 if test -n "$BASH"; then
4719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4720 $as_echo "$BASH" >&6; }
4721 else
4722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4723 $as_echo "no" >&6; }
4724 fi
4725 
4726 
4727   test -n "$BASH" && break
4728 done
4729 
4730     else
4731       # If it succeeded, then it was overridden by the user. We will use it
4732       # for the tool.
4733 
4734       # First remove it from the list of overridden variables, so we can test
4735       # for unknown variables in the end.
4736       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4737 
4738       # Check if the provided tool contains a complete path.
4739       tool_specified="$BASH"
4740       tool_basename="${tool_specified##*/}"
4741       if test "x$tool_basename" = "x$tool_specified"; then
4742         # A command without a complete path is provided, search $PATH.
4743         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5
4744 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;}
4745         # Extract the first word of "$tool_basename", so it can be a program name with args.
4746 set dummy $tool_basename; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_path_BASH+:} false; then :
4750   $as_echo_n "(cached) " >&6
4751 else
4752   case $BASH in
4753   [\\/]* | ?:[\\/]*)
4754   ac_cv_path_BASH="$BASH" # Let the user override the test with a path.
4755   ;;
4756   *)
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_exec_ext in '' $ac_executable_extensions; do
4763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4764     ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext"
4765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4766     break 2
4767   fi
4768 done
4769   done
4770 IFS=$as_save_IFS
4771 
4772   ;;
4773 esac
4774 fi
4775 BASH=$ac_cv_path_BASH
4776 if test -n "$BASH"; then
4777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5
4778 $as_echo "$BASH" >&6; }
4779 else
4780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781 $as_echo "no" >&6; }
4782 fi
4783 
4784 
4785         if test "x$BASH" = x; then
4786           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4787         fi
4788       else
4789         # Otherwise we believe it is a complete path. Use it as it is.
4790         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5
4791 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;}
4792         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5
4793 $as_echo_n "checking for BASH... " >&6; }
4794         if test ! -x "$tool_specified"; then
4795           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4796 $as_echo "not found" >&6; }
4797           as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5
4798         fi
4799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4800 $as_echo "$tool_specified" >&6; }
4801       fi
4802     fi
4803   fi
4804 
4805 
4806 
4807   if test "x$BASH" = x; then
4808     as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5
4809   fi
4810 
4811 
4812 
4813 
4814 
4815   # Publish this variable in the help.
4816 
4817 
4818   if test "x$CAT" = x; then
4819     # The variable is not set by user, try to locate tool using the code snippet
4820     for ac_prog in cat
4821 do
4822   # Extract the first word of "$ac_prog", so it can be a program name with args.
4823 set dummy $ac_prog; ac_word=$2
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4825 $as_echo_n "checking for $ac_word... " >&6; }
4826 if ${ac_cv_path_CAT+:} false; then :
4827   $as_echo_n "(cached) " >&6
4828 else
4829   case $CAT in
4830   [\\/]* | ?:[\\/]*)
4831   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4832   ;;
4833   *)
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     for ac_exec_ext in '' $ac_executable_extensions; do
4840   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4841     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4842     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843     break 2
4844   fi
4845 done
4846   done
4847 IFS=$as_save_IFS
4848 
4849   ;;
4850 esac
4851 fi
4852 CAT=$ac_cv_path_CAT
4853 if test -n "$CAT"; then
4854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4855 $as_echo "$CAT" >&6; }
4856 else
4857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4859 fi
4860 
4861 
4862   test -n "$CAT" && break
4863 done
4864 
4865   else
4866     # The variable is set, but is it from the command line or the environment?
4867 
4868     # Try to remove the string !CAT! from our list.
4869     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/}
4870     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
4871       # If it failed, the variable was not from the command line. Ignore it,
4872       # but warn the user (except for BASH, which is always set by the calling BASH).
4873       if test "xCAT" != xBASH; then
4874         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5
4875 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;}
4876       fi
4877       # Try to locate tool using the code snippet
4878       for ac_prog in cat
4879 do
4880   # Extract the first word of "$ac_prog", so it can be a program name with args.
4881 set dummy $ac_prog; ac_word=$2
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4883 $as_echo_n "checking for $ac_word... " >&6; }
4884 if ${ac_cv_path_CAT+:} false; then :
4885   $as_echo_n "(cached) " >&6
4886 else
4887   case $CAT in
4888   [\\/]* | ?:[\\/]*)
4889   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4890   ;;
4891   *)
4892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893 for as_dir in $PATH
4894 do
4895   IFS=$as_save_IFS
4896   test -z "$as_dir" && as_dir=.
4897     for ac_exec_ext in '' $ac_executable_extensions; do
4898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4899     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901     break 2
4902   fi
4903 done
4904   done
4905 IFS=$as_save_IFS
4906 
4907   ;;
4908 esac
4909 fi
4910 CAT=$ac_cv_path_CAT
4911 if test -n "$CAT"; then
4912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4913 $as_echo "$CAT" >&6; }
4914 else
4915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916 $as_echo "no" >&6; }
4917 fi
4918 
4919 
4920   test -n "$CAT" && break
4921 done
4922 
4923     else
4924       # If it succeeded, then it was overridden by the user. We will use it
4925       # for the tool.
4926 
4927       # First remove it from the list of overridden variables, so we can test
4928       # for unknown variables in the end.
4929       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
4930 
4931       # Check if the provided tool contains a complete path.
4932       tool_specified="$CAT"
4933       tool_basename="${tool_specified##*/}"
4934       if test "x$tool_basename" = "x$tool_specified"; then
4935         # A command without a complete path is provided, search $PATH.
4936         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5
4937 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;}
4938         # Extract the first word of "$tool_basename", so it can be a program name with args.
4939 set dummy $tool_basename; ac_word=$2
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941 $as_echo_n "checking for $ac_word... " >&6; }
4942 if ${ac_cv_path_CAT+:} false; then :
4943   $as_echo_n "(cached) " >&6
4944 else
4945   case $CAT in
4946   [\\/]* | ?:[\\/]*)
4947   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
4948   ;;
4949   *)
4950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953   IFS=$as_save_IFS
4954   test -z "$as_dir" && as_dir=.
4955     for ac_exec_ext in '' $ac_executable_extensions; do
4956   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4957     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
4958     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4959     break 2
4960   fi
4961 done
4962   done
4963 IFS=$as_save_IFS
4964 
4965   ;;
4966 esac
4967 fi
4968 CAT=$ac_cv_path_CAT
4969 if test -n "$CAT"; then
4970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4971 $as_echo "$CAT" >&6; }
4972 else
4973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974 $as_echo "no" >&6; }
4975 fi
4976 
4977 
4978         if test "x$CAT" = x; then
4979           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
4980         fi
4981       else
4982         # Otherwise we believe it is a complete path. Use it as it is.
4983         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5
4984 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;}
4985         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5
4986 $as_echo_n "checking for CAT... " >&6; }
4987         if test ! -x "$tool_specified"; then
4988           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4989 $as_echo "not found" >&6; }
4990           as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5
4991         fi
4992         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
4993 $as_echo "$tool_specified" >&6; }
4994       fi
4995     fi
4996   fi
4997 
4998 
4999 
5000   if test "x$CAT" = x; then
5001     as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5
5002   fi
5003 
5004 
5005 
5006 
5007 
5008   # Publish this variable in the help.
5009 
5010 
5011   if test "x$CHMOD" = x; then
5012     # The variable is not set by user, try to locate tool using the code snippet
5013     for ac_prog in chmod
5014 do
5015   # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy $ac_prog; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_path_CHMOD+:} false; then :
5020   $as_echo_n "(cached) " >&6
5021 else
5022   case $CHMOD in
5023   [\\/]* | ?:[\\/]*)
5024   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5025   ;;
5026   *)
5027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028 for as_dir in $PATH
5029 do
5030   IFS=$as_save_IFS
5031   test -z "$as_dir" && as_dir=.
5032     for ac_exec_ext in '' $ac_executable_extensions; do
5033   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5036     break 2
5037   fi
5038 done
5039   done
5040 IFS=$as_save_IFS
5041 
5042   ;;
5043 esac
5044 fi
5045 CHMOD=$ac_cv_path_CHMOD
5046 if test -n "$CHMOD"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5048 $as_echo "$CHMOD" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053 
5054 
5055   test -n "$CHMOD" && break
5056 done
5057 
5058   else
5059     # The variable is set, but is it from the command line or the environment?
5060 
5061     # Try to remove the string !CHMOD! from our list.
5062     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/}
5063     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5064       # If it failed, the variable was not from the command line. Ignore it,
5065       # but warn the user (except for BASH, which is always set by the calling BASH).
5066       if test "xCHMOD" != xBASH; then
5067         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5
5068 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;}
5069       fi
5070       # Try to locate tool using the code snippet
5071       for ac_prog in chmod
5072 do
5073   # Extract the first word of "$ac_prog", so it can be a program name with args.
5074 set dummy $ac_prog; ac_word=$2
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5076 $as_echo_n "checking for $ac_word... " >&6; }
5077 if ${ac_cv_path_CHMOD+:} false; then :
5078   $as_echo_n "(cached) " >&6
5079 else
5080   case $CHMOD in
5081   [\\/]* | ?:[\\/]*)
5082   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5083   ;;
5084   *)
5085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5092     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099 
5100   ;;
5101 esac
5102 fi
5103 CHMOD=$ac_cv_path_CHMOD
5104 if test -n "$CHMOD"; then
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5106 $as_echo "$CHMOD" >&6; }
5107 else
5108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5110 fi
5111 
5112 
5113   test -n "$CHMOD" && break
5114 done
5115 
5116     else
5117       # If it succeeded, then it was overridden by the user. We will use it
5118       # for the tool.
5119 
5120       # First remove it from the list of overridden variables, so we can test
5121       # for unknown variables in the end.
5122       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5123 
5124       # Check if the provided tool contains a complete path.
5125       tool_specified="$CHMOD"
5126       tool_basename="${tool_specified##*/}"
5127       if test "x$tool_basename" = "x$tool_specified"; then
5128         # A command without a complete path is provided, search $PATH.
5129         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5
5130 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;}
5131         # Extract the first word of "$tool_basename", so it can be a program name with args.
5132 set dummy $tool_basename; ac_word=$2
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5134 $as_echo_n "checking for $ac_word... " >&6; }
5135 if ${ac_cv_path_CHMOD+:} false; then :
5136   $as_echo_n "(cached) " >&6
5137 else
5138   case $CHMOD in
5139   [\\/]* | ?:[\\/]*)
5140   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
5141   ;;
5142   *)
5143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5144 for as_dir in $PATH
5145 do
5146   IFS=$as_save_IFS
5147   test -z "$as_dir" && as_dir=.
5148     for ac_exec_ext in '' $ac_executable_extensions; do
5149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5150     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
5151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5152     break 2
5153   fi
5154 done
5155   done
5156 IFS=$as_save_IFS
5157 
5158   ;;
5159 esac
5160 fi
5161 CHMOD=$ac_cv_path_CHMOD
5162 if test -n "$CHMOD"; then
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5164 $as_echo "$CHMOD" >&6; }
5165 else
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169 
5170 
5171         if test "x$CHMOD" = x; then
5172           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5173         fi
5174       else
5175         # Otherwise we believe it is a complete path. Use it as it is.
5176         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5
5177 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;}
5178         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5
5179 $as_echo_n "checking for CHMOD... " >&6; }
5180         if test ! -x "$tool_specified"; then
5181           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5182 $as_echo "not found" >&6; }
5183           as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5
5184         fi
5185         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5186 $as_echo "$tool_specified" >&6; }
5187       fi
5188     fi
5189   fi
5190 
5191 
5192 
5193   if test "x$CHMOD" = x; then
5194     as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5
5195   fi
5196 
5197 
5198 
5199 
5200 
5201   # Publish this variable in the help.
5202 
5203 
5204   if test "x$CMP" = x; then
5205     # The variable is not set by user, try to locate tool using the code snippet
5206     for ac_prog in cmp
5207 do
5208   # Extract the first word of "$ac_prog", so it can be a program name with args.
5209 set dummy $ac_prog; ac_word=$2
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5211 $as_echo_n "checking for $ac_word... " >&6; }
5212 if ${ac_cv_path_CMP+:} false; then :
5213   $as_echo_n "(cached) " >&6
5214 else
5215   case $CMP in
5216   [\\/]* | ?:[\\/]*)
5217   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5218   ;;
5219   *)
5220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223   IFS=$as_save_IFS
5224   test -z "$as_dir" && as_dir=.
5225     for ac_exec_ext in '' $ac_executable_extensions; do
5226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5227     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229     break 2
5230   fi
5231 done
5232   done
5233 IFS=$as_save_IFS
5234 
5235   ;;
5236 esac
5237 fi
5238 CMP=$ac_cv_path_CMP
5239 if test -n "$CMP"; then
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5241 $as_echo "$CMP" >&6; }
5242 else
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5245 fi
5246 
5247 
5248   test -n "$CMP" && break
5249 done
5250 
5251   else
5252     # The variable is set, but is it from the command line or the environment?
5253 
5254     # Try to remove the string !CMP! from our list.
5255     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/}
5256     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5257       # If it failed, the variable was not from the command line. Ignore it,
5258       # but warn the user (except for BASH, which is always set by the calling BASH).
5259       if test "xCMP" != xBASH; then
5260         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5
5261 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;}
5262       fi
5263       # Try to locate tool using the code snippet
5264       for ac_prog in cmp
5265 do
5266   # Extract the first word of "$ac_prog", so it can be a program name with args.
5267 set dummy $ac_prog; ac_word=$2
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5269 $as_echo_n "checking for $ac_word... " >&6; }
5270 if ${ac_cv_path_CMP+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273   case $CMP in
5274   [\\/]* | ?:[\\/]*)
5275   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5276   ;;
5277   *)
5278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH
5280 do
5281   IFS=$as_save_IFS
5282   test -z "$as_dir" && as_dir=.
5283     for ac_exec_ext in '' $ac_executable_extensions; do
5284   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5286     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5287     break 2
5288   fi
5289 done
5290   done
5291 IFS=$as_save_IFS
5292 
5293   ;;
5294 esac
5295 fi
5296 CMP=$ac_cv_path_CMP
5297 if test -n "$CMP"; then
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5299 $as_echo "$CMP" >&6; }
5300 else
5301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304 
5305 
5306   test -n "$CMP" && break
5307 done
5308 
5309     else
5310       # If it succeeded, then it was overridden by the user. We will use it
5311       # for the tool.
5312 
5313       # First remove it from the list of overridden variables, so we can test
5314       # for unknown variables in the end.
5315       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5316 
5317       # Check if the provided tool contains a complete path.
5318       tool_specified="$CMP"
5319       tool_basename="${tool_specified##*/}"
5320       if test "x$tool_basename" = "x$tool_specified"; then
5321         # A command without a complete path is provided, search $PATH.
5322         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5
5323 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;}
5324         # Extract the first word of "$tool_basename", so it can be a program name with args.
5325 set dummy $tool_basename; ac_word=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_path_CMP+:} false; then :
5329   $as_echo_n "(cached) " >&6
5330 else
5331   case $CMP in
5332   [\\/]* | ?:[\\/]*)
5333   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5334   ;;
5335   *)
5336   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5338 do
5339   IFS=$as_save_IFS
5340   test -z "$as_dir" && as_dir=.
5341     for ac_exec_ext in '' $ac_executable_extensions; do
5342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5343     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345     break 2
5346   fi
5347 done
5348   done
5349 IFS=$as_save_IFS
5350 
5351   ;;
5352 esac
5353 fi
5354 CMP=$ac_cv_path_CMP
5355 if test -n "$CMP"; then
5356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5357 $as_echo "$CMP" >&6; }
5358 else
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5361 fi
5362 
5363 
5364         if test "x$CMP" = x; then
5365           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5366         fi
5367       else
5368         # Otherwise we believe it is a complete path. Use it as it is.
5369         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5
5370 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;}
5371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5
5372 $as_echo_n "checking for CMP... " >&6; }
5373         if test ! -x "$tool_specified"; then
5374           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5375 $as_echo "not found" >&6; }
5376           as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5
5377         fi
5378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5379 $as_echo "$tool_specified" >&6; }
5380       fi
5381     fi
5382   fi
5383 
5384 
5385 
5386   if test "x$CMP" = x; then
5387     as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5
5388   fi
5389 
5390 
5391 
5392 
5393 
5394   # Publish this variable in the help.
5395 
5396 
5397   if test "x$COMM" = x; then
5398     # The variable is not set by user, try to locate tool using the code snippet
5399     for ac_prog in comm
5400 do
5401   # Extract the first word of "$ac_prog", so it can be a program name with args.
5402 set dummy $ac_prog; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if ${ac_cv_path_COMM+:} false; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   case $COMM in
5409   [\\/]* | ?:[\\/]*)
5410   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5411   ;;
5412   *)
5413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416   IFS=$as_save_IFS
5417   test -z "$as_dir" && as_dir=.
5418     for ac_exec_ext in '' $ac_executable_extensions; do
5419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5420     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422     break 2
5423   fi
5424 done
5425   done
5426 IFS=$as_save_IFS
5427 
5428   ;;
5429 esac
5430 fi
5431 COMM=$ac_cv_path_COMM
5432 if test -n "$COMM"; then
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5434 $as_echo "$COMM" >&6; }
5435 else
5436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5437 $as_echo "no" >&6; }
5438 fi
5439 
5440 
5441   test -n "$COMM" && break
5442 done
5443 
5444   else
5445     # The variable is set, but is it from the command line or the environment?
5446 
5447     # Try to remove the string !COMM! from our list.
5448     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
5449     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5450       # If it failed, the variable was not from the command line. Ignore it,
5451       # but warn the user (except for BASH, which is always set by the calling BASH).
5452       if test "xCOMM" != xBASH; then
5453         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
5454 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
5455       fi
5456       # Try to locate tool using the code snippet
5457       for ac_prog in comm
5458 do
5459   # Extract the first word of "$ac_prog", so it can be a program name with args.
5460 set dummy $ac_prog; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_path_COMM+:} false; then :
5464   $as_echo_n "(cached) " >&6
5465 else
5466   case $COMM in
5467   [\\/]* | ?:[\\/]*)
5468   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5469   ;;
5470   *)
5471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474   IFS=$as_save_IFS
5475   test -z "$as_dir" && as_dir=.
5476     for ac_exec_ext in '' $ac_executable_extensions; do
5477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5478     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483   done
5484 IFS=$as_save_IFS
5485 
5486   ;;
5487 esac
5488 fi
5489 COMM=$ac_cv_path_COMM
5490 if test -n "$COMM"; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5492 $as_echo "$COMM" >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497 
5498 
5499   test -n "$COMM" && break
5500 done
5501 
5502     else
5503       # If it succeeded, then it was overridden by the user. We will use it
5504       # for the tool.
5505 
5506       # First remove it from the list of overridden variables, so we can test
5507       # for unknown variables in the end.
5508       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5509 
5510       # Check if the provided tool contains a complete path.
5511       tool_specified="$COMM"
5512       tool_basename="${tool_specified##*/}"
5513       if test "x$tool_basename" = "x$tool_specified"; then
5514         # A command without a complete path is provided, search $PATH.
5515         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
5516 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
5517         # Extract the first word of "$tool_basename", so it can be a program name with args.
5518 set dummy $tool_basename; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if ${ac_cv_path_COMM+:} false; then :
5522   $as_echo_n "(cached) " >&6
5523 else
5524   case $COMM in
5525   [\\/]* | ?:[\\/]*)
5526   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
5527   ;;
5528   *)
5529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH
5531 do
5532   IFS=$as_save_IFS
5533   test -z "$as_dir" && as_dir=.
5534     for ac_exec_ext in '' $ac_executable_extensions; do
5535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5536     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
5537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538     break 2
5539   fi
5540 done
5541   done
5542 IFS=$as_save_IFS
5543 
5544   ;;
5545 esac
5546 fi
5547 COMM=$ac_cv_path_COMM
5548 if test -n "$COMM"; then
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
5550 $as_echo "$COMM" >&6; }
5551 else
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5553 $as_echo "no" >&6; }
5554 fi
5555 
5556 
5557         if test "x$COMM" = x; then
5558           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5559         fi
5560       else
5561         # Otherwise we believe it is a complete path. Use it as it is.
5562         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
5563 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
5564         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
5565 $as_echo_n "checking for COMM... " >&6; }
5566         if test ! -x "$tool_specified"; then
5567           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5568 $as_echo "not found" >&6; }
5569           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
5570         fi
5571         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5572 $as_echo "$tool_specified" >&6; }
5573       fi
5574     fi
5575   fi
5576 
5577 
5578 
5579   if test "x$COMM" = x; then
5580     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
5581   fi
5582 
5583 
5584 
5585 
5586 
5587   # Publish this variable in the help.
5588 
5589 
5590   if test "x$CP" = x; then
5591     # The variable is not set by user, try to locate tool using the code snippet
5592     for ac_prog in cp
5593 do
5594   # Extract the first word of "$ac_prog", so it can be a program name with args.
5595 set dummy $ac_prog; ac_word=$2
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597 $as_echo_n "checking for $ac_word... " >&6; }
5598 if ${ac_cv_path_CP+:} false; then :
5599   $as_echo_n "(cached) " >&6
5600 else
5601   case $CP in
5602   [\\/]* | ?:[\\/]*)
5603   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5604   ;;
5605   *)
5606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611     for ac_exec_ext in '' $ac_executable_extensions; do
5612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618   done
5619 IFS=$as_save_IFS
5620 
5621   ;;
5622 esac
5623 fi
5624 CP=$ac_cv_path_CP
5625 if test -n "$CP"; then
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5627 $as_echo "$CP" >&6; }
5628 else
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5631 fi
5632 
5633 
5634   test -n "$CP" && break
5635 done
5636 
5637   else
5638     # The variable is set, but is it from the command line or the environment?
5639 
5640     # Try to remove the string !CP! from our list.
5641     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/}
5642     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5643       # If it failed, the variable was not from the command line. Ignore it,
5644       # but warn the user (except for BASH, which is always set by the calling BASH).
5645       if test "xCP" != xBASH; then
5646         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5
5647 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;}
5648       fi
5649       # Try to locate tool using the code snippet
5650       for ac_prog in cp
5651 do
5652   # Extract the first word of "$ac_prog", so it can be a program name with args.
5653 set dummy $ac_prog; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_path_CP+:} false; then :
5657   $as_echo_n "(cached) " >&6
5658 else
5659   case $CP in
5660   [\\/]* | ?:[\\/]*)
5661   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5662   ;;
5663   *)
5664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667   IFS=$as_save_IFS
5668   test -z "$as_dir" && as_dir=.
5669     for ac_exec_ext in '' $ac_executable_extensions; do
5670   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5671     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5672     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673     break 2
5674   fi
5675 done
5676   done
5677 IFS=$as_save_IFS
5678 
5679   ;;
5680 esac
5681 fi
5682 CP=$ac_cv_path_CP
5683 if test -n "$CP"; then
5684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5685 $as_echo "$CP" >&6; }
5686 else
5687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5688 $as_echo "no" >&6; }
5689 fi
5690 
5691 
5692   test -n "$CP" && break
5693 done
5694 
5695     else
5696       # If it succeeded, then it was overridden by the user. We will use it
5697       # for the tool.
5698 
5699       # First remove it from the list of overridden variables, so we can test
5700       # for unknown variables in the end.
5701       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5702 
5703       # Check if the provided tool contains a complete path.
5704       tool_specified="$CP"
5705       tool_basename="${tool_specified##*/}"
5706       if test "x$tool_basename" = "x$tool_specified"; then
5707         # A command without a complete path is provided, search $PATH.
5708         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5
5709 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;}
5710         # Extract the first word of "$tool_basename", so it can be a program name with args.
5711 set dummy $tool_basename; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_path_CP+:} false; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   case $CP in
5718   [\\/]* | ?:[\\/]*)
5719   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5720   ;;
5721   *)
5722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727     for ac_exec_ext in '' $ac_executable_extensions; do
5728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734   done
5735 IFS=$as_save_IFS
5736 
5737   ;;
5738 esac
5739 fi
5740 CP=$ac_cv_path_CP
5741 if test -n "$CP"; then
5742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5743 $as_echo "$CP" >&6; }
5744 else
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5747 fi
5748 
5749 
5750         if test "x$CP" = x; then
5751           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5752         fi
5753       else
5754         # Otherwise we believe it is a complete path. Use it as it is.
5755         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5
5756 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;}
5757         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5
5758 $as_echo_n "checking for CP... " >&6; }
5759         if test ! -x "$tool_specified"; then
5760           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5761 $as_echo "not found" >&6; }
5762           as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5
5763         fi
5764         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5765 $as_echo "$tool_specified" >&6; }
5766       fi
5767     fi
5768   fi
5769 
5770 
5771 
5772   if test "x$CP" = x; then
5773     as_fn_error $? "Could not find required tool for CP" "$LINENO" 5
5774   fi
5775 
5776 
5777 
5778 
5779 
5780   # Publish this variable in the help.
5781 
5782 
5783   if test "x$CUT" = x; then
5784     # The variable is not set by user, try to locate tool using the code snippet
5785     for ac_prog in cut
5786 do
5787   # Extract the first word of "$ac_prog", so it can be a program name with args.
5788 set dummy $ac_prog; ac_word=$2
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5790 $as_echo_n "checking for $ac_word... " >&6; }
5791 if ${ac_cv_path_CUT+:} false; then :
5792   $as_echo_n "(cached) " >&6
5793 else
5794   case $CUT in
5795   [\\/]* | ?:[\\/]*)
5796   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5797   ;;
5798   *)
5799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802   IFS=$as_save_IFS
5803   test -z "$as_dir" && as_dir=.
5804     for ac_exec_ext in '' $ac_executable_extensions; do
5805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808     break 2
5809   fi
5810 done
5811   done
5812 IFS=$as_save_IFS
5813 
5814   ;;
5815 esac
5816 fi
5817 CUT=$ac_cv_path_CUT
5818 if test -n "$CUT"; then
5819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5820 $as_echo "$CUT" >&6; }
5821 else
5822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5823 $as_echo "no" >&6; }
5824 fi
5825 
5826 
5827   test -n "$CUT" && break
5828 done
5829 
5830   else
5831     # The variable is set, but is it from the command line or the environment?
5832 
5833     # Try to remove the string !CUT! from our list.
5834     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/}
5835     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
5836       # If it failed, the variable was not from the command line. Ignore it,
5837       # but warn the user (except for BASH, which is always set by the calling BASH).
5838       if test "xCUT" != xBASH; then
5839         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5
5840 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;}
5841       fi
5842       # Try to locate tool using the code snippet
5843       for ac_prog in cut
5844 do
5845   # Extract the first word of "$ac_prog", so it can be a program name with args.
5846 set dummy $ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if ${ac_cv_path_CUT+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852   case $CUT in
5853   [\\/]* | ?:[\\/]*)
5854   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5855   ;;
5856   *)
5857   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5859 do
5860   IFS=$as_save_IFS
5861   test -z "$as_dir" && as_dir=.
5862     for ac_exec_ext in '' $ac_executable_extensions; do
5863   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5864     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5865     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866     break 2
5867   fi
5868 done
5869   done
5870 IFS=$as_save_IFS
5871 
5872   ;;
5873 esac
5874 fi
5875 CUT=$ac_cv_path_CUT
5876 if test -n "$CUT"; then
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5878 $as_echo "$CUT" >&6; }
5879 else
5880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5881 $as_echo "no" >&6; }
5882 fi
5883 
5884 
5885   test -n "$CUT" && break
5886 done
5887 
5888     else
5889       # If it succeeded, then it was overridden by the user. We will use it
5890       # for the tool.
5891 
5892       # First remove it from the list of overridden variables, so we can test
5893       # for unknown variables in the end.
5894       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
5895 
5896       # Check if the provided tool contains a complete path.
5897       tool_specified="$CUT"
5898       tool_basename="${tool_specified##*/}"
5899       if test "x$tool_basename" = "x$tool_specified"; then
5900         # A command without a complete path is provided, search $PATH.
5901         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5
5902 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;}
5903         # Extract the first word of "$tool_basename", so it can be a program name with args.
5904 set dummy $tool_basename; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_path_CUT+:} false; then :
5908   $as_echo_n "(cached) " >&6
5909 else
5910   case $CUT in
5911   [\\/]* | ?:[\\/]*)
5912   ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
5913   ;;
5914   *)
5915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922     ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929 
5930   ;;
5931 esac
5932 fi
5933 CUT=$ac_cv_path_CUT
5934 if test -n "$CUT"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
5936 $as_echo "$CUT" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941 
5942 
5943         if test "x$CUT" = x; then
5944           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
5945         fi
5946       else
5947         # Otherwise we believe it is a complete path. Use it as it is.
5948         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5
5949 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;}
5950         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5
5951 $as_echo_n "checking for CUT... " >&6; }
5952         if test ! -x "$tool_specified"; then
5953           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5954 $as_echo "not found" >&6; }
5955           as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5
5956         fi
5957         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
5958 $as_echo "$tool_specified" >&6; }
5959       fi
5960     fi
5961   fi
5962 
5963 
5964 
5965   if test "x$CUT" = x; then
5966     as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5
5967   fi
5968 
5969 
5970 
5971 
5972 
5973   # Publish this variable in the help.
5974 
5975 
5976   if test "x$DATE" = x; then
5977     # The variable is not set by user, try to locate tool using the code snippet
5978     for ac_prog in date
5979 do
5980   # Extract the first word of "$ac_prog", so it can be a program name with args.
5981 set dummy $ac_prog; ac_word=$2
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5983 $as_echo_n "checking for $ac_word... " >&6; }
5984 if ${ac_cv_path_DATE+:} false; then :
5985   $as_echo_n "(cached) " >&6
5986 else
5987   case $DATE in
5988   [\\/]* | ?:[\\/]*)
5989   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5990   ;;
5991   *)
5992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997     for ac_exec_ext in '' $ac_executable_extensions; do
5998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5999     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6001     break 2
6002   fi
6003 done
6004   done
6005 IFS=$as_save_IFS
6006 
6007   ;;
6008 esac
6009 fi
6010 DATE=$ac_cv_path_DATE
6011 if test -n "$DATE"; then
6012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6013 $as_echo "$DATE" >&6; }
6014 else
6015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6016 $as_echo "no" >&6; }
6017 fi
6018 
6019 
6020   test -n "$DATE" && break
6021 done
6022 
6023   else
6024     # The variable is set, but is it from the command line or the environment?
6025 
6026     # Try to remove the string !DATE! from our list.
6027     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/}
6028     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6029       # If it failed, the variable was not from the command line. Ignore it,
6030       # but warn the user (except for BASH, which is always set by the calling BASH).
6031       if test "xDATE" != xBASH; then
6032         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5
6033 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;}
6034       fi
6035       # Try to locate tool using the code snippet
6036       for ac_prog in date
6037 do
6038   # Extract the first word of "$ac_prog", so it can be a program name with args.
6039 set dummy $ac_prog; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_path_DATE+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   case $DATE in
6046   [\\/]* | ?:[\\/]*)
6047   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6048   ;;
6049   *)
6050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062   done
6063 IFS=$as_save_IFS
6064 
6065   ;;
6066 esac
6067 fi
6068 DATE=$ac_cv_path_DATE
6069 if test -n "$DATE"; then
6070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6071 $as_echo "$DATE" >&6; }
6072 else
6073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076 
6077 
6078   test -n "$DATE" && break
6079 done
6080 
6081     else
6082       # If it succeeded, then it was overridden by the user. We will use it
6083       # for the tool.
6084 
6085       # First remove it from the list of overridden variables, so we can test
6086       # for unknown variables in the end.
6087       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6088 
6089       # Check if the provided tool contains a complete path.
6090       tool_specified="$DATE"
6091       tool_basename="${tool_specified##*/}"
6092       if test "x$tool_basename" = "x$tool_specified"; then
6093         # A command without a complete path is provided, search $PATH.
6094         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5
6095 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;}
6096         # Extract the first word of "$tool_basename", so it can be a program name with args.
6097 set dummy $tool_basename; ac_word=$2
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6099 $as_echo_n "checking for $ac_word... " >&6; }
6100 if ${ac_cv_path_DATE+:} false; then :
6101   $as_echo_n "(cached) " >&6
6102 else
6103   case $DATE in
6104   [\\/]* | ?:[\\/]*)
6105   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6106   ;;
6107   *)
6108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111   IFS=$as_save_IFS
6112   test -z "$as_dir" && as_dir=.
6113     for ac_exec_ext in '' $ac_executable_extensions; do
6114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6117     break 2
6118   fi
6119 done
6120   done
6121 IFS=$as_save_IFS
6122 
6123   ;;
6124 esac
6125 fi
6126 DATE=$ac_cv_path_DATE
6127 if test -n "$DATE"; then
6128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6129 $as_echo "$DATE" >&6; }
6130 else
6131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132 $as_echo "no" >&6; }
6133 fi
6134 
6135 
6136         if test "x$DATE" = x; then
6137           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6138         fi
6139       else
6140         # Otherwise we believe it is a complete path. Use it as it is.
6141         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5
6142 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;}
6143         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5
6144 $as_echo_n "checking for DATE... " >&6; }
6145         if test ! -x "$tool_specified"; then
6146           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6147 $as_echo "not found" >&6; }
6148           as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5
6149         fi
6150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6151 $as_echo "$tool_specified" >&6; }
6152       fi
6153     fi
6154   fi
6155 
6156 
6157 
6158   if test "x$DATE" = x; then
6159     as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5
6160   fi
6161 
6162 
6163 
6164 
6165 
6166   # Publish this variable in the help.
6167 
6168 
6169   if test "x$DIFF" = x; then
6170     # The variable is not set by user, try to locate tool using the code snippet
6171     for ac_prog in gdiff diff
6172 do
6173   # Extract the first word of "$ac_prog", so it can be a program name with args.
6174 set dummy $ac_prog; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_path_DIFF+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   case $DIFF in
6181   [\\/]* | ?:[\\/]*)
6182   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6183   ;;
6184   *)
6185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6186 for as_dir in $PATH
6187 do
6188   IFS=$as_save_IFS
6189   test -z "$as_dir" && as_dir=.
6190     for ac_exec_ext in '' $ac_executable_extensions; do
6191   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6192     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6194     break 2
6195   fi
6196 done
6197   done
6198 IFS=$as_save_IFS
6199 
6200   ;;
6201 esac
6202 fi
6203 DIFF=$ac_cv_path_DIFF
6204 if test -n "$DIFF"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6206 $as_echo "$DIFF" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211 
6212 
6213   test -n "$DIFF" && break
6214 done
6215 
6216   else
6217     # The variable is set, but is it from the command line or the environment?
6218 
6219     # Try to remove the string !DIFF! from our list.
6220     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/}
6221     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6222       # If it failed, the variable was not from the command line. Ignore it,
6223       # but warn the user (except for BASH, which is always set by the calling BASH).
6224       if test "xDIFF" != xBASH; then
6225         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5
6226 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;}
6227       fi
6228       # Try to locate tool using the code snippet
6229       for ac_prog in gdiff diff
6230 do
6231   # Extract the first word of "$ac_prog", so it can be a program name with args.
6232 set dummy $ac_prog; ac_word=$2
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234 $as_echo_n "checking for $ac_word... " >&6; }
6235 if ${ac_cv_path_DIFF+:} false; then :
6236   $as_echo_n "(cached) " >&6
6237 else
6238   case $DIFF in
6239   [\\/]* | ?:[\\/]*)
6240   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6241   ;;
6242   *)
6243   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6244 for as_dir in $PATH
6245 do
6246   IFS=$as_save_IFS
6247   test -z "$as_dir" && as_dir=.
6248     for ac_exec_ext in '' $ac_executable_extensions; do
6249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6250     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6252     break 2
6253   fi
6254 done
6255   done
6256 IFS=$as_save_IFS
6257 
6258   ;;
6259 esac
6260 fi
6261 DIFF=$ac_cv_path_DIFF
6262 if test -n "$DIFF"; then
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6264 $as_echo "$DIFF" >&6; }
6265 else
6266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6268 fi
6269 
6270 
6271   test -n "$DIFF" && break
6272 done
6273 
6274     else
6275       # If it succeeded, then it was overridden by the user. We will use it
6276       # for the tool.
6277 
6278       # First remove it from the list of overridden variables, so we can test
6279       # for unknown variables in the end.
6280       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6281 
6282       # Check if the provided tool contains a complete path.
6283       tool_specified="$DIFF"
6284       tool_basename="${tool_specified##*/}"
6285       if test "x$tool_basename" = "x$tool_specified"; then
6286         # A command without a complete path is provided, search $PATH.
6287         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5
6288 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;}
6289         # Extract the first word of "$tool_basename", so it can be a program name with args.
6290 set dummy $tool_basename; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_path_DIFF+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   case $DIFF in
6297   [\\/]* | ?:[\\/]*)
6298   ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
6299   ;;
6300   *)
6301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 for as_dir in $PATH
6303 do
6304   IFS=$as_save_IFS
6305   test -z "$as_dir" && as_dir=.
6306     for ac_exec_ext in '' $ac_executable_extensions; do
6307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308     ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
6309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310     break 2
6311   fi
6312 done
6313   done
6314 IFS=$as_save_IFS
6315 
6316   ;;
6317 esac
6318 fi
6319 DIFF=$ac_cv_path_DIFF
6320 if test -n "$DIFF"; then
6321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
6322 $as_echo "$DIFF" >&6; }
6323 else
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6325 $as_echo "no" >&6; }
6326 fi
6327 
6328 
6329         if test "x$DIFF" = x; then
6330           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6331         fi
6332       else
6333         # Otherwise we believe it is a complete path. Use it as it is.
6334         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5
6335 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;}
6336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5
6337 $as_echo_n "checking for DIFF... " >&6; }
6338         if test ! -x "$tool_specified"; then
6339           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6340 $as_echo "not found" >&6; }
6341           as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5
6342         fi
6343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6344 $as_echo "$tool_specified" >&6; }
6345       fi
6346     fi
6347   fi
6348 
6349 
6350 
6351   if test "x$DIFF" = x; then
6352     as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5
6353   fi
6354 
6355 
6356 
6357 
6358 
6359   # Publish this variable in the help.
6360 
6361 
6362   if test "x$DIRNAME" = x; then
6363     # The variable is not set by user, try to locate tool using the code snippet
6364     for ac_prog in dirname
6365 do
6366   # Extract the first word of "$ac_prog", so it can be a program name with args.
6367 set dummy $ac_prog; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_path_DIRNAME+:} false; then :
6371   $as_echo_n "(cached) " >&6
6372 else
6373   case $DIRNAME in
6374   [\\/]* | ?:[\\/]*)
6375   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6376   ;;
6377   *)
6378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 for as_dir in $PATH
6380 do
6381   IFS=$as_save_IFS
6382   test -z "$as_dir" && as_dir=.
6383     for ac_exec_ext in '' $ac_executable_extensions; do
6384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6385     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6387     break 2
6388   fi
6389 done
6390   done
6391 IFS=$as_save_IFS
6392 
6393   ;;
6394 esac
6395 fi
6396 DIRNAME=$ac_cv_path_DIRNAME
6397 if test -n "$DIRNAME"; then
6398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6399 $as_echo "$DIRNAME" >&6; }
6400 else
6401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 $as_echo "no" >&6; }
6403 fi
6404 
6405 
6406   test -n "$DIRNAME" && break
6407 done
6408 
6409   else
6410     # The variable is set, but is it from the command line or the environment?
6411 
6412     # Try to remove the string !DIRNAME! from our list.
6413     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/}
6414     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6415       # If it failed, the variable was not from the command line. Ignore it,
6416       # but warn the user (except for BASH, which is always set by the calling BASH).
6417       if test "xDIRNAME" != xBASH; then
6418         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5
6419 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;}
6420       fi
6421       # Try to locate tool using the code snippet
6422       for ac_prog in dirname
6423 do
6424   # Extract the first word of "$ac_prog", so it can be a program name with args.
6425 set dummy $ac_prog; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if ${ac_cv_path_DIRNAME+:} false; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   case $DIRNAME in
6432   [\\/]* | ?:[\\/]*)
6433   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6434   ;;
6435   *)
6436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6437 for as_dir in $PATH
6438 do
6439   IFS=$as_save_IFS
6440   test -z "$as_dir" && as_dir=.
6441     for ac_exec_ext in '' $ac_executable_extensions; do
6442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6443     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6445     break 2
6446   fi
6447 done
6448   done
6449 IFS=$as_save_IFS
6450 
6451   ;;
6452 esac
6453 fi
6454 DIRNAME=$ac_cv_path_DIRNAME
6455 if test -n "$DIRNAME"; then
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6457 $as_echo "$DIRNAME" >&6; }
6458 else
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460 $as_echo "no" >&6; }
6461 fi
6462 
6463 
6464   test -n "$DIRNAME" && break
6465 done
6466 
6467     else
6468       # If it succeeded, then it was overridden by the user. We will use it
6469       # for the tool.
6470 
6471       # First remove it from the list of overridden variables, so we can test
6472       # for unknown variables in the end.
6473       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6474 
6475       # Check if the provided tool contains a complete path.
6476       tool_specified="$DIRNAME"
6477       tool_basename="${tool_specified##*/}"
6478       if test "x$tool_basename" = "x$tool_specified"; then
6479         # A command without a complete path is provided, search $PATH.
6480         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5
6481 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;}
6482         # Extract the first word of "$tool_basename", so it can be a program name with args.
6483 set dummy $tool_basename; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_path_DIRNAME+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   case $DIRNAME in
6490   [\\/]* | ?:[\\/]*)
6491   ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
6492   ;;
6493   *)
6494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497   IFS=$as_save_IFS
6498   test -z "$as_dir" && as_dir=.
6499     for ac_exec_ext in '' $ac_executable_extensions; do
6500   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6501     ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
6502     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503     break 2
6504   fi
6505 done
6506   done
6507 IFS=$as_save_IFS
6508 
6509   ;;
6510 esac
6511 fi
6512 DIRNAME=$ac_cv_path_DIRNAME
6513 if test -n "$DIRNAME"; then
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5
6515 $as_echo "$DIRNAME" >&6; }
6516 else
6517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6519 fi
6520 
6521 
6522         if test "x$DIRNAME" = x; then
6523           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6524         fi
6525       else
6526         # Otherwise we believe it is a complete path. Use it as it is.
6527         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5
6528 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;}
6529         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5
6530 $as_echo_n "checking for DIRNAME... " >&6; }
6531         if test ! -x "$tool_specified"; then
6532           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6533 $as_echo "not found" >&6; }
6534           as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
6535         fi
6536         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6537 $as_echo "$tool_specified" >&6; }
6538       fi
6539     fi
6540   fi
6541 
6542 
6543 
6544   if test "x$DIRNAME" = x; then
6545     as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5
6546   fi
6547 
6548 
6549 
6550 
6551 
6552   # Publish this variable in the help.
6553 
6554 
6555   if test "x$ECHO" = x; then
6556     # The variable is not set by user, try to locate tool using the code snippet
6557     for ac_prog in echo
6558 do
6559   # Extract the first word of "$ac_prog", so it can be a program name with args.
6560 set dummy $ac_prog; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_path_ECHO+:} false; then :
6564   $as_echo_n "(cached) " >&6
6565 else
6566   case $ECHO in
6567   [\\/]* | ?:[\\/]*)
6568   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6569   ;;
6570   *)
6571   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574   IFS=$as_save_IFS
6575   test -z "$as_dir" && as_dir=.
6576     for ac_exec_ext in '' $ac_executable_extensions; do
6577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580     break 2
6581   fi
6582 done
6583   done
6584 IFS=$as_save_IFS
6585 
6586   ;;
6587 esac
6588 fi
6589 ECHO=$ac_cv_path_ECHO
6590 if test -n "$ECHO"; then
6591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6592 $as_echo "$ECHO" >&6; }
6593 else
6594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6595 $as_echo "no" >&6; }
6596 fi
6597 
6598 
6599   test -n "$ECHO" && break
6600 done
6601 
6602   else
6603     # The variable is set, but is it from the command line or the environment?
6604 
6605     # Try to remove the string !ECHO! from our list.
6606     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/}
6607     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6608       # If it failed, the variable was not from the command line. Ignore it,
6609       # but warn the user (except for BASH, which is always set by the calling BASH).
6610       if test "xECHO" != xBASH; then
6611         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5
6612 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;}
6613       fi
6614       # Try to locate tool using the code snippet
6615       for ac_prog in echo
6616 do
6617   # Extract the first word of "$ac_prog", so it can be a program name with args.
6618 set dummy $ac_prog; ac_word=$2
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6620 $as_echo_n "checking for $ac_word... " >&6; }
6621 if ${ac_cv_path_ECHO+:} false; then :
6622   $as_echo_n "(cached) " >&6
6623 else
6624   case $ECHO in
6625   [\\/]* | ?:[\\/]*)
6626   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6627   ;;
6628   *)
6629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630 for as_dir in $PATH
6631 do
6632   IFS=$as_save_IFS
6633   test -z "$as_dir" && as_dir=.
6634     for ac_exec_ext in '' $ac_executable_extensions; do
6635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6636     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6638     break 2
6639   fi
6640 done
6641   done
6642 IFS=$as_save_IFS
6643 
6644   ;;
6645 esac
6646 fi
6647 ECHO=$ac_cv_path_ECHO
6648 if test -n "$ECHO"; then
6649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6650 $as_echo "$ECHO" >&6; }
6651 else
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6653 $as_echo "no" >&6; }
6654 fi
6655 
6656 
6657   test -n "$ECHO" && break
6658 done
6659 
6660     else
6661       # If it succeeded, then it was overridden by the user. We will use it
6662       # for the tool.
6663 
6664       # First remove it from the list of overridden variables, so we can test
6665       # for unknown variables in the end.
6666       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6667 
6668       # Check if the provided tool contains a complete path.
6669       tool_specified="$ECHO"
6670       tool_basename="${tool_specified##*/}"
6671       if test "x$tool_basename" = "x$tool_specified"; then
6672         # A command without a complete path is provided, search $PATH.
6673         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5
6674 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;}
6675         # Extract the first word of "$tool_basename", so it can be a program name with args.
6676 set dummy $tool_basename; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_path_ECHO+:} false; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   case $ECHO in
6683   [\\/]* | ?:[\\/]*)
6684   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
6685   ;;
6686   *)
6687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 for as_dir in $PATH
6689 do
6690   IFS=$as_save_IFS
6691   test -z "$as_dir" && as_dir=.
6692     for ac_exec_ext in '' $ac_executable_extensions; do
6693   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6694     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
6695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6696     break 2
6697   fi
6698 done
6699   done
6700 IFS=$as_save_IFS
6701 
6702   ;;
6703 esac
6704 fi
6705 ECHO=$ac_cv_path_ECHO
6706 if test -n "$ECHO"; then
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
6708 $as_echo "$ECHO" >&6; }
6709 else
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 $as_echo "no" >&6; }
6712 fi
6713 
6714 
6715         if test "x$ECHO" = x; then
6716           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6717         fi
6718       else
6719         # Otherwise we believe it is a complete path. Use it as it is.
6720         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5
6721 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;}
6722         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5
6723 $as_echo_n "checking for ECHO... " >&6; }
6724         if test ! -x "$tool_specified"; then
6725           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6726 $as_echo "not found" >&6; }
6727           as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5
6728         fi
6729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6730 $as_echo "$tool_specified" >&6; }
6731       fi
6732     fi
6733   fi
6734 
6735 
6736 
6737   if test "x$ECHO" = x; then
6738     as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5
6739   fi
6740 
6741 
6742 
6743 
6744 
6745   # Publish this variable in the help.
6746 
6747 
6748   if test "x$EXPR" = x; then
6749     # The variable is not set by user, try to locate tool using the code snippet
6750     for ac_prog in expr
6751 do
6752   # Extract the first word of "$ac_prog", so it can be a program name with args.
6753 set dummy $ac_prog; ac_word=$2
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6755 $as_echo_n "checking for $ac_word... " >&6; }
6756 if ${ac_cv_path_EXPR+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   case $EXPR in
6760   [\\/]* | ?:[\\/]*)
6761   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6762   ;;
6763   *)
6764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH
6766 do
6767   IFS=$as_save_IFS
6768   test -z "$as_dir" && as_dir=.
6769     for ac_exec_ext in '' $ac_executable_extensions; do
6770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6771     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773     break 2
6774   fi
6775 done
6776   done
6777 IFS=$as_save_IFS
6778 
6779   ;;
6780 esac
6781 fi
6782 EXPR=$ac_cv_path_EXPR
6783 if test -n "$EXPR"; then
6784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6785 $as_echo "$EXPR" >&6; }
6786 else
6787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 $as_echo "no" >&6; }
6789 fi
6790 
6791 
6792   test -n "$EXPR" && break
6793 done
6794 
6795   else
6796     # The variable is set, but is it from the command line or the environment?
6797 
6798     # Try to remove the string !EXPR! from our list.
6799     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/}
6800     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6801       # If it failed, the variable was not from the command line. Ignore it,
6802       # but warn the user (except for BASH, which is always set by the calling BASH).
6803       if test "xEXPR" != xBASH; then
6804         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5
6805 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;}
6806       fi
6807       # Try to locate tool using the code snippet
6808       for ac_prog in expr
6809 do
6810   # Extract the first word of "$ac_prog", so it can be a program name with args.
6811 set dummy $ac_prog; ac_word=$2
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6813 $as_echo_n "checking for $ac_word... " >&6; }
6814 if ${ac_cv_path_EXPR+:} false; then :
6815   $as_echo_n "(cached) " >&6
6816 else
6817   case $EXPR in
6818   [\\/]* | ?:[\\/]*)
6819   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6820   ;;
6821   *)
6822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827     for ac_exec_ext in '' $ac_executable_extensions; do
6828   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6830     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834   done
6835 IFS=$as_save_IFS
6836 
6837   ;;
6838 esac
6839 fi
6840 EXPR=$ac_cv_path_EXPR
6841 if test -n "$EXPR"; then
6842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6843 $as_echo "$EXPR" >&6; }
6844 else
6845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848 
6849 
6850   test -n "$EXPR" && break
6851 done
6852 
6853     else
6854       # If it succeeded, then it was overridden by the user. We will use it
6855       # for the tool.
6856 
6857       # First remove it from the list of overridden variables, so we can test
6858       # for unknown variables in the end.
6859       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
6860 
6861       # Check if the provided tool contains a complete path.
6862       tool_specified="$EXPR"
6863       tool_basename="${tool_specified##*/}"
6864       if test "x$tool_basename" = "x$tool_specified"; then
6865         # A command without a complete path is provided, search $PATH.
6866         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5
6867 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;}
6868         # Extract the first word of "$tool_basename", so it can be a program name with args.
6869 set dummy $tool_basename; ac_word=$2
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871 $as_echo_n "checking for $ac_word... " >&6; }
6872 if ${ac_cv_path_EXPR+:} false; then :
6873   $as_echo_n "(cached) " >&6
6874 else
6875   case $EXPR in
6876   [\\/]* | ?:[\\/]*)
6877   ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
6878   ;;
6879   *)
6880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881 for as_dir in $PATH
6882 do
6883   IFS=$as_save_IFS
6884   test -z "$as_dir" && as_dir=.
6885     for ac_exec_ext in '' $ac_executable_extensions; do
6886   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6887     ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
6888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889     break 2
6890   fi
6891 done
6892   done
6893 IFS=$as_save_IFS
6894 
6895   ;;
6896 esac
6897 fi
6898 EXPR=$ac_cv_path_EXPR
6899 if test -n "$EXPR"; then
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
6901 $as_echo "$EXPR" >&6; }
6902 else
6903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904 $as_echo "no" >&6; }
6905 fi
6906 
6907 
6908         if test "x$EXPR" = x; then
6909           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
6910         fi
6911       else
6912         # Otherwise we believe it is a complete path. Use it as it is.
6913         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5
6914 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;}
6915         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5
6916 $as_echo_n "checking for EXPR... " >&6; }
6917         if test ! -x "$tool_specified"; then
6918           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
6919 $as_echo "not found" >&6; }
6920           as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5
6921         fi
6922         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
6923 $as_echo "$tool_specified" >&6; }
6924       fi
6925     fi
6926   fi
6927 
6928 
6929 
6930   if test "x$EXPR" = x; then
6931     as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5
6932   fi
6933 
6934 
6935 
6936 
6937 
6938   # Publish this variable in the help.
6939 
6940 
6941   if test "x$FILE" = x; then
6942     # The variable is not set by user, try to locate tool using the code snippet
6943     for ac_prog in file
6944 do
6945   # Extract the first word of "$ac_prog", so it can be a program name with args.
6946 set dummy $ac_prog; ac_word=$2
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6948 $as_echo_n "checking for $ac_word... " >&6; }
6949 if ${ac_cv_path_FILE+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   case $FILE in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962     for ac_exec_ext in '' $ac_executable_extensions; do
6963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6964     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
6965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969   done
6970 IFS=$as_save_IFS
6971 
6972   ;;
6973 esac
6974 fi
6975 FILE=$ac_cv_path_FILE
6976 if test -n "$FILE"; then
6977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
6978 $as_echo "$FILE" >&6; }
6979 else
6980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6981 $as_echo "no" >&6; }
6982 fi
6983 
6984 
6985   test -n "$FILE" && break
6986 done
6987 
6988   else
6989     # The variable is set, but is it from the command line or the environment?
6990 
6991     # Try to remove the string !FILE! from our list.
6992     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/}
6993     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
6994       # If it failed, the variable was not from the command line. Ignore it,
6995       # but warn the user (except for BASH, which is always set by the calling BASH).
6996       if test "xFILE" != xBASH; then
6997         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5
6998 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;}
6999       fi
7000       # Try to locate tool using the code snippet
7001       for ac_prog in file
7002 do
7003   # Extract the first word of "$ac_prog", so it can be a program name with args.
7004 set dummy $ac_prog; ac_word=$2
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006 $as_echo_n "checking for $ac_word... " >&6; }
7007 if ${ac_cv_path_FILE+:} false; then :
7008   $as_echo_n "(cached) " >&6
7009 else
7010   case $FILE in
7011   [\\/]* | ?:[\\/]*)
7012   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7013   ;;
7014   *)
7015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020     for ac_exec_ext in '' $ac_executable_extensions; do
7021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027   done
7028 IFS=$as_save_IFS
7029 
7030   ;;
7031 esac
7032 fi
7033 FILE=$ac_cv_path_FILE
7034 if test -n "$FILE"; then
7035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7036 $as_echo "$FILE" >&6; }
7037 else
7038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7040 fi
7041 
7042 
7043   test -n "$FILE" && break
7044 done
7045 
7046     else
7047       # If it succeeded, then it was overridden by the user. We will use it
7048       # for the tool.
7049 
7050       # First remove it from the list of overridden variables, so we can test
7051       # for unknown variables in the end.
7052       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7053 
7054       # Check if the provided tool contains a complete path.
7055       tool_specified="$FILE"
7056       tool_basename="${tool_specified##*/}"
7057       if test "x$tool_basename" = "x$tool_specified"; then
7058         # A command without a complete path is provided, search $PATH.
7059         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5
7060 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;}
7061         # Extract the first word of "$tool_basename", so it can be a program name with args.
7062 set dummy $tool_basename; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_path_FILE+:} false; then :
7066   $as_echo_n "(cached) " >&6
7067 else
7068   case $FILE in
7069   [\\/]* | ?:[\\/]*)
7070   ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
7071   ;;
7072   *)
7073   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078     for ac_exec_ext in '' $ac_executable_extensions; do
7079   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080     ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
7081     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085   done
7086 IFS=$as_save_IFS
7087 
7088   ;;
7089 esac
7090 fi
7091 FILE=$ac_cv_path_FILE
7092 if test -n "$FILE"; then
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
7094 $as_echo "$FILE" >&6; }
7095 else
7096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099 
7100 
7101         if test "x$FILE" = x; then
7102           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7103         fi
7104       else
7105         # Otherwise we believe it is a complete path. Use it as it is.
7106         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5
7107 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;}
7108         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5
7109 $as_echo_n "checking for FILE... " >&6; }
7110         if test ! -x "$tool_specified"; then
7111           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7112 $as_echo "not found" >&6; }
7113           as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5
7114         fi
7115         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7116 $as_echo "$tool_specified" >&6; }
7117       fi
7118     fi
7119   fi
7120 
7121 
7122 
7123   if test "x$FILE" = x; then
7124     as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5
7125   fi
7126 
7127 
7128 
7129 
7130 
7131   # Publish this variable in the help.
7132 
7133 
7134   if test "x$FIND" = x; then
7135     # The variable is not set by user, try to locate tool using the code snippet
7136     for ac_prog in find
7137 do
7138   # Extract the first word of "$ac_prog", so it can be a program name with args.
7139 set dummy $ac_prog; ac_word=$2
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7141 $as_echo_n "checking for $ac_word... " >&6; }
7142 if ${ac_cv_path_FIND+:} false; then :
7143   $as_echo_n "(cached) " >&6
7144 else
7145   case $FIND in
7146   [\\/]* | ?:[\\/]*)
7147   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7148   ;;
7149   *)
7150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153   IFS=$as_save_IFS
7154   test -z "$as_dir" && as_dir=.
7155     for ac_exec_ext in '' $ac_executable_extensions; do
7156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7157     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7159     break 2
7160   fi
7161 done
7162   done
7163 IFS=$as_save_IFS
7164 
7165   ;;
7166 esac
7167 fi
7168 FIND=$ac_cv_path_FIND
7169 if test -n "$FIND"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7171 $as_echo "$FIND" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176 
7177 
7178   test -n "$FIND" && break
7179 done
7180 
7181   else
7182     # The variable is set, but is it from the command line or the environment?
7183 
7184     # Try to remove the string !FIND! from our list.
7185     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/}
7186     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7187       # If it failed, the variable was not from the command line. Ignore it,
7188       # but warn the user (except for BASH, which is always set by the calling BASH).
7189       if test "xFIND" != xBASH; then
7190         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5
7191 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;}
7192       fi
7193       # Try to locate tool using the code snippet
7194       for ac_prog in find
7195 do
7196   # Extract the first word of "$ac_prog", so it can be a program name with args.
7197 set dummy $ac_prog; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if ${ac_cv_path_FIND+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   case $FIND in
7204   [\\/]* | ?:[\\/]*)
7205   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7206   ;;
7207   *)
7208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213     for ac_exec_ext in '' $ac_executable_extensions; do
7214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220   done
7221 IFS=$as_save_IFS
7222 
7223   ;;
7224 esac
7225 fi
7226 FIND=$ac_cv_path_FIND
7227 if test -n "$FIND"; then
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7229 $as_echo "$FIND" >&6; }
7230 else
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7233 fi
7234 
7235 
7236   test -n "$FIND" && break
7237 done
7238 
7239     else
7240       # If it succeeded, then it was overridden by the user. We will use it
7241       # for the tool.
7242 
7243       # First remove it from the list of overridden variables, so we can test
7244       # for unknown variables in the end.
7245       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7246 
7247       # Check if the provided tool contains a complete path.
7248       tool_specified="$FIND"
7249       tool_basename="${tool_specified##*/}"
7250       if test "x$tool_basename" = "x$tool_specified"; then
7251         # A command without a complete path is provided, search $PATH.
7252         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5
7253 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;}
7254         # Extract the first word of "$tool_basename", so it can be a program name with args.
7255 set dummy $tool_basename; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_path_FIND+:} false; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   case $FIND in
7262   [\\/]* | ?:[\\/]*)
7263   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
7264   ;;
7265   *)
7266   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 for as_dir in $PATH
7268 do
7269   IFS=$as_save_IFS
7270   test -z "$as_dir" && as_dir=.
7271     for ac_exec_ext in '' $ac_executable_extensions; do
7272   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
7274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275     break 2
7276   fi
7277 done
7278   done
7279 IFS=$as_save_IFS
7280 
7281   ;;
7282 esac
7283 fi
7284 FIND=$ac_cv_path_FIND
7285 if test -n "$FIND"; then
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
7287 $as_echo "$FIND" >&6; }
7288 else
7289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7291 fi
7292 
7293 
7294         if test "x$FIND" = x; then
7295           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7296         fi
7297       else
7298         # Otherwise we believe it is a complete path. Use it as it is.
7299         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5
7300 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;}
7301         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5
7302 $as_echo_n "checking for FIND... " >&6; }
7303         if test ! -x "$tool_specified"; then
7304           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7305 $as_echo "not found" >&6; }
7306           as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5
7307         fi
7308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7309 $as_echo "$tool_specified" >&6; }
7310       fi
7311     fi
7312   fi
7313 
7314 
7315 
7316   if test "x$FIND" = x; then
7317     as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5
7318   fi
7319 
7320 
7321 
7322 
7323 
7324   # Publish this variable in the help.
7325 
7326 
7327   if test "x$HEAD" = x; then
7328     # The variable is not set by user, try to locate tool using the code snippet
7329     for ac_prog in head
7330 do
7331   # Extract the first word of "$ac_prog", so it can be a program name with args.
7332 set dummy $ac_prog; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_path_HEAD+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   case $HEAD in
7339   [\\/]* | ?:[\\/]*)
7340   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7341   ;;
7342   *)
7343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7350     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357 
7358   ;;
7359 esac
7360 fi
7361 HEAD=$ac_cv_path_HEAD
7362 if test -n "$HEAD"; then
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7364 $as_echo "$HEAD" >&6; }
7365 else
7366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7368 fi
7369 
7370 
7371   test -n "$HEAD" && break
7372 done
7373 
7374   else
7375     # The variable is set, but is it from the command line or the environment?
7376 
7377     # Try to remove the string !HEAD! from our list.
7378     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/}
7379     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7380       # If it failed, the variable was not from the command line. Ignore it,
7381       # but warn the user (except for BASH, which is always set by the calling BASH).
7382       if test "xHEAD" != xBASH; then
7383         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5
7384 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;}
7385       fi
7386       # Try to locate tool using the code snippet
7387       for ac_prog in head
7388 do
7389   # Extract the first word of "$ac_prog", so it can be a program name with args.
7390 set dummy $ac_prog; ac_word=$2
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7392 $as_echo_n "checking for $ac_word... " >&6; }
7393 if ${ac_cv_path_HEAD+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   case $HEAD in
7397   [\\/]* | ?:[\\/]*)
7398   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7399   ;;
7400   *)
7401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406     for ac_exec_ext in '' $ac_executable_extensions; do
7407   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413   done
7414 IFS=$as_save_IFS
7415 
7416   ;;
7417 esac
7418 fi
7419 HEAD=$ac_cv_path_HEAD
7420 if test -n "$HEAD"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7422 $as_echo "$HEAD" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427 
7428 
7429   test -n "$HEAD" && break
7430 done
7431 
7432     else
7433       # If it succeeded, then it was overridden by the user. We will use it
7434       # for the tool.
7435 
7436       # First remove it from the list of overridden variables, so we can test
7437       # for unknown variables in the end.
7438       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7439 
7440       # Check if the provided tool contains a complete path.
7441       tool_specified="$HEAD"
7442       tool_basename="${tool_specified##*/}"
7443       if test "x$tool_basename" = "x$tool_specified"; then
7444         # A command without a complete path is provided, search $PATH.
7445         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5
7446 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;}
7447         # Extract the first word of "$tool_basename", so it can be a program name with args.
7448 set dummy $tool_basename; ac_word=$2
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7450 $as_echo_n "checking for $ac_word... " >&6; }
7451 if ${ac_cv_path_HEAD+:} false; then :
7452   $as_echo_n "(cached) " >&6
7453 else
7454   case $HEAD in
7455   [\\/]* | ?:[\\/]*)
7456   ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
7457   ;;
7458   *)
7459   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7460 for as_dir in $PATH
7461 do
7462   IFS=$as_save_IFS
7463   test -z "$as_dir" && as_dir=.
7464     for ac_exec_ext in '' $ac_executable_extensions; do
7465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7466     ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
7467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7468     break 2
7469   fi
7470 done
7471   done
7472 IFS=$as_save_IFS
7473 
7474   ;;
7475 esac
7476 fi
7477 HEAD=$ac_cv_path_HEAD
7478 if test -n "$HEAD"; then
7479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
7480 $as_echo "$HEAD" >&6; }
7481 else
7482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7483 $as_echo "no" >&6; }
7484 fi
7485 
7486 
7487         if test "x$HEAD" = x; then
7488           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7489         fi
7490       else
7491         # Otherwise we believe it is a complete path. Use it as it is.
7492         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5
7493 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;}
7494         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5
7495 $as_echo_n "checking for HEAD... " >&6; }
7496         if test ! -x "$tool_specified"; then
7497           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7498 $as_echo "not found" >&6; }
7499           as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5
7500         fi
7501         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7502 $as_echo "$tool_specified" >&6; }
7503       fi
7504     fi
7505   fi
7506 
7507 
7508 
7509   if test "x$HEAD" = x; then
7510     as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5
7511   fi
7512 
7513 
7514 
7515 
7516 
7517   # Publish this variable in the help.
7518 
7519 
7520   if test "x$LN" = x; then
7521     # The variable is not set by user, try to locate tool using the code snippet
7522     for ac_prog in ln
7523 do
7524   # Extract the first word of "$ac_prog", so it can be a program name with args.
7525 set dummy $ac_prog; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_path_LN+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   case $LN in
7532   [\\/]* | ?:[\\/]*)
7533   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7534   ;;
7535   *)
7536   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541     for ac_exec_ext in '' $ac_executable_extensions; do
7542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548   done
7549 IFS=$as_save_IFS
7550 
7551   ;;
7552 esac
7553 fi
7554 LN=$ac_cv_path_LN
7555 if test -n "$LN"; then
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7557 $as_echo "$LN" >&6; }
7558 else
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560 $as_echo "no" >&6; }
7561 fi
7562 
7563 
7564   test -n "$LN" && break
7565 done
7566 
7567   else
7568     # The variable is set, but is it from the command line or the environment?
7569 
7570     # Try to remove the string !LN! from our list.
7571     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/}
7572     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7573       # If it failed, the variable was not from the command line. Ignore it,
7574       # but warn the user (except for BASH, which is always set by the calling BASH).
7575       if test "xLN" != xBASH; then
7576         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5
7577 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;}
7578       fi
7579       # Try to locate tool using the code snippet
7580       for ac_prog in ln
7581 do
7582   # Extract the first word of "$ac_prog", so it can be a program name with args.
7583 set dummy $ac_prog; ac_word=$2
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7585 $as_echo_n "checking for $ac_word... " >&6; }
7586 if ${ac_cv_path_LN+:} false; then :
7587   $as_echo_n "(cached) " >&6
7588 else
7589   case $LN in
7590   [\\/]* | ?:[\\/]*)
7591   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7592   ;;
7593   *)
7594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597   IFS=$as_save_IFS
7598   test -z "$as_dir" && as_dir=.
7599     for ac_exec_ext in '' $ac_executable_extensions; do
7600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603     break 2
7604   fi
7605 done
7606   done
7607 IFS=$as_save_IFS
7608 
7609   ;;
7610 esac
7611 fi
7612 LN=$ac_cv_path_LN
7613 if test -n "$LN"; then
7614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7615 $as_echo "$LN" >&6; }
7616 else
7617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618 $as_echo "no" >&6; }
7619 fi
7620 
7621 
7622   test -n "$LN" && break
7623 done
7624 
7625     else
7626       # If it succeeded, then it was overridden by the user. We will use it
7627       # for the tool.
7628 
7629       # First remove it from the list of overridden variables, so we can test
7630       # for unknown variables in the end.
7631       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7632 
7633       # Check if the provided tool contains a complete path.
7634       tool_specified="$LN"
7635       tool_basename="${tool_specified##*/}"
7636       if test "x$tool_basename" = "x$tool_specified"; then
7637         # A command without a complete path is provided, search $PATH.
7638         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5
7639 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;}
7640         # Extract the first word of "$tool_basename", so it can be a program name with args.
7641 set dummy $tool_basename; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_path_LN+:} false; then :
7645   $as_echo_n "(cached) " >&6
7646 else
7647   case $LN in
7648   [\\/]* | ?:[\\/]*)
7649   ac_cv_path_LN="$LN" # Let the user override the test with a path.
7650   ;;
7651   *)
7652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7654 do
7655   IFS=$as_save_IFS
7656   test -z "$as_dir" && as_dir=.
7657     for ac_exec_ext in '' $ac_executable_extensions; do
7658   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
7660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661     break 2
7662   fi
7663 done
7664   done
7665 IFS=$as_save_IFS
7666 
7667   ;;
7668 esac
7669 fi
7670 LN=$ac_cv_path_LN
7671 if test -n "$LN"; then
7672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
7673 $as_echo "$LN" >&6; }
7674 else
7675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7676 $as_echo "no" >&6; }
7677 fi
7678 
7679 
7680         if test "x$LN" = x; then
7681           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7682         fi
7683       else
7684         # Otherwise we believe it is a complete path. Use it as it is.
7685         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5
7686 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;}
7687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5
7688 $as_echo_n "checking for LN... " >&6; }
7689         if test ! -x "$tool_specified"; then
7690           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7691 $as_echo "not found" >&6; }
7692           as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5
7693         fi
7694         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7695 $as_echo "$tool_specified" >&6; }
7696       fi
7697     fi
7698   fi
7699 
7700 
7701 
7702   if test "x$LN" = x; then
7703     as_fn_error $? "Could not find required tool for LN" "$LINENO" 5
7704   fi
7705 
7706 
7707 
7708 
7709 
7710   # Publish this variable in the help.
7711 
7712 
7713   if test "x$LS" = x; then
7714     # The variable is not set by user, try to locate tool using the code snippet
7715     for ac_prog in ls
7716 do
7717   # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy $ac_prog; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_path_LS+:} false; then :
7722   $as_echo_n "(cached) " >&6
7723 else
7724   case $LS in
7725   [\\/]* | ?:[\\/]*)
7726   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7727   ;;
7728   *)
7729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7731 do
7732   IFS=$as_save_IFS
7733   test -z "$as_dir" && as_dir=.
7734     for ac_exec_ext in '' $ac_executable_extensions; do
7735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738     break 2
7739   fi
7740 done
7741   done
7742 IFS=$as_save_IFS
7743 
7744   ;;
7745 esac
7746 fi
7747 LS=$ac_cv_path_LS
7748 if test -n "$LS"; then
7749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7750 $as_echo "$LS" >&6; }
7751 else
7752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755 
7756 
7757   test -n "$LS" && break
7758 done
7759 
7760   else
7761     # The variable is set, but is it from the command line or the environment?
7762 
7763     # Try to remove the string !LS! from our list.
7764     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/}
7765     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7766       # If it failed, the variable was not from the command line. Ignore it,
7767       # but warn the user (except for BASH, which is always set by the calling BASH).
7768       if test "xLS" != xBASH; then
7769         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5
7770 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;}
7771       fi
7772       # Try to locate tool using the code snippet
7773       for ac_prog in ls
7774 do
7775   # Extract the first word of "$ac_prog", so it can be a program name with args.
7776 set dummy $ac_prog; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if ${ac_cv_path_LS+:} false; then :
7780   $as_echo_n "(cached) " >&6
7781 else
7782   case $LS in
7783   [\\/]* | ?:[\\/]*)
7784   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7785   ;;
7786   *)
7787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 for as_dir in $PATH
7789 do
7790   IFS=$as_save_IFS
7791   test -z "$as_dir" && as_dir=.
7792     for ac_exec_ext in '' $ac_executable_extensions; do
7793   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7795     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7796     break 2
7797   fi
7798 done
7799   done
7800 IFS=$as_save_IFS
7801 
7802   ;;
7803 esac
7804 fi
7805 LS=$ac_cv_path_LS
7806 if test -n "$LS"; then
7807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7808 $as_echo "$LS" >&6; }
7809 else
7810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7811 $as_echo "no" >&6; }
7812 fi
7813 
7814 
7815   test -n "$LS" && break
7816 done
7817 
7818     else
7819       # If it succeeded, then it was overridden by the user. We will use it
7820       # for the tool.
7821 
7822       # First remove it from the list of overridden variables, so we can test
7823       # for unknown variables in the end.
7824       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
7825 
7826       # Check if the provided tool contains a complete path.
7827       tool_specified="$LS"
7828       tool_basename="${tool_specified##*/}"
7829       if test "x$tool_basename" = "x$tool_specified"; then
7830         # A command without a complete path is provided, search $PATH.
7831         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5
7832 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;}
7833         # Extract the first word of "$tool_basename", so it can be a program name with args.
7834 set dummy $tool_basename; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_path_LS+:} false; then :
7838   $as_echo_n "(cached) " >&6
7839 else
7840   case $LS in
7841   [\\/]* | ?:[\\/]*)
7842   ac_cv_path_LS="$LS" # Let the user override the test with a path.
7843   ;;
7844   *)
7845   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 for as_dir in $PATH
7847 do
7848   IFS=$as_save_IFS
7849   test -z "$as_dir" && as_dir=.
7850     for ac_exec_ext in '' $ac_executable_extensions; do
7851   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7852     ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
7853     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7854     break 2
7855   fi
7856 done
7857   done
7858 IFS=$as_save_IFS
7859 
7860   ;;
7861 esac
7862 fi
7863 LS=$ac_cv_path_LS
7864 if test -n "$LS"; then
7865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
7866 $as_echo "$LS" >&6; }
7867 else
7868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7870 fi
7871 
7872 
7873         if test "x$LS" = x; then
7874           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
7875         fi
7876       else
7877         # Otherwise we believe it is a complete path. Use it as it is.
7878         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5
7879 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;}
7880         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5
7881 $as_echo_n "checking for LS... " >&6; }
7882         if test ! -x "$tool_specified"; then
7883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7884 $as_echo "not found" >&6; }
7885           as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5
7886         fi
7887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
7888 $as_echo "$tool_specified" >&6; }
7889       fi
7890     fi
7891   fi
7892 
7893 
7894 
7895   if test "x$LS" = x; then
7896     as_fn_error $? "Could not find required tool for LS" "$LINENO" 5
7897   fi
7898 
7899 
7900 
7901 
7902 
7903   # Publish this variable in the help.
7904 
7905 
7906   if test "x$MKDIR" = x; then
7907     # The variable is not set by user, try to locate tool using the code snippet
7908     for ac_prog in mkdir
7909 do
7910   # Extract the first word of "$ac_prog", so it can be a program name with args.
7911 set dummy $ac_prog; ac_word=$2
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913 $as_echo_n "checking for $ac_word... " >&6; }
7914 if ${ac_cv_path_MKDIR+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   case $MKDIR in
7918   [\\/]* | ?:[\\/]*)
7919   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7920   ;;
7921   *)
7922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923 for as_dir in $PATH
7924 do
7925   IFS=$as_save_IFS
7926   test -z "$as_dir" && as_dir=.
7927     for ac_exec_ext in '' $ac_executable_extensions; do
7928   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931     break 2
7932   fi
7933 done
7934   done
7935 IFS=$as_save_IFS
7936 
7937   ;;
7938 esac
7939 fi
7940 MKDIR=$ac_cv_path_MKDIR
7941 if test -n "$MKDIR"; then
7942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
7943 $as_echo "$MKDIR" >&6; }
7944 else
7945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 fi
7948 
7949 
7950   test -n "$MKDIR" && break
7951 done
7952 
7953   else
7954     # The variable is set, but is it from the command line or the environment?
7955 
7956     # Try to remove the string !MKDIR! from our list.
7957     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/}
7958     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
7959       # If it failed, the variable was not from the command line. Ignore it,
7960       # but warn the user (except for BASH, which is always set by the calling BASH).
7961       if test "xMKDIR" != xBASH; then
7962         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5
7963 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;}
7964       fi
7965       # Try to locate tool using the code snippet
7966       for ac_prog in mkdir
7967 do
7968   # Extract the first word of "$ac_prog", so it can be a program name with args.
7969 set dummy $ac_prog; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_path_MKDIR+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   case $MKDIR in
7976   [\\/]* | ?:[\\/]*)
7977   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
7978   ;;
7979   *)
7980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985     for ac_exec_ext in '' $ac_executable_extensions; do
7986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
7988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989     break 2
7990   fi
7991 done
7992   done
7993 IFS=$as_save_IFS
7994 
7995   ;;
7996 esac
7997 fi
7998 MKDIR=$ac_cv_path_MKDIR
7999 if test -n "$MKDIR"; then
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8001 $as_echo "$MKDIR" >&6; }
8002 else
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8005 fi
8006 
8007 
8008   test -n "$MKDIR" && break
8009 done
8010 
8011     else
8012       # If it succeeded, then it was overridden by the user. We will use it
8013       # for the tool.
8014 
8015       # First remove it from the list of overridden variables, so we can test
8016       # for unknown variables in the end.
8017       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8018 
8019       # Check if the provided tool contains a complete path.
8020       tool_specified="$MKDIR"
8021       tool_basename="${tool_specified##*/}"
8022       if test "x$tool_basename" = "x$tool_specified"; then
8023         # A command without a complete path is provided, search $PATH.
8024         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5
8025 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;}
8026         # Extract the first word of "$tool_basename", so it can be a program name with args.
8027 set dummy $tool_basename; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if ${ac_cv_path_MKDIR+:} false; then :
8031   $as_echo_n "(cached) " >&6
8032 else
8033   case $MKDIR in
8034   [\\/]* | ?:[\\/]*)
8035   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
8036   ;;
8037   *)
8038   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 for as_dir in $PATH
8040 do
8041   IFS=$as_save_IFS
8042   test -z "$as_dir" && as_dir=.
8043     for ac_exec_ext in '' $ac_executable_extensions; do
8044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8045     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
8046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8047     break 2
8048   fi
8049 done
8050   done
8051 IFS=$as_save_IFS
8052 
8053   ;;
8054 esac
8055 fi
8056 MKDIR=$ac_cv_path_MKDIR
8057 if test -n "$MKDIR"; then
8058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
8059 $as_echo "$MKDIR" >&6; }
8060 else
8061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8063 fi
8064 
8065 
8066         if test "x$MKDIR" = x; then
8067           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8068         fi
8069       else
8070         # Otherwise we believe it is a complete path. Use it as it is.
8071         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5
8072 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;}
8073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5
8074 $as_echo_n "checking for MKDIR... " >&6; }
8075         if test ! -x "$tool_specified"; then
8076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8077 $as_echo "not found" >&6; }
8078           as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5
8079         fi
8080         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8081 $as_echo "$tool_specified" >&6; }
8082       fi
8083     fi
8084   fi
8085 
8086 
8087 
8088   if test "x$MKDIR" = x; then
8089     as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5
8090   fi
8091 
8092 
8093 
8094 
8095 
8096   # Publish this variable in the help.
8097 
8098 
8099   if test "x$MKTEMP" = x; then
8100     # The variable is not set by user, try to locate tool using the code snippet
8101     for ac_prog in mktemp
8102 do
8103   # Extract the first word of "$ac_prog", so it can be a program name with args.
8104 set dummy $ac_prog; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if ${ac_cv_path_MKTEMP+:} false; then :
8108   $as_echo_n "(cached) " >&6
8109 else
8110   case $MKTEMP in
8111   [\\/]* | ?:[\\/]*)
8112   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8113   ;;
8114   *)
8115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120     for ac_exec_ext in '' $ac_executable_extensions; do
8121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127   done
8128 IFS=$as_save_IFS
8129 
8130   ;;
8131 esac
8132 fi
8133 MKTEMP=$ac_cv_path_MKTEMP
8134 if test -n "$MKTEMP"; then
8135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8136 $as_echo "$MKTEMP" >&6; }
8137 else
8138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8140 fi
8141 
8142 
8143   test -n "$MKTEMP" && break
8144 done
8145 
8146   else
8147     # The variable is set, but is it from the command line or the environment?
8148 
8149     # Try to remove the string !MKTEMP! from our list.
8150     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/}
8151     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8152       # If it failed, the variable was not from the command line. Ignore it,
8153       # but warn the user (except for BASH, which is always set by the calling BASH).
8154       if test "xMKTEMP" != xBASH; then
8155         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5
8156 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;}
8157       fi
8158       # Try to locate tool using the code snippet
8159       for ac_prog in mktemp
8160 do
8161   # Extract the first word of "$ac_prog", so it can be a program name with args.
8162 set dummy $ac_prog; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_path_MKTEMP+:} false; then :
8166   $as_echo_n "(cached) " >&6
8167 else
8168   case $MKTEMP in
8169   [\\/]* | ?:[\\/]*)
8170   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8171   ;;
8172   *)
8173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in $PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178     for ac_exec_ext in '' $ac_executable_extensions; do
8179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8180     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182     break 2
8183   fi
8184 done
8185   done
8186 IFS=$as_save_IFS
8187 
8188   ;;
8189 esac
8190 fi
8191 MKTEMP=$ac_cv_path_MKTEMP
8192 if test -n "$MKTEMP"; then
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8194 $as_echo "$MKTEMP" >&6; }
8195 else
8196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8198 fi
8199 
8200 
8201   test -n "$MKTEMP" && break
8202 done
8203 
8204     else
8205       # If it succeeded, then it was overridden by the user. We will use it
8206       # for the tool.
8207 
8208       # First remove it from the list of overridden variables, so we can test
8209       # for unknown variables in the end.
8210       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8211 
8212       # Check if the provided tool contains a complete path.
8213       tool_specified="$MKTEMP"
8214       tool_basename="${tool_specified##*/}"
8215       if test "x$tool_basename" = "x$tool_specified"; then
8216         # A command without a complete path is provided, search $PATH.
8217         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5
8218 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;}
8219         # Extract the first word of "$tool_basename", so it can be a program name with args.
8220 set dummy $tool_basename; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_path_MKTEMP+:} false; then :
8224   $as_echo_n "(cached) " >&6
8225 else
8226   case $MKTEMP in
8227   [\\/]* | ?:[\\/]*)
8228   ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path.
8229   ;;
8230   *)
8231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234   IFS=$as_save_IFS
8235   test -z "$as_dir" && as_dir=.
8236     for ac_exec_ext in '' $ac_executable_extensions; do
8237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238     ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext"
8239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240     break 2
8241   fi
8242 done
8243   done
8244 IFS=$as_save_IFS
8245 
8246   ;;
8247 esac
8248 fi
8249 MKTEMP=$ac_cv_path_MKTEMP
8250 if test -n "$MKTEMP"; then
8251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5
8252 $as_echo "$MKTEMP" >&6; }
8253 else
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8256 fi
8257 
8258 
8259         if test "x$MKTEMP" = x; then
8260           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8261         fi
8262       else
8263         # Otherwise we believe it is a complete path. Use it as it is.
8264         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5
8265 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;}
8266         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5
8267 $as_echo_n "checking for MKTEMP... " >&6; }
8268         if test ! -x "$tool_specified"; then
8269           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8270 $as_echo "not found" >&6; }
8271           as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5
8272         fi
8273         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8274 $as_echo "$tool_specified" >&6; }
8275       fi
8276     fi
8277   fi
8278 
8279 
8280 
8281   if test "x$MKTEMP" = x; then
8282     as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5
8283   fi
8284 
8285 
8286 
8287 
8288 
8289   # Publish this variable in the help.
8290 
8291 
8292   if test "x$MV" = x; then
8293     # The variable is not set by user, try to locate tool using the code snippet
8294     for ac_prog in mv
8295 do
8296   # Extract the first word of "$ac_prog", so it can be a program name with args.
8297 set dummy $ac_prog; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_path_MV+:} false; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   case $MV in
8304   [\\/]* | ?:[\\/]*)
8305   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8306   ;;
8307   *)
8308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8309 for as_dir in $PATH
8310 do
8311   IFS=$as_save_IFS
8312   test -z "$as_dir" && as_dir=.
8313     for ac_exec_ext in '' $ac_executable_extensions; do
8314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8315     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8317     break 2
8318   fi
8319 done
8320   done
8321 IFS=$as_save_IFS
8322 
8323   ;;
8324 esac
8325 fi
8326 MV=$ac_cv_path_MV
8327 if test -n "$MV"; then
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8329 $as_echo "$MV" >&6; }
8330 else
8331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8332 $as_echo "no" >&6; }
8333 fi
8334 
8335 
8336   test -n "$MV" && break
8337 done
8338 
8339   else
8340     # The variable is set, but is it from the command line or the environment?
8341 
8342     # Try to remove the string !MV! from our list.
8343     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/}
8344     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8345       # If it failed, the variable was not from the command line. Ignore it,
8346       # but warn the user (except for BASH, which is always set by the calling BASH).
8347       if test "xMV" != xBASH; then
8348         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5
8349 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;}
8350       fi
8351       # Try to locate tool using the code snippet
8352       for ac_prog in mv
8353 do
8354   # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if ${ac_cv_path_MV+:} false; then :
8359   $as_echo_n "(cached) " >&6
8360 else
8361   case $MV in
8362   [\\/]* | ?:[\\/]*)
8363   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8364   ;;
8365   *)
8366   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 for as_dir in $PATH
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371     for ac_exec_ext in '' $ac_executable_extensions; do
8372   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8373     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8374     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378   done
8379 IFS=$as_save_IFS
8380 
8381   ;;
8382 esac
8383 fi
8384 MV=$ac_cv_path_MV
8385 if test -n "$MV"; then
8386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8387 $as_echo "$MV" >&6; }
8388 else
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8391 fi
8392 
8393 
8394   test -n "$MV" && break
8395 done
8396 
8397     else
8398       # If it succeeded, then it was overridden by the user. We will use it
8399       # for the tool.
8400 
8401       # First remove it from the list of overridden variables, so we can test
8402       # for unknown variables in the end.
8403       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8404 
8405       # Check if the provided tool contains a complete path.
8406       tool_specified="$MV"
8407       tool_basename="${tool_specified##*/}"
8408       if test "x$tool_basename" = "x$tool_specified"; then
8409         # A command without a complete path is provided, search $PATH.
8410         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5
8411 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;}
8412         # Extract the first word of "$tool_basename", so it can be a program name with args.
8413 set dummy $tool_basename; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if ${ac_cv_path_MV+:} false; then :
8417   $as_echo_n "(cached) " >&6
8418 else
8419   case $MV in
8420   [\\/]* | ?:[\\/]*)
8421   ac_cv_path_MV="$MV" # Let the user override the test with a path.
8422   ;;
8423   *)
8424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427   IFS=$as_save_IFS
8428   test -z "$as_dir" && as_dir=.
8429     for ac_exec_ext in '' $ac_executable_extensions; do
8430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
8432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433     break 2
8434   fi
8435 done
8436   done
8437 IFS=$as_save_IFS
8438 
8439   ;;
8440 esac
8441 fi
8442 MV=$ac_cv_path_MV
8443 if test -n "$MV"; then
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
8445 $as_echo "$MV" >&6; }
8446 else
8447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448 $as_echo "no" >&6; }
8449 fi
8450 
8451 
8452         if test "x$MV" = x; then
8453           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8454         fi
8455       else
8456         # Otherwise we believe it is a complete path. Use it as it is.
8457         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5
8458 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;}
8459         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5
8460 $as_echo_n "checking for MV... " >&6; }
8461         if test ! -x "$tool_specified"; then
8462           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8463 $as_echo "not found" >&6; }
8464           as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5
8465         fi
8466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8467 $as_echo "$tool_specified" >&6; }
8468       fi
8469     fi
8470   fi
8471 
8472 
8473 
8474   if test "x$MV" = x; then
8475     as_fn_error $? "Could not find required tool for MV" "$LINENO" 5
8476   fi
8477 
8478 
8479 
8480 
8481 
8482   # Publish this variable in the help.
8483 
8484 
8485   if test "x$NAWK" = x; then
8486     # The variable is not set by user, try to locate tool using the code snippet
8487     for ac_prog in nawk gawk awk
8488 do
8489   # Extract the first word of "$ac_prog", so it can be a program name with args.
8490 set dummy $ac_prog; ac_word=$2
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492 $as_echo_n "checking for $ac_word... " >&6; }
8493 if ${ac_cv_path_NAWK+:} false; then :
8494   $as_echo_n "(cached) " >&6
8495 else
8496   case $NAWK in
8497   [\\/]* | ?:[\\/]*)
8498   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8499   ;;
8500   *)
8501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8502 for as_dir in $PATH
8503 do
8504   IFS=$as_save_IFS
8505   test -z "$as_dir" && as_dir=.
8506     for ac_exec_ext in '' $ac_executable_extensions; do
8507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8508     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510     break 2
8511   fi
8512 done
8513   done
8514 IFS=$as_save_IFS
8515 
8516   ;;
8517 esac
8518 fi
8519 NAWK=$ac_cv_path_NAWK
8520 if test -n "$NAWK"; then
8521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8522 $as_echo "$NAWK" >&6; }
8523 else
8524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8525 $as_echo "no" >&6; }
8526 fi
8527 
8528 
8529   test -n "$NAWK" && break
8530 done
8531 
8532   else
8533     # The variable is set, but is it from the command line or the environment?
8534 
8535     # Try to remove the string !NAWK! from our list.
8536     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/}
8537     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8538       # If it failed, the variable was not from the command line. Ignore it,
8539       # but warn the user (except for BASH, which is always set by the calling BASH).
8540       if test "xNAWK" != xBASH; then
8541         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5
8542 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;}
8543       fi
8544       # Try to locate tool using the code snippet
8545       for ac_prog in nawk gawk awk
8546 do
8547   # Extract the first word of "$ac_prog", so it can be a program name with args.
8548 set dummy $ac_prog; ac_word=$2
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8550 $as_echo_n "checking for $ac_word... " >&6; }
8551 if ${ac_cv_path_NAWK+:} false; then :
8552   $as_echo_n "(cached) " >&6
8553 else
8554   case $NAWK in
8555   [\\/]* | ?:[\\/]*)
8556   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8557   ;;
8558   *)
8559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8561 do
8562   IFS=$as_save_IFS
8563   test -z "$as_dir" && as_dir=.
8564     for ac_exec_ext in '' $ac_executable_extensions; do
8565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8566     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568     break 2
8569   fi
8570 done
8571   done
8572 IFS=$as_save_IFS
8573 
8574   ;;
8575 esac
8576 fi
8577 NAWK=$ac_cv_path_NAWK
8578 if test -n "$NAWK"; then
8579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8580 $as_echo "$NAWK" >&6; }
8581 else
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583 $as_echo "no" >&6; }
8584 fi
8585 
8586 
8587   test -n "$NAWK" && break
8588 done
8589 
8590     else
8591       # If it succeeded, then it was overridden by the user. We will use it
8592       # for the tool.
8593 
8594       # First remove it from the list of overridden variables, so we can test
8595       # for unknown variables in the end.
8596       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8597 
8598       # Check if the provided tool contains a complete path.
8599       tool_specified="$NAWK"
8600       tool_basename="${tool_specified##*/}"
8601       if test "x$tool_basename" = "x$tool_specified"; then
8602         # A command without a complete path is provided, search $PATH.
8603         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5
8604 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;}
8605         # Extract the first word of "$tool_basename", so it can be a program name with args.
8606 set dummy $tool_basename; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_path_NAWK+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   case $NAWK in
8613   [\\/]* | ?:[\\/]*)
8614   ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
8615   ;;
8616   *)
8617   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618 for as_dir in $PATH
8619 do
8620   IFS=$as_save_IFS
8621   test -z "$as_dir" && as_dir=.
8622     for ac_exec_ext in '' $ac_executable_extensions; do
8623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8624     ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
8625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626     break 2
8627   fi
8628 done
8629   done
8630 IFS=$as_save_IFS
8631 
8632   ;;
8633 esac
8634 fi
8635 NAWK=$ac_cv_path_NAWK
8636 if test -n "$NAWK"; then
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
8638 $as_echo "$NAWK" >&6; }
8639 else
8640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641 $as_echo "no" >&6; }
8642 fi
8643 
8644 
8645         if test "x$NAWK" = x; then
8646           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8647         fi
8648       else
8649         # Otherwise we believe it is a complete path. Use it as it is.
8650         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5
8651 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;}
8652         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5
8653 $as_echo_n "checking for NAWK... " >&6; }
8654         if test ! -x "$tool_specified"; then
8655           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8656 $as_echo "not found" >&6; }
8657           as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5
8658         fi
8659         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8660 $as_echo "$tool_specified" >&6; }
8661       fi
8662     fi
8663   fi
8664 
8665 
8666 
8667   if test "x$NAWK" = x; then
8668     as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5
8669   fi
8670 
8671 
8672 
8673 
8674 
8675   # Publish this variable in the help.
8676 
8677 
8678   if test "x$PRINTF" = x; then
8679     # The variable is not set by user, try to locate tool using the code snippet
8680     for ac_prog in printf
8681 do
8682   # Extract the first word of "$ac_prog", so it can be a program name with args.
8683 set dummy $ac_prog; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_path_PRINTF+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   case $PRINTF in
8690   [\\/]* | ?:[\\/]*)
8691   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8692   ;;
8693   *)
8694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697   IFS=$as_save_IFS
8698   test -z "$as_dir" && as_dir=.
8699     for ac_exec_ext in '' $ac_executable_extensions; do
8700   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703     break 2
8704   fi
8705 done
8706   done
8707 IFS=$as_save_IFS
8708 
8709   ;;
8710 esac
8711 fi
8712 PRINTF=$ac_cv_path_PRINTF
8713 if test -n "$PRINTF"; then
8714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8715 $as_echo "$PRINTF" >&6; }
8716 else
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8719 fi
8720 
8721 
8722   test -n "$PRINTF" && break
8723 done
8724 
8725   else
8726     # The variable is set, but is it from the command line or the environment?
8727 
8728     # Try to remove the string !PRINTF! from our list.
8729     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/}
8730     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8731       # If it failed, the variable was not from the command line. Ignore it,
8732       # but warn the user (except for BASH, which is always set by the calling BASH).
8733       if test "xPRINTF" != xBASH; then
8734         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5
8735 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;}
8736       fi
8737       # Try to locate tool using the code snippet
8738       for ac_prog in printf
8739 do
8740   # Extract the first word of "$ac_prog", so it can be a program name with args.
8741 set dummy $ac_prog; ac_word=$2
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743 $as_echo_n "checking for $ac_word... " >&6; }
8744 if ${ac_cv_path_PRINTF+:} false; then :
8745   $as_echo_n "(cached) " >&6
8746 else
8747   case $PRINTF in
8748   [\\/]* | ?:[\\/]*)
8749   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8750   ;;
8751   *)
8752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8754 do
8755   IFS=$as_save_IFS
8756   test -z "$as_dir" && as_dir=.
8757     for ac_exec_ext in '' $ac_executable_extensions; do
8758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761     break 2
8762   fi
8763 done
8764   done
8765 IFS=$as_save_IFS
8766 
8767   ;;
8768 esac
8769 fi
8770 PRINTF=$ac_cv_path_PRINTF
8771 if test -n "$PRINTF"; then
8772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8773 $as_echo "$PRINTF" >&6; }
8774 else
8775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8776 $as_echo "no" >&6; }
8777 fi
8778 
8779 
8780   test -n "$PRINTF" && break
8781 done
8782 
8783     else
8784       # If it succeeded, then it was overridden by the user. We will use it
8785       # for the tool.
8786 
8787       # First remove it from the list of overridden variables, so we can test
8788       # for unknown variables in the end.
8789       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8790 
8791       # Check if the provided tool contains a complete path.
8792       tool_specified="$PRINTF"
8793       tool_basename="${tool_specified##*/}"
8794       if test "x$tool_basename" = "x$tool_specified"; then
8795         # A command without a complete path is provided, search $PATH.
8796         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5
8797 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;}
8798         # Extract the first word of "$tool_basename", so it can be a program name with args.
8799 set dummy $tool_basename; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if ${ac_cv_path_PRINTF+:} false; then :
8803   $as_echo_n "(cached) " >&6
8804 else
8805   case $PRINTF in
8806   [\\/]* | ?:[\\/]*)
8807   ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
8808   ;;
8809   *)
8810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in $PATH
8812 do
8813   IFS=$as_save_IFS
8814   test -z "$as_dir" && as_dir=.
8815     for ac_exec_ext in '' $ac_executable_extensions; do
8816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8817     ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
8818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819     break 2
8820   fi
8821 done
8822   done
8823 IFS=$as_save_IFS
8824 
8825   ;;
8826 esac
8827 fi
8828 PRINTF=$ac_cv_path_PRINTF
8829 if test -n "$PRINTF"; then
8830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
8831 $as_echo "$PRINTF" >&6; }
8832 else
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8835 fi
8836 
8837 
8838         if test "x$PRINTF" = x; then
8839           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
8840         fi
8841       else
8842         # Otherwise we believe it is a complete path. Use it as it is.
8843         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5
8844 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;}
8845         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5
8846 $as_echo_n "checking for PRINTF... " >&6; }
8847         if test ! -x "$tool_specified"; then
8848           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
8849 $as_echo "not found" >&6; }
8850           as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5
8851         fi
8852         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
8853 $as_echo "$tool_specified" >&6; }
8854       fi
8855     fi
8856   fi
8857 
8858 
8859 
8860   if test "x$PRINTF" = x; then
8861     as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5
8862   fi
8863 
8864 
8865 
8866 
8867 
8868   # Publish this variable in the help.
8869 
8870 
8871   if test "x$RM" = x; then
8872     # The variable is not set by user, try to locate tool using the code snippet
8873     for ac_prog in rm
8874 do
8875   # Extract the first word of "$ac_prog", so it can be a program name with args.
8876 set dummy $ac_prog; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if ${ac_cv_path_RM+:} false; then :
8880   $as_echo_n "(cached) " >&6
8881 else
8882   case $RM in
8883   [\\/]* | ?:[\\/]*)
8884   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8885   ;;
8886   *)
8887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in $PATH
8889 do
8890   IFS=$as_save_IFS
8891   test -z "$as_dir" && as_dir=.
8892     for ac_exec_ext in '' $ac_executable_extensions; do
8893   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8894     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896     break 2
8897   fi
8898 done
8899   done
8900 IFS=$as_save_IFS
8901 
8902   ;;
8903 esac
8904 fi
8905 RM=$ac_cv_path_RM
8906 if test -n "$RM"; then
8907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8908 $as_echo "$RM" >&6; }
8909 else
8910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8912 fi
8913 
8914 
8915   test -n "$RM" && break
8916 done
8917 
8918   else
8919     # The variable is set, but is it from the command line or the environment?
8920 
8921     # Try to remove the string !RM! from our list.
8922     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/}
8923     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
8924       # If it failed, the variable was not from the command line. Ignore it,
8925       # but warn the user (except for BASH, which is always set by the calling BASH).
8926       if test "xRM" != xBASH; then
8927         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5
8928 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;}
8929       fi
8930       # Try to locate tool using the code snippet
8931       for ac_prog in rm
8932 do
8933   # Extract the first word of "$ac_prog", so it can be a program name with args.
8934 set dummy $ac_prog; ac_word=$2
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936 $as_echo_n "checking for $ac_word... " >&6; }
8937 if ${ac_cv_path_RM+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   case $RM in
8941   [\\/]* | ?:[\\/]*)
8942   ac_cv_path_RM="$RM" # Let the user override the test with a path.
8943   ;;
8944   *)
8945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946 for as_dir in $PATH
8947 do
8948   IFS=$as_save_IFS
8949   test -z "$as_dir" && as_dir=.
8950     for ac_exec_ext in '' $ac_executable_extensions; do
8951   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8952     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
8953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8954     break 2
8955   fi
8956 done
8957   done
8958 IFS=$as_save_IFS
8959 
8960   ;;
8961 esac
8962 fi
8963 RM=$ac_cv_path_RM
8964 if test -n "$RM"; then
8965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
8966 $as_echo "$RM" >&6; }
8967 else
8968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8970 fi
8971 
8972 
8973   test -n "$RM" && break
8974 done
8975 
8976     else
8977       # If it succeeded, then it was overridden by the user. We will use it
8978       # for the tool.
8979 
8980       # First remove it from the list of overridden variables, so we can test
8981       # for unknown variables in the end.
8982       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
8983 
8984       # Check if the provided tool contains a complete path.
8985       tool_specified="$RM"
8986       tool_basename="${tool_specified##*/}"
8987       if test "x$tool_basename" = "x$tool_specified"; then
8988         # A command without a complete path is provided, search $PATH.
8989         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5
8990 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;}
8991         # Extract the first word of "$tool_basename", so it can be a program name with args.
8992 set dummy $tool_basename; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if ${ac_cv_path_RM+:} false; then :
8996   $as_echo_n "(cached) " >&6
8997 else
8998   case $RM in
8999   [\\/]* | ?:[\\/]*)
9000   ac_cv_path_RM="$RM" # Let the user override the test with a path.
9001   ;;
9002   *)
9003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9004 for as_dir in $PATH
9005 do
9006   IFS=$as_save_IFS
9007   test -z "$as_dir" && as_dir=.
9008     for ac_exec_ext in '' $ac_executable_extensions; do
9009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9010     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9012     break 2
9013   fi
9014 done
9015   done
9016 IFS=$as_save_IFS
9017 
9018   ;;
9019 esac
9020 fi
9021 RM=$ac_cv_path_RM
9022 if test -n "$RM"; then
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9024 $as_echo "$RM" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029 
9030 
9031         if test "x$RM" = x; then
9032           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9033         fi
9034       else
9035         # Otherwise we believe it is a complete path. Use it as it is.
9036         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5
9037 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;}
9038         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5
9039 $as_echo_n "checking for RM... " >&6; }
9040         if test ! -x "$tool_specified"; then
9041           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9042 $as_echo "not found" >&6; }
9043           as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5
9044         fi
9045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9046 $as_echo "$tool_specified" >&6; }
9047       fi
9048     fi
9049   fi
9050 
9051 
9052 
9053   if test "x$RM" = x; then
9054     as_fn_error $? "Could not find required tool for RM" "$LINENO" 5
9055   fi
9056 
9057 
9058 
9059 
9060 
9061   # Publish this variable in the help.
9062 
9063 
9064   if test "x$SH" = x; then
9065     # The variable is not set by user, try to locate tool using the code snippet
9066     for ac_prog in sh
9067 do
9068   # Extract the first word of "$ac_prog", so it can be a program name with args.
9069 set dummy $ac_prog; ac_word=$2
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071 $as_echo_n "checking for $ac_word... " >&6; }
9072 if ${ac_cv_path_SH+:} false; then :
9073   $as_echo_n "(cached) " >&6
9074 else
9075   case $SH in
9076   [\\/]* | ?:[\\/]*)
9077   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9078   ;;
9079   *)
9080   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 for as_dir in $PATH
9082 do
9083   IFS=$as_save_IFS
9084   test -z "$as_dir" && as_dir=.
9085     for ac_exec_ext in '' $ac_executable_extensions; do
9086   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9087     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9088     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089     break 2
9090   fi
9091 done
9092   done
9093 IFS=$as_save_IFS
9094 
9095   ;;
9096 esac
9097 fi
9098 SH=$ac_cv_path_SH
9099 if test -n "$SH"; then
9100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9101 $as_echo "$SH" >&6; }
9102 else
9103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104 $as_echo "no" >&6; }
9105 fi
9106 
9107 
9108   test -n "$SH" && break
9109 done
9110 
9111   else
9112     # The variable is set, but is it from the command line or the environment?
9113 
9114     # Try to remove the string !SH! from our list.
9115     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/}
9116     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9117       # If it failed, the variable was not from the command line. Ignore it,
9118       # but warn the user (except for BASH, which is always set by the calling BASH).
9119       if test "xSH" != xBASH; then
9120         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5
9121 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;}
9122       fi
9123       # Try to locate tool using the code snippet
9124       for ac_prog in sh
9125 do
9126   # Extract the first word of "$ac_prog", so it can be a program name with args.
9127 set dummy $ac_prog; ac_word=$2
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129 $as_echo_n "checking for $ac_word... " >&6; }
9130 if ${ac_cv_path_SH+:} false; then :
9131   $as_echo_n "(cached) " >&6
9132 else
9133   case $SH in
9134   [\\/]* | ?:[\\/]*)
9135   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9136   ;;
9137   *)
9138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9139 for as_dir in $PATH
9140 do
9141   IFS=$as_save_IFS
9142   test -z "$as_dir" && as_dir=.
9143     for ac_exec_ext in '' $ac_executable_extensions; do
9144   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9145     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9147     break 2
9148   fi
9149 done
9150   done
9151 IFS=$as_save_IFS
9152 
9153   ;;
9154 esac
9155 fi
9156 SH=$ac_cv_path_SH
9157 if test -n "$SH"; then
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9159 $as_echo "$SH" >&6; }
9160 else
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9163 fi
9164 
9165 
9166   test -n "$SH" && break
9167 done
9168 
9169     else
9170       # If it succeeded, then it was overridden by the user. We will use it
9171       # for the tool.
9172 
9173       # First remove it from the list of overridden variables, so we can test
9174       # for unknown variables in the end.
9175       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9176 
9177       # Check if the provided tool contains a complete path.
9178       tool_specified="$SH"
9179       tool_basename="${tool_specified##*/}"
9180       if test "x$tool_basename" = "x$tool_specified"; then
9181         # A command without a complete path is provided, search $PATH.
9182         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5
9183 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;}
9184         # Extract the first word of "$tool_basename", so it can be a program name with args.
9185 set dummy $tool_basename; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if ${ac_cv_path_SH+:} false; then :
9189   $as_echo_n "(cached) " >&6
9190 else
9191   case $SH in
9192   [\\/]* | ?:[\\/]*)
9193   ac_cv_path_SH="$SH" # Let the user override the test with a path.
9194   ;;
9195   *)
9196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9198 do
9199   IFS=$as_save_IFS
9200   test -z "$as_dir" && as_dir=.
9201     for ac_exec_ext in '' $ac_executable_extensions; do
9202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203     ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
9204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205     break 2
9206   fi
9207 done
9208   done
9209 IFS=$as_save_IFS
9210 
9211   ;;
9212 esac
9213 fi
9214 SH=$ac_cv_path_SH
9215 if test -n "$SH"; then
9216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
9217 $as_echo "$SH" >&6; }
9218 else
9219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9221 fi
9222 
9223 
9224         if test "x$SH" = x; then
9225           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9226         fi
9227       else
9228         # Otherwise we believe it is a complete path. Use it as it is.
9229         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5
9230 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;}
9231         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5
9232 $as_echo_n "checking for SH... " >&6; }
9233         if test ! -x "$tool_specified"; then
9234           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9235 $as_echo "not found" >&6; }
9236           as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5
9237         fi
9238         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9239 $as_echo "$tool_specified" >&6; }
9240       fi
9241     fi
9242   fi
9243 
9244 
9245 
9246   if test "x$SH" = x; then
9247     as_fn_error $? "Could not find required tool for SH" "$LINENO" 5
9248   fi
9249 
9250 
9251 
9252 
9253 
9254   # Publish this variable in the help.
9255 
9256 
9257   if test "x$SORT" = x; then
9258     # The variable is not set by user, try to locate tool using the code snippet
9259     for ac_prog in sort
9260 do
9261   # Extract the first word of "$ac_prog", so it can be a program name with args.
9262 set dummy $ac_prog; ac_word=$2
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264 $as_echo_n "checking for $ac_word... " >&6; }
9265 if ${ac_cv_path_SORT+:} false; then :
9266   $as_echo_n "(cached) " >&6
9267 else
9268   case $SORT in
9269   [\\/]* | ?:[\\/]*)
9270   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9271   ;;
9272   *)
9273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9274 for as_dir in $PATH
9275 do
9276   IFS=$as_save_IFS
9277   test -z "$as_dir" && as_dir=.
9278     for ac_exec_ext in '' $ac_executable_extensions; do
9279   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9280     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9281     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9282     break 2
9283   fi
9284 done
9285   done
9286 IFS=$as_save_IFS
9287 
9288   ;;
9289 esac
9290 fi
9291 SORT=$ac_cv_path_SORT
9292 if test -n "$SORT"; then
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9294 $as_echo "$SORT" >&6; }
9295 else
9296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9297 $as_echo "no" >&6; }
9298 fi
9299 
9300 
9301   test -n "$SORT" && break
9302 done
9303 
9304   else
9305     # The variable is set, but is it from the command line or the environment?
9306 
9307     # Try to remove the string !SORT! from our list.
9308     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/}
9309     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9310       # If it failed, the variable was not from the command line. Ignore it,
9311       # but warn the user (except for BASH, which is always set by the calling BASH).
9312       if test "xSORT" != xBASH; then
9313         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5
9314 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;}
9315       fi
9316       # Try to locate tool using the code snippet
9317       for ac_prog in sort
9318 do
9319   # Extract the first word of "$ac_prog", so it can be a program name with args.
9320 set dummy $ac_prog; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if ${ac_cv_path_SORT+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   case $SORT in
9327   [\\/]* | ?:[\\/]*)
9328   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9329   ;;
9330   *)
9331   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9333 do
9334   IFS=$as_save_IFS
9335   test -z "$as_dir" && as_dir=.
9336     for ac_exec_ext in '' $ac_executable_extensions; do
9337   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9339     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340     break 2
9341   fi
9342 done
9343   done
9344 IFS=$as_save_IFS
9345 
9346   ;;
9347 esac
9348 fi
9349 SORT=$ac_cv_path_SORT
9350 if test -n "$SORT"; then
9351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9352 $as_echo "$SORT" >&6; }
9353 else
9354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 $as_echo "no" >&6; }
9356 fi
9357 
9358 
9359   test -n "$SORT" && break
9360 done
9361 
9362     else
9363       # If it succeeded, then it was overridden by the user. We will use it
9364       # for the tool.
9365 
9366       # First remove it from the list of overridden variables, so we can test
9367       # for unknown variables in the end.
9368       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9369 
9370       # Check if the provided tool contains a complete path.
9371       tool_specified="$SORT"
9372       tool_basename="${tool_specified##*/}"
9373       if test "x$tool_basename" = "x$tool_specified"; then
9374         # A command without a complete path is provided, search $PATH.
9375         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5
9376 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;}
9377         # Extract the first word of "$tool_basename", so it can be a program name with args.
9378 set dummy $tool_basename; ac_word=$2
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9380 $as_echo_n "checking for $ac_word... " >&6; }
9381 if ${ac_cv_path_SORT+:} false; then :
9382   $as_echo_n "(cached) " >&6
9383 else
9384   case $SORT in
9385   [\\/]* | ?:[\\/]*)
9386   ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
9387   ;;
9388   *)
9389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390 for as_dir in $PATH
9391 do
9392   IFS=$as_save_IFS
9393   test -z "$as_dir" && as_dir=.
9394     for ac_exec_ext in '' $ac_executable_extensions; do
9395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9396     ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
9397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9398     break 2
9399   fi
9400 done
9401   done
9402 IFS=$as_save_IFS
9403 
9404   ;;
9405 esac
9406 fi
9407 SORT=$ac_cv_path_SORT
9408 if test -n "$SORT"; then
9409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
9410 $as_echo "$SORT" >&6; }
9411 else
9412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413 $as_echo "no" >&6; }
9414 fi
9415 
9416 
9417         if test "x$SORT" = x; then
9418           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9419         fi
9420       else
9421         # Otherwise we believe it is a complete path. Use it as it is.
9422         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5
9423 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;}
9424         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5
9425 $as_echo_n "checking for SORT... " >&6; }
9426         if test ! -x "$tool_specified"; then
9427           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9428 $as_echo "not found" >&6; }
9429           as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5
9430         fi
9431         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9432 $as_echo "$tool_specified" >&6; }
9433       fi
9434     fi
9435   fi
9436 
9437 
9438 
9439   if test "x$SORT" = x; then
9440     as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5
9441   fi
9442 
9443 
9444 
9445 
9446 
9447   # Publish this variable in the help.
9448 
9449 
9450   if test "x$TAIL" = x; then
9451     # The variable is not set by user, try to locate tool using the code snippet
9452     for ac_prog in tail
9453 do
9454   # Extract the first word of "$ac_prog", so it can be a program name with args.
9455 set dummy $ac_prog; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if ${ac_cv_path_TAIL+:} false; then :
9459   $as_echo_n "(cached) " >&6
9460 else
9461   case $TAIL in
9462   [\\/]* | ?:[\\/]*)
9463   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9464   ;;
9465   *)
9466   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in $PATH
9468 do
9469   IFS=$as_save_IFS
9470   test -z "$as_dir" && as_dir=.
9471     for ac_exec_ext in '' $ac_executable_extensions; do
9472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9473     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475     break 2
9476   fi
9477 done
9478   done
9479 IFS=$as_save_IFS
9480 
9481   ;;
9482 esac
9483 fi
9484 TAIL=$ac_cv_path_TAIL
9485 if test -n "$TAIL"; then
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9487 $as_echo "$TAIL" >&6; }
9488 else
9489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9491 fi
9492 
9493 
9494   test -n "$TAIL" && break
9495 done
9496 
9497   else
9498     # The variable is set, but is it from the command line or the environment?
9499 
9500     # Try to remove the string !TAIL! from our list.
9501     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/}
9502     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9503       # If it failed, the variable was not from the command line. Ignore it,
9504       # but warn the user (except for BASH, which is always set by the calling BASH).
9505       if test "xTAIL" != xBASH; then
9506         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5
9507 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;}
9508       fi
9509       # Try to locate tool using the code snippet
9510       for ac_prog in tail
9511 do
9512   # Extract the first word of "$ac_prog", so it can be a program name with args.
9513 set dummy $ac_prog; ac_word=$2
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9515 $as_echo_n "checking for $ac_word... " >&6; }
9516 if ${ac_cv_path_TAIL+:} false; then :
9517   $as_echo_n "(cached) " >&6
9518 else
9519   case $TAIL in
9520   [\\/]* | ?:[\\/]*)
9521   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9522   ;;
9523   *)
9524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9525 for as_dir in $PATH
9526 do
9527   IFS=$as_save_IFS
9528   test -z "$as_dir" && as_dir=.
9529     for ac_exec_ext in '' $ac_executable_extensions; do
9530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9531     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9533     break 2
9534   fi
9535 done
9536   done
9537 IFS=$as_save_IFS
9538 
9539   ;;
9540 esac
9541 fi
9542 TAIL=$ac_cv_path_TAIL
9543 if test -n "$TAIL"; then
9544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9545 $as_echo "$TAIL" >&6; }
9546 else
9547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9548 $as_echo "no" >&6; }
9549 fi
9550 
9551 
9552   test -n "$TAIL" && break
9553 done
9554 
9555     else
9556       # If it succeeded, then it was overridden by the user. We will use it
9557       # for the tool.
9558 
9559       # First remove it from the list of overridden variables, so we can test
9560       # for unknown variables in the end.
9561       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9562 
9563       # Check if the provided tool contains a complete path.
9564       tool_specified="$TAIL"
9565       tool_basename="${tool_specified##*/}"
9566       if test "x$tool_basename" = "x$tool_specified"; then
9567         # A command without a complete path is provided, search $PATH.
9568         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5
9569 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;}
9570         # Extract the first word of "$tool_basename", so it can be a program name with args.
9571 set dummy $tool_basename; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if ${ac_cv_path_TAIL+:} false; then :
9575   $as_echo_n "(cached) " >&6
9576 else
9577   case $TAIL in
9578   [\\/]* | ?:[\\/]*)
9579   ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
9580   ;;
9581   *)
9582   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583 for as_dir in $PATH
9584 do
9585   IFS=$as_save_IFS
9586   test -z "$as_dir" && as_dir=.
9587     for ac_exec_ext in '' $ac_executable_extensions; do
9588   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9589     ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
9590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9591     break 2
9592   fi
9593 done
9594   done
9595 IFS=$as_save_IFS
9596 
9597   ;;
9598 esac
9599 fi
9600 TAIL=$ac_cv_path_TAIL
9601 if test -n "$TAIL"; then
9602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
9603 $as_echo "$TAIL" >&6; }
9604 else
9605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606 $as_echo "no" >&6; }
9607 fi
9608 
9609 
9610         if test "x$TAIL" = x; then
9611           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9612         fi
9613       else
9614         # Otherwise we believe it is a complete path. Use it as it is.
9615         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5
9616 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;}
9617         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5
9618 $as_echo_n "checking for TAIL... " >&6; }
9619         if test ! -x "$tool_specified"; then
9620           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9621 $as_echo "not found" >&6; }
9622           as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5
9623         fi
9624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9625 $as_echo "$tool_specified" >&6; }
9626       fi
9627     fi
9628   fi
9629 
9630 
9631 
9632   if test "x$TAIL" = x; then
9633     as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5
9634   fi
9635 
9636 
9637 
9638 
9639 
9640   # Publish this variable in the help.
9641 
9642 
9643   if test "x$TAR" = x; then
9644     # The variable is not set by user, try to locate tool using the code snippet
9645     for ac_prog in tar
9646 do
9647   # Extract the first word of "$ac_prog", so it can be a program name with args.
9648 set dummy $ac_prog; ac_word=$2
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650 $as_echo_n "checking for $ac_word... " >&6; }
9651 if ${ac_cv_path_TAR+:} false; then :
9652   $as_echo_n "(cached) " >&6
9653 else
9654   case $TAR in
9655   [\\/]* | ?:[\\/]*)
9656   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9657   ;;
9658   *)
9659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9660 for as_dir in $PATH
9661 do
9662   IFS=$as_save_IFS
9663   test -z "$as_dir" && as_dir=.
9664     for ac_exec_ext in '' $ac_executable_extensions; do
9665   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9666     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9668     break 2
9669   fi
9670 done
9671   done
9672 IFS=$as_save_IFS
9673 
9674   ;;
9675 esac
9676 fi
9677 TAR=$ac_cv_path_TAR
9678 if test -n "$TAR"; then
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9680 $as_echo "$TAR" >&6; }
9681 else
9682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683 $as_echo "no" >&6; }
9684 fi
9685 
9686 
9687   test -n "$TAR" && break
9688 done
9689 
9690   else
9691     # The variable is set, but is it from the command line or the environment?
9692 
9693     # Try to remove the string !TAR! from our list.
9694     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/}
9695     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9696       # If it failed, the variable was not from the command line. Ignore it,
9697       # but warn the user (except for BASH, which is always set by the calling BASH).
9698       if test "xTAR" != xBASH; then
9699         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5
9700 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;}
9701       fi
9702       # Try to locate tool using the code snippet
9703       for ac_prog in tar
9704 do
9705   # Extract the first word of "$ac_prog", so it can be a program name with args.
9706 set dummy $ac_prog; ac_word=$2
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9708 $as_echo_n "checking for $ac_word... " >&6; }
9709 if ${ac_cv_path_TAR+:} false; then :
9710   $as_echo_n "(cached) " >&6
9711 else
9712   case $TAR in
9713   [\\/]* | ?:[\\/]*)
9714   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9715   ;;
9716   *)
9717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718 for as_dir in $PATH
9719 do
9720   IFS=$as_save_IFS
9721   test -z "$as_dir" && as_dir=.
9722     for ac_exec_ext in '' $ac_executable_extensions; do
9723   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9724     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9726     break 2
9727   fi
9728 done
9729   done
9730 IFS=$as_save_IFS
9731 
9732   ;;
9733 esac
9734 fi
9735 TAR=$ac_cv_path_TAR
9736 if test -n "$TAR"; then
9737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9738 $as_echo "$TAR" >&6; }
9739 else
9740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9741 $as_echo "no" >&6; }
9742 fi
9743 
9744 
9745   test -n "$TAR" && break
9746 done
9747 
9748     else
9749       # If it succeeded, then it was overridden by the user. We will use it
9750       # for the tool.
9751 
9752       # First remove it from the list of overridden variables, so we can test
9753       # for unknown variables in the end.
9754       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9755 
9756       # Check if the provided tool contains a complete path.
9757       tool_specified="$TAR"
9758       tool_basename="${tool_specified##*/}"
9759       if test "x$tool_basename" = "x$tool_specified"; then
9760         # A command without a complete path is provided, search $PATH.
9761         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5
9762 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;}
9763         # Extract the first word of "$tool_basename", so it can be a program name with args.
9764 set dummy $tool_basename; ac_word=$2
9765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9766 $as_echo_n "checking for $ac_word... " >&6; }
9767 if ${ac_cv_path_TAR+:} false; then :
9768   $as_echo_n "(cached) " >&6
9769 else
9770   case $TAR in
9771   [\\/]* | ?:[\\/]*)
9772   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
9773   ;;
9774   *)
9775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in $PATH
9777 do
9778   IFS=$as_save_IFS
9779   test -z "$as_dir" && as_dir=.
9780     for ac_exec_ext in '' $ac_executable_extensions; do
9781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9782     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
9783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784     break 2
9785   fi
9786 done
9787   done
9788 IFS=$as_save_IFS
9789 
9790   ;;
9791 esac
9792 fi
9793 TAR=$ac_cv_path_TAR
9794 if test -n "$TAR"; then
9795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
9796 $as_echo "$TAR" >&6; }
9797 else
9798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9799 $as_echo "no" >&6; }
9800 fi
9801 
9802 
9803         if test "x$TAR" = x; then
9804           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9805         fi
9806       else
9807         # Otherwise we believe it is a complete path. Use it as it is.
9808         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5
9809 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;}
9810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5
9811 $as_echo_n "checking for TAR... " >&6; }
9812         if test ! -x "$tool_specified"; then
9813           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9814 $as_echo "not found" >&6; }
9815           as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5
9816         fi
9817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
9818 $as_echo "$tool_specified" >&6; }
9819       fi
9820     fi
9821   fi
9822 
9823 
9824 
9825   if test "x$TAR" = x; then
9826     as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5
9827   fi
9828 
9829 
9830 
9831 
9832 
9833   # Publish this variable in the help.
9834 
9835 
9836   if test "x$TEE" = x; then
9837     # The variable is not set by user, try to locate tool using the code snippet
9838     for ac_prog in tee
9839 do
9840   # Extract the first word of "$ac_prog", so it can be a program name with args.
9841 set dummy $ac_prog; ac_word=$2
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9843 $as_echo_n "checking for $ac_word... " >&6; }
9844 if ${ac_cv_path_TEE+:} false; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   case $TEE in
9848   [\\/]* | ?:[\\/]*)
9849   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9850   ;;
9851   *)
9852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9853 for as_dir in $PATH
9854 do
9855   IFS=$as_save_IFS
9856   test -z "$as_dir" && as_dir=.
9857     for ac_exec_ext in '' $ac_executable_extensions; do
9858   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9859     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9861     break 2
9862   fi
9863 done
9864   done
9865 IFS=$as_save_IFS
9866 
9867   ;;
9868 esac
9869 fi
9870 TEE=$ac_cv_path_TEE
9871 if test -n "$TEE"; then
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9873 $as_echo "$TEE" >&6; }
9874 else
9875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9876 $as_echo "no" >&6; }
9877 fi
9878 
9879 
9880   test -n "$TEE" && break
9881 done
9882 
9883   else
9884     # The variable is set, but is it from the command line or the environment?
9885 
9886     # Try to remove the string !TEE! from our list.
9887     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/}
9888     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
9889       # If it failed, the variable was not from the command line. Ignore it,
9890       # but warn the user (except for BASH, which is always set by the calling BASH).
9891       if test "xTEE" != xBASH; then
9892         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5
9893 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;}
9894       fi
9895       # Try to locate tool using the code snippet
9896       for ac_prog in tee
9897 do
9898   # Extract the first word of "$ac_prog", so it can be a program name with args.
9899 set dummy $ac_prog; ac_word=$2
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9901 $as_echo_n "checking for $ac_word... " >&6; }
9902 if ${ac_cv_path_TEE+:} false; then :
9903   $as_echo_n "(cached) " >&6
9904 else
9905   case $TEE in
9906   [\\/]* | ?:[\\/]*)
9907   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9908   ;;
9909   *)
9910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911 for as_dir in $PATH
9912 do
9913   IFS=$as_save_IFS
9914   test -z "$as_dir" && as_dir=.
9915     for ac_exec_ext in '' $ac_executable_extensions; do
9916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9917     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9919     break 2
9920   fi
9921 done
9922   done
9923 IFS=$as_save_IFS
9924 
9925   ;;
9926 esac
9927 fi
9928 TEE=$ac_cv_path_TEE
9929 if test -n "$TEE"; then
9930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9931 $as_echo "$TEE" >&6; }
9932 else
9933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9935 fi
9936 
9937 
9938   test -n "$TEE" && break
9939 done
9940 
9941     else
9942       # If it succeeded, then it was overridden by the user. We will use it
9943       # for the tool.
9944 
9945       # First remove it from the list of overridden variables, so we can test
9946       # for unknown variables in the end.
9947       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
9948 
9949       # Check if the provided tool contains a complete path.
9950       tool_specified="$TEE"
9951       tool_basename="${tool_specified##*/}"
9952       if test "x$tool_basename" = "x$tool_specified"; then
9953         # A command without a complete path is provided, search $PATH.
9954         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5
9955 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;}
9956         # Extract the first word of "$tool_basename", so it can be a program name with args.
9957 set dummy $tool_basename; ac_word=$2
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9959 $as_echo_n "checking for $ac_word... " >&6; }
9960 if ${ac_cv_path_TEE+:} false; then :
9961   $as_echo_n "(cached) " >&6
9962 else
9963   case $TEE in
9964   [\\/]* | ?:[\\/]*)
9965   ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
9966   ;;
9967   *)
9968   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 for as_dir in $PATH
9970 do
9971   IFS=$as_save_IFS
9972   test -z "$as_dir" && as_dir=.
9973     for ac_exec_ext in '' $ac_executable_extensions; do
9974   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9975     ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
9976     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9977     break 2
9978   fi
9979 done
9980   done
9981 IFS=$as_save_IFS
9982 
9983   ;;
9984 esac
9985 fi
9986 TEE=$ac_cv_path_TEE
9987 if test -n "$TEE"; then
9988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
9989 $as_echo "$TEE" >&6; }
9990 else
9991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 $as_echo "no" >&6; }
9993 fi
9994 
9995 
9996         if test "x$TEE" = x; then
9997           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
9998         fi
9999       else
10000         # Otherwise we believe it is a complete path. Use it as it is.
10001         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5
10002 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;}
10003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5
10004 $as_echo_n "checking for TEE... " >&6; }
10005         if test ! -x "$tool_specified"; then
10006           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10007 $as_echo "not found" >&6; }
10008           as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5
10009         fi
10010         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10011 $as_echo "$tool_specified" >&6; }
10012       fi
10013     fi
10014   fi
10015 
10016 
10017 
10018   if test "x$TEE" = x; then
10019     as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5
10020   fi
10021 
10022 
10023 
10024 
10025 
10026   # Publish this variable in the help.
10027 
10028 
10029   if test "x$TOUCH" = x; then
10030     # The variable is not set by user, try to locate tool using the code snippet
10031     for ac_prog in touch
10032 do
10033   # Extract the first word of "$ac_prog", so it can be a program name with args.
10034 set dummy $ac_prog; ac_word=$2
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10036 $as_echo_n "checking for $ac_word... " >&6; }
10037 if ${ac_cv_path_TOUCH+:} false; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040   case $TOUCH in
10041   [\\/]* | ?:[\\/]*)
10042   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10043   ;;
10044   *)
10045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046 for as_dir in $PATH
10047 do
10048   IFS=$as_save_IFS
10049   test -z "$as_dir" && as_dir=.
10050     for ac_exec_ext in '' $ac_executable_extensions; do
10051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10052     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10054     break 2
10055   fi
10056 done
10057   done
10058 IFS=$as_save_IFS
10059 
10060   ;;
10061 esac
10062 fi
10063 TOUCH=$ac_cv_path_TOUCH
10064 if test -n "$TOUCH"; then
10065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10066 $as_echo "$TOUCH" >&6; }
10067 else
10068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10070 fi
10071 
10072 
10073   test -n "$TOUCH" && break
10074 done
10075 
10076   else
10077     # The variable is set, but is it from the command line or the environment?
10078 
10079     # Try to remove the string !TOUCH! from our list.
10080     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/}
10081     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10082       # If it failed, the variable was not from the command line. Ignore it,
10083       # but warn the user (except for BASH, which is always set by the calling BASH).
10084       if test "xTOUCH" != xBASH; then
10085         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5
10086 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;}
10087       fi
10088       # Try to locate tool using the code snippet
10089       for ac_prog in touch
10090 do
10091   # Extract the first word of "$ac_prog", so it can be a program name with args.
10092 set dummy $ac_prog; ac_word=$2
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094 $as_echo_n "checking for $ac_word... " >&6; }
10095 if ${ac_cv_path_TOUCH+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   case $TOUCH in
10099   [\\/]* | ?:[\\/]*)
10100   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10101   ;;
10102   *)
10103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10105 do
10106   IFS=$as_save_IFS
10107   test -z "$as_dir" && as_dir=.
10108     for ac_exec_ext in '' $ac_executable_extensions; do
10109   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112     break 2
10113   fi
10114 done
10115   done
10116 IFS=$as_save_IFS
10117 
10118   ;;
10119 esac
10120 fi
10121 TOUCH=$ac_cv_path_TOUCH
10122 if test -n "$TOUCH"; then
10123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10124 $as_echo "$TOUCH" >&6; }
10125 else
10126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10128 fi
10129 
10130 
10131   test -n "$TOUCH" && break
10132 done
10133 
10134     else
10135       # If it succeeded, then it was overridden by the user. We will use it
10136       # for the tool.
10137 
10138       # First remove it from the list of overridden variables, so we can test
10139       # for unknown variables in the end.
10140       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10141 
10142       # Check if the provided tool contains a complete path.
10143       tool_specified="$TOUCH"
10144       tool_basename="${tool_specified##*/}"
10145       if test "x$tool_basename" = "x$tool_specified"; then
10146         # A command without a complete path is provided, search $PATH.
10147         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5
10148 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;}
10149         # Extract the first word of "$tool_basename", so it can be a program name with args.
10150 set dummy $tool_basename; ac_word=$2
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10152 $as_echo_n "checking for $ac_word... " >&6; }
10153 if ${ac_cv_path_TOUCH+:} false; then :
10154   $as_echo_n "(cached) " >&6
10155 else
10156   case $TOUCH in
10157   [\\/]* | ?:[\\/]*)
10158   ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
10159   ;;
10160   *)
10161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10162 for as_dir in $PATH
10163 do
10164   IFS=$as_save_IFS
10165   test -z "$as_dir" && as_dir=.
10166     for ac_exec_ext in '' $ac_executable_extensions; do
10167   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10168     ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
10169     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10170     break 2
10171   fi
10172 done
10173   done
10174 IFS=$as_save_IFS
10175 
10176   ;;
10177 esac
10178 fi
10179 TOUCH=$ac_cv_path_TOUCH
10180 if test -n "$TOUCH"; then
10181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
10182 $as_echo "$TOUCH" >&6; }
10183 else
10184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10186 fi
10187 
10188 
10189         if test "x$TOUCH" = x; then
10190           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10191         fi
10192       else
10193         # Otherwise we believe it is a complete path. Use it as it is.
10194         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5
10195 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;}
10196         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5
10197 $as_echo_n "checking for TOUCH... " >&6; }
10198         if test ! -x "$tool_specified"; then
10199           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10200 $as_echo "not found" >&6; }
10201           as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5
10202         fi
10203         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10204 $as_echo "$tool_specified" >&6; }
10205       fi
10206     fi
10207   fi
10208 
10209 
10210 
10211   if test "x$TOUCH" = x; then
10212     as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5
10213   fi
10214 
10215 
10216 
10217 
10218 
10219   # Publish this variable in the help.
10220 
10221 
10222   if test "x$TR" = x; then
10223     # The variable is not set by user, try to locate tool using the code snippet
10224     for ac_prog in tr
10225 do
10226   # Extract the first word of "$ac_prog", so it can be a program name with args.
10227 set dummy $ac_prog; ac_word=$2
10228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229 $as_echo_n "checking for $ac_word... " >&6; }
10230 if ${ac_cv_path_TR+:} false; then :
10231   $as_echo_n "(cached) " >&6
10232 else
10233   case $TR in
10234   [\\/]* | ?:[\\/]*)
10235   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10236   ;;
10237   *)
10238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10240 do
10241   IFS=$as_save_IFS
10242   test -z "$as_dir" && as_dir=.
10243     for ac_exec_ext in '' $ac_executable_extensions; do
10244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247     break 2
10248   fi
10249 done
10250   done
10251 IFS=$as_save_IFS
10252 
10253   ;;
10254 esac
10255 fi
10256 TR=$ac_cv_path_TR
10257 if test -n "$TR"; then
10258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10259 $as_echo "$TR" >&6; }
10260 else
10261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10262 $as_echo "no" >&6; }
10263 fi
10264 
10265 
10266   test -n "$TR" && break
10267 done
10268 
10269   else
10270     # The variable is set, but is it from the command line or the environment?
10271 
10272     # Try to remove the string !TR! from our list.
10273     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/}
10274     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10275       # If it failed, the variable was not from the command line. Ignore it,
10276       # but warn the user (except for BASH, which is always set by the calling BASH).
10277       if test "xTR" != xBASH; then
10278         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5
10279 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;}
10280       fi
10281       # Try to locate tool using the code snippet
10282       for ac_prog in tr
10283 do
10284   # Extract the first word of "$ac_prog", so it can be a program name with args.
10285 set dummy $ac_prog; ac_word=$2
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10287 $as_echo_n "checking for $ac_word... " >&6; }
10288 if ${ac_cv_path_TR+:} false; then :
10289   $as_echo_n "(cached) " >&6
10290 else
10291   case $TR in
10292   [\\/]* | ?:[\\/]*)
10293   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10294   ;;
10295   *)
10296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297 for as_dir in $PATH
10298 do
10299   IFS=$as_save_IFS
10300   test -z "$as_dir" && as_dir=.
10301     for ac_exec_ext in '' $ac_executable_extensions; do
10302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305     break 2
10306   fi
10307 done
10308   done
10309 IFS=$as_save_IFS
10310 
10311   ;;
10312 esac
10313 fi
10314 TR=$ac_cv_path_TR
10315 if test -n "$TR"; then
10316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10317 $as_echo "$TR" >&6; }
10318 else
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10320 $as_echo "no" >&6; }
10321 fi
10322 
10323 
10324   test -n "$TR" && break
10325 done
10326 
10327     else
10328       # If it succeeded, then it was overridden by the user. We will use it
10329       # for the tool.
10330 
10331       # First remove it from the list of overridden variables, so we can test
10332       # for unknown variables in the end.
10333       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10334 
10335       # Check if the provided tool contains a complete path.
10336       tool_specified="$TR"
10337       tool_basename="${tool_specified##*/}"
10338       if test "x$tool_basename" = "x$tool_specified"; then
10339         # A command without a complete path is provided, search $PATH.
10340         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5
10341 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;}
10342         # Extract the first word of "$tool_basename", so it can be a program name with args.
10343 set dummy $tool_basename; ac_word=$2
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345 $as_echo_n "checking for $ac_word... " >&6; }
10346 if ${ac_cv_path_TR+:} false; then :
10347   $as_echo_n "(cached) " >&6
10348 else
10349   case $TR in
10350   [\\/]* | ?:[\\/]*)
10351   ac_cv_path_TR="$TR" # Let the user override the test with a path.
10352   ;;
10353   *)
10354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10355 for as_dir in $PATH
10356 do
10357   IFS=$as_save_IFS
10358   test -z "$as_dir" && as_dir=.
10359     for ac_exec_ext in '' $ac_executable_extensions; do
10360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10361     ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
10362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10363     break 2
10364   fi
10365 done
10366   done
10367 IFS=$as_save_IFS
10368 
10369   ;;
10370 esac
10371 fi
10372 TR=$ac_cv_path_TR
10373 if test -n "$TR"; then
10374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
10375 $as_echo "$TR" >&6; }
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380 
10381 
10382         if test "x$TR" = x; then
10383           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10384         fi
10385       else
10386         # Otherwise we believe it is a complete path. Use it as it is.
10387         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5
10388 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;}
10389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5
10390 $as_echo_n "checking for TR... " >&6; }
10391         if test ! -x "$tool_specified"; then
10392           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10393 $as_echo "not found" >&6; }
10394           as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5
10395         fi
10396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10397 $as_echo "$tool_specified" >&6; }
10398       fi
10399     fi
10400   fi
10401 
10402 
10403 
10404   if test "x$TR" = x; then
10405     as_fn_error $? "Could not find required tool for TR" "$LINENO" 5
10406   fi
10407 
10408 
10409 
10410 
10411 
10412   # Publish this variable in the help.
10413 
10414 
10415   if test "x$UNAME" = x; then
10416     # The variable is not set by user, try to locate tool using the code snippet
10417     for ac_prog in uname
10418 do
10419   # Extract the first word of "$ac_prog", so it can be a program name with args.
10420 set dummy $ac_prog; ac_word=$2
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422 $as_echo_n "checking for $ac_word... " >&6; }
10423 if ${ac_cv_path_UNAME+:} false; then :
10424   $as_echo_n "(cached) " >&6
10425 else
10426   case $UNAME in
10427   [\\/]* | ?:[\\/]*)
10428   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10429   ;;
10430   *)
10431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10433 do
10434   IFS=$as_save_IFS
10435   test -z "$as_dir" && as_dir=.
10436     for ac_exec_ext in '' $ac_executable_extensions; do
10437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10438     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10440     break 2
10441   fi
10442 done
10443   done
10444 IFS=$as_save_IFS
10445 
10446   ;;
10447 esac
10448 fi
10449 UNAME=$ac_cv_path_UNAME
10450 if test -n "$UNAME"; then
10451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10452 $as_echo "$UNAME" >&6; }
10453 else
10454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10455 $as_echo "no" >&6; }
10456 fi
10457 
10458 
10459   test -n "$UNAME" && break
10460 done
10461 
10462   else
10463     # The variable is set, but is it from the command line or the environment?
10464 
10465     # Try to remove the string !UNAME! from our list.
10466     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/}
10467     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10468       # If it failed, the variable was not from the command line. Ignore it,
10469       # but warn the user (except for BASH, which is always set by the calling BASH).
10470       if test "xUNAME" != xBASH; then
10471         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5
10472 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;}
10473       fi
10474       # Try to locate tool using the code snippet
10475       for ac_prog in uname
10476 do
10477   # Extract the first word of "$ac_prog", so it can be a program name with args.
10478 set dummy $ac_prog; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480 $as_echo_n "checking for $ac_word... " >&6; }
10481 if ${ac_cv_path_UNAME+:} false; then :
10482   $as_echo_n "(cached) " >&6
10483 else
10484   case $UNAME in
10485   [\\/]* | ?:[\\/]*)
10486   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10487   ;;
10488   *)
10489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10490 for as_dir in $PATH
10491 do
10492   IFS=$as_save_IFS
10493   test -z "$as_dir" && as_dir=.
10494     for ac_exec_ext in '' $ac_executable_extensions; do
10495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10496     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10498     break 2
10499   fi
10500 done
10501   done
10502 IFS=$as_save_IFS
10503 
10504   ;;
10505 esac
10506 fi
10507 UNAME=$ac_cv_path_UNAME
10508 if test -n "$UNAME"; then
10509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10510 $as_echo "$UNAME" >&6; }
10511 else
10512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10514 fi
10515 
10516 
10517   test -n "$UNAME" && break
10518 done
10519 
10520     else
10521       # If it succeeded, then it was overridden by the user. We will use it
10522       # for the tool.
10523 
10524       # First remove it from the list of overridden variables, so we can test
10525       # for unknown variables in the end.
10526       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10527 
10528       # Check if the provided tool contains a complete path.
10529       tool_specified="$UNAME"
10530       tool_basename="${tool_specified##*/}"
10531       if test "x$tool_basename" = "x$tool_specified"; then
10532         # A command without a complete path is provided, search $PATH.
10533         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5
10534 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;}
10535         # Extract the first word of "$tool_basename", so it can be a program name with args.
10536 set dummy $tool_basename; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_path_UNAME+:} false; then :
10540   $as_echo_n "(cached) " >&6
10541 else
10542   case $UNAME in
10543   [\\/]* | ?:[\\/]*)
10544   ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
10545   ;;
10546   *)
10547   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10549 do
10550   IFS=$as_save_IFS
10551   test -z "$as_dir" && as_dir=.
10552     for ac_exec_ext in '' $ac_executable_extensions; do
10553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554     ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
10555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556     break 2
10557   fi
10558 done
10559   done
10560 IFS=$as_save_IFS
10561 
10562   ;;
10563 esac
10564 fi
10565 UNAME=$ac_cv_path_UNAME
10566 if test -n "$UNAME"; then
10567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
10568 $as_echo "$UNAME" >&6; }
10569 else
10570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571 $as_echo "no" >&6; }
10572 fi
10573 
10574 
10575         if test "x$UNAME" = x; then
10576           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10577         fi
10578       else
10579         # Otherwise we believe it is a complete path. Use it as it is.
10580         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5
10581 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;}
10582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5
10583 $as_echo_n "checking for UNAME... " >&6; }
10584         if test ! -x "$tool_specified"; then
10585           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10586 $as_echo "not found" >&6; }
10587           as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5
10588         fi
10589         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10590 $as_echo "$tool_specified" >&6; }
10591       fi
10592     fi
10593   fi
10594 
10595 
10596 
10597   if test "x$UNAME" = x; then
10598     as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5
10599   fi
10600 
10601 
10602 
10603 
10604 
10605   # Publish this variable in the help.
10606 
10607 
10608   if test "x$UNIQ" = x; then
10609     # The variable is not set by user, try to locate tool using the code snippet
10610     for ac_prog in uniq
10611 do
10612   # Extract the first word of "$ac_prog", so it can be a program name with args.
10613 set dummy $ac_prog; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10615 $as_echo_n "checking for $ac_word... " >&6; }
10616 if ${ac_cv_path_UNIQ+:} false; then :
10617   $as_echo_n "(cached) " >&6
10618 else
10619   case $UNIQ in
10620   [\\/]* | ?:[\\/]*)
10621   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10622   ;;
10623   *)
10624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10626 do
10627   IFS=$as_save_IFS
10628   test -z "$as_dir" && as_dir=.
10629     for ac_exec_ext in '' $ac_executable_extensions; do
10630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10631     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10633     break 2
10634   fi
10635 done
10636   done
10637 IFS=$as_save_IFS
10638 
10639   ;;
10640 esac
10641 fi
10642 UNIQ=$ac_cv_path_UNIQ
10643 if test -n "$UNIQ"; then
10644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10645 $as_echo "$UNIQ" >&6; }
10646 else
10647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10648 $as_echo "no" >&6; }
10649 fi
10650 
10651 
10652   test -n "$UNIQ" && break
10653 done
10654 
10655   else
10656     # The variable is set, but is it from the command line or the environment?
10657 
10658     # Try to remove the string !UNIQ! from our list.
10659     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/}
10660     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10661       # If it failed, the variable was not from the command line. Ignore it,
10662       # but warn the user (except for BASH, which is always set by the calling BASH).
10663       if test "xUNIQ" != xBASH; then
10664         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5
10665 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;}
10666       fi
10667       # Try to locate tool using the code snippet
10668       for ac_prog in uniq
10669 do
10670   # Extract the first word of "$ac_prog", so it can be a program name with args.
10671 set dummy $ac_prog; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673 $as_echo_n "checking for $ac_word... " >&6; }
10674 if ${ac_cv_path_UNIQ+:} false; then :
10675   $as_echo_n "(cached) " >&6
10676 else
10677   case $UNIQ in
10678   [\\/]* | ?:[\\/]*)
10679   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10680   ;;
10681   *)
10682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10684 do
10685   IFS=$as_save_IFS
10686   test -z "$as_dir" && as_dir=.
10687     for ac_exec_ext in '' $ac_executable_extensions; do
10688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10691     break 2
10692   fi
10693 done
10694   done
10695 IFS=$as_save_IFS
10696 
10697   ;;
10698 esac
10699 fi
10700 UNIQ=$ac_cv_path_UNIQ
10701 if test -n "$UNIQ"; then
10702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10703 $as_echo "$UNIQ" >&6; }
10704 else
10705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10706 $as_echo "no" >&6; }
10707 fi
10708 
10709 
10710   test -n "$UNIQ" && break
10711 done
10712 
10713     else
10714       # If it succeeded, then it was overridden by the user. We will use it
10715       # for the tool.
10716 
10717       # First remove it from the list of overridden variables, so we can test
10718       # for unknown variables in the end.
10719       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10720 
10721       # Check if the provided tool contains a complete path.
10722       tool_specified="$UNIQ"
10723       tool_basename="${tool_specified##*/}"
10724       if test "x$tool_basename" = "x$tool_specified"; then
10725         # A command without a complete path is provided, search $PATH.
10726         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5
10727 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;}
10728         # Extract the first word of "$tool_basename", so it can be a program name with args.
10729 set dummy $tool_basename; ac_word=$2
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10731 $as_echo_n "checking for $ac_word... " >&6; }
10732 if ${ac_cv_path_UNIQ+:} false; then :
10733   $as_echo_n "(cached) " >&6
10734 else
10735   case $UNIQ in
10736   [\\/]* | ?:[\\/]*)
10737   ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path.
10738   ;;
10739   *)
10740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10742 do
10743   IFS=$as_save_IFS
10744   test -z "$as_dir" && as_dir=.
10745     for ac_exec_ext in '' $ac_executable_extensions; do
10746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10747     ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext"
10748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749     break 2
10750   fi
10751 done
10752   done
10753 IFS=$as_save_IFS
10754 
10755   ;;
10756 esac
10757 fi
10758 UNIQ=$ac_cv_path_UNIQ
10759 if test -n "$UNIQ"; then
10760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
10761 $as_echo "$UNIQ" >&6; }
10762 else
10763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10764 $as_echo "no" >&6; }
10765 fi
10766 
10767 
10768         if test "x$UNIQ" = x; then
10769           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10770         fi
10771       else
10772         # Otherwise we believe it is a complete path. Use it as it is.
10773         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5
10774 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;}
10775         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5
10776 $as_echo_n "checking for UNIQ... " >&6; }
10777         if test ! -x "$tool_specified"; then
10778           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10779 $as_echo "not found" >&6; }
10780           as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5
10781         fi
10782         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10783 $as_echo "$tool_specified" >&6; }
10784       fi
10785     fi
10786   fi
10787 
10788 
10789 
10790   if test "x$UNIQ" = x; then
10791     as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5
10792   fi
10793 
10794 
10795 
10796 
10797 
10798   # Publish this variable in the help.
10799 
10800 
10801   if test "x$WC" = x; then
10802     # The variable is not set by user, try to locate tool using the code snippet
10803     for ac_prog in wc
10804 do
10805   # Extract the first word of "$ac_prog", so it can be a program name with args.
10806 set dummy $ac_prog; ac_word=$2
10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 $as_echo_n "checking for $ac_word... " >&6; }
10809 if ${ac_cv_path_WC+:} false; then :
10810   $as_echo_n "(cached) " >&6
10811 else
10812   case $WC in
10813   [\\/]* | ?:[\\/]*)
10814   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10815   ;;
10816   *)
10817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10818 for as_dir in $PATH
10819 do
10820   IFS=$as_save_IFS
10821   test -z "$as_dir" && as_dir=.
10822     for ac_exec_ext in '' $ac_executable_extensions; do
10823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10824     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10826     break 2
10827   fi
10828 done
10829   done
10830 IFS=$as_save_IFS
10831 
10832   ;;
10833 esac
10834 fi
10835 WC=$ac_cv_path_WC
10836 if test -n "$WC"; then
10837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10838 $as_echo "$WC" >&6; }
10839 else
10840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10842 fi
10843 
10844 
10845   test -n "$WC" && break
10846 done
10847 
10848   else
10849     # The variable is set, but is it from the command line or the environment?
10850 
10851     # Try to remove the string !WC! from our list.
10852     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/}
10853     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
10854       # If it failed, the variable was not from the command line. Ignore it,
10855       # but warn the user (except for BASH, which is always set by the calling BASH).
10856       if test "xWC" != xBASH; then
10857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5
10858 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;}
10859       fi
10860       # Try to locate tool using the code snippet
10861       for ac_prog in wc
10862 do
10863   # Extract the first word of "$ac_prog", so it can be a program name with args.
10864 set dummy $ac_prog; ac_word=$2
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10866 $as_echo_n "checking for $ac_word... " >&6; }
10867 if ${ac_cv_path_WC+:} false; then :
10868   $as_echo_n "(cached) " >&6
10869 else
10870   case $WC in
10871   [\\/]* | ?:[\\/]*)
10872   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10873   ;;
10874   *)
10875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10876 for as_dir in $PATH
10877 do
10878   IFS=$as_save_IFS
10879   test -z "$as_dir" && as_dir=.
10880     for ac_exec_ext in '' $ac_executable_extensions; do
10881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10882     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10884     break 2
10885   fi
10886 done
10887   done
10888 IFS=$as_save_IFS
10889 
10890   ;;
10891 esac
10892 fi
10893 WC=$ac_cv_path_WC
10894 if test -n "$WC"; then
10895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10896 $as_echo "$WC" >&6; }
10897 else
10898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10899 $as_echo "no" >&6; }
10900 fi
10901 
10902 
10903   test -n "$WC" && break
10904 done
10905 
10906     else
10907       # If it succeeded, then it was overridden by the user. We will use it
10908       # for the tool.
10909 
10910       # First remove it from the list of overridden variables, so we can test
10911       # for unknown variables in the end.
10912       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
10913 
10914       # Check if the provided tool contains a complete path.
10915       tool_specified="$WC"
10916       tool_basename="${tool_specified##*/}"
10917       if test "x$tool_basename" = "x$tool_specified"; then
10918         # A command without a complete path is provided, search $PATH.
10919         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5
10920 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;}
10921         # Extract the first word of "$tool_basename", so it can be a program name with args.
10922 set dummy $tool_basename; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if ${ac_cv_path_WC+:} false; then :
10926   $as_echo_n "(cached) " >&6
10927 else
10928   case $WC in
10929   [\\/]* | ?:[\\/]*)
10930   ac_cv_path_WC="$WC" # Let the user override the test with a path.
10931   ;;
10932   *)
10933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10934 for as_dir in $PATH
10935 do
10936   IFS=$as_save_IFS
10937   test -z "$as_dir" && as_dir=.
10938     for ac_exec_ext in '' $ac_executable_extensions; do
10939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10940     ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
10941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10942     break 2
10943   fi
10944 done
10945   done
10946 IFS=$as_save_IFS
10947 
10948   ;;
10949 esac
10950 fi
10951 WC=$ac_cv_path_WC
10952 if test -n "$WC"; then
10953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
10954 $as_echo "$WC" >&6; }
10955 else
10956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10957 $as_echo "no" >&6; }
10958 fi
10959 
10960 
10961         if test "x$WC" = x; then
10962           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
10963         fi
10964       else
10965         # Otherwise we believe it is a complete path. Use it as it is.
10966         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5
10967 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;}
10968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5
10969 $as_echo_n "checking for WC... " >&6; }
10970         if test ! -x "$tool_specified"; then
10971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10972 $as_echo "not found" >&6; }
10973           as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5
10974         fi
10975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
10976 $as_echo "$tool_specified" >&6; }
10977       fi
10978     fi
10979   fi
10980 
10981 
10982 
10983   if test "x$WC" = x; then
10984     as_fn_error $? "Could not find required tool for WC" "$LINENO" 5
10985   fi
10986 
10987 
10988 
10989 
10990 
10991   # Publish this variable in the help.
10992 
10993 
10994   if test "x$WHICH" = x; then
10995     # The variable is not set by user, try to locate tool using the code snippet
10996     for ac_prog in which
10997 do
10998   # Extract the first word of "$ac_prog", so it can be a program name with args.
10999 set dummy $ac_prog; ac_word=$2
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11001 $as_echo_n "checking for $ac_word... " >&6; }
11002 if ${ac_cv_path_WHICH+:} false; then :
11003   $as_echo_n "(cached) " >&6
11004 else
11005   case $WHICH in
11006   [\\/]* | ?:[\\/]*)
11007   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11008   ;;
11009   *)
11010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11012 do
11013   IFS=$as_save_IFS
11014   test -z "$as_dir" && as_dir=.
11015     for ac_exec_ext in '' $ac_executable_extensions; do
11016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019     break 2
11020   fi
11021 done
11022   done
11023 IFS=$as_save_IFS
11024 
11025   ;;
11026 esac
11027 fi
11028 WHICH=$ac_cv_path_WHICH
11029 if test -n "$WHICH"; then
11030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11031 $as_echo "$WHICH" >&6; }
11032 else
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035 fi
11036 
11037 
11038   test -n "$WHICH" && break
11039 done
11040 
11041   else
11042     # The variable is set, but is it from the command line or the environment?
11043 
11044     # Try to remove the string !WHICH! from our list.
11045     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/}
11046     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11047       # If it failed, the variable was not from the command line. Ignore it,
11048       # but warn the user (except for BASH, which is always set by the calling BASH).
11049       if test "xWHICH" != xBASH; then
11050         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5
11051 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;}
11052       fi
11053       # Try to locate tool using the code snippet
11054       for ac_prog in which
11055 do
11056   # Extract the first word of "$ac_prog", so it can be a program name with args.
11057 set dummy $ac_prog; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if ${ac_cv_path_WHICH+:} false; then :
11061   $as_echo_n "(cached) " >&6
11062 else
11063   case $WHICH in
11064   [\\/]* | ?:[\\/]*)
11065   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11066   ;;
11067   *)
11068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11069 for as_dir in $PATH
11070 do
11071   IFS=$as_save_IFS
11072   test -z "$as_dir" && as_dir=.
11073     for ac_exec_ext in '' $ac_executable_extensions; do
11074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11075     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11077     break 2
11078   fi
11079 done
11080   done
11081 IFS=$as_save_IFS
11082 
11083   ;;
11084 esac
11085 fi
11086 WHICH=$ac_cv_path_WHICH
11087 if test -n "$WHICH"; then
11088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11089 $as_echo "$WHICH" >&6; }
11090 else
11091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 $as_echo "no" >&6; }
11093 fi
11094 
11095 
11096   test -n "$WHICH" && break
11097 done
11098 
11099     else
11100       # If it succeeded, then it was overridden by the user. We will use it
11101       # for the tool.
11102 
11103       # First remove it from the list of overridden variables, so we can test
11104       # for unknown variables in the end.
11105       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11106 
11107       # Check if the provided tool contains a complete path.
11108       tool_specified="$WHICH"
11109       tool_basename="${tool_specified##*/}"
11110       if test "x$tool_basename" = "x$tool_specified"; then
11111         # A command without a complete path is provided, search $PATH.
11112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5
11113 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;}
11114         # Extract the first word of "$tool_basename", so it can be a program name with args.
11115 set dummy $tool_basename; ac_word=$2
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11117 $as_echo_n "checking for $ac_word... " >&6; }
11118 if ${ac_cv_path_WHICH+:} false; then :
11119   $as_echo_n "(cached) " >&6
11120 else
11121   case $WHICH in
11122   [\\/]* | ?:[\\/]*)
11123   ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
11124   ;;
11125   *)
11126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11128 do
11129   IFS=$as_save_IFS
11130   test -z "$as_dir" && as_dir=.
11131     for ac_exec_ext in '' $ac_executable_extensions; do
11132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133     ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
11134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11135     break 2
11136   fi
11137 done
11138   done
11139 IFS=$as_save_IFS
11140 
11141   ;;
11142 esac
11143 fi
11144 WHICH=$ac_cv_path_WHICH
11145 if test -n "$WHICH"; then
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
11147 $as_echo "$WHICH" >&6; }
11148 else
11149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11150 $as_echo "no" >&6; }
11151 fi
11152 
11153 
11154         if test "x$WHICH" = x; then
11155           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11156         fi
11157       else
11158         # Otherwise we believe it is a complete path. Use it as it is.
11159         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5
11160 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;}
11161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5
11162 $as_echo_n "checking for WHICH... " >&6; }
11163         if test ! -x "$tool_specified"; then
11164           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11165 $as_echo "not found" >&6; }
11166           as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5
11167         fi
11168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11169 $as_echo "$tool_specified" >&6; }
11170       fi
11171     fi
11172   fi
11173 
11174 
11175 
11176   if test "x$WHICH" = x; then
11177     as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5
11178   fi
11179 
11180 
11181 
11182 
11183 
11184   # Publish this variable in the help.
11185 
11186 
11187   if test "x$XARGS" = x; then
11188     # The variable is not set by user, try to locate tool using the code snippet
11189     for ac_prog in xargs
11190 do
11191   # Extract the first word of "$ac_prog", so it can be a program name with args.
11192 set dummy $ac_prog; ac_word=$2
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if ${ac_cv_path_XARGS+:} false; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   case $XARGS in
11199   [\\/]* | ?:[\\/]*)
11200   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11201   ;;
11202   *)
11203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206   IFS=$as_save_IFS
11207   test -z "$as_dir" && as_dir=.
11208     for ac_exec_ext in '' $ac_executable_extensions; do
11209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11210     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212     break 2
11213   fi
11214 done
11215   done
11216 IFS=$as_save_IFS
11217 
11218   ;;
11219 esac
11220 fi
11221 XARGS=$ac_cv_path_XARGS
11222 if test -n "$XARGS"; then
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11224 $as_echo "$XARGS" >&6; }
11225 else
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11228 fi
11229 
11230 
11231   test -n "$XARGS" && break
11232 done
11233 
11234   else
11235     # The variable is set, but is it from the command line or the environment?
11236 
11237     # Try to remove the string !XARGS! from our list.
11238     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/}
11239     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11240       # If it failed, the variable was not from the command line. Ignore it,
11241       # but warn the user (except for BASH, which is always set by the calling BASH).
11242       if test "xXARGS" != xBASH; then
11243         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5
11244 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;}
11245       fi
11246       # Try to locate tool using the code snippet
11247       for ac_prog in xargs
11248 do
11249   # Extract the first word of "$ac_prog", so it can be a program name with args.
11250 set dummy $ac_prog; ac_word=$2
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252 $as_echo_n "checking for $ac_word... " >&6; }
11253 if ${ac_cv_path_XARGS+:} false; then :
11254   $as_echo_n "(cached) " >&6
11255 else
11256   case $XARGS in
11257   [\\/]* | ?:[\\/]*)
11258   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11259   ;;
11260   *)
11261   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262 for as_dir in $PATH
11263 do
11264   IFS=$as_save_IFS
11265   test -z "$as_dir" && as_dir=.
11266     for ac_exec_ext in '' $ac_executable_extensions; do
11267   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11268     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11269     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11270     break 2
11271   fi
11272 done
11273   done
11274 IFS=$as_save_IFS
11275 
11276   ;;
11277 esac
11278 fi
11279 XARGS=$ac_cv_path_XARGS
11280 if test -n "$XARGS"; then
11281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11282 $as_echo "$XARGS" >&6; }
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285 $as_echo "no" >&6; }
11286 fi
11287 
11288 
11289   test -n "$XARGS" && break
11290 done
11291 
11292     else
11293       # If it succeeded, then it was overridden by the user. We will use it
11294       # for the tool.
11295 
11296       # First remove it from the list of overridden variables, so we can test
11297       # for unknown variables in the end.
11298       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11299 
11300       # Check if the provided tool contains a complete path.
11301       tool_specified="$XARGS"
11302       tool_basename="${tool_specified##*/}"
11303       if test "x$tool_basename" = "x$tool_specified"; then
11304         # A command without a complete path is provided, search $PATH.
11305         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5
11306 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;}
11307         # Extract the first word of "$tool_basename", so it can be a program name with args.
11308 set dummy $tool_basename; ac_word=$2
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11310 $as_echo_n "checking for $ac_word... " >&6; }
11311 if ${ac_cv_path_XARGS+:} false; then :
11312   $as_echo_n "(cached) " >&6
11313 else
11314   case $XARGS in
11315   [\\/]* | ?:[\\/]*)
11316   ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
11317   ;;
11318   *)
11319   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320 for as_dir in $PATH
11321 do
11322   IFS=$as_save_IFS
11323   test -z "$as_dir" && as_dir=.
11324     for ac_exec_ext in '' $ac_executable_extensions; do
11325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11326     ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
11327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11328     break 2
11329   fi
11330 done
11331   done
11332 IFS=$as_save_IFS
11333 
11334   ;;
11335 esac
11336 fi
11337 XARGS=$ac_cv_path_XARGS
11338 if test -n "$XARGS"; then
11339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
11340 $as_echo "$XARGS" >&6; }
11341 else
11342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11343 $as_echo "no" >&6; }
11344 fi
11345 
11346 
11347         if test "x$XARGS" = x; then
11348           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11349         fi
11350       else
11351         # Otherwise we believe it is a complete path. Use it as it is.
11352         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5
11353 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;}
11354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5
11355 $as_echo_n "checking for XARGS... " >&6; }
11356         if test ! -x "$tool_specified"; then
11357           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11358 $as_echo "not found" >&6; }
11359           as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5
11360         fi
11361         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11362 $as_echo "$tool_specified" >&6; }
11363       fi
11364     fi
11365   fi
11366 
11367 
11368 
11369   if test "x$XARGS" = x; then
11370     as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5
11371   fi
11372 
11373 
11374 
11375   # Then required tools that require some special treatment.
11376 
11377 
11378   # Publish this variable in the help.
11379 
11380 
11381   if test "x$AWK" = x; then
11382     # The variable is not set by user, try to locate tool using the code snippet
11383     for ac_prog in gawk mawk nawk awk
11384 do
11385   # Extract the first word of "$ac_prog", so it can be a program name with args.
11386 set dummy $ac_prog; ac_word=$2
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388 $as_echo_n "checking for $ac_word... " >&6; }
11389 if ${ac_cv_prog_AWK+:} false; then :
11390   $as_echo_n "(cached) " >&6
11391 else
11392   if test -n "$AWK"; then
11393   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11394 else
11395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396 for as_dir in $PATH
11397 do
11398   IFS=$as_save_IFS
11399   test -z "$as_dir" && as_dir=.
11400     for ac_exec_ext in '' $ac_executable_extensions; do
11401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11402     ac_cv_prog_AWK="$ac_prog"
11403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404     break 2
11405   fi
11406 done
11407   done
11408 IFS=$as_save_IFS
11409 
11410 fi
11411 fi
11412 AWK=$ac_cv_prog_AWK
11413 if test -n "$AWK"; then
11414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11415 $as_echo "$AWK" >&6; }
11416 else
11417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 $as_echo "no" >&6; }
11419 fi
11420 
11421 
11422   test -n "$AWK" && break
11423 done
11424 
11425   else
11426     # The variable is set, but is it from the command line or the environment?
11427 
11428     # Try to remove the string !AWK! from our list.
11429     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/}
11430     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11431       # If it failed, the variable was not from the command line. Ignore it,
11432       # but warn the user (except for BASH, which is always set by the calling BASH).
11433       if test "xAWK" != xBASH; then
11434         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5
11435 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;}
11436       fi
11437       # Try to locate tool using the code snippet
11438       for ac_prog in gawk mawk nawk awk
11439 do
11440   # Extract the first word of "$ac_prog", so it can be a program name with args.
11441 set dummy $ac_prog; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443 $as_echo_n "checking for $ac_word... " >&6; }
11444 if ${ac_cv_prog_AWK+:} false; then :
11445   $as_echo_n "(cached) " >&6
11446 else
11447   if test -n "$AWK"; then
11448   ac_cv_prog_AWK="$AWK" # Let the user override the test.
11449 else
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11452 do
11453   IFS=$as_save_IFS
11454   test -z "$as_dir" && as_dir=.
11455     for ac_exec_ext in '' $ac_executable_extensions; do
11456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457     ac_cv_prog_AWK="$ac_prog"
11458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11459     break 2
11460   fi
11461 done
11462   done
11463 IFS=$as_save_IFS
11464 
11465 fi
11466 fi
11467 AWK=$ac_cv_prog_AWK
11468 if test -n "$AWK"; then
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11470 $as_echo "$AWK" >&6; }
11471 else
11472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474 fi
11475 
11476 
11477   test -n "$AWK" && break
11478 done
11479 
11480     else
11481       # If it succeeded, then it was overridden by the user. We will use it
11482       # for the tool.
11483 
11484       # First remove it from the list of overridden variables, so we can test
11485       # for unknown variables in the end.
11486       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11487 
11488       # Check if the provided tool contains a complete path.
11489       tool_specified="$AWK"
11490       tool_basename="${tool_specified##*/}"
11491       if test "x$tool_basename" = "x$tool_specified"; then
11492         # A command without a complete path is provided, search $PATH.
11493         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5
11494 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;}
11495         # Extract the first word of "$tool_basename", so it can be a program name with args.
11496 set dummy $tool_basename; ac_word=$2
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11498 $as_echo_n "checking for $ac_word... " >&6; }
11499 if ${ac_cv_path_AWK+:} false; then :
11500   $as_echo_n "(cached) " >&6
11501 else
11502   case $AWK in
11503   [\\/]* | ?:[\\/]*)
11504   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
11505   ;;
11506   *)
11507   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11509 do
11510   IFS=$as_save_IFS
11511   test -z "$as_dir" && as_dir=.
11512     for ac_exec_ext in '' $ac_executable_extensions; do
11513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
11515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11516     break 2
11517   fi
11518 done
11519   done
11520 IFS=$as_save_IFS
11521 
11522   ;;
11523 esac
11524 fi
11525 AWK=$ac_cv_path_AWK
11526 if test -n "$AWK"; then
11527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11528 $as_echo "$AWK" >&6; }
11529 else
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11532 fi
11533 
11534 
11535         if test "x$AWK" = x; then
11536           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11537         fi
11538       else
11539         # Otherwise we believe it is a complete path. Use it as it is.
11540         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5
11541 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;}
11542         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5
11543 $as_echo_n "checking for AWK... " >&6; }
11544         if test ! -x "$tool_specified"; then
11545           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11546 $as_echo "not found" >&6; }
11547           as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5
11548         fi
11549         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11550 $as_echo "$tool_specified" >&6; }
11551       fi
11552     fi
11553   fi
11554 
11555 
11556   if test "x$AWK" = x; then
11557     as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5
11558   fi
11559 
11560 
11561 
11562 
11563   # Publish this variable in the help.
11564 
11565 
11566   if test "x$GREP" = x; then
11567     # The variable is not set by user, try to locate tool using the code snippet
11568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11569 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11570 if ${ac_cv_path_GREP+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   if test -z "$GREP"; then
11574   ac_path_GREP_found=false
11575   # Loop through the user's path and test for each of PROGNAME-LIST
11576   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11578 do
11579   IFS=$as_save_IFS
11580   test -z "$as_dir" && as_dir=.
11581     for ac_prog in grep ggrep; do
11582     for ac_exec_ext in '' $ac_executable_extensions; do
11583       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11584       as_fn_executable_p "$ac_path_GREP" || continue
11585 # Check for GNU ac_path_GREP and select it if it is found.
11586   # Check for GNU $ac_path_GREP
11587 case `"$ac_path_GREP" --version 2>&1` in
11588 *GNU*)
11589   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11590 *)
11591   ac_count=0
11592   $as_echo_n 0123456789 >"conftest.in"
11593   while :
11594   do
11595     cat "conftest.in" "conftest.in" >"conftest.tmp"
11596     mv "conftest.tmp" "conftest.in"
11597     cp "conftest.in" "conftest.nl"
11598     $as_echo 'GREP' >> "conftest.nl"
11599     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11600     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11601     as_fn_arith $ac_count + 1 && ac_count=$as_val
11602     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11603       # Best one so far, save it but keep looking for a better one
11604       ac_cv_path_GREP="$ac_path_GREP"
11605       ac_path_GREP_max=$ac_count
11606     fi
11607     # 10*(2^10) chars as input seems more than enough
11608     test $ac_count -gt 10 && break
11609   done
11610   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11611 esac
11612 
11613       $ac_path_GREP_found && break 3
11614     done
11615   done
11616   done
11617 IFS=$as_save_IFS
11618   if test -z "$ac_cv_path_GREP"; then
11619     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11620   fi
11621 else
11622   ac_cv_path_GREP=$GREP
11623 fi
11624 
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11627 $as_echo "$ac_cv_path_GREP" >&6; }
11628  GREP="$ac_cv_path_GREP"
11629 
11630 
11631   else
11632     # The variable is set, but is it from the command line or the environment?
11633 
11634     # Try to remove the string !GREP! from our list.
11635     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/}
11636     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11637       # If it failed, the variable was not from the command line. Ignore it,
11638       # but warn the user (except for BASH, which is always set by the calling BASH).
11639       if test "xGREP" != xBASH; then
11640         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5
11641 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;}
11642       fi
11643       # Try to locate tool using the code snippet
11644       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
11645 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
11646 if ${ac_cv_path_GREP+:} false; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   if test -z "$GREP"; then
11650   ac_path_GREP_found=false
11651   # Loop through the user's path and test for each of PROGNAME-LIST
11652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11654 do
11655   IFS=$as_save_IFS
11656   test -z "$as_dir" && as_dir=.
11657     for ac_prog in grep ggrep; do
11658     for ac_exec_ext in '' $ac_executable_extensions; do
11659       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
11660       as_fn_executable_p "$ac_path_GREP" || continue
11661 # Check for GNU ac_path_GREP and select it if it is found.
11662   # Check for GNU $ac_path_GREP
11663 case `"$ac_path_GREP" --version 2>&1` in
11664 *GNU*)
11665   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
11666 *)
11667   ac_count=0
11668   $as_echo_n 0123456789 >"conftest.in"
11669   while :
11670   do
11671     cat "conftest.in" "conftest.in" >"conftest.tmp"
11672     mv "conftest.tmp" "conftest.in"
11673     cp "conftest.in" "conftest.nl"
11674     $as_echo 'GREP' >> "conftest.nl"
11675     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11676     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11677     as_fn_arith $ac_count + 1 && ac_count=$as_val
11678     if test $ac_count -gt ${ac_path_GREP_max-0}; then
11679       # Best one so far, save it but keep looking for a better one
11680       ac_cv_path_GREP="$ac_path_GREP"
11681       ac_path_GREP_max=$ac_count
11682     fi
11683     # 10*(2^10) chars as input seems more than enough
11684     test $ac_count -gt 10 && break
11685   done
11686   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11687 esac
11688 
11689       $ac_path_GREP_found && break 3
11690     done
11691   done
11692   done
11693 IFS=$as_save_IFS
11694   if test -z "$ac_cv_path_GREP"; then
11695     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11696   fi
11697 else
11698   ac_cv_path_GREP=$GREP
11699 fi
11700 
11701 fi
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
11703 $as_echo "$ac_cv_path_GREP" >&6; }
11704  GREP="$ac_cv_path_GREP"
11705 
11706 
11707     else
11708       # If it succeeded, then it was overridden by the user. We will use it
11709       # for the tool.
11710 
11711       # First remove it from the list of overridden variables, so we can test
11712       # for unknown variables in the end.
11713       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11714 
11715       # Check if the provided tool contains a complete path.
11716       tool_specified="$GREP"
11717       tool_basename="${tool_specified##*/}"
11718       if test "x$tool_basename" = "x$tool_specified"; then
11719         # A command without a complete path is provided, search $PATH.
11720         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5
11721 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;}
11722         # Extract the first word of "$tool_basename", so it can be a program name with args.
11723 set dummy $tool_basename; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725 $as_echo_n "checking for $ac_word... " >&6; }
11726 if ${ac_cv_path_GREP+:} false; then :
11727   $as_echo_n "(cached) " >&6
11728 else
11729   case $GREP in
11730   [\\/]* | ?:[\\/]*)
11731   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
11732   ;;
11733   *)
11734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735 for as_dir in $PATH
11736 do
11737   IFS=$as_save_IFS
11738   test -z "$as_dir" && as_dir=.
11739     for ac_exec_ext in '' $ac_executable_extensions; do
11740   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11741     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
11742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743     break 2
11744   fi
11745 done
11746   done
11747 IFS=$as_save_IFS
11748 
11749   ;;
11750 esac
11751 fi
11752 GREP=$ac_cv_path_GREP
11753 if test -n "$GREP"; then
11754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
11755 $as_echo "$GREP" >&6; }
11756 else
11757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758 $as_echo "no" >&6; }
11759 fi
11760 
11761 
11762         if test "x$GREP" = x; then
11763           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11764         fi
11765       else
11766         # Otherwise we believe it is a complete path. Use it as it is.
11767         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5
11768 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;}
11769         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5
11770 $as_echo_n "checking for GREP... " >&6; }
11771         if test ! -x "$tool_specified"; then
11772           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11773 $as_echo "not found" >&6; }
11774           as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5
11775         fi
11776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
11777 $as_echo "$tool_specified" >&6; }
11778       fi
11779     fi
11780   fi
11781 
11782 
11783   if test "x$GREP" = x; then
11784     as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5
11785   fi
11786 
11787 
11788 
11789 
11790   # Publish this variable in the help.
11791 
11792 
11793   if test "x$EGREP" = x; then
11794     # The variable is not set by user, try to locate tool using the code snippet
11795     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11796 $as_echo_n "checking for egrep... " >&6; }
11797 if ${ac_cv_path_EGREP+:} false; then :
11798   $as_echo_n "(cached) " >&6
11799 else
11800   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11801    then ac_cv_path_EGREP="$GREP -E"
11802    else
11803      if test -z "$EGREP"; then
11804   ac_path_EGREP_found=false
11805   # Loop through the user's path and test for each of PROGNAME-LIST
11806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11808 do
11809   IFS=$as_save_IFS
11810   test -z "$as_dir" && as_dir=.
11811     for ac_prog in egrep; do
11812     for ac_exec_ext in '' $ac_executable_extensions; do
11813       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11814       as_fn_executable_p "$ac_path_EGREP" || continue
11815 # Check for GNU ac_path_EGREP and select it if it is found.
11816   # Check for GNU $ac_path_EGREP
11817 case `"$ac_path_EGREP" --version 2>&1` in
11818 *GNU*)
11819   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11820 *)
11821   ac_count=0
11822   $as_echo_n 0123456789 >"conftest.in"
11823   while :
11824   do
11825     cat "conftest.in" "conftest.in" >"conftest.tmp"
11826     mv "conftest.tmp" "conftest.in"
11827     cp "conftest.in" "conftest.nl"
11828     $as_echo 'EGREP' >> "conftest.nl"
11829     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11830     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11831     as_fn_arith $ac_count + 1 && ac_count=$as_val
11832     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11833       # Best one so far, save it but keep looking for a better one
11834       ac_cv_path_EGREP="$ac_path_EGREP"
11835       ac_path_EGREP_max=$ac_count
11836     fi
11837     # 10*(2^10) chars as input seems more than enough
11838     test $ac_count -gt 10 && break
11839   done
11840   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11841 esac
11842 
11843       $ac_path_EGREP_found && break 3
11844     done
11845   done
11846   done
11847 IFS=$as_save_IFS
11848   if test -z "$ac_cv_path_EGREP"; then
11849     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11850   fi
11851 else
11852   ac_cv_path_EGREP=$EGREP
11853 fi
11854 
11855    fi
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11858 $as_echo "$ac_cv_path_EGREP" >&6; }
11859  EGREP="$ac_cv_path_EGREP"
11860 
11861 
11862   else
11863     # The variable is set, but is it from the command line or the environment?
11864 
11865     # Try to remove the string !EGREP! from our list.
11866     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/}
11867     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
11868       # If it failed, the variable was not from the command line. Ignore it,
11869       # but warn the user (except for BASH, which is always set by the calling BASH).
11870       if test "xEGREP" != xBASH; then
11871         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5
11872 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;}
11873       fi
11874       # Try to locate tool using the code snippet
11875       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11876 $as_echo_n "checking for egrep... " >&6; }
11877 if ${ac_cv_path_EGREP+:} false; then :
11878   $as_echo_n "(cached) " >&6
11879 else
11880   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11881    then ac_cv_path_EGREP="$GREP -E"
11882    else
11883      if test -z "$EGREP"; then
11884   ac_path_EGREP_found=false
11885   # Loop through the user's path and test for each of PROGNAME-LIST
11886   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11888 do
11889   IFS=$as_save_IFS
11890   test -z "$as_dir" && as_dir=.
11891     for ac_prog in egrep; do
11892     for ac_exec_ext in '' $ac_executable_extensions; do
11893       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11894       as_fn_executable_p "$ac_path_EGREP" || continue
11895 # Check for GNU ac_path_EGREP and select it if it is found.
11896   # Check for GNU $ac_path_EGREP
11897 case `"$ac_path_EGREP" --version 2>&1` in
11898 *GNU*)
11899   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11900 *)
11901   ac_count=0
11902   $as_echo_n 0123456789 >"conftest.in"
11903   while :
11904   do
11905     cat "conftest.in" "conftest.in" >"conftest.tmp"
11906     mv "conftest.tmp" "conftest.in"
11907     cp "conftest.in" "conftest.nl"
11908     $as_echo 'EGREP' >> "conftest.nl"
11909     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11910     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11911     as_fn_arith $ac_count + 1 && ac_count=$as_val
11912     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11913       # Best one so far, save it but keep looking for a better one
11914       ac_cv_path_EGREP="$ac_path_EGREP"
11915       ac_path_EGREP_max=$ac_count
11916     fi
11917     # 10*(2^10) chars as input seems more than enough
11918     test $ac_count -gt 10 && break
11919   done
11920   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11921 esac
11922 
11923       $ac_path_EGREP_found && break 3
11924     done
11925   done
11926   done
11927 IFS=$as_save_IFS
11928   if test -z "$ac_cv_path_EGREP"; then
11929     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
11930   fi
11931 else
11932   ac_cv_path_EGREP=$EGREP
11933 fi
11934 
11935    fi
11936 fi
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11938 $as_echo "$ac_cv_path_EGREP" >&6; }
11939  EGREP="$ac_cv_path_EGREP"
11940 
11941 
11942     else
11943       # If it succeeded, then it was overridden by the user. We will use it
11944       # for the tool.
11945 
11946       # First remove it from the list of overridden variables, so we can test
11947       # for unknown variables in the end.
11948       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
11949 
11950       # Check if the provided tool contains a complete path.
11951       tool_specified="$EGREP"
11952       tool_basename="${tool_specified##*/}"
11953       if test "x$tool_basename" = "x$tool_specified"; then
11954         # A command without a complete path is provided, search $PATH.
11955         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5
11956 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;}
11957         # Extract the first word of "$tool_basename", so it can be a program name with args.
11958 set dummy $tool_basename; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_path_EGREP+:} false; then :
11962   $as_echo_n "(cached) " >&6
11963 else
11964   case $EGREP in
11965   [\\/]* | ?:[\\/]*)
11966   ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
11967   ;;
11968   *)
11969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970 for as_dir in $PATH
11971 do
11972   IFS=$as_save_IFS
11973   test -z "$as_dir" && as_dir=.
11974     for ac_exec_ext in '' $ac_executable_extensions; do
11975   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11976     ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
11977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11978     break 2
11979   fi
11980 done
11981   done
11982 IFS=$as_save_IFS
11983 
11984   ;;
11985 esac
11986 fi
11987 EGREP=$ac_cv_path_EGREP
11988 if test -n "$EGREP"; then
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
11990 $as_echo "$EGREP" >&6; }
11991 else
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11993 $as_echo "no" >&6; }
11994 fi
11995 
11996 
11997         if test "x$EGREP" = x; then
11998           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
11999         fi
12000       else
12001         # Otherwise we believe it is a complete path. Use it as it is.
12002         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5
12003 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;}
12004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5
12005 $as_echo_n "checking for EGREP... " >&6; }
12006         if test ! -x "$tool_specified"; then
12007           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12008 $as_echo "not found" >&6; }
12009           as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12010         fi
12011         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12012 $as_echo "$tool_specified" >&6; }
12013       fi
12014     fi
12015   fi
12016 
12017 
12018   if test "x$EGREP" = x; then
12019     as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5
12020   fi
12021 
12022 
12023 
12024 
12025   # Publish this variable in the help.
12026 
12027 
12028   if test "x$FGREP" = x; then
12029     # The variable is not set by user, try to locate tool using the code snippet
12030     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12031 $as_echo_n "checking for fgrep... " >&6; }
12032 if ${ac_cv_path_FGREP+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12036    then ac_cv_path_FGREP="$GREP -F"
12037    else
12038      if test -z "$FGREP"; then
12039   ac_path_FGREP_found=false
12040   # Loop through the user's path and test for each of PROGNAME-LIST
12041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046     for ac_prog in fgrep; do
12047     for ac_exec_ext in '' $ac_executable_extensions; do
12048       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12049       as_fn_executable_p "$ac_path_FGREP" || continue
12050 # Check for GNU ac_path_FGREP and select it if it is found.
12051   # Check for GNU $ac_path_FGREP
12052 case `"$ac_path_FGREP" --version 2>&1` in
12053 *GNU*)
12054   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12055 *)
12056   ac_count=0
12057   $as_echo_n 0123456789 >"conftest.in"
12058   while :
12059   do
12060     cat "conftest.in" "conftest.in" >"conftest.tmp"
12061     mv "conftest.tmp" "conftest.in"
12062     cp "conftest.in" "conftest.nl"
12063     $as_echo 'FGREP' >> "conftest.nl"
12064     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12065     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12066     as_fn_arith $ac_count + 1 && ac_count=$as_val
12067     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12068       # Best one so far, save it but keep looking for a better one
12069       ac_cv_path_FGREP="$ac_path_FGREP"
12070       ac_path_FGREP_max=$ac_count
12071     fi
12072     # 10*(2^10) chars as input seems more than enough
12073     test $ac_count -gt 10 && break
12074   done
12075   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12076 esac
12077 
12078       $ac_path_FGREP_found && break 3
12079     done
12080   done
12081   done
12082 IFS=$as_save_IFS
12083   if test -z "$ac_cv_path_FGREP"; then
12084     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12085   fi
12086 else
12087   ac_cv_path_FGREP=$FGREP
12088 fi
12089 
12090    fi
12091 fi
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12093 $as_echo "$ac_cv_path_FGREP" >&6; }
12094  FGREP="$ac_cv_path_FGREP"
12095 
12096 
12097   else
12098     # The variable is set, but is it from the command line or the environment?
12099 
12100     # Try to remove the string !FGREP! from our list.
12101     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/}
12102     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12103       # If it failed, the variable was not from the command line. Ignore it,
12104       # but warn the user (except for BASH, which is always set by the calling BASH).
12105       if test "xFGREP" != xBASH; then
12106         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5
12107 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;}
12108       fi
12109       # Try to locate tool using the code snippet
12110       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
12111 $as_echo_n "checking for fgrep... " >&6; }
12112 if ${ac_cv_path_FGREP+:} false; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
12116    then ac_cv_path_FGREP="$GREP -F"
12117    else
12118      if test -z "$FGREP"; then
12119   ac_path_FGREP_found=false
12120   # Loop through the user's path and test for each of PROGNAME-LIST
12121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12123 do
12124   IFS=$as_save_IFS
12125   test -z "$as_dir" && as_dir=.
12126     for ac_prog in fgrep; do
12127     for ac_exec_ext in '' $ac_executable_extensions; do
12128       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
12129       as_fn_executable_p "$ac_path_FGREP" || continue
12130 # Check for GNU ac_path_FGREP and select it if it is found.
12131   # Check for GNU $ac_path_FGREP
12132 case `"$ac_path_FGREP" --version 2>&1` in
12133 *GNU*)
12134   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
12135 *)
12136   ac_count=0
12137   $as_echo_n 0123456789 >"conftest.in"
12138   while :
12139   do
12140     cat "conftest.in" "conftest.in" >"conftest.tmp"
12141     mv "conftest.tmp" "conftest.in"
12142     cp "conftest.in" "conftest.nl"
12143     $as_echo 'FGREP' >> "conftest.nl"
12144     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
12145     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12146     as_fn_arith $ac_count + 1 && ac_count=$as_val
12147     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12148       # Best one so far, save it but keep looking for a better one
12149       ac_cv_path_FGREP="$ac_path_FGREP"
12150       ac_path_FGREP_max=$ac_count
12151     fi
12152     # 10*(2^10) chars as input seems more than enough
12153     test $ac_count -gt 10 && break
12154   done
12155   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12156 esac
12157 
12158       $ac_path_FGREP_found && break 3
12159     done
12160   done
12161   done
12162 IFS=$as_save_IFS
12163   if test -z "$ac_cv_path_FGREP"; then
12164     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12165   fi
12166 else
12167   ac_cv_path_FGREP=$FGREP
12168 fi
12169 
12170    fi
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12173 $as_echo "$ac_cv_path_FGREP" >&6; }
12174  FGREP="$ac_cv_path_FGREP"
12175 
12176 
12177     else
12178       # If it succeeded, then it was overridden by the user. We will use it
12179       # for the tool.
12180 
12181       # First remove it from the list of overridden variables, so we can test
12182       # for unknown variables in the end.
12183       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12184 
12185       # Check if the provided tool contains a complete path.
12186       tool_specified="$FGREP"
12187       tool_basename="${tool_specified##*/}"
12188       if test "x$tool_basename" = "x$tool_specified"; then
12189         # A command without a complete path is provided, search $PATH.
12190         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5
12191 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;}
12192         # Extract the first word of "$tool_basename", so it can be a program name with args.
12193 set dummy $tool_basename; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195 $as_echo_n "checking for $ac_word... " >&6; }
12196 if ${ac_cv_path_FGREP+:} false; then :
12197   $as_echo_n "(cached) " >&6
12198 else
12199   case $FGREP in
12200   [\\/]* | ?:[\\/]*)
12201   ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path.
12202   ;;
12203   *)
12204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12205 for as_dir in $PATH
12206 do
12207   IFS=$as_save_IFS
12208   test -z "$as_dir" && as_dir=.
12209     for ac_exec_ext in '' $ac_executable_extensions; do
12210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12211     ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext"
12212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12213     break 2
12214   fi
12215 done
12216   done
12217 IFS=$as_save_IFS
12218 
12219   ;;
12220 esac
12221 fi
12222 FGREP=$ac_cv_path_FGREP
12223 if test -n "$FGREP"; then
12224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5
12225 $as_echo "$FGREP" >&6; }
12226 else
12227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12229 fi
12230 
12231 
12232         if test "x$FGREP" = x; then
12233           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12234         fi
12235       else
12236         # Otherwise we believe it is a complete path. Use it as it is.
12237         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5
12238 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;}
12239         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5
12240 $as_echo_n "checking for FGREP... " >&6; }
12241         if test ! -x "$tool_specified"; then
12242           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12243 $as_echo "not found" >&6; }
12244           as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5
12245         fi
12246         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12247 $as_echo "$tool_specified" >&6; }
12248       fi
12249     fi
12250   fi
12251 
12252 
12253   if test "x$FGREP" = x; then
12254     as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5
12255   fi
12256 
12257 
12258 
12259 
12260   # Publish this variable in the help.
12261 
12262 
12263   if test "x$SED" = x; then
12264     # The variable is not set by user, try to locate tool using the code snippet
12265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12266 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12267 if ${ac_cv_path_SED+:} false; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12271      for ac_i in 1 2 3 4 5 6 7; do
12272        ac_script="$ac_script$as_nl$ac_script"
12273      done
12274      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12275      { ac_script=; unset ac_script;}
12276      if test -z "$SED"; then
12277   ac_path_SED_found=false
12278   # Loop through the user's path and test for each of PROGNAME-LIST
12279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12280 for as_dir in $PATH
12281 do
12282   IFS=$as_save_IFS
12283   test -z "$as_dir" && as_dir=.
12284     for ac_prog in sed gsed; do
12285     for ac_exec_ext in '' $ac_executable_extensions; do
12286       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12287       as_fn_executable_p "$ac_path_SED" || continue
12288 # Check for GNU ac_path_SED and select it if it is found.
12289   # Check for GNU $ac_path_SED
12290 case `"$ac_path_SED" --version 2>&1` in
12291 *GNU*)
12292   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12293 *)
12294   ac_count=0
12295   $as_echo_n 0123456789 >"conftest.in"
12296   while :
12297   do
12298     cat "conftest.in" "conftest.in" >"conftest.tmp"
12299     mv "conftest.tmp" "conftest.in"
12300     cp "conftest.in" "conftest.nl"
12301     $as_echo '' >> "conftest.nl"
12302     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12303     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12304     as_fn_arith $ac_count + 1 && ac_count=$as_val
12305     if test $ac_count -gt ${ac_path_SED_max-0}; then
12306       # Best one so far, save it but keep looking for a better one
12307       ac_cv_path_SED="$ac_path_SED"
12308       ac_path_SED_max=$ac_count
12309     fi
12310     # 10*(2^10) chars as input seems more than enough
12311     test $ac_count -gt 10 && break
12312   done
12313   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12314 esac
12315 
12316       $ac_path_SED_found && break 3
12317     done
12318   done
12319   done
12320 IFS=$as_save_IFS
12321   if test -z "$ac_cv_path_SED"; then
12322     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12323   fi
12324 else
12325   ac_cv_path_SED=$SED
12326 fi
12327 
12328 fi
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12330 $as_echo "$ac_cv_path_SED" >&6; }
12331  SED="$ac_cv_path_SED"
12332   rm -f conftest.sed
12333 
12334   else
12335     # The variable is set, but is it from the command line or the environment?
12336 
12337     # Try to remove the string !SED! from our list.
12338     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/}
12339     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12340       # If it failed, the variable was not from the command line. Ignore it,
12341       # but warn the user (except for BASH, which is always set by the calling BASH).
12342       if test "xSED" != xBASH; then
12343         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5
12344 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;}
12345       fi
12346       # Try to locate tool using the code snippet
12347       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12348 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
12349 if ${ac_cv_path_SED+:} false; then :
12350   $as_echo_n "(cached) " >&6
12351 else
12352             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12353      for ac_i in 1 2 3 4 5 6 7; do
12354        ac_script="$ac_script$as_nl$ac_script"
12355      done
12356      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12357      { ac_script=; unset ac_script;}
12358      if test -z "$SED"; then
12359   ac_path_SED_found=false
12360   # Loop through the user's path and test for each of PROGNAME-LIST
12361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12363 do
12364   IFS=$as_save_IFS
12365   test -z "$as_dir" && as_dir=.
12366     for ac_prog in sed gsed; do
12367     for ac_exec_ext in '' $ac_executable_extensions; do
12368       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12369       as_fn_executable_p "$ac_path_SED" || continue
12370 # Check for GNU ac_path_SED and select it if it is found.
12371   # Check for GNU $ac_path_SED
12372 case `"$ac_path_SED" --version 2>&1` in
12373 *GNU*)
12374   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12375 *)
12376   ac_count=0
12377   $as_echo_n 0123456789 >"conftest.in"
12378   while :
12379   do
12380     cat "conftest.in" "conftest.in" >"conftest.tmp"
12381     mv "conftest.tmp" "conftest.in"
12382     cp "conftest.in" "conftest.nl"
12383     $as_echo '' >> "conftest.nl"
12384     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12385     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12386     as_fn_arith $ac_count + 1 && ac_count=$as_val
12387     if test $ac_count -gt ${ac_path_SED_max-0}; then
12388       # Best one so far, save it but keep looking for a better one
12389       ac_cv_path_SED="$ac_path_SED"
12390       ac_path_SED_max=$ac_count
12391     fi
12392     # 10*(2^10) chars as input seems more than enough
12393     test $ac_count -gt 10 && break
12394   done
12395   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12396 esac
12397 
12398       $ac_path_SED_found && break 3
12399     done
12400   done
12401   done
12402 IFS=$as_save_IFS
12403   if test -z "$ac_cv_path_SED"; then
12404     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12405   fi
12406 else
12407   ac_cv_path_SED=$SED
12408 fi
12409 
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12412 $as_echo "$ac_cv_path_SED" >&6; }
12413  SED="$ac_cv_path_SED"
12414   rm -f conftest.sed
12415 
12416     else
12417       # If it succeeded, then it was overridden by the user. We will use it
12418       # for the tool.
12419 
12420       # First remove it from the list of overridden variables, so we can test
12421       # for unknown variables in the end.
12422       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12423 
12424       # Check if the provided tool contains a complete path.
12425       tool_specified="$SED"
12426       tool_basename="${tool_specified##*/}"
12427       if test "x$tool_basename" = "x$tool_specified"; then
12428         # A command without a complete path is provided, search $PATH.
12429         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5
12430 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;}
12431         # Extract the first word of "$tool_basename", so it can be a program name with args.
12432 set dummy $tool_basename; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12434 $as_echo_n "checking for $ac_word... " >&6; }
12435 if ${ac_cv_path_SED+:} false; then :
12436   $as_echo_n "(cached) " >&6
12437 else
12438   case $SED in
12439   [\\/]* | ?:[\\/]*)
12440   ac_cv_path_SED="$SED" # Let the user override the test with a path.
12441   ;;
12442   *)
12443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12445 do
12446   IFS=$as_save_IFS
12447   test -z "$as_dir" && as_dir=.
12448     for ac_exec_ext in '' $ac_executable_extensions; do
12449   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
12451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12452     break 2
12453   fi
12454 done
12455   done
12456 IFS=$as_save_IFS
12457 
12458   ;;
12459 esac
12460 fi
12461 SED=$ac_cv_path_SED
12462 if test -n "$SED"; then
12463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
12464 $as_echo "$SED" >&6; }
12465 else
12466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12468 fi
12469 
12470 
12471         if test "x$SED" = x; then
12472           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12473         fi
12474       else
12475         # Otherwise we believe it is a complete path. Use it as it is.
12476         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5
12477 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;}
12478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5
12479 $as_echo_n "checking for SED... " >&6; }
12480         if test ! -x "$tool_specified"; then
12481           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12482 $as_echo "not found" >&6; }
12483           as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5
12484         fi
12485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12486 $as_echo "$tool_specified" >&6; }
12487       fi
12488     fi
12489   fi
12490 
12491 
12492   if test "x$SED" = x; then
12493     as_fn_error $? "Could not find required tool for SED" "$LINENO" 5
12494   fi
12495 
12496 
12497 
12498   # Always force rm.
12499   RM="$RM -f"
12500 
12501   # pwd behaves differently on various platforms and some don't support the -L flag.
12502   # Always use the bash builtin pwd to get uniform behavior.
12503   THEPWDCMD=pwd
12504 
12505   # These are not required on all platforms
12506 
12507 
12508   # Publish this variable in the help.
12509 
12510 
12511   if test "x$CYGPATH" = x; then
12512     # The variable is not set by user, try to locate tool using the code snippet
12513     for ac_prog in cygpath
12514 do
12515   # Extract the first word of "$ac_prog", so it can be a program name with args.
12516 set dummy $ac_prog; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12518 $as_echo_n "checking for $ac_word... " >&6; }
12519 if ${ac_cv_path_CYGPATH+:} false; then :
12520   $as_echo_n "(cached) " >&6
12521 else
12522   case $CYGPATH in
12523   [\\/]* | ?:[\\/]*)
12524   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12525   ;;
12526   *)
12527   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530   IFS=$as_save_IFS
12531   test -z "$as_dir" && as_dir=.
12532     for ac_exec_ext in '' $ac_executable_extensions; do
12533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536     break 2
12537   fi
12538 done
12539   done
12540 IFS=$as_save_IFS
12541 
12542   ;;
12543 esac
12544 fi
12545 CYGPATH=$ac_cv_path_CYGPATH
12546 if test -n "$CYGPATH"; then
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12548 $as_echo "$CYGPATH" >&6; }
12549 else
12550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551 $as_echo "no" >&6; }
12552 fi
12553 
12554 
12555   test -n "$CYGPATH" && break
12556 done
12557 
12558   else
12559     # The variable is set, but is it from the command line or the environment?
12560 
12561     # Try to remove the string !CYGPATH! from our list.
12562     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/}
12563     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12564       # If it failed, the variable was not from the command line. Ignore it,
12565       # but warn the user (except for BASH, which is always set by the calling BASH).
12566       if test "xCYGPATH" != xBASH; then
12567         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5
12568 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;}
12569       fi
12570       # Try to locate tool using the code snippet
12571       for ac_prog in cygpath
12572 do
12573   # Extract the first word of "$ac_prog", so it can be a program name with args.
12574 set dummy $ac_prog; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12576 $as_echo_n "checking for $ac_word... " >&6; }
12577 if ${ac_cv_path_CYGPATH+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   case $CYGPATH in
12581   [\\/]* | ?:[\\/]*)
12582   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12583   ;;
12584   *)
12585   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12587 do
12588   IFS=$as_save_IFS
12589   test -z "$as_dir" && as_dir=.
12590     for ac_exec_ext in '' $ac_executable_extensions; do
12591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12594     break 2
12595   fi
12596 done
12597   done
12598 IFS=$as_save_IFS
12599 
12600   ;;
12601 esac
12602 fi
12603 CYGPATH=$ac_cv_path_CYGPATH
12604 if test -n "$CYGPATH"; then
12605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12606 $as_echo "$CYGPATH" >&6; }
12607 else
12608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12609 $as_echo "no" >&6; }
12610 fi
12611 
12612 
12613   test -n "$CYGPATH" && break
12614 done
12615 
12616     else
12617       # If it succeeded, then it was overridden by the user. We will use it
12618       # for the tool.
12619 
12620       # First remove it from the list of overridden variables, so we can test
12621       # for unknown variables in the end.
12622       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12623 
12624       # Check if the provided tool contains a complete path.
12625       tool_specified="$CYGPATH"
12626       tool_basename="${tool_specified##*/}"
12627       if test "x$tool_basename" = "x$tool_specified"; then
12628         # A command without a complete path is provided, search $PATH.
12629         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5
12630 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;}
12631         # Extract the first word of "$tool_basename", so it can be a program name with args.
12632 set dummy $tool_basename; ac_word=$2
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634 $as_echo_n "checking for $ac_word... " >&6; }
12635 if ${ac_cv_path_CYGPATH+:} false; then :
12636   $as_echo_n "(cached) " >&6
12637 else
12638   case $CYGPATH in
12639   [\\/]* | ?:[\\/]*)
12640   ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
12641   ;;
12642   *)
12643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644 for as_dir in $PATH
12645 do
12646   IFS=$as_save_IFS
12647   test -z "$as_dir" && as_dir=.
12648     for ac_exec_ext in '' $ac_executable_extensions; do
12649   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12650     ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
12651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12652     break 2
12653   fi
12654 done
12655   done
12656 IFS=$as_save_IFS
12657 
12658   ;;
12659 esac
12660 fi
12661 CYGPATH=$ac_cv_path_CYGPATH
12662 if test -n "$CYGPATH"; then
12663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
12664 $as_echo "$CYGPATH" >&6; }
12665 else
12666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12667 $as_echo "no" >&6; }
12668 fi
12669 
12670 
12671         if test "x$CYGPATH" = x; then
12672           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12673         fi
12674       else
12675         # Otherwise we believe it is a complete path. Use it as it is.
12676         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5
12677 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;}
12678         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5
12679 $as_echo_n "checking for CYGPATH... " >&6; }
12680         if test ! -x "$tool_specified"; then
12681           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12682 $as_echo "not found" >&6; }
12683           as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5
12684         fi
12685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12686 $as_echo "$tool_specified" >&6; }
12687       fi
12688     fi
12689   fi
12690 
12691 
12692 
12693 
12694   # Publish this variable in the help.
12695 
12696 
12697   if test "x$READLINK" = x; then
12698     # The variable is not set by user, try to locate tool using the code snippet
12699     for ac_prog in greadlink readlink
12700 do
12701   # Extract the first word of "$ac_prog", so it can be a program name with args.
12702 set dummy $ac_prog; ac_word=$2
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12704 $as_echo_n "checking for $ac_word... " >&6; }
12705 if ${ac_cv_path_READLINK+:} false; then :
12706   $as_echo_n "(cached) " >&6
12707 else
12708   case $READLINK in
12709   [\\/]* | ?:[\\/]*)
12710   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12711   ;;
12712   *)
12713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12714 for as_dir in $PATH
12715 do
12716   IFS=$as_save_IFS
12717   test -z "$as_dir" && as_dir=.
12718     for ac_exec_ext in '' $ac_executable_extensions; do
12719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12720     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12722     break 2
12723   fi
12724 done
12725   done
12726 IFS=$as_save_IFS
12727 
12728   ;;
12729 esac
12730 fi
12731 READLINK=$ac_cv_path_READLINK
12732 if test -n "$READLINK"; then
12733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12734 $as_echo "$READLINK" >&6; }
12735 else
12736   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12737 $as_echo "no" >&6; }
12738 fi
12739 
12740 
12741   test -n "$READLINK" && break
12742 done
12743 
12744   else
12745     # The variable is set, but is it from the command line or the environment?
12746 
12747     # Try to remove the string !READLINK! from our list.
12748     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/}
12749     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12750       # If it failed, the variable was not from the command line. Ignore it,
12751       # but warn the user (except for BASH, which is always set by the calling BASH).
12752       if test "xREADLINK" != xBASH; then
12753         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5
12754 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;}
12755       fi
12756       # Try to locate tool using the code snippet
12757       for ac_prog in greadlink readlink
12758 do
12759   # Extract the first word of "$ac_prog", so it can be a program name with args.
12760 set dummy $ac_prog; ac_word=$2
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762 $as_echo_n "checking for $ac_word... " >&6; }
12763 if ${ac_cv_path_READLINK+:} false; then :
12764   $as_echo_n "(cached) " >&6
12765 else
12766   case $READLINK in
12767   [\\/]* | ?:[\\/]*)
12768   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12769   ;;
12770   *)
12771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772 for as_dir in $PATH
12773 do
12774   IFS=$as_save_IFS
12775   test -z "$as_dir" && as_dir=.
12776     for ac_exec_ext in '' $ac_executable_extensions; do
12777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12778     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780     break 2
12781   fi
12782 done
12783   done
12784 IFS=$as_save_IFS
12785 
12786   ;;
12787 esac
12788 fi
12789 READLINK=$ac_cv_path_READLINK
12790 if test -n "$READLINK"; then
12791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12792 $as_echo "$READLINK" >&6; }
12793 else
12794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795 $as_echo "no" >&6; }
12796 fi
12797 
12798 
12799   test -n "$READLINK" && break
12800 done
12801 
12802     else
12803       # If it succeeded, then it was overridden by the user. We will use it
12804       # for the tool.
12805 
12806       # First remove it from the list of overridden variables, so we can test
12807       # for unknown variables in the end.
12808       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12809 
12810       # Check if the provided tool contains a complete path.
12811       tool_specified="$READLINK"
12812       tool_basename="${tool_specified##*/}"
12813       if test "x$tool_basename" = "x$tool_specified"; then
12814         # A command without a complete path is provided, search $PATH.
12815         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5
12816 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;}
12817         # Extract the first word of "$tool_basename", so it can be a program name with args.
12818 set dummy $tool_basename; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if ${ac_cv_path_READLINK+:} false; then :
12822   $as_echo_n "(cached) " >&6
12823 else
12824   case $READLINK in
12825   [\\/]* | ?:[\\/]*)
12826   ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
12827   ;;
12828   *)
12829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12831 do
12832   IFS=$as_save_IFS
12833   test -z "$as_dir" && as_dir=.
12834     for ac_exec_ext in '' $ac_executable_extensions; do
12835   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12836     ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
12837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838     break 2
12839   fi
12840 done
12841   done
12842 IFS=$as_save_IFS
12843 
12844   ;;
12845 esac
12846 fi
12847 READLINK=$ac_cv_path_READLINK
12848 if test -n "$READLINK"; then
12849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
12850 $as_echo "$READLINK" >&6; }
12851 else
12852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853 $as_echo "no" >&6; }
12854 fi
12855 
12856 
12857         if test "x$READLINK" = x; then
12858           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
12859         fi
12860       else
12861         # Otherwise we believe it is a complete path. Use it as it is.
12862         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5
12863 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;}
12864         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5
12865 $as_echo_n "checking for READLINK... " >&6; }
12866         if test ! -x "$tool_specified"; then
12867           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12868 $as_echo "not found" >&6; }
12869           as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5
12870         fi
12871         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
12872 $as_echo "$tool_specified" >&6; }
12873       fi
12874     fi
12875   fi
12876 
12877 
12878 
12879 
12880   # Publish this variable in the help.
12881 
12882 
12883   if test "x$DF" = x; then
12884     # The variable is not set by user, try to locate tool using the code snippet
12885     for ac_prog in df
12886 do
12887   # Extract the first word of "$ac_prog", so it can be a program name with args.
12888 set dummy $ac_prog; ac_word=$2
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12890 $as_echo_n "checking for $ac_word... " >&6; }
12891 if ${ac_cv_path_DF+:} false; then :
12892   $as_echo_n "(cached) " >&6
12893 else
12894   case $DF in
12895   [\\/]* | ?:[\\/]*)
12896   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12897   ;;
12898   *)
12899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12900 for as_dir in $PATH
12901 do
12902   IFS=$as_save_IFS
12903   test -z "$as_dir" && as_dir=.
12904     for ac_exec_ext in '' $ac_executable_extensions; do
12905   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12906     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12907     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12908     break 2
12909   fi
12910 done
12911   done
12912 IFS=$as_save_IFS
12913 
12914   ;;
12915 esac
12916 fi
12917 DF=$ac_cv_path_DF
12918 if test -n "$DF"; then
12919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12920 $as_echo "$DF" >&6; }
12921 else
12922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12923 $as_echo "no" >&6; }
12924 fi
12925 
12926 
12927   test -n "$DF" && break
12928 done
12929 
12930   else
12931     # The variable is set, but is it from the command line or the environment?
12932 
12933     # Try to remove the string !DF! from our list.
12934     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/}
12935     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
12936       # If it failed, the variable was not from the command line. Ignore it,
12937       # but warn the user (except for BASH, which is always set by the calling BASH).
12938       if test "xDF" != xBASH; then
12939         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5
12940 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;}
12941       fi
12942       # Try to locate tool using the code snippet
12943       for ac_prog in df
12944 do
12945   # Extract the first word of "$ac_prog", so it can be a program name with args.
12946 set dummy $ac_prog; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12948 $as_echo_n "checking for $ac_word... " >&6; }
12949 if ${ac_cv_path_DF+:} false; then :
12950   $as_echo_n "(cached) " >&6
12951 else
12952   case $DF in
12953   [\\/]* | ?:[\\/]*)
12954   ac_cv_path_DF="$DF" # Let the user override the test with a path.
12955   ;;
12956   *)
12957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12959 do
12960   IFS=$as_save_IFS
12961   test -z "$as_dir" && as_dir=.
12962     for ac_exec_ext in '' $ac_executable_extensions; do
12963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12964     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
12965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12966     break 2
12967   fi
12968 done
12969   done
12970 IFS=$as_save_IFS
12971 
12972   ;;
12973 esac
12974 fi
12975 DF=$ac_cv_path_DF
12976 if test -n "$DF"; then
12977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
12978 $as_echo "$DF" >&6; }
12979 else
12980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12981 $as_echo "no" >&6; }
12982 fi
12983 
12984 
12985   test -n "$DF" && break
12986 done
12987 
12988     else
12989       # If it succeeded, then it was overridden by the user. We will use it
12990       # for the tool.
12991 
12992       # First remove it from the list of overridden variables, so we can test
12993       # for unknown variables in the end.
12994       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
12995 
12996       # Check if the provided tool contains a complete path.
12997       tool_specified="$DF"
12998       tool_basename="${tool_specified##*/}"
12999       if test "x$tool_basename" = "x$tool_specified"; then
13000         # A command without a complete path is provided, search $PATH.
13001         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5
13002 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;}
13003         # Extract the first word of "$tool_basename", so it can be a program name with args.
13004 set dummy $tool_basename; ac_word=$2
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13006 $as_echo_n "checking for $ac_word... " >&6; }
13007 if ${ac_cv_path_DF+:} false; then :
13008   $as_echo_n "(cached) " >&6
13009 else
13010   case $DF in
13011   [\\/]* | ?:[\\/]*)
13012   ac_cv_path_DF="$DF" # Let the user override the test with a path.
13013   ;;
13014   *)
13015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016 for as_dir in $PATH
13017 do
13018   IFS=$as_save_IFS
13019   test -z "$as_dir" && as_dir=.
13020     for ac_exec_ext in '' $ac_executable_extensions; do
13021   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13022     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
13023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13024     break 2
13025   fi
13026 done
13027   done
13028 IFS=$as_save_IFS
13029 
13030   ;;
13031 esac
13032 fi
13033 DF=$ac_cv_path_DF
13034 if test -n "$DF"; then
13035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
13036 $as_echo "$DF" >&6; }
13037 else
13038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039 $as_echo "no" >&6; }
13040 fi
13041 
13042 
13043         if test "x$DF" = x; then
13044           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13045         fi
13046       else
13047         # Otherwise we believe it is a complete path. Use it as it is.
13048         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5
13049 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;}
13050         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5
13051 $as_echo_n "checking for DF... " >&6; }
13052         if test ! -x "$tool_specified"; then
13053           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13054 $as_echo "not found" >&6; }
13055           as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5
13056         fi
13057         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13058 $as_echo "$tool_specified" >&6; }
13059       fi
13060     fi
13061   fi
13062 
13063 
13064 
13065 
13066   # Publish this variable in the help.
13067 
13068 
13069   if test "x$SETFILE" = x; then
13070     # The variable is not set by user, try to locate tool using the code snippet
13071     for ac_prog in SetFile
13072 do
13073   # Extract the first word of "$ac_prog", so it can be a program name with args.
13074 set dummy $ac_prog; ac_word=$2
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if ${ac_cv_path_SETFILE+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   case $SETFILE in
13081   [\\/]* | ?:[\\/]*)
13082   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13083   ;;
13084   *)
13085   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13086 for as_dir in $PATH
13087 do
13088   IFS=$as_save_IFS
13089   test -z "$as_dir" && as_dir=.
13090     for ac_exec_ext in '' $ac_executable_extensions; do
13091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13092     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13094     break 2
13095   fi
13096 done
13097   done
13098 IFS=$as_save_IFS
13099 
13100   ;;
13101 esac
13102 fi
13103 SETFILE=$ac_cv_path_SETFILE
13104 if test -n "$SETFILE"; then
13105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13106 $as_echo "$SETFILE" >&6; }
13107 else
13108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13110 fi
13111 
13112 
13113   test -n "$SETFILE" && break
13114 done
13115 
13116   else
13117     # The variable is set, but is it from the command line or the environment?
13118 
13119     # Try to remove the string !SETFILE! from our list.
13120     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/}
13121     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13122       # If it failed, the variable was not from the command line. Ignore it,
13123       # but warn the user (except for BASH, which is always set by the calling BASH).
13124       if test "xSETFILE" != xBASH; then
13125         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5
13126 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;}
13127       fi
13128       # Try to locate tool using the code snippet
13129       for ac_prog in SetFile
13130 do
13131   # Extract the first word of "$ac_prog", so it can be a program name with args.
13132 set dummy $ac_prog; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13134 $as_echo_n "checking for $ac_word... " >&6; }
13135 if ${ac_cv_path_SETFILE+:} false; then :
13136   $as_echo_n "(cached) " >&6
13137 else
13138   case $SETFILE in
13139   [\\/]* | ?:[\\/]*)
13140   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13141   ;;
13142   *)
13143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13144 for as_dir in $PATH
13145 do
13146   IFS=$as_save_IFS
13147   test -z "$as_dir" && as_dir=.
13148     for ac_exec_ext in '' $ac_executable_extensions; do
13149   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13150     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13151     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13152     break 2
13153   fi
13154 done
13155   done
13156 IFS=$as_save_IFS
13157 
13158   ;;
13159 esac
13160 fi
13161 SETFILE=$ac_cv_path_SETFILE
13162 if test -n "$SETFILE"; then
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13164 $as_echo "$SETFILE" >&6; }
13165 else
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13167 $as_echo "no" >&6; }
13168 fi
13169 
13170 
13171   test -n "$SETFILE" && break
13172 done
13173 
13174     else
13175       # If it succeeded, then it was overridden by the user. We will use it
13176       # for the tool.
13177 
13178       # First remove it from the list of overridden variables, so we can test
13179       # for unknown variables in the end.
13180       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13181 
13182       # Check if the provided tool contains a complete path.
13183       tool_specified="$SETFILE"
13184       tool_basename="${tool_specified##*/}"
13185       if test "x$tool_basename" = "x$tool_specified"; then
13186         # A command without a complete path is provided, search $PATH.
13187         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5
13188 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;}
13189         # Extract the first word of "$tool_basename", so it can be a program name with args.
13190 set dummy $tool_basename; ac_word=$2
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13192 $as_echo_n "checking for $ac_word... " >&6; }
13193 if ${ac_cv_path_SETFILE+:} false; then :
13194   $as_echo_n "(cached) " >&6
13195 else
13196   case $SETFILE in
13197   [\\/]* | ?:[\\/]*)
13198   ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path.
13199   ;;
13200   *)
13201   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202 for as_dir in $PATH
13203 do
13204   IFS=$as_save_IFS
13205   test -z "$as_dir" && as_dir=.
13206     for ac_exec_ext in '' $ac_executable_extensions; do
13207   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13208     ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext"
13209     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210     break 2
13211   fi
13212 done
13213   done
13214 IFS=$as_save_IFS
13215 
13216   ;;
13217 esac
13218 fi
13219 SETFILE=$ac_cv_path_SETFILE
13220 if test -n "$SETFILE"; then
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5
13222 $as_echo "$SETFILE" >&6; }
13223 else
13224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13226 fi
13227 
13228 
13229         if test "x$SETFILE" = x; then
13230           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13231         fi
13232       else
13233         # Otherwise we believe it is a complete path. Use it as it is.
13234         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5
13235 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;}
13236         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5
13237 $as_echo_n "checking for SETFILE... " >&6; }
13238         if test ! -x "$tool_specified"; then
13239           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13240 $as_echo "not found" >&6; }
13241           as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5
13242         fi
13243         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13244 $as_echo "$tool_specified" >&6; }
13245       fi
13246     fi
13247   fi
13248 
13249 
13250 
13251 
13252   # Publish this variable in the help.
13253 
13254 
13255   if test "x$CPIO" = x; then
13256     # The variable is not set by user, try to locate tool using the code snippet
13257     for ac_prog in cpio bsdcpio
13258 do
13259   # Extract the first word of "$ac_prog", so it can be a program name with args.
13260 set dummy $ac_prog; ac_word=$2
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13262 $as_echo_n "checking for $ac_word... " >&6; }
13263 if ${ac_cv_path_CPIO+:} false; then :
13264   $as_echo_n "(cached) " >&6
13265 else
13266   case $CPIO in
13267   [\\/]* | ?:[\\/]*)
13268   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13269   ;;
13270   *)
13271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13272 for as_dir in $PATH
13273 do
13274   IFS=$as_save_IFS
13275   test -z "$as_dir" && as_dir=.
13276     for ac_exec_ext in '' $ac_executable_extensions; do
13277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13278     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13280     break 2
13281   fi
13282 done
13283   done
13284 IFS=$as_save_IFS
13285 
13286   ;;
13287 esac
13288 fi
13289 CPIO=$ac_cv_path_CPIO
13290 if test -n "$CPIO"; then
13291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13292 $as_echo "$CPIO" >&6; }
13293 else
13294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13295 $as_echo "no" >&6; }
13296 fi
13297 
13298 
13299   test -n "$CPIO" && break
13300 done
13301 
13302   else
13303     # The variable is set, but is it from the command line or the environment?
13304 
13305     # Try to remove the string !CPIO! from our list.
13306     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/}
13307     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
13308       # If it failed, the variable was not from the command line. Ignore it,
13309       # but warn the user (except for BASH, which is always set by the calling BASH).
13310       if test "xCPIO" != xBASH; then
13311         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5
13312 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;}
13313       fi
13314       # Try to locate tool using the code snippet
13315       for ac_prog in cpio bsdcpio
13316 do
13317   # Extract the first word of "$ac_prog", so it can be a program name with args.
13318 set dummy $ac_prog; ac_word=$2
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13320 $as_echo_n "checking for $ac_word... " >&6; }
13321 if ${ac_cv_path_CPIO+:} false; then :
13322   $as_echo_n "(cached) " >&6
13323 else
13324   case $CPIO in
13325   [\\/]* | ?:[\\/]*)
13326   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13327   ;;
13328   *)
13329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13330 for as_dir in $PATH
13331 do
13332   IFS=$as_save_IFS
13333   test -z "$as_dir" && as_dir=.
13334     for ac_exec_ext in '' $ac_executable_extensions; do
13335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13336     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13338     break 2
13339   fi
13340 done
13341   done
13342 IFS=$as_save_IFS
13343 
13344   ;;
13345 esac
13346 fi
13347 CPIO=$ac_cv_path_CPIO
13348 if test -n "$CPIO"; then
13349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13350 $as_echo "$CPIO" >&6; }
13351 else
13352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13353 $as_echo "no" >&6; }
13354 fi
13355 
13356 
13357   test -n "$CPIO" && break
13358 done
13359 
13360     else
13361       # If it succeeded, then it was overridden by the user. We will use it
13362       # for the tool.
13363 
13364       # First remove it from the list of overridden variables, so we can test
13365       # for unknown variables in the end.
13366       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
13367 
13368       # Check if the provided tool contains a complete path.
13369       tool_specified="$CPIO"
13370       tool_basename="${tool_specified##*/}"
13371       if test "x$tool_basename" = "x$tool_specified"; then
13372         # A command without a complete path is provided, search $PATH.
13373         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5
13374 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;}
13375         # Extract the first word of "$tool_basename", so it can be a program name with args.
13376 set dummy $tool_basename; ac_word=$2
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378 $as_echo_n "checking for $ac_word... " >&6; }
13379 if ${ac_cv_path_CPIO+:} false; then :
13380   $as_echo_n "(cached) " >&6
13381 else
13382   case $CPIO in
13383   [\\/]* | ?:[\\/]*)
13384   ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
13385   ;;
13386   *)
13387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13388 for as_dir in $PATH
13389 do
13390   IFS=$as_save_IFS
13391   test -z "$as_dir" && as_dir=.
13392     for ac_exec_ext in '' $ac_executable_extensions; do
13393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13394     ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
13395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13396     break 2
13397   fi
13398 done
13399   done
13400 IFS=$as_save_IFS
13401 
13402   ;;
13403 esac
13404 fi
13405 CPIO=$ac_cv_path_CPIO
13406 if test -n "$CPIO"; then
13407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
13408 $as_echo "$CPIO" >&6; }
13409 else
13410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13412 fi
13413 
13414 
13415         if test "x$CPIO" = x; then
13416           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
13417         fi
13418       else
13419         # Otherwise we believe it is a complete path. Use it as it is.
13420         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5
13421 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;}
13422         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5
13423 $as_echo_n "checking for CPIO... " >&6; }
13424         if test ! -x "$tool_specified"; then
13425           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13426 $as_echo "not found" >&6; }
13427           as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5
13428         fi
13429         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
13430 $as_echo "$tool_specified" >&6; }
13431       fi
13432     fi
13433   fi
13434 
13435 
13436 
13437 
13438 # Now we can determine OpenJDK build and target platforms. This is required to
13439 # have early on.
13440 # Make sure we can run config.sub.
13441 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
13442   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
13443 
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
13445 $as_echo_n "checking build system type... " >&6; }
13446 if ${ac_cv_build+:} false; then :
13447   $as_echo_n "(cached) " >&6
13448 else
13449   ac_build_alias=$build_alias
13450 test "x$ac_build_alias" = x &&
13451   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
13452 test "x$ac_build_alias" = x &&
13453   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
13454 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
13455   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
13456 
13457 fi
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
13459 $as_echo "$ac_cv_build" >&6; }
13460 case $ac_cv_build in
13461 *-*-*) ;;
13462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
13463 esac
13464 build=$ac_cv_build
13465 ac_save_IFS=$IFS; IFS='-'
13466 set x $ac_cv_build
13467 shift
13468 build_cpu=$1
13469 build_vendor=$2
13470 shift; shift
13471 # Remember, the first character of IFS is used to create $*,
13472 # except with old shells:
13473 build_os=$*
13474 IFS=$ac_save_IFS
13475 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13476 
13477 
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
13479 $as_echo_n "checking host system type... " >&6; }
13480 if ${ac_cv_host+:} false; then :
13481   $as_echo_n "(cached) " >&6
13482 else
13483   if test "x$host_alias" = x; then
13484   ac_cv_host=$ac_cv_build
13485 else
13486   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
13487     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
13488 fi
13489 
13490 fi
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
13492 $as_echo "$ac_cv_host" >&6; }
13493 case $ac_cv_host in
13494 *-*-*) ;;
13495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
13496 esac
13497 host=$ac_cv_host
13498 ac_save_IFS=$IFS; IFS='-'
13499 set x $ac_cv_host
13500 shift
13501 host_cpu=$1
13502 host_vendor=$2
13503 shift; shift
13504 # Remember, the first character of IFS is used to create $*,
13505 # except with old shells:
13506 host_os=$*
13507 IFS=$ac_save_IFS
13508 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13509 
13510 
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
13512 $as_echo_n "checking target system type... " >&6; }
13513 if ${ac_cv_target+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   if test "x$target_alias" = x; then
13517   ac_cv_target=$ac_cv_host
13518 else
13519   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
13520     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
13521 fi
13522 
13523 fi
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
13525 $as_echo "$ac_cv_target" >&6; }
13526 case $ac_cv_target in
13527 *-*-*) ;;
13528 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
13529 esac
13530 target=$ac_cv_target
13531 ac_save_IFS=$IFS; IFS='-'
13532 set x $ac_cv_target
13533 shift
13534 target_cpu=$1
13535 target_vendor=$2
13536 shift; shift
13537 # Remember, the first character of IFS is used to create $*,
13538 # except with old shells:
13539 target_os=$*
13540 IFS=$ac_save_IFS
13541 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13542 
13543 
13544 # The aliases save the names the user supplied, while $host etc.
13545 # will get canonicalized.
13546 test -n "$target_alias" &&
13547   test "$program_prefix$program_suffix$program_transform_name" = \
13548     NONENONEs,x,x, &&
13549   program_prefix=${target_alias}-
13550 
13551   # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target"
13552   # is confusing; it assumes you are cross-compiling a cross-compiler (!)  and "target" is thus the target of the
13553   # product you're building. The target of this build is called "host". Since this is confusing to most people, we
13554   # have not adopted that system, but use "target" as the platform we are building for. In some places though we need
13555   # to use the configure naming style.
13556 
13557 
13558 
13559 
13560 
13561   # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME
13562   # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME
13563   # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build,
13564   # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME.
13565   OPENJDK_TARGET_AUTOCONF_NAME="$host"
13566   OPENJDK_BUILD_AUTOCONF_NAME="$build"
13567 
13568 
13569 
13570   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13571 
13572   case "$build_os" in
13573     *linux*)
13574       VAR_OS=linux
13575       VAR_OS_API=posix
13576       VAR_OS_ENV=linux
13577       ;;
13578     *solaris*)
13579       VAR_OS=solaris
13580       VAR_OS_API=posix
13581       VAR_OS_ENV=solaris
13582       ;;
13583     *darwin*)
13584       VAR_OS=macosx
13585       VAR_OS_API=posix
13586       VAR_OS_ENV=macosx
13587       ;;
13588     *bsd*)
13589       VAR_OS=bsd
13590       VAR_OS_API=posix
13591       VAR_OS_ENV=bsd
13592       ;;
13593     *cygwin*)
13594       VAR_OS=windows
13595       VAR_OS_API=winapi
13596       VAR_OS_ENV=windows.cygwin
13597       ;;
13598     *mingw*)
13599       VAR_OS=windows
13600       VAR_OS_API=winapi
13601       VAR_OS_ENV=windows.msys
13602       ;;
13603     *aix*)
13604       VAR_OS=aix
13605       VAR_OS_API=posix
13606       VAR_OS_ENV=aix
13607       ;;
13608     *)
13609       as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5
13610       ;;
13611   esac
13612 
13613 
13614   # First argument is the cpu name from the trip/quad
13615   case "$build_cpu" in
13616     x86_64)
13617       VAR_CPU=x86_64
13618       VAR_CPU_ARCH=x86
13619       VAR_CPU_BITS=64
13620       VAR_CPU_ENDIAN=little
13621       ;;
13622     i?86)
13623       VAR_CPU=x86
13624       VAR_CPU_ARCH=x86
13625       VAR_CPU_BITS=32
13626       VAR_CPU_ENDIAN=little
13627       ;;
13628     arm*)
13629       VAR_CPU=arm
13630       VAR_CPU_ARCH=arm
13631       VAR_CPU_BITS=32
13632       VAR_CPU_ENDIAN=little
13633       ;;
13634     aarch64)
13635       VAR_CPU=aarch64
13636       VAR_CPU_ARCH=aarch64
13637       VAR_CPU_BITS=64
13638       VAR_CPU_ENDIAN=little
13639       ;;
13640     powerpc)
13641       VAR_CPU=ppc
13642       VAR_CPU_ARCH=ppc
13643       VAR_CPU_BITS=32
13644       VAR_CPU_ENDIAN=big
13645       ;;
13646     powerpc64)
13647       VAR_CPU=ppc64
13648       VAR_CPU_ARCH=ppc
13649       VAR_CPU_BITS=64
13650       VAR_CPU_ENDIAN=big
13651       ;;
13652     powerpc64le)
13653       VAR_CPU=ppc64le
13654       VAR_CPU_ARCH=ppc
13655       VAR_CPU_BITS=64
13656       VAR_CPU_ENDIAN=little
13657       ;;
13658     s390)
13659       VAR_CPU=s390
13660       VAR_CPU_ARCH=s390
13661       VAR_CPU_BITS=32
13662       VAR_CPU_ENDIAN=big
13663       ;;
13664     s390x)
13665       VAR_CPU=s390x
13666       VAR_CPU_ARCH=s390
13667       VAR_CPU_BITS=64
13668       VAR_CPU_ENDIAN=big
13669       ;;
13670     sparc)
13671       VAR_CPU=sparc
13672       VAR_CPU_ARCH=sparc
13673       VAR_CPU_BITS=32
13674       VAR_CPU_ENDIAN=big
13675       ;;
13676     sparcv9|sparc64)
13677       VAR_CPU=sparcv9
13678       VAR_CPU_ARCH=sparc
13679       VAR_CPU_BITS=64
13680       VAR_CPU_ENDIAN=big
13681       ;;
13682     *)
13683       as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
13684       ;;
13685   esac
13686 
13687   # ..and setup our own variables. (Do this explicitely to facilitate searching)
13688   OPENJDK_BUILD_OS="$VAR_OS"
13689   OPENJDK_BUILD_OS_API="$VAR_OS_API"
13690   OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV"
13691   OPENJDK_BUILD_CPU="$VAR_CPU"
13692   OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH"
13693   OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS"
13694   OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13695 
13696 
13697 
13698 
13699 
13700 
13701 
13702 
13703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5
13704 $as_echo_n "checking openjdk-build os-cpu... " >&6; }
13705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5
13706 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; }
13707 
13708   # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables.
13709 
13710   case "$host_os" in
13711     *linux*)
13712       VAR_OS=linux
13713       VAR_OS_API=posix
13714       VAR_OS_ENV=linux
13715       ;;
13716     *solaris*)
13717       VAR_OS=solaris
13718       VAR_OS_API=posix
13719       VAR_OS_ENV=solaris
13720       ;;
13721     *darwin*)
13722       VAR_OS=macosx
13723       VAR_OS_API=posix
13724       VAR_OS_ENV=macosx
13725       ;;
13726     *bsd*)
13727       VAR_OS=bsd
13728       VAR_OS_API=posix
13729       VAR_OS_ENV=bsd
13730       ;;
13731     *cygwin*)
13732       VAR_OS=windows
13733       VAR_OS_API=winapi
13734       VAR_OS_ENV=windows.cygwin
13735       ;;
13736     *mingw*)
13737       VAR_OS=windows
13738       VAR_OS_API=winapi
13739       VAR_OS_ENV=windows.msys
13740       ;;
13741     *aix*)
13742       VAR_OS=aix
13743       VAR_OS_API=posix
13744       VAR_OS_ENV=aix
13745       ;;
13746     *)
13747       as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5
13748       ;;
13749   esac
13750 
13751 
13752   # First argument is the cpu name from the trip/quad
13753   case "$host_cpu" in
13754     x86_64)
13755       VAR_CPU=x86_64
13756       VAR_CPU_ARCH=x86
13757       VAR_CPU_BITS=64
13758       VAR_CPU_ENDIAN=little
13759       ;;
13760     i?86)
13761       VAR_CPU=x86
13762       VAR_CPU_ARCH=x86
13763       VAR_CPU_BITS=32
13764       VAR_CPU_ENDIAN=little
13765       ;;
13766     arm*)
13767       VAR_CPU=arm
13768       VAR_CPU_ARCH=arm
13769       VAR_CPU_BITS=32
13770       VAR_CPU_ENDIAN=little
13771       ;;
13772     aarch64)
13773       VAR_CPU=aarch64
13774       VAR_CPU_ARCH=aarch64
13775       VAR_CPU_BITS=64
13776       VAR_CPU_ENDIAN=little
13777       ;;
13778     powerpc)
13779       VAR_CPU=ppc
13780       VAR_CPU_ARCH=ppc
13781       VAR_CPU_BITS=32
13782       VAR_CPU_ENDIAN=big
13783       ;;
13784     powerpc64)
13785       VAR_CPU=ppc64
13786       VAR_CPU_ARCH=ppc
13787       VAR_CPU_BITS=64
13788       VAR_CPU_ENDIAN=big
13789       ;;
13790     powerpc64le)
13791       VAR_CPU=ppc64le
13792       VAR_CPU_ARCH=ppc
13793       VAR_CPU_BITS=64
13794       VAR_CPU_ENDIAN=little
13795       ;;
13796     s390)
13797       VAR_CPU=s390
13798       VAR_CPU_ARCH=s390
13799       VAR_CPU_BITS=32
13800       VAR_CPU_ENDIAN=big
13801       ;;
13802     s390x)
13803       VAR_CPU=s390x
13804       VAR_CPU_ARCH=s390
13805       VAR_CPU_BITS=64
13806       VAR_CPU_ENDIAN=big
13807       ;;
13808     sparc)
13809       VAR_CPU=sparc
13810       VAR_CPU_ARCH=sparc
13811       VAR_CPU_BITS=32
13812       VAR_CPU_ENDIAN=big
13813       ;;
13814     sparcv9|sparc64)
13815       VAR_CPU=sparcv9
13816       VAR_CPU_ARCH=sparc
13817       VAR_CPU_BITS=64
13818       VAR_CPU_ENDIAN=big
13819       ;;
13820     *)
13821       as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
13822       ;;
13823   esac
13824 
13825   # ... and setup our own variables. (Do this explicitely to facilitate searching)
13826   OPENJDK_TARGET_OS="$VAR_OS"
13827   OPENJDK_TARGET_OS_API="$VAR_OS_API"
13828   OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV"
13829   OPENJDK_TARGET_CPU="$VAR_CPU"
13830   OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH"
13831   OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS"
13832   OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN"
13833 
13834 
13835 
13836 
13837 
13838 
13839 
13840 
13841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5
13842 $as_echo_n "checking openjdk-target os-cpu... " >&6; }
13843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5
13844 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; }
13845 
13846 
13847 
13848 # Check whether --with-target-bits was given.
13849 if test "${with_target_bits+set}" = set; then :
13850   withval=$with_target_bits;
13851 fi
13852 
13853 
13854   # We have three types of compiles:
13855   # native  == normal compilation, target system == build system
13856   # cross   == traditional cross compilation, target system != build system; special toolchain needed
13857   # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines
13858   #
13859   if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then
13860     # We're doing a proper cross-compilation
13861     COMPILE_TYPE="cross"
13862   else
13863     COMPILE_TYPE="native"
13864   fi
13865 
13866   if test "x$with_target_bits" != x; then
13867     if test "x$COMPILE_TYPE" = "xcross"; then
13868       as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5
13869     fi
13870 
13871     if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
13872       # A reduced build is requested
13873       COMPILE_TYPE="reduced"
13874       OPENJDK_TARGET_CPU_BITS=32
13875       if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then
13876         OPENJDK_TARGET_CPU=x86
13877       elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then
13878         OPENJDK_TARGET_CPU=sparc
13879       else
13880         as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5
13881       fi
13882     elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then
13883       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
13884     elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then
13885       { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5
13886 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;}
13887     else
13888       as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5
13889     fi
13890   fi
13891 
13892 
13893   { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5
13894 $as_echo_n "checking compilation type... " >&6; }
13895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5
13896 $as_echo "$COMPILE_TYPE" >&6; }
13897 
13898 
13899   if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then
13900     REQUIRED_OS_NAME=SunOS
13901     REQUIRED_OS_VERSION=5.10
13902   fi
13903   if test "x$OPENJDK_TARGET_OS" = "xlinux"; then
13904     REQUIRED_OS_NAME=Linux
13905     REQUIRED_OS_VERSION=2.6
13906   fi
13907   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
13908     REQUIRED_OS_NAME=Windows
13909     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
13910       REQUIRED_OS_VERSION=5.2
13911     else
13912       REQUIRED_OS_VERSION=5.1
13913     fi
13914   fi
13915   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
13916     REQUIRED_OS_NAME=Darwin
13917     REQUIRED_OS_VERSION=11.2
13918   fi
13919 
13920 
13921 
13922 
13923 
13924   # Also store the legacy naming of the cpu.
13925   # Ie i586 and amd64 instead of x86 and x86_64
13926   OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU"
13927   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13928     OPENJDK_TARGET_CPU_LEGACY="i586"
13929   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13930     # On all platforms except MacOSX replace x86_64 with amd64.
13931     OPENJDK_TARGET_CPU_LEGACY="amd64"
13932   fi
13933 
13934 
13935   # And the second legacy naming of the cpu.
13936   # Ie i386 and amd64 instead of x86 and x86_64.
13937   OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU"
13938   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13939     OPENJDK_TARGET_CPU_LEGACY_LIB="i386"
13940   elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13941     OPENJDK_TARGET_CPU_LEGACY_LIB="amd64"
13942   fi
13943 
13944 
13945   # This is the name of the cpu (but using i386 and amd64 instead of
13946   # x86 and x86_64, respectively), preceeded by a /, to be used when
13947   # locating libraries. On macosx, it's empty, though.
13948   OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB"
13949   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
13950     OPENJDK_TARGET_CPU_LIBDIR=""
13951   fi
13952 
13953 
13954   # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to
13955   # /amd64 or /sparcv9. This string is appended to some library paths, like this:
13956   # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so
13957   OPENJDK_TARGET_CPU_ISADIR=""
13958   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13959     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13960       OPENJDK_TARGET_CPU_ISADIR="/amd64"
13961     elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then
13962       OPENJDK_TARGET_CPU_ISADIR="/sparcv9"
13963     fi
13964   fi
13965 
13966 
13967   # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property
13968   OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU"
13969   if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then
13970     # On linux only, we replace x86 with i386.
13971     OPENJDK_TARGET_CPU_OSARCH="i386"
13972   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13973     # On all platforms except macosx, we replace x86_64 with amd64.
13974     OPENJDK_TARGET_CPU_OSARCH="amd64"
13975   fi
13976 
13977 
13978   OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU"
13979   if test "x$OPENJDK_TARGET_CPU" = xx86; then
13980     OPENJDK_TARGET_CPU_JLI="i386"
13981   elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
13982     # On all platforms except macosx, we replace x86_64 with amd64.
13983     OPENJDK_TARGET_CPU_JLI="amd64"
13984   fi
13985   # Now setup the -D flags for building libjli.
13986   OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'"
13987   if test "x$OPENJDK_TARGET_OS" = xsolaris; then
13988     if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then
13989       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'"
13990     elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
13991       OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'"
13992     fi
13993   fi
13994 
13995 
13996   # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths.
13997   if test "x$OPENJDK_TARGET_OS_API" = xposix; then
13998     OPENJDK_TARGET_OS_API_DIR="solaris"
13999   fi
14000   if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then
14001     OPENJDK_TARGET_OS_API_DIR="windows"
14002   fi
14003 
14004 
14005   if test "x$OPENJDK_TARGET_OS" = xmacosx; then
14006       OPENJDK_TARGET_OS_EXPORT_DIR=macosx
14007   else
14008       OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR}
14009   fi
14010 
14011 
14012   if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14013     A_LP64="LP64:="
14014     # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in
14015     # unpack200.exe
14016     if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then
14017       ADD_LP64="-D_LP64=1"
14018     fi
14019   fi
14020   LP64=$A_LP64
14021 
14022 
14023   if test "x$COMPILE_TYPE" = "xcross"; then
14024     # FIXME: ... or should this include reduced builds..?
14025     DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY"
14026   else
14027     DEFINE_CROSS_COMPILE_ARCH=""
14028   fi
14029 
14030 
14031   # ZERO_ARCHDEF is used to enable architecture-specific code
14032   case "${OPENJDK_TARGET_CPU}" in
14033     ppc)     ZERO_ARCHDEF=PPC32 ;;
14034     ppc64)   ZERO_ARCHDEF=PPC64 ;;
14035     s390*)   ZERO_ARCHDEF=S390  ;;
14036     sparc*)  ZERO_ARCHDEF=SPARC ;;
14037     x86_64*) ZERO_ARCHDEF=AMD64 ;;
14038     x86)     ZERO_ARCHDEF=IA32  ;;
14039     *)      ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z)
14040   esac
14041 
14042 
14043 
14044 
14045 # Continue setting up basic stuff. Most remaining code require fundamental tools.
14046 
14047   # Save the current directory this script was started from
14048   CURDIR="$PWD"
14049 
14050   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
14051     PATH_SEP=";"
14052 
14053   SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m`
14054   if test $SRC_ROOT_LENGTH -gt 100; then
14055     as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5
14056   fi
14057 
14058   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14059     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5
14060 $as_echo_n "checking cygwin release... " >&6; }
14061     CYGWIN_VERSION=`$UNAME -r`
14062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5
14063 $as_echo "$CYGWIN_VERSION" >&6; }
14064     WINDOWS_ENV_VENDOR='cygwin'
14065     WINDOWS_ENV_VERSION="$CYGWIN_VERSION"
14066 
14067     CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'`
14068     if test "x$CYGWIN_VERSION_OLD" != x; then
14069       { $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
14070 $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;}
14071       as_fn_error $? "Cannot continue" "$LINENO" 5
14072     fi
14073     if test "x$CYGPATH" = x; then
14074       as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
14075     fi
14076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5
14077 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; }
14078     # The cmd output ends with Windows line endings (CR/LF)
14079     cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
14080     # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
14081     CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
14082     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5
14083 $as_echo "$CYGWIN_ROOT_PATH" >&6; }
14084     WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
14085     test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`
14086     if test "x$test_cygdrive_prefix" = x; then
14087       as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5
14088     fi
14089   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14090     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5
14091 $as_echo_n "checking msys release... " >&6; }
14092     MSYS_VERSION=`$UNAME -r`
14093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5
14094 $as_echo "$MSYS_VERSION" >&6; }
14095 
14096     WINDOWS_ENV_VENDOR='msys'
14097     WINDOWS_ENV_VERSION="$MSYS_VERSION"
14098 
14099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5
14100 $as_echo_n "checking msys root directory as unix-style path... " >&6; }
14101     # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away
14102     MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"`
14103 
14104   windows_path="$MSYS_ROOT_PATH"
14105   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14106     unix_path=`$CYGPATH -u "$windows_path"`
14107     MSYS_ROOT_PATH="$unix_path"
14108   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14109     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14110     MSYS_ROOT_PATH="$unix_path"
14111   fi
14112 
14113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5
14114 $as_echo "$MSYS_ROOT_PATH" >&6; }
14115     WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH"
14116   else
14117     as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5
14118   fi
14119 
14120   # Test if windows or unix (cygwin/msys) find is first in path.
14121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5
14122 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; }
14123   FIND_BINARY_OUTPUT=`find --version 2>&1`
14124   if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then
14125     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5
14126 $as_echo "unix style" >&6; }
14127   elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then
14128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5
14129 $as_echo "Windows" >&6; }
14130     { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5
14131 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;}
14132     { $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
14133 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;}
14134     as_fn_error $? "Cannot continue" "$LINENO" 5
14135   else
14136     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
14137 $as_echo "unknown" >&6; }
14138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5
14139 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;}
14140   fi
14141 
14142   else
14143     PATH_SEP=":"
14144   fi
14145 
14146 
14147   # We get the top-level directory from the supporting wrappers.
14148   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5
14149 $as_echo_n "checking for top-level directory... " >&6; }
14150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5
14151 $as_echo "$TOPDIR" >&6; }
14152 
14153 
14154   # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS.
14155 
14156   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14157 
14158   # Input might be given as Windows format, start by converting to
14159   # unix format.
14160   path="$CURDIR"
14161   new_path=`$CYGPATH -u "$path"`
14162 
14163   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14164   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14165   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14166   # "foo.exe" is OK but "foo" is an error.
14167   #
14168   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14169   # It is also a way to make sure we got the proper file name for the real test later on.
14170   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14171   if test "x$test_shortpath" = x; then
14172     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14173 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14174     as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5
14175   fi
14176 
14177   # Call helper function which possibly converts this using DOS-style short mode.
14178   # If so, the updated path is stored in $new_path.
14179 
14180   input_path="$new_path"
14181   # Check if we need to convert this using DOS-style short mode. If the path
14182   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14183   # take no chances and rewrite it.
14184   # Note: m4 eats our [], so we need to use [ and ] instead.
14185   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14186   if test "x$has_forbidden_chars" != x; then
14187     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14188     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14189     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14190     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14191       # Going to short mode and back again did indeed matter. Since short mode is
14192       # case insensitive, let's make it lowercase to improve readability.
14193       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14194       # Now convert it back to Unix-style (cygpath)
14195       input_path=`$CYGPATH -u "$shortmode_path"`
14196       new_path="$input_path"
14197     fi
14198   fi
14199 
14200   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14201   if test "x$test_cygdrive_prefix" = x; then
14202     # As a simple fix, exclude /usr/bin since it's not a real path.
14203     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14204       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14205       # a path prefixed by /cygdrive for fixpath to work.
14206       new_path="$CYGWIN_ROOT_PATH$input_path"
14207     fi
14208   fi
14209 
14210 
14211   if test "x$path" != "x$new_path"; then
14212     CURDIR="$new_path"
14213     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14214 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14215   fi
14216 
14217   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14218 
14219   path="$CURDIR"
14220   has_colon=`$ECHO $path | $GREP ^.:`
14221   new_path="$path"
14222   if test "x$has_colon" = x; then
14223     # Not in mixed or Windows style, start by that.
14224     new_path=`cmd //c echo $path`
14225   fi
14226 
14227 
14228   input_path="$new_path"
14229   # Check if we need to convert this using DOS-style short mode. If the path
14230   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14231   # take no chances and rewrite it.
14232   # Note: m4 eats our [], so we need to use [ and ] instead.
14233   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14234   if test "x$has_forbidden_chars" != x; then
14235     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14236     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14237   fi
14238 
14239 
14240   windows_path="$new_path"
14241   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14242     unix_path=`$CYGPATH -u "$windows_path"`
14243     new_path="$unix_path"
14244   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14245     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14246     new_path="$unix_path"
14247   fi
14248 
14249   if test "x$path" != "x$new_path"; then
14250     CURDIR="$new_path"
14251     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5
14252 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;}
14253   fi
14254 
14255   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14256   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14257 
14258   else
14259     # We're on a posix platform. Hooray! :)
14260     path="$CURDIR"
14261     has_space=`$ECHO "$path" | $GREP " "`
14262     if test "x$has_space" != x; then
14263       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5
14264 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;}
14265       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14266     fi
14267 
14268     # Use eval to expand a potential ~
14269     eval path="$path"
14270     if test ! -f "$path" && test ! -d "$path"; then
14271       as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14272     fi
14273 
14274     CURDIR="`cd "$path"; $THEPWDCMD -L`"
14275   fi
14276 
14277 
14278   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14279 
14280   # Input might be given as Windows format, start by converting to
14281   # unix format.
14282   path="$TOPDIR"
14283   new_path=`$CYGPATH -u "$path"`
14284 
14285   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14286   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14287   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14288   # "foo.exe" is OK but "foo" is an error.
14289   #
14290   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14291   # It is also a way to make sure we got the proper file name for the real test later on.
14292   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14293   if test "x$test_shortpath" = x; then
14294     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14295 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14296     as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5
14297   fi
14298 
14299   # Call helper function which possibly converts this using DOS-style short mode.
14300   # If so, the updated path is stored in $new_path.
14301 
14302   input_path="$new_path"
14303   # Check if we need to convert this using DOS-style short mode. If the path
14304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14305   # take no chances and rewrite it.
14306   # Note: m4 eats our [], so we need to use [ and ] instead.
14307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14308   if test "x$has_forbidden_chars" != x; then
14309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14310     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14311     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14312     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14313       # Going to short mode and back again did indeed matter. Since short mode is
14314       # case insensitive, let's make it lowercase to improve readability.
14315       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14316       # Now convert it back to Unix-style (cygpath)
14317       input_path=`$CYGPATH -u "$shortmode_path"`
14318       new_path="$input_path"
14319     fi
14320   fi
14321 
14322   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14323   if test "x$test_cygdrive_prefix" = x; then
14324     # As a simple fix, exclude /usr/bin since it's not a real path.
14325     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14326       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14327       # a path prefixed by /cygdrive for fixpath to work.
14328       new_path="$CYGWIN_ROOT_PATH$input_path"
14329     fi
14330   fi
14331 
14332 
14333   if test "x$path" != "x$new_path"; then
14334     TOPDIR="$new_path"
14335     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14336 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14337   fi
14338 
14339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14340 
14341   path="$TOPDIR"
14342   has_colon=`$ECHO $path | $GREP ^.:`
14343   new_path="$path"
14344   if test "x$has_colon" = x; then
14345     # Not in mixed or Windows style, start by that.
14346     new_path=`cmd //c echo $path`
14347   fi
14348 
14349 
14350   input_path="$new_path"
14351   # Check if we need to convert this using DOS-style short mode. If the path
14352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14353   # take no chances and rewrite it.
14354   # Note: m4 eats our [], so we need to use [ and ] instead.
14355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14356   if test "x$has_forbidden_chars" != x; then
14357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14358     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14359   fi
14360 
14361 
14362   windows_path="$new_path"
14363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14364     unix_path=`$CYGPATH -u "$windows_path"`
14365     new_path="$unix_path"
14366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14368     new_path="$unix_path"
14369   fi
14370 
14371   if test "x$path" != "x$new_path"; then
14372     TOPDIR="$new_path"
14373     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5
14374 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;}
14375   fi
14376 
14377   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14378   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14379 
14380   else
14381     # We're on a posix platform. Hooray! :)
14382     path="$TOPDIR"
14383     has_space=`$ECHO "$path" | $GREP " "`
14384     if test "x$has_space" != x; then
14385       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5
14386 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;}
14387       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14388     fi
14389 
14390     # Use eval to expand a potential ~
14391     eval path="$path"
14392     if test ! -f "$path" && test ! -d "$path"; then
14393       as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5
14394     fi
14395 
14396     TOPDIR="`cd "$path"; $THEPWDCMD -L`"
14397   fi
14398 
14399   # SRC_ROOT is a traditional alias for TOPDIR.
14400   SRC_ROOT=$TOPDIR
14401 
14402   # Locate the directory of this script.
14403   AUTOCONF_DIR=$TOPDIR/common/autoconf
14404 
14405 
14406   # Setup default logging of stdout and stderr to build.log in the output root.
14407   BUILD_LOG='$(OUTPUT_ROOT)/build.log'
14408   BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old'
14409   BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
14410 
14411 
14412 
14413 
14414 
14415 # Check if it's a pure open build or if custom sources are to be used.
14416 
14417   # Check whether --enable-openjdk-only was given.
14418 if test "${enable_openjdk_only+set}" = set; then :
14419   enableval=$enable_openjdk_only;
14420 else
14421   enable_openjdk_only="no"
14422 fi
14423 
14424 
14425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5
14426 $as_echo_n "checking for presence of closed sources... " >&6; }
14427   if test -d "$SRC_ROOT/jdk/src/closed"; then
14428     CLOSED_SOURCE_PRESENT=yes
14429   else
14430     CLOSED_SOURCE_PRESENT=no
14431   fi
14432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5
14433 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; }
14434 
14435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5
14436 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; }
14437   SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only"
14438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5
14439 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; }
14440 
14441   if test "x$CLOSED_SOURCE_PRESENT" = xno; then
14442     OPENJDK=true
14443     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14444       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5
14445 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;}
14446     fi
14447   else
14448     if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then
14449       OPENJDK=true
14450     else
14451       OPENJDK=false
14452     fi
14453   fi
14454 
14455   if test "x$OPENJDK" = "xtrue"; then
14456     SET_OPENJDK="OPENJDK=true"
14457   fi
14458 
14459 
14460 
14461 
14462 # These are needed to be able to create a configuration name (and thus the output directory)
14463 
14464   ###############################################################################
14465   #
14466   # Check which variant of the JDK that we want to build.
14467   # Currently we have:
14468   #    normal:   standard edition
14469   # but the custom make system may add other variants
14470   #
14471   # Effectively the JDK variant gives a name to a specific set of
14472   # modules to compile into the JDK. In the future, these modules
14473   # might even be Jigsaw modules.
14474   #
14475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
14476 $as_echo_n "checking which variant of the JDK to build... " >&6; }
14477 
14478 # Check whether --with-jdk-variant was given.
14479 if test "${with_jdk_variant+set}" = set; then :
14480   withval=$with_jdk_variant;
14481 fi
14482 
14483 
14484   if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
14485     JDK_VARIANT="normal"
14486   else
14487     as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5
14488   fi
14489 
14490 
14491 
14492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
14493 $as_echo "$JDK_VARIANT" >&6; }
14494 
14495 
14496 ###############################################################################
14497 #
14498 # Check which interpreter of the JVM we want to build.
14499 # Currently we have:
14500 #    template: Template interpreter (the default)
14501 #    cpp     : C++ interpreter
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5
14503 $as_echo_n "checking which interpreter of the JVM to build... " >&6; }
14504 
14505 # Check whether --with-jvm-interpreter was given.
14506 if test "${with_jvm_interpreter+set}" = set; then :
14507   withval=$with_jvm_interpreter;
14508 fi
14509 
14510 
14511 if test "x$with_jvm_interpreter" = x; then
14512      with_jvm_interpreter="template"
14513 fi
14514 
14515 JVM_INTERPRETER="$with_jvm_interpreter"
14516 
14517 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then
14518    as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5
14519 fi
14520 
14521 
14522 
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5
14524 $as_echo "$with_jvm_interpreter" >&6; }
14525 
14526 
14527 
14528   ###############################################################################
14529   #
14530   # Check which variants of the JVM that we want to build.
14531   # Currently we have:
14532   #    server: normal interpreter and a tiered C1/C2 compiler
14533   #    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
14534   #    minimal1: reduced form of client with optional VM services and features stripped out
14535   #    kernel: kernel footprint JVM that passes the TCK without major performance problems,
14536   #             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
14537   #    zero: no machine code interpreter, no compiler
14538   #    zeroshark: zero interpreter and shark/llvm compiler backend
14539 #    core: interpreter only, no compiler (only works on some platforms)
14540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5
14541 $as_echo_n "checking which variants of the JVM to build... " >&6; }
14542 
14543 # Check whether --with-jvm-variants was given.
14544 if test "${with_jvm_variants+set}" = set; then :
14545   withval=$with_jvm_variants;
14546 fi
14547 
14548 
14549   if test "x$with_jvm_variants" = x; then
14550     with_jvm_variants="server"
14551   fi
14552 
14553   JVM_VARIANTS=",$with_jvm_variants,"
14554   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,//'`
14555 
14556   if test "x$TEST_VARIANTS" != "x,"; then
14557      as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5
14558   fi
14559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
14560 $as_echo "$with_jvm_variants" >&6; }
14561 
14562   JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
14563   JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
14564   JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'`
14565   JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
14566   JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
14567   JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
14568   JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'`
14569 
14570   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14571     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14572       as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
14573     fi
14574   fi
14575   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14576     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14577       as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
14578     fi
14579   fi
14580   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14581     if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
14582       as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5
14583     fi
14584   fi
14585 
14586   # Replace the commas with AND for use in the build directory name.
14587   ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'`
14588   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/'`
14589   if test "x$COUNT_VARIANTS" != "x,1"; then
14590     BUILDING_MULTIPLE_JVM_VARIANTS=yes
14591   else
14592     BUILDING_MULTIPLE_JVM_VARIANTS=no
14593   fi
14594 
14595 
14596 
14597 
14598 
14599 
14600 
14601 
14602 
14603 
14604   INCLUDE_SA=true
14605   if test "x$JVM_VARIANT_ZERO" = xtrue ; then
14606     INCLUDE_SA=false
14607   fi
14608   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then
14609     INCLUDE_SA=false
14610   fi
14611   if test "x$VAR_CPU" = xppc64 -o "x$VAR_CPU" = xppc64le ; then
14612     INCLUDE_SA=false
14613   fi
14614   if test "x$OPENJDK_TARGET_CPU" = xaarch64; then
14615     INCLUDE_SA=false
14616   fi
14617 
14618 
14619   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
14620     MACOSX_UNIVERSAL="false"
14621   fi
14622 
14623 
14624 
14625 
14626   ###############################################################################
14627   #
14628   # Set the debug level
14629   #    release: no debug information, all optimizations, no asserts.
14630   #    fastdebug: debug information (-g), all optimizations, all asserts
14631   #    slowdebug: debug information (-g), no optimizations, all asserts
14632   #
14633   DEBUG_LEVEL="release"
14634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
14635 $as_echo_n "checking which debug level to use... " >&6; }
14636   # Check whether --enable-debug was given.
14637 if test "${enable_debug+set}" = set; then :
14638   enableval=$enable_debug;
14639         ENABLE_DEBUG="${enableval}"
14640         DEBUG_LEVEL="fastdebug"
14641 
14642 else
14643   ENABLE_DEBUG="no"
14644 fi
14645 
14646 
14647 
14648 # Check whether --with-debug-level was given.
14649 if test "${with_debug_level+set}" = set; then :
14650   withval=$with_debug_level;
14651         DEBUG_LEVEL="${withval}"
14652         if test "x$ENABLE_DEBUG" = xyes; then
14653           as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
14654         fi
14655 
14656 fi
14657 
14658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
14659 $as_echo "$DEBUG_LEVEL" >&6; }
14660 
14661   if test "x$DEBUG_LEVEL" != xrelease && \
14662       test "x$DEBUG_LEVEL" != xfastdebug && \
14663       test "x$DEBUG_LEVEL" != xslowdebug; then
14664     as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
14665   fi
14666 
14667 
14668   ###############################################################################
14669   #
14670   # Setup legacy vars/targets and new vars to deal with different debug levels.
14671   #
14672 
14673   case $DEBUG_LEVEL in
14674     release )
14675       VARIANT="OPT"
14676       FASTDEBUG="false"
14677       DEBUG_CLASSFILES="false"
14678       BUILD_VARIANT_RELEASE=""
14679       HOTSPOT_DEBUG_LEVEL="product"
14680       HOTSPOT_EXPORT="product"
14681       ;;
14682     fastdebug )
14683       VARIANT="DBG"
14684       FASTDEBUG="true"
14685       DEBUG_CLASSFILES="true"
14686       BUILD_VARIANT_RELEASE="-fastdebug"
14687       HOTSPOT_DEBUG_LEVEL="fastdebug"
14688       HOTSPOT_EXPORT="fastdebug"
14689       ;;
14690     slowdebug )
14691       VARIANT="DBG"
14692       FASTDEBUG="false"
14693       DEBUG_CLASSFILES="true"
14694       BUILD_VARIANT_RELEASE="-debug"
14695       HOTSPOT_DEBUG_LEVEL="jvmg"
14696       HOTSPOT_EXPORT="debug"
14697       ;;
14698   esac
14699 
14700   #####
14701   # Generate the legacy makefile targets for hotspot.
14702   # The hotspot api for selecting the build artifacts, really, needs to be improved.
14703   # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to
14704   # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc
14705   # But until then ...
14706   HOTSPOT_TARGET=""
14707 
14708   if test "x$JVM_VARIANT_SERVER" = xtrue; then
14709     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
14710   fi
14711 
14712   if test "x$JVM_VARIANT_CLIENT" = xtrue; then
14713     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
14714   fi
14715 
14716   if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then
14717     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 "
14718   fi
14719 
14720   if test "x$JVM_VARIANT_KERNEL" = xtrue; then
14721     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
14722   fi
14723 
14724   if test "x$JVM_VARIANT_ZERO" = xtrue; then
14725     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
14726   fi
14727 
14728   if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
14729     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
14730   fi
14731 
14732   if test "x$JVM_VARIANT_CORE" = xtrue; then
14733     HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core "
14734   fi
14735 
14736   HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
14737 
14738   # On Macosx universal binaries are produced, but they only contain
14739   # 64 bit intel. This invalidates control of which jvms are built
14740   # from configure, but only server is valid anyway. Fix this
14741   # when hotspot makefiles are rewritten.
14742   if test "x$MACOSX_UNIVERSAL" = xtrue; then
14743     HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT}
14744   fi
14745 
14746   #####
14747 
14748 
14749 
14750 
14751 
14752 
14753 
14754 
14755 # With basic setup done, call the custom early hook.
14756 
14757 
14758 # Check if we have devkits, extra paths or sysroot set.
14759 
14760 
14761 # Check whether --with-devkit was given.
14762 if test "${with_devkit+set}" = set; then :
14763   withval=$with_devkit;
14764 fi
14765 
14766 
14767   if test "x$with_devkit" = xyes; then
14768     as_fn_error $? "--with-devkit must have a value" "$LINENO" 5
14769   elif test "x$with_devkit" != x && test "x$with_devkit" != xno; then
14770 
14771   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14772 
14773   # Input might be given as Windows format, start by converting to
14774   # unix format.
14775   path="$with_devkit"
14776   new_path=`$CYGPATH -u "$path"`
14777 
14778   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
14779   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
14780   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
14781   # "foo.exe" is OK but "foo" is an error.
14782   #
14783   # This test is therefore slightly more accurate than "test -f" to check for file precense.
14784   # It is also a way to make sure we got the proper file name for the real test later on.
14785   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
14786   if test "x$test_shortpath" = x; then
14787     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14788 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14789     as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5
14790   fi
14791 
14792   # Call helper function which possibly converts this using DOS-style short mode.
14793   # If so, the updated path is stored in $new_path.
14794 
14795   input_path="$new_path"
14796   # Check if we need to convert this using DOS-style short mode. If the path
14797   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14798   # take no chances and rewrite it.
14799   # Note: m4 eats our [], so we need to use [ and ] instead.
14800   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
14801   if test "x$has_forbidden_chars" != x; then
14802     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14803     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
14804     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
14805     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
14806       # Going to short mode and back again did indeed matter. Since short mode is
14807       # case insensitive, let's make it lowercase to improve readability.
14808       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14809       # Now convert it back to Unix-style (cygpath)
14810       input_path=`$CYGPATH -u "$shortmode_path"`
14811       new_path="$input_path"
14812     fi
14813   fi
14814 
14815   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
14816   if test "x$test_cygdrive_prefix" = x; then
14817     # As a simple fix, exclude /usr/bin since it's not a real path.
14818     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
14819       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
14820       # a path prefixed by /cygdrive for fixpath to work.
14821       new_path="$CYGWIN_ROOT_PATH$input_path"
14822     fi
14823   fi
14824 
14825 
14826   if test "x$path" != "x$new_path"; then
14827     with_devkit="$new_path"
14828     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14829 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14830   fi
14831 
14832   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14833 
14834   path="$with_devkit"
14835   has_colon=`$ECHO $path | $GREP ^.:`
14836   new_path="$path"
14837   if test "x$has_colon" = x; then
14838     # Not in mixed or Windows style, start by that.
14839     new_path=`cmd //c echo $path`
14840   fi
14841 
14842 
14843   input_path="$new_path"
14844   # Check if we need to convert this using DOS-style short mode. If the path
14845   # contains just simple characters, use it. Otherwise (spaces, weird characters),
14846   # take no chances and rewrite it.
14847   # Note: m4 eats our [], so we need to use [ and ] instead.
14848   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
14849   if test "x$has_forbidden_chars" != x; then
14850     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
14851     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
14852   fi
14853 
14854 
14855   windows_path="$new_path"
14856   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
14857     unix_path=`$CYGPATH -u "$windows_path"`
14858     new_path="$unix_path"
14859   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
14860     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
14861     new_path="$unix_path"
14862   fi
14863 
14864   if test "x$path" != "x$new_path"; then
14865     with_devkit="$new_path"
14866     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5
14867 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;}
14868   fi
14869 
14870   # Save the first 10 bytes of this path to the storage, so fixpath can work.
14871   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
14872 
14873   else
14874     # We're on a posix platform. Hooray! :)
14875     path="$with_devkit"
14876     has_space=`$ECHO "$path" | $GREP " "`
14877     if test "x$has_space" != x; then
14878       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5
14879 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;}
14880       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
14881     fi
14882 
14883     # Use eval to expand a potential ~
14884     eval path="$path"
14885     if test ! -f "$path" && test ! -d "$path"; then
14886       as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5
14887     fi
14888 
14889     with_devkit="`cd "$path"; $THEPWDCMD -L`"
14890   fi
14891 
14892     DEVKIT_ROOT="$with_devkit"
14893     # Check for a meta data info file in the root of the devkit
14894     if test -f "$DEVKIT_ROOT/devkit.info"; then
14895       . $DEVKIT_ROOT/devkit.info
14896       # This potentially sets the following:
14897       # A descriptive name of the devkit
14898 
14899   if test "x$DEVKIT_NAME" = x; then
14900     eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}"
14901   fi
14902 
14903       # Corresponds to --with-extra-path
14904 
14905   if test "x$DEVKIT_EXTRA_PATH" = x; then
14906     eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}"
14907   fi
14908 
14909       # Corresponds to --with-toolchain-path
14910 
14911   if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14912     eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}"
14913   fi
14914 
14915       # Corresponds to --with-sysroot
14916 
14917   if test "x$DEVKIT_SYSROOT" = x; then
14918     eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}"
14919   fi
14920 
14921 
14922       # Identifies the Visual Studio version in the devkit
14923 
14924   if test "x$DEVKIT_VS_VERSION" = x; then
14925     eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}"
14926   fi
14927 
14928       # The Visual Studio include environment variable
14929 
14930   if test "x$DEVKIT_VS_INCLUDE" = x; then
14931     eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}"
14932   fi
14933 
14934       # The Visual Studio lib environment variable
14935 
14936   if test "x$DEVKIT_VS_LIB" = x; then
14937     eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}"
14938   fi
14939 
14940       # Corresponds to --with-msvcr-dll
14941 
14942   if test "x$DEVKIT_MSVCR_DLL" = x; then
14943     eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}"
14944   fi
14945 
14946       # Corresponds to --with-msvcp-dll
14947 
14948   if test "x$DEVKIT_MSVCP_DLL" = x; then
14949     eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}"
14950   fi
14951 
14952       # Corresponds to --with-ucrt-dll-dir
14953 
14954   if test "x$DEVKIT_UCRT_DLL_DIR" = x; then
14955     eval DEVKIT_UCRT_DLL_DIR="\${DEVKIT_UCRT_DLL_DIR_${OPENJDK_TARGET_CPU}}"
14956   fi
14957 
14958     fi
14959 
14960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5
14961 $as_echo_n "checking for devkit... " >&6; }
14962     if test "x$DEVKIT_NAME" != x; then
14963       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5
14964 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; }
14965     else
14966       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5
14967 $as_echo "$DEVKIT_ROOT" >&6; }
14968     fi
14969 
14970 
14971   if test "x$DEVKIT_EXTRA_PATH" != x; then
14972     if test "x$EXTRA_PATH" = x; then
14973       EXTRA_PATH="$DEVKIT_EXTRA_PATH"
14974     else
14975       EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH"
14976     fi
14977   fi
14978 
14979 
14980     # Fallback default of just /bin if DEVKIT_PATH is not defined
14981     if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then
14982       DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin"
14983     fi
14984 
14985   if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then
14986     if test "x$TOOLCHAIN_PATH" = x; then
14987       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH"
14988     else
14989       TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH"
14990     fi
14991   fi
14992 
14993 
14994     # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known
14995     # places for backwards compatiblity.
14996     if test "x$DEVKIT_SYSROOT" != x; then
14997       SYSROOT="$DEVKIT_SYSROOT"
14998     elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then
14999       SYSROOT="$DEVKIT_ROOT/$host_alias/libc"
15000     elif test -d "$DEVKIT_ROOT/$host/sys-root"; then
15001       SYSROOT="$DEVKIT_ROOT/$host/sys-root"
15002     fi
15003 
15004     if test "x$DEVKIT_ROOT" != x; then
15005       DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib"
15006       if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
15007         DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64"
15008       fi
15009 
15010     fi
15011   fi
15012 
15013   # You can force the sysroot if the sysroot encoded into the compiler tools
15014   # is not correct.
15015 
15016 # Check whether --with-sys-root was given.
15017 if test "${with_sys_root+set}" = set; then :
15018   withval=$with_sys_root; SYSROOT=$with_sys_root
15019 
15020 fi
15021 
15022 
15023 
15024 # Check whether --with-sysroot was given.
15025 if test "${with_sysroot+set}" = set; then :
15026   withval=$with_sysroot; SYSROOT=$with_sysroot
15027 
15028 fi
15029 
15030 
15031 
15032 # Check whether --with-tools-dir was given.
15033 if test "${with_tools_dir+set}" = set; then :
15034   withval=$with_tools_dir;
15035   if test "x$with_tools_dir" != x; then
15036     if test "x$TOOLCHAIN_PATH" = x; then
15037       TOOLCHAIN_PATH="$with_tools_dir"
15038     else
15039       TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH"
15040     fi
15041   fi
15042 
15043 
15044 fi
15045 
15046 
15047 
15048 # Check whether --with-toolchain-path was given.
15049 if test "${with_toolchain_path+set}" = set; then :
15050   withval=$with_toolchain_path;
15051   if test "x$with_toolchain_path" != x; then
15052     if test "x$TOOLCHAIN_PATH" = x; then
15053       TOOLCHAIN_PATH="$with_toolchain_path"
15054     else
15055       TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH"
15056     fi
15057   fi
15058 
15059 
15060 fi
15061 
15062 
15063 
15064 # Check whether --with-extra-path was given.
15065 if test "${with_extra_path+set}" = set; then :
15066   withval=$with_extra_path;
15067   if test "x$with_extra_path" != x; then
15068     if test "x$EXTRA_PATH" = x; then
15069       EXTRA_PATH="$with_extra_path"
15070     else
15071       EXTRA_PATH="$with_extra_path:$EXTRA_PATH"
15072     fi
15073   fi
15074 
15075 
15076 fi
15077 
15078 
15079   # Prepend the extra path to the global path
15080 
15081   if test "x$EXTRA_PATH" != x; then
15082     if test "x$PATH" = x; then
15083       PATH="$EXTRA_PATH"
15084     else
15085       PATH="$EXTRA_PATH:$PATH"
15086     fi
15087   fi
15088 
15089 
15090   if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then
15091     # Add extra search paths on solaris for utilities like ar and as etc...
15092     PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin"
15093   fi
15094 
15095   # Xcode version will be validated later
15096 
15097 # Check whether --with-xcode-path was given.
15098 if test "${with_xcode_path+set}" = set; then :
15099   withval=$with_xcode_path; XCODE_PATH=$with_xcode_path
15100 
15101 fi
15102 
15103 
15104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
15105 $as_echo_n "checking for sysroot... " >&6; }
15106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5
15107 $as_echo "$SYSROOT" >&6; }
15108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5
15109 $as_echo_n "checking for toolchain path... " >&6; }
15110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5
15111 $as_echo "$TOOLCHAIN_PATH" >&6; }
15112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5
15113 $as_echo_n "checking for extra path... " >&6; }
15114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5
15115 $as_echo "$EXTRA_PATH" >&6; }
15116 
15117 
15118 # To properly create a configuration name, we need to have the OpenJDK target
15119 # and options (variants and debug level) parsed.
15120 
15121 
15122 
15123 # Check whether --with-conf-name was given.
15124 if test "${with_conf_name+set}" = set; then :
15125   withval=$with_conf_name;  CONF_NAME=${with_conf_name}
15126 fi
15127 
15128 
15129   # Test from where we are running configure, in or outside of src root.
15130   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5
15131 $as_echo_n "checking where to store configuration... " >&6; }
15132   if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \
15133       || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \
15134       || test "x$CURDIR" = "x$SRC_ROOT/make" ; then
15135     # We are running configure from the src root.
15136     # Create a default ./build/target-variant-debuglevel output root.
15137     if test "x${CONF_NAME}" = x; then
15138       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5
15139 $as_echo "in default location" >&6; }
15140       CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
15141     else
15142       { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5
15143 $as_echo "in build directory with custom name" >&6; }
15144     fi
15145     OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
15146     $MKDIR -p "$OUTPUT_ROOT"
15147     if test ! -d "$OUTPUT_ROOT"; then
15148       as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
15149     fi
15150   else
15151     # We are running configure from outside of the src dir.
15152     # Then use the current directory as output dir!
15153     # If configuration is situated in normal build directory, just use the build
15154     # directory name as configuration name, otherwise use the complete path.
15155     if test "x${CONF_NAME}" = x; then
15156       CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
15157     fi
15158     OUTPUT_ROOT="$CURDIR"
15159     { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5
15160 $as_echo "in current directory" >&6; }
15161 
15162     # WARNING: This might be a bad thing to do. You need to be sure you want to
15163     # have a configuration in this directory. Do some sanity checks!
15164 
15165     if test ! -e "$OUTPUT_ROOT/spec.gmk"; then
15166       # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for
15167       # other files
15168       files_present=`$LS $OUTPUT_ROOT`
15169       # Configure has already touched config.log and confdefs.h in the current dir when this check
15170       # is performed.
15171       filtered_files=`$ECHO "$files_present" \
15172           | $SED -e 's/config.log//g' \
15173               -e 's/confdefs.h//g' \
15174               -e 's/fixpath.exe//g' \
15175               -e 's/ //g' \
15176           | $TR -d '\n'`
15177       if test "x$filtered_files" != x; then
15178         { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5
15179 $as_echo "$as_me: Current directory is $CURDIR." >&6;}
15180         { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5
15181 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;}
15182         { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5
15183 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;}
15184         { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5
15185 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;}
15186         { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5
15187 $as_echo "$as_me: seriously mess up just about everything." >&6;}
15188         { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5
15189 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;}
15190         { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5
15191 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;}
15192         as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5
15193       fi
15194     fi
15195   fi
15196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5
15197 $as_echo_n "checking what configuration name to use... " >&6; }
15198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5
15199 $as_echo "$CONF_NAME" >&6; }
15200 
15201 
15202   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15203 
15204   # Input might be given as Windows format, start by converting to
15205   # unix format.
15206   path="$OUTPUT_ROOT"
15207   new_path=`$CYGPATH -u "$path"`
15208 
15209   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15210   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15211   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15212   # "foo.exe" is OK but "foo" is an error.
15213   #
15214   # This test is therefore slightly more accurate than "test -f" to check for file precense.
15215   # It is also a way to make sure we got the proper file name for the real test later on.
15216   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15217   if test "x$test_shortpath" = x; then
15218     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15219 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15220     as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5
15221   fi
15222 
15223   # Call helper function which possibly converts this using DOS-style short mode.
15224   # If so, the updated path is stored in $new_path.
15225 
15226   input_path="$new_path"
15227   # Check if we need to convert this using DOS-style short mode. If the path
15228   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15229   # take no chances and rewrite it.
15230   # Note: m4 eats our [], so we need to use [ and ] instead.
15231   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15232   if test "x$has_forbidden_chars" != x; then
15233     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15234     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15235     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15236     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15237       # Going to short mode and back again did indeed matter. Since short mode is
15238       # case insensitive, let's make it lowercase to improve readability.
15239       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15240       # Now convert it back to Unix-style (cygpath)
15241       input_path=`$CYGPATH -u "$shortmode_path"`
15242       new_path="$input_path"
15243     fi
15244   fi
15245 
15246   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15247   if test "x$test_cygdrive_prefix" = x; then
15248     # As a simple fix, exclude /usr/bin since it's not a real path.
15249     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
15250       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15251       # a path prefixed by /cygdrive for fixpath to work.
15252       new_path="$CYGWIN_ROOT_PATH$input_path"
15253     fi
15254   fi
15255 
15256 
15257   if test "x$path" != "x$new_path"; then
15258     OUTPUT_ROOT="$new_path"
15259     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15260 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15261   fi
15262 
15263   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15264 
15265   path="$OUTPUT_ROOT"
15266   has_colon=`$ECHO $path | $GREP ^.:`
15267   new_path="$path"
15268   if test "x$has_colon" = x; then
15269     # Not in mixed or Windows style, start by that.
15270     new_path=`cmd //c echo $path`
15271   fi
15272 
15273 
15274   input_path="$new_path"
15275   # Check if we need to convert this using DOS-style short mode. If the path
15276   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15277   # take no chances and rewrite it.
15278   # Note: m4 eats our [], so we need to use [ and ] instead.
15279   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15280   if test "x$has_forbidden_chars" != x; then
15281     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15282     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15283   fi
15284 
15285 
15286   windows_path="$new_path"
15287   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15288     unix_path=`$CYGPATH -u "$windows_path"`
15289     new_path="$unix_path"
15290   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15291     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15292     new_path="$unix_path"
15293   fi
15294 
15295   if test "x$path" != "x$new_path"; then
15296     OUTPUT_ROOT="$new_path"
15297     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5
15298 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;}
15299   fi
15300 
15301   # Save the first 10 bytes of this path to the storage, so fixpath can work.
15302   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15303 
15304   else
15305     # We're on a posix platform. Hooray! :)
15306     path="$OUTPUT_ROOT"
15307     has_space=`$ECHO "$path" | $GREP " "`
15308     if test "x$has_space" != x; then
15309       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5
15310 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;}
15311       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
15312     fi
15313 
15314     # Use eval to expand a potential ~
15315     eval path="$path"
15316     if test ! -f "$path" && test ! -d "$path"; then
15317       as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5
15318     fi
15319 
15320     OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`"
15321   fi
15322 
15323 
15324   SPEC=$OUTPUT_ROOT/spec.gmk
15325 
15326   CONF_NAME=$CONF_NAME
15327 
15328   OUTPUT_ROOT=$OUTPUT_ROOT
15329 
15330 
15331   # Most of the probed defines are put into config.h
15332   ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
15333 
15334   # The spec.gmk file contains all variables for the make system.
15335   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
15336 
15337   # The hotspot-spec.gmk file contains legacy variables for the hotspot make system.
15338   ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in"
15339 
15340   # The bootcycle-spec.gmk file contains support for boot cycle builds.
15341   ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in"
15342 
15343   # The compare.sh is used to compare the build output to other builds.
15344   ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in"
15345 
15346   # Spec.sh is currently used by compare-objects.sh
15347   ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in"
15348 
15349   # The generated Makefile knows where the spec.gmk is and where the source is.
15350   # You can run make from the OUTPUT_ROOT, or from the top-level Makefile
15351   # which will look for generated configurations
15352   ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
15353 
15354 
15355 
15356 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY.
15357 
15358   for ac_prog in apt-get yum port pkgutil pkgadd
15359 do
15360   # Extract the first word of "$ac_prog", so it can be a program name with args.
15361 set dummy $ac_prog; ac_word=$2
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15363 $as_echo_n "checking for $ac_word... " >&6; }
15364 if ${ac_cv_prog_PKGHANDLER+:} false; then :
15365   $as_echo_n "(cached) " >&6
15366 else
15367   if test -n "$PKGHANDLER"; then
15368   ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
15369 else
15370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15371 for as_dir in $PATH
15372 do
15373   IFS=$as_save_IFS
15374   test -z "$as_dir" && as_dir=.
15375     for ac_exec_ext in '' $ac_executable_extensions; do
15376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15377     ac_cv_prog_PKGHANDLER="$ac_prog"
15378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15379     break 2
15380   fi
15381 done
15382   done
15383 IFS=$as_save_IFS
15384 
15385 fi
15386 fi
15387 PKGHANDLER=$ac_cv_prog_PKGHANDLER
15388 if test -n "$PKGHANDLER"; then
15389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
15390 $as_echo "$PKGHANDLER" >&6; }
15391 else
15392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15393 $as_echo "no" >&6; }
15394 fi
15395 
15396 
15397   test -n "$PKGHANDLER" && break
15398 done
15399 
15400 
15401 
15402 # Setup tools that requires more complex handling, or that is not needed by the configure script.
15403 
15404 
15405   # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky.
15406   if test "x$MAKE" != x; then
15407     # User has supplied a make, test it.
15408     if test ! -f "$MAKE"; then
15409       as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5
15410     fi
15411 
15412   MAKE_CANDIDATE=""$MAKE""
15413   DESCRIPTION="user supplied MAKE=$MAKE"
15414   if test "x$MAKE_CANDIDATE" != x; then
15415     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15416 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15417     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15418     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15419     if test "x$IS_GNU_MAKE" = x; then
15420       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15421 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15422     else
15423       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15424       if test "x$IS_MODERN_MAKE" = x; then
15425         { $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
15426 $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;}
15427       else
15428         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15429           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15430             MAKE_EXPECTED_ENV='cygwin'
15431           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15432             MAKE_EXPECTED_ENV='msys'
15433           else
15434             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15435           fi
15436           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15437           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15438         else
15439           # Not relevant for non-Windows
15440           IS_MAKE_CORRECT_ENV=true
15441         fi
15442         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15443           { $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
15444 $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;}
15445         else
15446           FOUND_MAKE=$MAKE_CANDIDATE
15447 
15448   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15449 
15450   # First separate the path from the arguments. This will split at the first
15451   # space.
15452   complete="$FOUND_MAKE"
15453   path="${complete%% *}"
15454   tmp="$complete EOL"
15455   arguments="${tmp#* }"
15456 
15457   # Input might be given as Windows format, start by converting to
15458   # unix format.
15459   new_path=`$CYGPATH -u "$path"`
15460 
15461   # Now try to locate executable using which
15462   new_path=`$WHICH "$new_path" 2> /dev/null`
15463   # bat and cmd files are not always considered executable in cygwin causing which
15464   # to not find them
15465   if test "x$new_path" = x \
15466       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15467       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15468     new_path=`$CYGPATH -u "$path"`
15469   fi
15470   if test "x$new_path" = x; then
15471     # Oops. Which didn't find the executable.
15472     # The splitting of arguments from the executable at a space might have been incorrect,
15473     # since paths with space are more likely in Windows. Give it another try with the whole
15474     # argument.
15475     path="$complete"
15476     arguments="EOL"
15477     new_path=`$CYGPATH -u "$path"`
15478     new_path=`$WHICH "$new_path" 2> /dev/null`
15479     # bat and cmd files are not always considered executable in cygwin causing which
15480     # to not find them
15481     if test "x$new_path" = x \
15482         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15483         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15484       new_path=`$CYGPATH -u "$path"`
15485     fi
15486     if test "x$new_path" = x; then
15487       # It's still not found. Now this is an unrecoverable error.
15488       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15489 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15490       has_space=`$ECHO "$complete" | $GREP " "`
15491       if test "x$has_space" != x; then
15492         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15493 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15494       fi
15495       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15496     fi
15497   fi
15498 
15499   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15500   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15501   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15502   # "foo.exe" is OK but "foo" is an error.
15503   #
15504   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15505   # It is also a way to make sure we got the proper file name for the real test later on.
15506   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15507   if test "x$test_shortpath" = x; then
15508     # Short path failed, file does not exist as specified.
15509     # Try adding .exe or .cmd
15510     if test -f "${new_path}.exe"; then
15511       input_to_shortpath="${new_path}.exe"
15512     elif test -f "${new_path}.cmd"; then
15513       input_to_shortpath="${new_path}.cmd"
15514     else
15515       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15516 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15517       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15518 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15519       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15520     fi
15521   else
15522     input_to_shortpath="$new_path"
15523   fi
15524 
15525   # Call helper function which possibly converts this using DOS-style short mode.
15526   # If so, the updated path is stored in $new_path.
15527   new_path="$input_to_shortpath"
15528 
15529   input_path="$input_to_shortpath"
15530   # Check if we need to convert this using DOS-style short mode. If the path
15531   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15532   # take no chances and rewrite it.
15533   # Note: m4 eats our [], so we need to use [ and ] instead.
15534   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15535   if test "x$has_forbidden_chars" != x; then
15536     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15537     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15538     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15539     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15540       # Going to short mode and back again did indeed matter. Since short mode is
15541       # case insensitive, let's make it lowercase to improve readability.
15542       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15543       # Now convert it back to Unix-style (cygpath)
15544       input_path=`$CYGPATH -u "$shortmode_path"`
15545       new_path="$input_path"
15546     fi
15547   fi
15548 
15549   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15550   if test "x$test_cygdrive_prefix" = x; then
15551     # As a simple fix, exclude /usr/bin since it's not a real path.
15552     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15553       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15554       # a path prefixed by /cygdrive for fixpath to work.
15555       new_path="$CYGWIN_ROOT_PATH$input_path"
15556     fi
15557   fi
15558 
15559   # remove trailing .exe if any
15560   new_path="${new_path/%.exe/}"
15561 
15562   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15563 
15564   # First separate the path from the arguments. This will split at the first
15565   # space.
15566   complete="$FOUND_MAKE"
15567   path="${complete%% *}"
15568   tmp="$complete EOL"
15569   arguments="${tmp#* }"
15570 
15571   # Input might be given as Windows format, start by converting to
15572   # unix format.
15573   new_path="$path"
15574 
15575   windows_path="$new_path"
15576   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15577     unix_path=`$CYGPATH -u "$windows_path"`
15578     new_path="$unix_path"
15579   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15580     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15581     new_path="$unix_path"
15582   fi
15583 
15584 
15585   # Now try to locate executable using which
15586   new_path=`$WHICH "$new_path" 2> /dev/null`
15587 
15588   if test "x$new_path" = x; then
15589     # Oops. Which didn't find the executable.
15590     # The splitting of arguments from the executable at a space might have been incorrect,
15591     # since paths with space are more likely in Windows. Give it another try with the whole
15592     # argument.
15593     path="$complete"
15594     arguments="EOL"
15595     new_path="$path"
15596 
15597   windows_path="$new_path"
15598   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15599     unix_path=`$CYGPATH -u "$windows_path"`
15600     new_path="$unix_path"
15601   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15602     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15603     new_path="$unix_path"
15604   fi
15605 
15606 
15607     new_path=`$WHICH "$new_path" 2> /dev/null`
15608     # bat and cmd files are not always considered executable in MSYS causing which
15609     # to not find them
15610     if test "x$new_path" = x \
15611         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15612         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15613       new_path="$path"
15614 
15615   windows_path="$new_path"
15616   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15617     unix_path=`$CYGPATH -u "$windows_path"`
15618     new_path="$unix_path"
15619   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15620     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15621     new_path="$unix_path"
15622   fi
15623 
15624     fi
15625 
15626     if test "x$new_path" = x; then
15627       # It's still not found. Now this is an unrecoverable error.
15628       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15629 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15630       has_space=`$ECHO "$complete" | $GREP " "`
15631       if test "x$has_space" != x; then
15632         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15633 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15634       fi
15635       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15636     fi
15637   fi
15638 
15639   # Now new_path has a complete unix path to the binary
15640   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
15641     # Keep paths in /bin as-is, but remove trailing .exe if any
15642     new_path="${new_path/%.exe/}"
15643     # Do not save /bin paths to all_fixpath_prefixes!
15644   else
15645     # Not in mixed or Windows style, start by that.
15646     new_path=`cmd //c echo $new_path`
15647 
15648   input_path="$new_path"
15649   # Check if we need to convert this using DOS-style short mode. If the path
15650   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15651   # take no chances and rewrite it.
15652   # Note: m4 eats our [], so we need to use [ and ] instead.
15653   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
15654   if test "x$has_forbidden_chars" != x; then
15655     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15656     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15657   fi
15658 
15659     # Output is in $new_path
15660 
15661   windows_path="$new_path"
15662   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15663     unix_path=`$CYGPATH -u "$windows_path"`
15664     new_path="$unix_path"
15665   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15666     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15667     new_path="$unix_path"
15668   fi
15669 
15670     # remove trailing .exe if any
15671     new_path="${new_path/%.exe/}"
15672 
15673     # Save the first 10 bytes of this path to the storage, so fixpath can work.
15674     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
15675   fi
15676 
15677   else
15678     # We're on a posix platform. Hooray! :)
15679     # First separate the path from the arguments. This will split at the first
15680     # space.
15681     complete="$FOUND_MAKE"
15682     path="${complete%% *}"
15683     tmp="$complete EOL"
15684     arguments="${tmp#* }"
15685 
15686     # Cannot rely on the command "which" here since it doesn't always work.
15687     is_absolute_path=`$ECHO "$path" | $GREP ^/`
15688     if test -z "$is_absolute_path"; then
15689       # Path to executable is not absolute. Find it.
15690       IFS_save="$IFS"
15691       IFS=:
15692       for p in $PATH; do
15693         if test -f "$p/$path" && test -x "$p/$path"; then
15694           new_path="$p/$path"
15695           break
15696         fi
15697       done
15698       IFS="$IFS_save"
15699     else
15700       # This is an absolute path, we can use it without further modifications.
15701       new_path="$path"
15702     fi
15703 
15704     if test "x$new_path" = x; then
15705       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15706 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15707       has_space=`$ECHO "$complete" | $GREP " "`
15708       if test "x$has_space" != x; then
15709         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
15710 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
15711       fi
15712       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15713     fi
15714   fi
15715 
15716   # Now join together the path and the arguments once again
15717   if test "x$arguments" != xEOL; then
15718     new_complete="$new_path ${arguments% *}"
15719   else
15720     new_complete="$new_path"
15721   fi
15722 
15723   if test "x$complete" != "x$new_complete"; then
15724     FOUND_MAKE="$new_complete"
15725     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
15726 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
15727   fi
15728 
15729         fi
15730       fi
15731     fi
15732   fi
15733 
15734     if test "x$FOUND_MAKE" = x; then
15735       as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5
15736     fi
15737   else
15738     # Try our hardest to locate a correct version of GNU make
15739     for ac_prog in gmake
15740 do
15741   # Extract the first word of "$ac_prog", so it can be a program name with args.
15742 set dummy $ac_prog; ac_word=$2
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15744 $as_echo_n "checking for $ac_word... " >&6; }
15745 if ${ac_cv_path_CHECK_GMAKE+:} false; then :
15746   $as_echo_n "(cached) " >&6
15747 else
15748   case $CHECK_GMAKE in
15749   [\\/]* | ?:[\\/]*)
15750   ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path.
15751   ;;
15752   *)
15753   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 for as_dir in $PATH
15755 do
15756   IFS=$as_save_IFS
15757   test -z "$as_dir" && as_dir=.
15758     for ac_exec_ext in '' $ac_executable_extensions; do
15759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15760     ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext"
15761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15762     break 2
15763   fi
15764 done
15765   done
15766 IFS=$as_save_IFS
15767 
15768   ;;
15769 esac
15770 fi
15771 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE
15772 if test -n "$CHECK_GMAKE"; then
15773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5
15774 $as_echo "$CHECK_GMAKE" >&6; }
15775 else
15776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15777 $as_echo "no" >&6; }
15778 fi
15779 
15780 
15781   test -n "$CHECK_GMAKE" && break
15782 done
15783 
15784 
15785   MAKE_CANDIDATE=""$CHECK_GMAKE""
15786   DESCRIPTION="gmake in PATH"
15787   if test "x$MAKE_CANDIDATE" != x; then
15788     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
15789 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
15790     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
15791     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
15792     if test "x$IS_GNU_MAKE" = x; then
15793       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
15794 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
15795     else
15796       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
15797       if test "x$IS_MODERN_MAKE" = x; then
15798         { $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
15799 $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;}
15800       else
15801         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
15802           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15803             MAKE_EXPECTED_ENV='cygwin'
15804           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15805             MAKE_EXPECTED_ENV='msys'
15806           else
15807             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
15808           fi
15809           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
15810           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
15811         else
15812           # Not relevant for non-Windows
15813           IS_MAKE_CORRECT_ENV=true
15814         fi
15815         if test "x$IS_MAKE_CORRECT_ENV" = x; then
15816           { $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
15817 $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;}
15818         else
15819           FOUND_MAKE=$MAKE_CANDIDATE
15820 
15821   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15822 
15823   # First separate the path from the arguments. This will split at the first
15824   # space.
15825   complete="$FOUND_MAKE"
15826   path="${complete%% *}"
15827   tmp="$complete EOL"
15828   arguments="${tmp#* }"
15829 
15830   # Input might be given as Windows format, start by converting to
15831   # unix format.
15832   new_path=`$CYGPATH -u "$path"`
15833 
15834   # Now try to locate executable using which
15835   new_path=`$WHICH "$new_path" 2> /dev/null`
15836   # bat and cmd files are not always considered executable in cygwin causing which
15837   # to not find them
15838   if test "x$new_path" = x \
15839       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15840       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15841     new_path=`$CYGPATH -u "$path"`
15842   fi
15843   if test "x$new_path" = x; then
15844     # Oops. Which didn't find the executable.
15845     # The splitting of arguments from the executable at a space might have been incorrect,
15846     # since paths with space are more likely in Windows. Give it another try with the whole
15847     # argument.
15848     path="$complete"
15849     arguments="EOL"
15850     new_path=`$CYGPATH -u "$path"`
15851     new_path=`$WHICH "$new_path" 2> /dev/null`
15852     # bat and cmd files are not always considered executable in cygwin causing which
15853     # to not find them
15854     if test "x$new_path" = x \
15855         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15856         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15857       new_path=`$CYGPATH -u "$path"`
15858     fi
15859     if test "x$new_path" = x; then
15860       # It's still not found. Now this is an unrecoverable error.
15861       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
15862 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
15863       has_space=`$ECHO "$complete" | $GREP " "`
15864       if test "x$has_space" != x; then
15865         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
15866 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
15867       fi
15868       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15869     fi
15870   fi
15871 
15872   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
15873   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
15874   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
15875   # "foo.exe" is OK but "foo" is an error.
15876   #
15877   # This test is therefore slightly more accurate than "test -f" to check for file presence.
15878   # It is also a way to make sure we got the proper file name for the real test later on.
15879   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
15880   if test "x$test_shortpath" = x; then
15881     # Short path failed, file does not exist as specified.
15882     # Try adding .exe or .cmd
15883     if test -f "${new_path}.exe"; then
15884       input_to_shortpath="${new_path}.exe"
15885     elif test -f "${new_path}.cmd"; then
15886       input_to_shortpath="${new_path}.cmd"
15887     else
15888       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
15889 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
15890       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
15891 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
15892       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
15893     fi
15894   else
15895     input_to_shortpath="$new_path"
15896   fi
15897 
15898   # Call helper function which possibly converts this using DOS-style short mode.
15899   # If so, the updated path is stored in $new_path.
15900   new_path="$input_to_shortpath"
15901 
15902   input_path="$input_to_shortpath"
15903   # Check if we need to convert this using DOS-style short mode. If the path
15904   # contains just simple characters, use it. Otherwise (spaces, weird characters),
15905   # take no chances and rewrite it.
15906   # Note: m4 eats our [], so we need to use [ and ] instead.
15907   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
15908   if test "x$has_forbidden_chars" != x; then
15909     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
15910     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
15911     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
15912     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
15913       # Going to short mode and back again did indeed matter. Since short mode is
15914       # case insensitive, let's make it lowercase to improve readability.
15915       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15916       # Now convert it back to Unix-style (cygpath)
15917       input_path=`$CYGPATH -u "$shortmode_path"`
15918       new_path="$input_path"
15919     fi
15920   fi
15921 
15922   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
15923   if test "x$test_cygdrive_prefix" = x; then
15924     # As a simple fix, exclude /usr/bin since it's not a real path.
15925     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
15926       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
15927       # a path prefixed by /cygdrive for fixpath to work.
15928       new_path="$CYGWIN_ROOT_PATH$input_path"
15929     fi
15930   fi
15931 
15932   # remove trailing .exe if any
15933   new_path="${new_path/%.exe/}"
15934 
15935   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15936 
15937   # First separate the path from the arguments. This will split at the first
15938   # space.
15939   complete="$FOUND_MAKE"
15940   path="${complete%% *}"
15941   tmp="$complete EOL"
15942   arguments="${tmp#* }"
15943 
15944   # Input might be given as Windows format, start by converting to
15945   # unix format.
15946   new_path="$path"
15947 
15948   windows_path="$new_path"
15949   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15950     unix_path=`$CYGPATH -u "$windows_path"`
15951     new_path="$unix_path"
15952   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15953     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15954     new_path="$unix_path"
15955   fi
15956 
15957 
15958   # Now try to locate executable using which
15959   new_path=`$WHICH "$new_path" 2> /dev/null`
15960 
15961   if test "x$new_path" = x; then
15962     # Oops. Which didn't find the executable.
15963     # The splitting of arguments from the executable at a space might have been incorrect,
15964     # since paths with space are more likely in Windows. Give it another try with the whole
15965     # argument.
15966     path="$complete"
15967     arguments="EOL"
15968     new_path="$path"
15969 
15970   windows_path="$new_path"
15971   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15972     unix_path=`$CYGPATH -u "$windows_path"`
15973     new_path="$unix_path"
15974   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15975     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15976     new_path="$unix_path"
15977   fi
15978 
15979 
15980     new_path=`$WHICH "$new_path" 2> /dev/null`
15981     # bat and cmd files are not always considered executable in MSYS causing which
15982     # to not find them
15983     if test "x$new_path" = x \
15984         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
15985         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
15986       new_path="$path"
15987 
15988   windows_path="$new_path"
15989   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
15990     unix_path=`$CYGPATH -u "$windows_path"`
15991     new_path="$unix_path"
15992   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
15993     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
15994     new_path="$unix_path"
15995   fi
15996 
15997     fi
15998 
15999     if test "x$new_path" = x; then
16000       # It's still not found. Now this is an unrecoverable error.
16001       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16002 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16003       has_space=`$ECHO "$complete" | $GREP " "`
16004       if test "x$has_space" != x; then
16005         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16007       fi
16008       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16009     fi
16010   fi
16011 
16012   # Now new_path has a complete unix path to the binary
16013   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16014     # Keep paths in /bin as-is, but remove trailing .exe if any
16015     new_path="${new_path/%.exe/}"
16016     # Do not save /bin paths to all_fixpath_prefixes!
16017   else
16018     # Not in mixed or Windows style, start by that.
16019     new_path=`cmd //c echo $new_path`
16020 
16021   input_path="$new_path"
16022   # Check if we need to convert this using DOS-style short mode. If the path
16023   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16024   # take no chances and rewrite it.
16025   # Note: m4 eats our [], so we need to use [ and ] instead.
16026   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16027   if test "x$has_forbidden_chars" != x; then
16028     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16029     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16030   fi
16031 
16032     # Output is in $new_path
16033 
16034   windows_path="$new_path"
16035   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16036     unix_path=`$CYGPATH -u "$windows_path"`
16037     new_path="$unix_path"
16038   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16039     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16040     new_path="$unix_path"
16041   fi
16042 
16043     # remove trailing .exe if any
16044     new_path="${new_path/%.exe/}"
16045 
16046     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16047     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16048   fi
16049 
16050   else
16051     # We're on a posix platform. Hooray! :)
16052     # First separate the path from the arguments. This will split at the first
16053     # space.
16054     complete="$FOUND_MAKE"
16055     path="${complete%% *}"
16056     tmp="$complete EOL"
16057     arguments="${tmp#* }"
16058 
16059     # Cannot rely on the command "which" here since it doesn't always work.
16060     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16061     if test -z "$is_absolute_path"; then
16062       # Path to executable is not absolute. Find it.
16063       IFS_save="$IFS"
16064       IFS=:
16065       for p in $PATH; do
16066         if test -f "$p/$path" && test -x "$p/$path"; then
16067           new_path="$p/$path"
16068           break
16069         fi
16070       done
16071       IFS="$IFS_save"
16072     else
16073       # This is an absolute path, we can use it without further modifications.
16074       new_path="$path"
16075     fi
16076 
16077     if test "x$new_path" = x; then
16078       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16079 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16080       has_space=`$ECHO "$complete" | $GREP " "`
16081       if test "x$has_space" != x; then
16082         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16083 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16084       fi
16085       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16086     fi
16087   fi
16088 
16089   # Now join together the path and the arguments once again
16090   if test "x$arguments" != xEOL; then
16091     new_complete="$new_path ${arguments% *}"
16092   else
16093     new_complete="$new_path"
16094   fi
16095 
16096   if test "x$complete" != "x$new_complete"; then
16097     FOUND_MAKE="$new_complete"
16098     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16099 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16100   fi
16101 
16102         fi
16103       fi
16104     fi
16105   fi
16106 
16107 
16108     if test "x$FOUND_MAKE" = x; then
16109       for ac_prog in make
16110 do
16111   # Extract the first word of "$ac_prog", so it can be a program name with args.
16112 set dummy $ac_prog; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if ${ac_cv_path_CHECK_MAKE+:} false; then :
16116   $as_echo_n "(cached) " >&6
16117 else
16118   case $CHECK_MAKE in
16119   [\\/]* | ?:[\\/]*)
16120   ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path.
16121   ;;
16122   *)
16123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16124 for as_dir in $PATH
16125 do
16126   IFS=$as_save_IFS
16127   test -z "$as_dir" && as_dir=.
16128     for ac_exec_ext in '' $ac_executable_extensions; do
16129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16130     ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext"
16131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16132     break 2
16133   fi
16134 done
16135   done
16136 IFS=$as_save_IFS
16137 
16138   ;;
16139 esac
16140 fi
16141 CHECK_MAKE=$ac_cv_path_CHECK_MAKE
16142 if test -n "$CHECK_MAKE"; then
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5
16144 $as_echo "$CHECK_MAKE" >&6; }
16145 else
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149 
16150 
16151   test -n "$CHECK_MAKE" && break
16152 done
16153 
16154 
16155   MAKE_CANDIDATE=""$CHECK_MAKE""
16156   DESCRIPTION="make in PATH"
16157   if test "x$MAKE_CANDIDATE" != x; then
16158     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16159 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16160     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16161     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16162     if test "x$IS_GNU_MAKE" = x; then
16163       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16164 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16165     else
16166       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16167       if test "x$IS_MODERN_MAKE" = x; then
16168         { $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
16169 $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;}
16170       else
16171         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16172           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16173             MAKE_EXPECTED_ENV='cygwin'
16174           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16175             MAKE_EXPECTED_ENV='msys'
16176           else
16177             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16178           fi
16179           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16180           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16181         else
16182           # Not relevant for non-Windows
16183           IS_MAKE_CORRECT_ENV=true
16184         fi
16185         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16186           { $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
16187 $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;}
16188         else
16189           FOUND_MAKE=$MAKE_CANDIDATE
16190 
16191   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16192 
16193   # First separate the path from the arguments. This will split at the first
16194   # space.
16195   complete="$FOUND_MAKE"
16196   path="${complete%% *}"
16197   tmp="$complete EOL"
16198   arguments="${tmp#* }"
16199 
16200   # Input might be given as Windows format, start by converting to
16201   # unix format.
16202   new_path=`$CYGPATH -u "$path"`
16203 
16204   # Now try to locate executable using which
16205   new_path=`$WHICH "$new_path" 2> /dev/null`
16206   # bat and cmd files are not always considered executable in cygwin causing which
16207   # to not find them
16208   if test "x$new_path" = x \
16209       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16210       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16211     new_path=`$CYGPATH -u "$path"`
16212   fi
16213   if test "x$new_path" = x; then
16214     # Oops. Which didn't find the executable.
16215     # The splitting of arguments from the executable at a space might have been incorrect,
16216     # since paths with space are more likely in Windows. Give it another try with the whole
16217     # argument.
16218     path="$complete"
16219     arguments="EOL"
16220     new_path=`$CYGPATH -u "$path"`
16221     new_path=`$WHICH "$new_path" 2> /dev/null`
16222     # bat and cmd files are not always considered executable in cygwin causing which
16223     # to not find them
16224     if test "x$new_path" = x \
16225         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16226         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16227       new_path=`$CYGPATH -u "$path"`
16228     fi
16229     if test "x$new_path" = x; then
16230       # It's still not found. Now this is an unrecoverable error.
16231       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16232 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16233       has_space=`$ECHO "$complete" | $GREP " "`
16234       if test "x$has_space" != x; then
16235         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16236 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16237       fi
16238       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16239     fi
16240   fi
16241 
16242   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16243   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16244   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16245   # "foo.exe" is OK but "foo" is an error.
16246   #
16247   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16248   # It is also a way to make sure we got the proper file name for the real test later on.
16249   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16250   if test "x$test_shortpath" = x; then
16251     # Short path failed, file does not exist as specified.
16252     # Try adding .exe or .cmd
16253     if test -f "${new_path}.exe"; then
16254       input_to_shortpath="${new_path}.exe"
16255     elif test -f "${new_path}.cmd"; then
16256       input_to_shortpath="${new_path}.cmd"
16257     else
16258       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16259 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16260       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16261 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16262       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16263     fi
16264   else
16265     input_to_shortpath="$new_path"
16266   fi
16267 
16268   # Call helper function which possibly converts this using DOS-style short mode.
16269   # If so, the updated path is stored in $new_path.
16270   new_path="$input_to_shortpath"
16271 
16272   input_path="$input_to_shortpath"
16273   # Check if we need to convert this using DOS-style short mode. If the path
16274   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16275   # take no chances and rewrite it.
16276   # Note: m4 eats our [], so we need to use [ and ] instead.
16277   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16278   if test "x$has_forbidden_chars" != x; then
16279     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16280     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16281     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16282     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16283       # Going to short mode and back again did indeed matter. Since short mode is
16284       # case insensitive, let's make it lowercase to improve readability.
16285       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16286       # Now convert it back to Unix-style (cygpath)
16287       input_path=`$CYGPATH -u "$shortmode_path"`
16288       new_path="$input_path"
16289     fi
16290   fi
16291 
16292   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16293   if test "x$test_cygdrive_prefix" = x; then
16294     # As a simple fix, exclude /usr/bin since it's not a real path.
16295     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16296       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16297       # a path prefixed by /cygdrive for fixpath to work.
16298       new_path="$CYGWIN_ROOT_PATH$input_path"
16299     fi
16300   fi
16301 
16302   # remove trailing .exe if any
16303   new_path="${new_path/%.exe/}"
16304 
16305   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16306 
16307   # First separate the path from the arguments. This will split at the first
16308   # space.
16309   complete="$FOUND_MAKE"
16310   path="${complete%% *}"
16311   tmp="$complete EOL"
16312   arguments="${tmp#* }"
16313 
16314   # Input might be given as Windows format, start by converting to
16315   # unix format.
16316   new_path="$path"
16317 
16318   windows_path="$new_path"
16319   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16320     unix_path=`$CYGPATH -u "$windows_path"`
16321     new_path="$unix_path"
16322   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16323     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16324     new_path="$unix_path"
16325   fi
16326 
16327 
16328   # Now try to locate executable using which
16329   new_path=`$WHICH "$new_path" 2> /dev/null`
16330 
16331   if test "x$new_path" = x; then
16332     # Oops. Which didn't find the executable.
16333     # The splitting of arguments from the executable at a space might have been incorrect,
16334     # since paths with space are more likely in Windows. Give it another try with the whole
16335     # argument.
16336     path="$complete"
16337     arguments="EOL"
16338     new_path="$path"
16339 
16340   windows_path="$new_path"
16341   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16342     unix_path=`$CYGPATH -u "$windows_path"`
16343     new_path="$unix_path"
16344   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16345     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16346     new_path="$unix_path"
16347   fi
16348 
16349 
16350     new_path=`$WHICH "$new_path" 2> /dev/null`
16351     # bat and cmd files are not always considered executable in MSYS causing which
16352     # to not find them
16353     if test "x$new_path" = x \
16354         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16355         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16356       new_path="$path"
16357 
16358   windows_path="$new_path"
16359   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16360     unix_path=`$CYGPATH -u "$windows_path"`
16361     new_path="$unix_path"
16362   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16363     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16364     new_path="$unix_path"
16365   fi
16366 
16367     fi
16368 
16369     if test "x$new_path" = x; then
16370       # It's still not found. Now this is an unrecoverable error.
16371       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16372 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16373       has_space=`$ECHO "$complete" | $GREP " "`
16374       if test "x$has_space" != x; then
16375         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16377       fi
16378       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16379     fi
16380   fi
16381 
16382   # Now new_path has a complete unix path to the binary
16383   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16384     # Keep paths in /bin as-is, but remove trailing .exe if any
16385     new_path="${new_path/%.exe/}"
16386     # Do not save /bin paths to all_fixpath_prefixes!
16387   else
16388     # Not in mixed or Windows style, start by that.
16389     new_path=`cmd //c echo $new_path`
16390 
16391   input_path="$new_path"
16392   # Check if we need to convert this using DOS-style short mode. If the path
16393   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16394   # take no chances and rewrite it.
16395   # Note: m4 eats our [], so we need to use [ and ] instead.
16396   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16397   if test "x$has_forbidden_chars" != x; then
16398     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16399     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16400   fi
16401 
16402     # Output is in $new_path
16403 
16404   windows_path="$new_path"
16405   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16406     unix_path=`$CYGPATH -u "$windows_path"`
16407     new_path="$unix_path"
16408   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16409     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16410     new_path="$unix_path"
16411   fi
16412 
16413     # remove trailing .exe if any
16414     new_path="${new_path/%.exe/}"
16415 
16416     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16417     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16418   fi
16419 
16420   else
16421     # We're on a posix platform. Hooray! :)
16422     # First separate the path from the arguments. This will split at the first
16423     # space.
16424     complete="$FOUND_MAKE"
16425     path="${complete%% *}"
16426     tmp="$complete EOL"
16427     arguments="${tmp#* }"
16428 
16429     # Cannot rely on the command "which" here since it doesn't always work.
16430     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16431     if test -z "$is_absolute_path"; then
16432       # Path to executable is not absolute. Find it.
16433       IFS_save="$IFS"
16434       IFS=:
16435       for p in $PATH; do
16436         if test -f "$p/$path" && test -x "$p/$path"; then
16437           new_path="$p/$path"
16438           break
16439         fi
16440       done
16441       IFS="$IFS_save"
16442     else
16443       # This is an absolute path, we can use it without further modifications.
16444       new_path="$path"
16445     fi
16446 
16447     if test "x$new_path" = x; then
16448       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16449 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16450       has_space=`$ECHO "$complete" | $GREP " "`
16451       if test "x$has_space" != x; then
16452         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16453 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16454       fi
16455       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16456     fi
16457   fi
16458 
16459   # Now join together the path and the arguments once again
16460   if test "x$arguments" != xEOL; then
16461     new_complete="$new_path ${arguments% *}"
16462   else
16463     new_complete="$new_path"
16464   fi
16465 
16466   if test "x$complete" != "x$new_complete"; then
16467     FOUND_MAKE="$new_complete"
16468     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16469 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16470   fi
16471 
16472         fi
16473       fi
16474     fi
16475   fi
16476 
16477     fi
16478 
16479     if test "x$FOUND_MAKE" = x; then
16480       if test "x$TOOLCHAIN_PATH" != x; then
16481         # We have a toolchain path, check that as well before giving up.
16482         OLD_PATH=$PATH
16483         PATH=$TOOLCHAIN_PATH:$PATH
16484         for ac_prog in gmake
16485 do
16486   # Extract the first word of "$ac_prog", so it can be a program name with args.
16487 set dummy $ac_prog; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16489 $as_echo_n "checking for $ac_word... " >&6; }
16490 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then :
16491   $as_echo_n "(cached) " >&6
16492 else
16493   case $CHECK_TOOLSDIR_GMAKE in
16494   [\\/]* | ?:[\\/]*)
16495   ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path.
16496   ;;
16497   *)
16498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16499 for as_dir in $PATH
16500 do
16501   IFS=$as_save_IFS
16502   test -z "$as_dir" && as_dir=.
16503     for ac_exec_ext in '' $ac_executable_extensions; do
16504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16505     ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext"
16506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16507     break 2
16508   fi
16509 done
16510   done
16511 IFS=$as_save_IFS
16512 
16513   ;;
16514 esac
16515 fi
16516 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE
16517 if test -n "$CHECK_TOOLSDIR_GMAKE"; then
16518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5
16519 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; }
16520 else
16521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16522 $as_echo "no" >&6; }
16523 fi
16524 
16525 
16526   test -n "$CHECK_TOOLSDIR_GMAKE" && break
16527 done
16528 
16529 
16530   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE""
16531   DESCRIPTION="gmake in tools-dir"
16532   if test "x$MAKE_CANDIDATE" != x; then
16533     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16534 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16535     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16536     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16537     if test "x$IS_GNU_MAKE" = x; then
16538       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16539 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16540     else
16541       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16542       if test "x$IS_MODERN_MAKE" = x; then
16543         { $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
16544 $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;}
16545       else
16546         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16547           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16548             MAKE_EXPECTED_ENV='cygwin'
16549           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16550             MAKE_EXPECTED_ENV='msys'
16551           else
16552             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16553           fi
16554           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16555           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16556         else
16557           # Not relevant for non-Windows
16558           IS_MAKE_CORRECT_ENV=true
16559         fi
16560         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16561           { $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
16562 $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;}
16563         else
16564           FOUND_MAKE=$MAKE_CANDIDATE
16565 
16566   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16567 
16568   # First separate the path from the arguments. This will split at the first
16569   # space.
16570   complete="$FOUND_MAKE"
16571   path="${complete%% *}"
16572   tmp="$complete EOL"
16573   arguments="${tmp#* }"
16574 
16575   # Input might be given as Windows format, start by converting to
16576   # unix format.
16577   new_path=`$CYGPATH -u "$path"`
16578 
16579   # Now try to locate executable using which
16580   new_path=`$WHICH "$new_path" 2> /dev/null`
16581   # bat and cmd files are not always considered executable in cygwin causing which
16582   # to not find them
16583   if test "x$new_path" = x \
16584       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16585       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16586     new_path=`$CYGPATH -u "$path"`
16587   fi
16588   if test "x$new_path" = x; then
16589     # Oops. Which didn't find the executable.
16590     # The splitting of arguments from the executable at a space might have been incorrect,
16591     # since paths with space are more likely in Windows. Give it another try with the whole
16592     # argument.
16593     path="$complete"
16594     arguments="EOL"
16595     new_path=`$CYGPATH -u "$path"`
16596     new_path=`$WHICH "$new_path" 2> /dev/null`
16597     # bat and cmd files are not always considered executable in cygwin causing which
16598     # to not find them
16599     if test "x$new_path" = x \
16600         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16601         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16602       new_path=`$CYGPATH -u "$path"`
16603     fi
16604     if test "x$new_path" = x; then
16605       # It's still not found. Now this is an unrecoverable error.
16606       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16607 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16608       has_space=`$ECHO "$complete" | $GREP " "`
16609       if test "x$has_space" != x; then
16610         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16611 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16612       fi
16613       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16614     fi
16615   fi
16616 
16617   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16618   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16619   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16620   # "foo.exe" is OK but "foo" is an error.
16621   #
16622   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16623   # It is also a way to make sure we got the proper file name for the real test later on.
16624   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16625   if test "x$test_shortpath" = x; then
16626     # Short path failed, file does not exist as specified.
16627     # Try adding .exe or .cmd
16628     if test -f "${new_path}.exe"; then
16629       input_to_shortpath="${new_path}.exe"
16630     elif test -f "${new_path}.cmd"; then
16631       input_to_shortpath="${new_path}.cmd"
16632     else
16633       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
16634 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
16635       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
16636 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
16637       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16638     fi
16639   else
16640     input_to_shortpath="$new_path"
16641   fi
16642 
16643   # Call helper function which possibly converts this using DOS-style short mode.
16644   # If so, the updated path is stored in $new_path.
16645   new_path="$input_to_shortpath"
16646 
16647   input_path="$input_to_shortpath"
16648   # Check if we need to convert this using DOS-style short mode. If the path
16649   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16650   # take no chances and rewrite it.
16651   # Note: m4 eats our [], so we need to use [ and ] instead.
16652   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
16653   if test "x$has_forbidden_chars" != x; then
16654     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16655     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
16656     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
16657     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
16658       # Going to short mode and back again did indeed matter. Since short mode is
16659       # case insensitive, let's make it lowercase to improve readability.
16660       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16661       # Now convert it back to Unix-style (cygpath)
16662       input_path=`$CYGPATH -u "$shortmode_path"`
16663       new_path="$input_path"
16664     fi
16665   fi
16666 
16667   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
16668   if test "x$test_cygdrive_prefix" = x; then
16669     # As a simple fix, exclude /usr/bin since it's not a real path.
16670     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
16671       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
16672       # a path prefixed by /cygdrive for fixpath to work.
16673       new_path="$CYGWIN_ROOT_PATH$input_path"
16674     fi
16675   fi
16676 
16677   # remove trailing .exe if any
16678   new_path="${new_path/%.exe/}"
16679 
16680   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16681 
16682   # First separate the path from the arguments. This will split at the first
16683   # space.
16684   complete="$FOUND_MAKE"
16685   path="${complete%% *}"
16686   tmp="$complete EOL"
16687   arguments="${tmp#* }"
16688 
16689   # Input might be given as Windows format, start by converting to
16690   # unix format.
16691   new_path="$path"
16692 
16693   windows_path="$new_path"
16694   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16695     unix_path=`$CYGPATH -u "$windows_path"`
16696     new_path="$unix_path"
16697   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16698     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16699     new_path="$unix_path"
16700   fi
16701 
16702 
16703   # Now try to locate executable using which
16704   new_path=`$WHICH "$new_path" 2> /dev/null`
16705 
16706   if test "x$new_path" = x; then
16707     # Oops. Which didn't find the executable.
16708     # The splitting of arguments from the executable at a space might have been incorrect,
16709     # since paths with space are more likely in Windows. Give it another try with the whole
16710     # argument.
16711     path="$complete"
16712     arguments="EOL"
16713     new_path="$path"
16714 
16715   windows_path="$new_path"
16716   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16717     unix_path=`$CYGPATH -u "$windows_path"`
16718     new_path="$unix_path"
16719   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16720     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16721     new_path="$unix_path"
16722   fi
16723 
16724 
16725     new_path=`$WHICH "$new_path" 2> /dev/null`
16726     # bat and cmd files are not always considered executable in MSYS causing which
16727     # to not find them
16728     if test "x$new_path" = x \
16729         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16730         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16731       new_path="$path"
16732 
16733   windows_path="$new_path"
16734   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16735     unix_path=`$CYGPATH -u "$windows_path"`
16736     new_path="$unix_path"
16737   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16738     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16739     new_path="$unix_path"
16740   fi
16741 
16742     fi
16743 
16744     if test "x$new_path" = x; then
16745       # It's still not found. Now this is an unrecoverable error.
16746       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16747 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16748       has_space=`$ECHO "$complete" | $GREP " "`
16749       if test "x$has_space" != x; then
16750         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16751 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16752       fi
16753       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16754     fi
16755   fi
16756 
16757   # Now new_path has a complete unix path to the binary
16758   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
16759     # Keep paths in /bin as-is, but remove trailing .exe if any
16760     new_path="${new_path/%.exe/}"
16761     # Do not save /bin paths to all_fixpath_prefixes!
16762   else
16763     # Not in mixed or Windows style, start by that.
16764     new_path=`cmd //c echo $new_path`
16765 
16766   input_path="$new_path"
16767   # Check if we need to convert this using DOS-style short mode. If the path
16768   # contains just simple characters, use it. Otherwise (spaces, weird characters),
16769   # take no chances and rewrite it.
16770   # Note: m4 eats our [], so we need to use [ and ] instead.
16771   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
16772   if test "x$has_forbidden_chars" != x; then
16773     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
16774     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
16775   fi
16776 
16777     # Output is in $new_path
16778 
16779   windows_path="$new_path"
16780   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16781     unix_path=`$CYGPATH -u "$windows_path"`
16782     new_path="$unix_path"
16783   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16784     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
16785     new_path="$unix_path"
16786   fi
16787 
16788     # remove trailing .exe if any
16789     new_path="${new_path/%.exe/}"
16790 
16791     # Save the first 10 bytes of this path to the storage, so fixpath can work.
16792     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
16793   fi
16794 
16795   else
16796     # We're on a posix platform. Hooray! :)
16797     # First separate the path from the arguments. This will split at the first
16798     # space.
16799     complete="$FOUND_MAKE"
16800     path="${complete%% *}"
16801     tmp="$complete EOL"
16802     arguments="${tmp#* }"
16803 
16804     # Cannot rely on the command "which" here since it doesn't always work.
16805     is_absolute_path=`$ECHO "$path" | $GREP ^/`
16806     if test -z "$is_absolute_path"; then
16807       # Path to executable is not absolute. Find it.
16808       IFS_save="$IFS"
16809       IFS=:
16810       for p in $PATH; do
16811         if test -f "$p/$path" && test -x "$p/$path"; then
16812           new_path="$p/$path"
16813           break
16814         fi
16815       done
16816       IFS="$IFS_save"
16817     else
16818       # This is an absolute path, we can use it without further modifications.
16819       new_path="$path"
16820     fi
16821 
16822     if test "x$new_path" = x; then
16823       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16824 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16825       has_space=`$ECHO "$complete" | $GREP " "`
16826       if test "x$has_space" != x; then
16827         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
16828 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
16829       fi
16830       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16831     fi
16832   fi
16833 
16834   # Now join together the path and the arguments once again
16835   if test "x$arguments" != xEOL; then
16836     new_complete="$new_path ${arguments% *}"
16837   else
16838     new_complete="$new_path"
16839   fi
16840 
16841   if test "x$complete" != "x$new_complete"; then
16842     FOUND_MAKE="$new_complete"
16843     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
16844 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
16845   fi
16846 
16847         fi
16848       fi
16849     fi
16850   fi
16851 
16852         if test "x$FOUND_MAKE" = x; then
16853           for ac_prog in make
16854 do
16855   # Extract the first word of "$ac_prog", so it can be a program name with args.
16856 set dummy $ac_prog; ac_word=$2
16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16858 $as_echo_n "checking for $ac_word... " >&6; }
16859 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then :
16860   $as_echo_n "(cached) " >&6
16861 else
16862   case $CHECK_TOOLSDIR_MAKE in
16863   [\\/]* | ?:[\\/]*)
16864   ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path.
16865   ;;
16866   *)
16867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16868 for as_dir in $PATH
16869 do
16870   IFS=$as_save_IFS
16871   test -z "$as_dir" && as_dir=.
16872     for ac_exec_ext in '' $ac_executable_extensions; do
16873   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16874     ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext"
16875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16876     break 2
16877   fi
16878 done
16879   done
16880 IFS=$as_save_IFS
16881 
16882   ;;
16883 esac
16884 fi
16885 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE
16886 if test -n "$CHECK_TOOLSDIR_MAKE"; then
16887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5
16888 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; }
16889 else
16890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16891 $as_echo "no" >&6; }
16892 fi
16893 
16894 
16895   test -n "$CHECK_TOOLSDIR_MAKE" && break
16896 done
16897 
16898 
16899   MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE""
16900   DESCRIPTION="make in tools-dir"
16901   if test "x$MAKE_CANDIDATE" != x; then
16902     { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5
16903 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;}
16904     MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1`
16905     IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'`
16906     if test "x$IS_GNU_MAKE" = x; then
16907       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5
16908 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;}
16909     else
16910       IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'`
16911       if test "x$IS_MODERN_MAKE" = x; then
16912         { $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
16913 $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;}
16914       else
16915         if test "x$OPENJDK_BUILD_OS" = "xwindows"; then
16916           if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16917             MAKE_EXPECTED_ENV='cygwin'
16918           elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
16919             MAKE_EXPECTED_ENV='msys'
16920           else
16921             as_fn_error $? "Unknown Windows environment" "$LINENO" 5
16922           fi
16923           MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'`
16924           IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV`
16925         else
16926           # Not relevant for non-Windows
16927           IS_MAKE_CORRECT_ENV=true
16928         fi
16929         if test "x$IS_MAKE_CORRECT_ENV" = x; then
16930           { $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
16931 $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;}
16932         else
16933           FOUND_MAKE=$MAKE_CANDIDATE
16934 
16935   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
16936 
16937   # First separate the path from the arguments. This will split at the first
16938   # space.
16939   complete="$FOUND_MAKE"
16940   path="${complete%% *}"
16941   tmp="$complete EOL"
16942   arguments="${tmp#* }"
16943 
16944   # Input might be given as Windows format, start by converting to
16945   # unix format.
16946   new_path=`$CYGPATH -u "$path"`
16947 
16948   # Now try to locate executable using which
16949   new_path=`$WHICH "$new_path" 2> /dev/null`
16950   # bat and cmd files are not always considered executable in cygwin causing which
16951   # to not find them
16952   if test "x$new_path" = x \
16953       && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16954       && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16955     new_path=`$CYGPATH -u "$path"`
16956   fi
16957   if test "x$new_path" = x; then
16958     # Oops. Which didn't find the executable.
16959     # The splitting of arguments from the executable at a space might have been incorrect,
16960     # since paths with space are more likely in Windows. Give it another try with the whole
16961     # argument.
16962     path="$complete"
16963     arguments="EOL"
16964     new_path=`$CYGPATH -u "$path"`
16965     new_path=`$WHICH "$new_path" 2> /dev/null`
16966     # bat and cmd files are not always considered executable in cygwin causing which
16967     # to not find them
16968     if test "x$new_path" = x \
16969         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
16970         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
16971       new_path=`$CYGPATH -u "$path"`
16972     fi
16973     if test "x$new_path" = x; then
16974       # It's still not found. Now this is an unrecoverable error.
16975       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
16976 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
16977       has_space=`$ECHO "$complete" | $GREP " "`
16978       if test "x$has_space" != x; then
16979         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
16980 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
16981       fi
16982       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
16983     fi
16984   fi
16985 
16986   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
16987   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
16988   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
16989   # "foo.exe" is OK but "foo" is an error.
16990   #
16991   # This test is therefore slightly more accurate than "test -f" to check for file presence.
16992   # It is also a way to make sure we got the proper file name for the real test later on.
16993   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
16994   if test "x$test_shortpath" = x; then
16995     # Short path failed, file does not exist as specified.
16996     # Try adding .exe or .cmd
16997     if test -f "${new_path}.exe"; then
16998       input_to_shortpath="${new_path}.exe"
16999     elif test -f "${new_path}.cmd"; then
17000       input_to_shortpath="${new_path}.cmd"
17001     else
17002       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5
17003 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;}
17004       { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5
17005 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;}
17006       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17007     fi
17008   else
17009     input_to_shortpath="$new_path"
17010   fi
17011 
17012   # Call helper function which possibly converts this using DOS-style short mode.
17013   # If so, the updated path is stored in $new_path.
17014   new_path="$input_to_shortpath"
17015 
17016   input_path="$input_to_shortpath"
17017   # Check if we need to convert this using DOS-style short mode. If the path
17018   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17019   # take no chances and rewrite it.
17020   # Note: m4 eats our [], so we need to use [ and ] instead.
17021   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
17022   if test "x$has_forbidden_chars" != x; then
17023     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17024     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
17025     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
17026     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
17027       # Going to short mode and back again did indeed matter. Since short mode is
17028       # case insensitive, let's make it lowercase to improve readability.
17029       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17030       # Now convert it back to Unix-style (cygpath)
17031       input_path=`$CYGPATH -u "$shortmode_path"`
17032       new_path="$input_path"
17033     fi
17034   fi
17035 
17036   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
17037   if test "x$test_cygdrive_prefix" = x; then
17038     # As a simple fix, exclude /usr/bin since it's not a real path.
17039     if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then
17040       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
17041       # a path prefixed by /cygdrive for fixpath to work.
17042       new_path="$CYGWIN_ROOT_PATH$input_path"
17043     fi
17044   fi
17045 
17046   # remove trailing .exe if any
17047   new_path="${new_path/%.exe/}"
17048 
17049   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17050 
17051   # First separate the path from the arguments. This will split at the first
17052   # space.
17053   complete="$FOUND_MAKE"
17054   path="${complete%% *}"
17055   tmp="$complete EOL"
17056   arguments="${tmp#* }"
17057 
17058   # Input might be given as Windows format, start by converting to
17059   # unix format.
17060   new_path="$path"
17061 
17062   windows_path="$new_path"
17063   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17064     unix_path=`$CYGPATH -u "$windows_path"`
17065     new_path="$unix_path"
17066   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17067     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17068     new_path="$unix_path"
17069   fi
17070 
17071 
17072   # Now try to locate executable using which
17073   new_path=`$WHICH "$new_path" 2> /dev/null`
17074 
17075   if test "x$new_path" = x; then
17076     # Oops. Which didn't find the executable.
17077     # The splitting of arguments from the executable at a space might have been incorrect,
17078     # since paths with space are more likely in Windows. Give it another try with the whole
17079     # argument.
17080     path="$complete"
17081     arguments="EOL"
17082     new_path="$path"
17083 
17084   windows_path="$new_path"
17085   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17086     unix_path=`$CYGPATH -u "$windows_path"`
17087     new_path="$unix_path"
17088   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17089     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17090     new_path="$unix_path"
17091   fi
17092 
17093 
17094     new_path=`$WHICH "$new_path" 2> /dev/null`
17095     # bat and cmd files are not always considered executable in MSYS causing which
17096     # to not find them
17097     if test "x$new_path" = x \
17098         && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
17099         && test "x`$LS \"$path\" 2>/dev/null`" != x; then
17100       new_path="$path"
17101 
17102   windows_path="$new_path"
17103   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17104     unix_path=`$CYGPATH -u "$windows_path"`
17105     new_path="$unix_path"
17106   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17107     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17108     new_path="$unix_path"
17109   fi
17110 
17111     fi
17112 
17113     if test "x$new_path" = x; then
17114       # It's still not found. Now this is an unrecoverable error.
17115       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17116 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17117       has_space=`$ECHO "$complete" | $GREP " "`
17118       if test "x$has_space" != x; then
17119         { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5
17120 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;}
17121       fi
17122       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17123     fi
17124   fi
17125 
17126   # Now new_path has a complete unix path to the binary
17127   if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then
17128     # Keep paths in /bin as-is, but remove trailing .exe if any
17129     new_path="${new_path/%.exe/}"
17130     # Do not save /bin paths to all_fixpath_prefixes!
17131   else
17132     # Not in mixed or Windows style, start by that.
17133     new_path=`cmd //c echo $new_path`
17134 
17135   input_path="$new_path"
17136   # Check if we need to convert this using DOS-style short mode. If the path
17137   # contains just simple characters, use it. Otherwise (spaces, weird characters),
17138   # take no chances and rewrite it.
17139   # Note: m4 eats our [], so we need to use [ and ] instead.
17140   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
17141   if test "x$has_forbidden_chars" != x; then
17142     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
17143     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
17144   fi
17145 
17146     # Output is in $new_path
17147 
17148   windows_path="$new_path"
17149   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
17150     unix_path=`$CYGPATH -u "$windows_path"`
17151     new_path="$unix_path"
17152   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
17153     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
17154     new_path="$unix_path"
17155   fi
17156 
17157     # remove trailing .exe if any
17158     new_path="${new_path/%.exe/}"
17159 
17160     # Save the first 10 bytes of this path to the storage, so fixpath can work.
17161     all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
17162   fi
17163 
17164   else
17165     # We're on a posix platform. Hooray! :)
17166     # First separate the path from the arguments. This will split at the first
17167     # space.
17168     complete="$FOUND_MAKE"
17169     path="${complete%% *}"
17170     tmp="$complete EOL"
17171     arguments="${tmp#* }"
17172 
17173     # Cannot rely on the command "which" here since it doesn't always work.
17174     is_absolute_path=`$ECHO "$path" | $GREP ^/`
17175     if test -z "$is_absolute_path"; then
17176       # Path to executable is not absolute. Find it.
17177       IFS_save="$IFS"
17178       IFS=:
17179       for p in $PATH; do
17180         if test -f "$p/$path" && test -x "$p/$path"; then
17181           new_path="$p/$path"
17182           break
17183         fi
17184       done
17185       IFS="$IFS_save"
17186     else
17187       # This is an absolute path, we can use it without further modifications.
17188       new_path="$path"
17189     fi
17190 
17191     if test "x$new_path" = x; then
17192       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5
17193 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;}
17194       has_space=`$ECHO "$complete" | $GREP " "`
17195       if test "x$has_space" != x; then
17196         { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5
17197 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;}
17198       fi
17199       as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5
17200     fi
17201   fi
17202 
17203   # Now join together the path and the arguments once again
17204   if test "x$arguments" != xEOL; then
17205     new_complete="$new_path ${arguments% *}"
17206   else
17207     new_complete="$new_path"
17208   fi
17209 
17210   if test "x$complete" != "x$new_complete"; then
17211     FOUND_MAKE="$new_complete"
17212     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5
17213 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;}
17214   fi
17215 
17216         fi
17217       fi
17218     fi
17219   fi
17220 
17221         fi
17222         PATH=$OLD_PATH
17223       fi
17224     fi
17225 
17226     if test "x$FOUND_MAKE" = x; then
17227       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
17228     fi
17229   fi
17230 
17231   MAKE=$FOUND_MAKE
17232 
17233   { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5
17234 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;}
17235 
17236 
17237 
17238   # Test if find supports -delete
17239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
17240 $as_echo_n "checking if find supports -delete... " >&6; }
17241   FIND_DELETE="-delete"
17242 
17243   DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
17244 
17245   echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
17246 
17247   TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
17248   if test -f $DELETEDIR/TestIfFindSupportsDelete; then
17249     # No, it does not.
17250     rm $DELETEDIR/TestIfFindSupportsDelete
17251     FIND_DELETE="-exec rm \{\} \+"
17252     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17253 $as_echo "no" >&6; }
17254   else
17255     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17256 $as_echo "yes" >&6; }
17257   fi
17258   rmdir $DELETEDIR
17259 
17260 
17261 
17262   # These tools might not be installed by default,
17263   # need hint on how to install them.
17264 
17265 
17266 
17267   # Publish this variable in the help.
17268 
17269 
17270   if test "x$UNZIP" = x; then
17271     # The variable is not set by user, try to locate tool using the code snippet
17272     for ac_prog in unzip
17273 do
17274   # Extract the first word of "$ac_prog", so it can be a program name with args.
17275 set dummy $ac_prog; ac_word=$2
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 $as_echo_n "checking for $ac_word... " >&6; }
17278 if ${ac_cv_path_UNZIP+:} false; then :
17279   $as_echo_n "(cached) " >&6
17280 else
17281   case $UNZIP in
17282   [\\/]* | ?:[\\/]*)
17283   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17284   ;;
17285   *)
17286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17287 for as_dir in $PATH
17288 do
17289   IFS=$as_save_IFS
17290   test -z "$as_dir" && as_dir=.
17291     for ac_exec_ext in '' $ac_executable_extensions; do
17292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17293     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17295     break 2
17296   fi
17297 done
17298   done
17299 IFS=$as_save_IFS
17300 
17301   ;;
17302 esac
17303 fi
17304 UNZIP=$ac_cv_path_UNZIP
17305 if test -n "$UNZIP"; then
17306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17307 $as_echo "$UNZIP" >&6; }
17308 else
17309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17310 $as_echo "no" >&6; }
17311 fi
17312 
17313 
17314   test -n "$UNZIP" && break
17315 done
17316 
17317   else
17318     # The variable is set, but is it from the command line or the environment?
17319 
17320     # Try to remove the string !UNZIP! from our list.
17321     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/}
17322     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17323       # If it failed, the variable was not from the command line. Ignore it,
17324       # but warn the user (except for BASH, which is always set by the calling BASH).
17325       if test "xUNZIP" != xBASH; then
17326         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5
17327 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;}
17328       fi
17329       # Try to locate tool using the code snippet
17330       for ac_prog in unzip
17331 do
17332   # Extract the first word of "$ac_prog", so it can be a program name with args.
17333 set dummy $ac_prog; ac_word=$2
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17335 $as_echo_n "checking for $ac_word... " >&6; }
17336 if ${ac_cv_path_UNZIP+:} false; then :
17337   $as_echo_n "(cached) " >&6
17338 else
17339   case $UNZIP in
17340   [\\/]* | ?:[\\/]*)
17341   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17342   ;;
17343   *)
17344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17345 for as_dir in $PATH
17346 do
17347   IFS=$as_save_IFS
17348   test -z "$as_dir" && as_dir=.
17349     for ac_exec_ext in '' $ac_executable_extensions; do
17350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17351     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17353     break 2
17354   fi
17355 done
17356   done
17357 IFS=$as_save_IFS
17358 
17359   ;;
17360 esac
17361 fi
17362 UNZIP=$ac_cv_path_UNZIP
17363 if test -n "$UNZIP"; then
17364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17365 $as_echo "$UNZIP" >&6; }
17366 else
17367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17368 $as_echo "no" >&6; }
17369 fi
17370 
17371 
17372   test -n "$UNZIP" && break
17373 done
17374 
17375     else
17376       # If it succeeded, then it was overridden by the user. We will use it
17377       # for the tool.
17378 
17379       # First remove it from the list of overridden variables, so we can test
17380       # for unknown variables in the end.
17381       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17382 
17383       # Check if the provided tool contains a complete path.
17384       tool_specified="$UNZIP"
17385       tool_basename="${tool_specified##*/}"
17386       if test "x$tool_basename" = "x$tool_specified"; then
17387         # A command without a complete path is provided, search $PATH.
17388         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5
17389 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;}
17390         # Extract the first word of "$tool_basename", so it can be a program name with args.
17391 set dummy $tool_basename; ac_word=$2
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17393 $as_echo_n "checking for $ac_word... " >&6; }
17394 if ${ac_cv_path_UNZIP+:} false; then :
17395   $as_echo_n "(cached) " >&6
17396 else
17397   case $UNZIP in
17398   [\\/]* | ?:[\\/]*)
17399   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
17400   ;;
17401   *)
17402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17403 for as_dir in $PATH
17404 do
17405   IFS=$as_save_IFS
17406   test -z "$as_dir" && as_dir=.
17407     for ac_exec_ext in '' $ac_executable_extensions; do
17408   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17409     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
17410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17411     break 2
17412   fi
17413 done
17414   done
17415 IFS=$as_save_IFS
17416 
17417   ;;
17418 esac
17419 fi
17420 UNZIP=$ac_cv_path_UNZIP
17421 if test -n "$UNZIP"; then
17422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
17423 $as_echo "$UNZIP" >&6; }
17424 else
17425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17426 $as_echo "no" >&6; }
17427 fi
17428 
17429 
17430         if test "x$UNZIP" = x; then
17431           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17432         fi
17433       else
17434         # Otherwise we believe it is a complete path. Use it as it is.
17435         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5
17436 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;}
17437         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5
17438 $as_echo_n "checking for UNZIP... " >&6; }
17439         if test ! -x "$tool_specified"; then
17440           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17441 $as_echo "not found" >&6; }
17442           as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17443         fi
17444         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17445 $as_echo "$tool_specified" >&6; }
17446       fi
17447     fi
17448   fi
17449 
17450 
17451 
17452   if test "x$UNZIP" = x; then
17453     as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5
17454   fi
17455 
17456 
17457 
17458 
17459 
17460   # Publish this variable in the help.
17461 
17462 
17463   if test "x$ZIP" = x; then
17464     # The variable is not set by user, try to locate tool using the code snippet
17465     for ac_prog in zip
17466 do
17467   # Extract the first word of "$ac_prog", so it can be a program name with args.
17468 set dummy $ac_prog; ac_word=$2
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17470 $as_echo_n "checking for $ac_word... " >&6; }
17471 if ${ac_cv_path_ZIP+:} false; then :
17472   $as_echo_n "(cached) " >&6
17473 else
17474   case $ZIP in
17475   [\\/]* | ?:[\\/]*)
17476   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17477   ;;
17478   *)
17479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17480 for as_dir in $PATH
17481 do
17482   IFS=$as_save_IFS
17483   test -z "$as_dir" && as_dir=.
17484     for ac_exec_ext in '' $ac_executable_extensions; do
17485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17486     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17488     break 2
17489   fi
17490 done
17491   done
17492 IFS=$as_save_IFS
17493 
17494   ;;
17495 esac
17496 fi
17497 ZIP=$ac_cv_path_ZIP
17498 if test -n "$ZIP"; then
17499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17500 $as_echo "$ZIP" >&6; }
17501 else
17502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17504 fi
17505 
17506 
17507   test -n "$ZIP" && break
17508 done
17509 
17510   else
17511     # The variable is set, but is it from the command line or the environment?
17512 
17513     # Try to remove the string !ZIP! from our list.
17514     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/}
17515     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17516       # If it failed, the variable was not from the command line. Ignore it,
17517       # but warn the user (except for BASH, which is always set by the calling BASH).
17518       if test "xZIP" != xBASH; then
17519         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5
17520 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;}
17521       fi
17522       # Try to locate tool using the code snippet
17523       for ac_prog in zip
17524 do
17525   # Extract the first word of "$ac_prog", so it can be a program name with args.
17526 set dummy $ac_prog; ac_word=$2
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17528 $as_echo_n "checking for $ac_word... " >&6; }
17529 if ${ac_cv_path_ZIP+:} false; then :
17530   $as_echo_n "(cached) " >&6
17531 else
17532   case $ZIP in
17533   [\\/]* | ?:[\\/]*)
17534   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17535   ;;
17536   *)
17537   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17538 for as_dir in $PATH
17539 do
17540   IFS=$as_save_IFS
17541   test -z "$as_dir" && as_dir=.
17542     for ac_exec_ext in '' $ac_executable_extensions; do
17543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17544     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17546     break 2
17547   fi
17548 done
17549   done
17550 IFS=$as_save_IFS
17551 
17552   ;;
17553 esac
17554 fi
17555 ZIP=$ac_cv_path_ZIP
17556 if test -n "$ZIP"; then
17557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17558 $as_echo "$ZIP" >&6; }
17559 else
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 $as_echo "no" >&6; }
17562 fi
17563 
17564 
17565   test -n "$ZIP" && break
17566 done
17567 
17568     else
17569       # If it succeeded, then it was overridden by the user. We will use it
17570       # for the tool.
17571 
17572       # First remove it from the list of overridden variables, so we can test
17573       # for unknown variables in the end.
17574       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17575 
17576       # Check if the provided tool contains a complete path.
17577       tool_specified="$ZIP"
17578       tool_basename="${tool_specified##*/}"
17579       if test "x$tool_basename" = "x$tool_specified"; then
17580         # A command without a complete path is provided, search $PATH.
17581         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5
17582 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;}
17583         # Extract the first word of "$tool_basename", so it can be a program name with args.
17584 set dummy $tool_basename; ac_word=$2
17585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17586 $as_echo_n "checking for $ac_word... " >&6; }
17587 if ${ac_cv_path_ZIP+:} false; then :
17588   $as_echo_n "(cached) " >&6
17589 else
17590   case $ZIP in
17591   [\\/]* | ?:[\\/]*)
17592   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
17593   ;;
17594   *)
17595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17596 for as_dir in $PATH
17597 do
17598   IFS=$as_save_IFS
17599   test -z "$as_dir" && as_dir=.
17600     for ac_exec_ext in '' $ac_executable_extensions; do
17601   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17602     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
17603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17604     break 2
17605   fi
17606 done
17607   done
17608 IFS=$as_save_IFS
17609 
17610   ;;
17611 esac
17612 fi
17613 ZIP=$ac_cv_path_ZIP
17614 if test -n "$ZIP"; then
17615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
17616 $as_echo "$ZIP" >&6; }
17617 else
17618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 $as_echo "no" >&6; }
17620 fi
17621 
17622 
17623         if test "x$ZIP" = x; then
17624           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17625         fi
17626       else
17627         # Otherwise we believe it is a complete path. Use it as it is.
17628         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5
17629 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;}
17630         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5
17631 $as_echo_n "checking for ZIP... " >&6; }
17632         if test ! -x "$tool_specified"; then
17633           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17634 $as_echo "not found" >&6; }
17635           as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5
17636         fi
17637         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17638 $as_echo "$tool_specified" >&6; }
17639       fi
17640     fi
17641   fi
17642 
17643 
17644 
17645   if test "x$ZIP" = x; then
17646     as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5
17647   fi
17648 
17649 
17650 
17651   # Non-required basic tools
17652 
17653 
17654 
17655   # Publish this variable in the help.
17656 
17657 
17658   if test "x$LDD" = x; then
17659     # The variable is not set by user, try to locate tool using the code snippet
17660     for ac_prog in ldd
17661 do
17662   # Extract the first word of "$ac_prog", so it can be a program name with args.
17663 set dummy $ac_prog; ac_word=$2
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17665 $as_echo_n "checking for $ac_word... " >&6; }
17666 if ${ac_cv_path_LDD+:} false; then :
17667   $as_echo_n "(cached) " >&6
17668 else
17669   case $LDD in
17670   [\\/]* | ?:[\\/]*)
17671   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17672   ;;
17673   *)
17674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17675 for as_dir in $PATH
17676 do
17677   IFS=$as_save_IFS
17678   test -z "$as_dir" && as_dir=.
17679     for ac_exec_ext in '' $ac_executable_extensions; do
17680   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17681     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17683     break 2
17684   fi
17685 done
17686   done
17687 IFS=$as_save_IFS
17688 
17689   ;;
17690 esac
17691 fi
17692 LDD=$ac_cv_path_LDD
17693 if test -n "$LDD"; then
17694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17695 $as_echo "$LDD" >&6; }
17696 else
17697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17698 $as_echo "no" >&6; }
17699 fi
17700 
17701 
17702   test -n "$LDD" && break
17703 done
17704 
17705   else
17706     # The variable is set, but is it from the command line or the environment?
17707 
17708     # Try to remove the string !LDD! from our list.
17709     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/}
17710     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17711       # If it failed, the variable was not from the command line. Ignore it,
17712       # but warn the user (except for BASH, which is always set by the calling BASH).
17713       if test "xLDD" != xBASH; then
17714         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5
17715 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;}
17716       fi
17717       # Try to locate tool using the code snippet
17718       for ac_prog in ldd
17719 do
17720   # Extract the first word of "$ac_prog", so it can be a program name with args.
17721 set dummy $ac_prog; ac_word=$2
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17723 $as_echo_n "checking for $ac_word... " >&6; }
17724 if ${ac_cv_path_LDD+:} false; then :
17725   $as_echo_n "(cached) " >&6
17726 else
17727   case $LDD in
17728   [\\/]* | ?:[\\/]*)
17729   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17730   ;;
17731   *)
17732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17733 for as_dir in $PATH
17734 do
17735   IFS=$as_save_IFS
17736   test -z "$as_dir" && as_dir=.
17737     for ac_exec_ext in '' $ac_executable_extensions; do
17738   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17739     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17741     break 2
17742   fi
17743 done
17744   done
17745 IFS=$as_save_IFS
17746 
17747   ;;
17748 esac
17749 fi
17750 LDD=$ac_cv_path_LDD
17751 if test -n "$LDD"; then
17752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17753 $as_echo "$LDD" >&6; }
17754 else
17755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17756 $as_echo "no" >&6; }
17757 fi
17758 
17759 
17760   test -n "$LDD" && break
17761 done
17762 
17763     else
17764       # If it succeeded, then it was overridden by the user. We will use it
17765       # for the tool.
17766 
17767       # First remove it from the list of overridden variables, so we can test
17768       # for unknown variables in the end.
17769       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17770 
17771       # Check if the provided tool contains a complete path.
17772       tool_specified="$LDD"
17773       tool_basename="${tool_specified##*/}"
17774       if test "x$tool_basename" = "x$tool_specified"; then
17775         # A command without a complete path is provided, search $PATH.
17776         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5
17777 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;}
17778         # Extract the first word of "$tool_basename", so it can be a program name with args.
17779 set dummy $tool_basename; ac_word=$2
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17781 $as_echo_n "checking for $ac_word... " >&6; }
17782 if ${ac_cv_path_LDD+:} false; then :
17783   $as_echo_n "(cached) " >&6
17784 else
17785   case $LDD in
17786   [\\/]* | ?:[\\/]*)
17787   ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
17788   ;;
17789   *)
17790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17791 for as_dir in $PATH
17792 do
17793   IFS=$as_save_IFS
17794   test -z "$as_dir" && as_dir=.
17795     for ac_exec_ext in '' $ac_executable_extensions; do
17796   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17797     ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
17798     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17799     break 2
17800   fi
17801 done
17802   done
17803 IFS=$as_save_IFS
17804 
17805   ;;
17806 esac
17807 fi
17808 LDD=$ac_cv_path_LDD
17809 if test -n "$LDD"; then
17810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
17811 $as_echo "$LDD" >&6; }
17812 else
17813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17814 $as_echo "no" >&6; }
17815 fi
17816 
17817 
17818         if test "x$LDD" = x; then
17819           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
17820         fi
17821       else
17822         # Otherwise we believe it is a complete path. Use it as it is.
17823         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5
17824 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;}
17825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5
17826 $as_echo_n "checking for LDD... " >&6; }
17827         if test ! -x "$tool_specified"; then
17828           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
17829 $as_echo "not found" >&6; }
17830           as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5
17831         fi
17832         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
17833 $as_echo "$tool_specified" >&6; }
17834       fi
17835     fi
17836   fi
17837 
17838 
17839   if test "x$LDD" = "x"; then
17840     # List shared lib dependencies is used for
17841     # debug output and checking for forbidden dependencies.
17842     # We can build without it.
17843     LDD="true"
17844   fi
17845 
17846 
17847   # Publish this variable in the help.
17848 
17849 
17850   if test "x$READELF" = x; then
17851     # The variable is not set by user, try to locate tool using the code snippet
17852     for ac_prog in readelf greadelf
17853 do
17854   # Extract the first word of "$ac_prog", so it can be a program name with args.
17855 set dummy $ac_prog; ac_word=$2
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17857 $as_echo_n "checking for $ac_word... " >&6; }
17858 if ${ac_cv_path_READELF+:} false; then :
17859   $as_echo_n "(cached) " >&6
17860 else
17861   case $READELF in
17862   [\\/]* | ?:[\\/]*)
17863   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17864   ;;
17865   *)
17866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17867 for as_dir in $PATH
17868 do
17869   IFS=$as_save_IFS
17870   test -z "$as_dir" && as_dir=.
17871     for ac_exec_ext in '' $ac_executable_extensions; do
17872   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17873     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17874     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17875     break 2
17876   fi
17877 done
17878   done
17879 IFS=$as_save_IFS
17880 
17881   ;;
17882 esac
17883 fi
17884 READELF=$ac_cv_path_READELF
17885 if test -n "$READELF"; then
17886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17887 $as_echo "$READELF" >&6; }
17888 else
17889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17890 $as_echo "no" >&6; }
17891 fi
17892 
17893 
17894   test -n "$READELF" && break
17895 done
17896 
17897   else
17898     # The variable is set, but is it from the command line or the environment?
17899 
17900     # Try to remove the string !READELF! from our list.
17901     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/}
17902     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
17903       # If it failed, the variable was not from the command line. Ignore it,
17904       # but warn the user (except for BASH, which is always set by the calling BASH).
17905       if test "xREADELF" != xBASH; then
17906         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5
17907 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;}
17908       fi
17909       # Try to locate tool using the code snippet
17910       for ac_prog in readelf greadelf
17911 do
17912   # Extract the first word of "$ac_prog", so it can be a program name with args.
17913 set dummy $ac_prog; ac_word=$2
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17915 $as_echo_n "checking for $ac_word... " >&6; }
17916 if ${ac_cv_path_READELF+:} false; then :
17917   $as_echo_n "(cached) " >&6
17918 else
17919   case $READELF in
17920   [\\/]* | ?:[\\/]*)
17921   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17922   ;;
17923   *)
17924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17925 for as_dir in $PATH
17926 do
17927   IFS=$as_save_IFS
17928   test -z "$as_dir" && as_dir=.
17929     for ac_exec_ext in '' $ac_executable_extensions; do
17930   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17931     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17932     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17933     break 2
17934   fi
17935 done
17936   done
17937 IFS=$as_save_IFS
17938 
17939   ;;
17940 esac
17941 fi
17942 READELF=$ac_cv_path_READELF
17943 if test -n "$READELF"; then
17944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
17945 $as_echo "$READELF" >&6; }
17946 else
17947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17948 $as_echo "no" >&6; }
17949 fi
17950 
17951 
17952   test -n "$READELF" && break
17953 done
17954 
17955     else
17956       # If it succeeded, then it was overridden by the user. We will use it
17957       # for the tool.
17958 
17959       # First remove it from the list of overridden variables, so we can test
17960       # for unknown variables in the end.
17961       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
17962 
17963       # Check if the provided tool contains a complete path.
17964       tool_specified="$READELF"
17965       tool_basename="${tool_specified##*/}"
17966       if test "x$tool_basename" = "x$tool_specified"; then
17967         # A command without a complete path is provided, search $PATH.
17968         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5
17969 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;}
17970         # Extract the first word of "$tool_basename", so it can be a program name with args.
17971 set dummy $tool_basename; ac_word=$2
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17973 $as_echo_n "checking for $ac_word... " >&6; }
17974 if ${ac_cv_path_READELF+:} false; then :
17975   $as_echo_n "(cached) " >&6
17976 else
17977   case $READELF in
17978   [\\/]* | ?:[\\/]*)
17979   ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
17980   ;;
17981   *)
17982   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17983 for as_dir in $PATH
17984 do
17985   IFS=$as_save_IFS
17986   test -z "$as_dir" && as_dir=.
17987     for ac_exec_ext in '' $ac_executable_extensions; do
17988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17989     ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
17990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17991     break 2
17992   fi
17993 done
17994   done
17995 IFS=$as_save_IFS
17996 
17997   ;;
17998 esac
17999 fi
18000 READELF=$ac_cv_path_READELF
18001 if test -n "$READELF"; then
18002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
18003 $as_echo "$READELF" >&6; }
18004 else
18005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18006 $as_echo "no" >&6; }
18007 fi
18008 
18009 
18010         if test "x$READELF" = x; then
18011           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18012         fi
18013       else
18014         # Otherwise we believe it is a complete path. Use it as it is.
18015         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5
18016 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;}
18017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5
18018 $as_echo_n "checking for READELF... " >&6; }
18019         if test ! -x "$tool_specified"; then
18020           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18021 $as_echo "not found" >&6; }
18022           as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5
18023         fi
18024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18025 $as_echo "$tool_specified" >&6; }
18026       fi
18027     fi
18028   fi
18029 
18030 
18031 
18032 
18033   # Publish this variable in the help.
18034 
18035 
18036   if test "x$HG" = x; then
18037     # The variable is not set by user, try to locate tool using the code snippet
18038     for ac_prog in hg
18039 do
18040   # Extract the first word of "$ac_prog", so it can be a program name with args.
18041 set dummy $ac_prog; ac_word=$2
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18043 $as_echo_n "checking for $ac_word... " >&6; }
18044 if ${ac_cv_path_HG+:} false; then :
18045   $as_echo_n "(cached) " >&6
18046 else
18047   case $HG in
18048   [\\/]* | ?:[\\/]*)
18049   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18050   ;;
18051   *)
18052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18053 for as_dir in $PATH
18054 do
18055   IFS=$as_save_IFS
18056   test -z "$as_dir" && as_dir=.
18057     for ac_exec_ext in '' $ac_executable_extensions; do
18058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18059     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18061     break 2
18062   fi
18063 done
18064   done
18065 IFS=$as_save_IFS
18066 
18067   ;;
18068 esac
18069 fi
18070 HG=$ac_cv_path_HG
18071 if test -n "$HG"; then
18072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18073 $as_echo "$HG" >&6; }
18074 else
18075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18076 $as_echo "no" >&6; }
18077 fi
18078 
18079 
18080   test -n "$HG" && break
18081 done
18082 
18083   else
18084     # The variable is set, but is it from the command line or the environment?
18085 
18086     # Try to remove the string !HG! from our list.
18087     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/}
18088     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18089       # If it failed, the variable was not from the command line. Ignore it,
18090       # but warn the user (except for BASH, which is always set by the calling BASH).
18091       if test "xHG" != xBASH; then
18092         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5
18093 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;}
18094       fi
18095       # Try to locate tool using the code snippet
18096       for ac_prog in hg
18097 do
18098   # Extract the first word of "$ac_prog", so it can be a program name with args.
18099 set dummy $ac_prog; ac_word=$2
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18101 $as_echo_n "checking for $ac_word... " >&6; }
18102 if ${ac_cv_path_HG+:} false; then :
18103   $as_echo_n "(cached) " >&6
18104 else
18105   case $HG in
18106   [\\/]* | ?:[\\/]*)
18107   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18108   ;;
18109   *)
18110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18111 for as_dir in $PATH
18112 do
18113   IFS=$as_save_IFS
18114   test -z "$as_dir" && as_dir=.
18115     for ac_exec_ext in '' $ac_executable_extensions; do
18116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18117     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18119     break 2
18120   fi
18121 done
18122   done
18123 IFS=$as_save_IFS
18124 
18125   ;;
18126 esac
18127 fi
18128 HG=$ac_cv_path_HG
18129 if test -n "$HG"; then
18130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18131 $as_echo "$HG" >&6; }
18132 else
18133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18134 $as_echo "no" >&6; }
18135 fi
18136 
18137 
18138   test -n "$HG" && break
18139 done
18140 
18141     else
18142       # If it succeeded, then it was overridden by the user. We will use it
18143       # for the tool.
18144 
18145       # First remove it from the list of overridden variables, so we can test
18146       # for unknown variables in the end.
18147       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18148 
18149       # Check if the provided tool contains a complete path.
18150       tool_specified="$HG"
18151       tool_basename="${tool_specified##*/}"
18152       if test "x$tool_basename" = "x$tool_specified"; then
18153         # A command without a complete path is provided, search $PATH.
18154         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5
18155 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;}
18156         # Extract the first word of "$tool_basename", so it can be a program name with args.
18157 set dummy $tool_basename; ac_word=$2
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18159 $as_echo_n "checking for $ac_word... " >&6; }
18160 if ${ac_cv_path_HG+:} false; then :
18161   $as_echo_n "(cached) " >&6
18162 else
18163   case $HG in
18164   [\\/]* | ?:[\\/]*)
18165   ac_cv_path_HG="$HG" # Let the user override the test with a path.
18166   ;;
18167   *)
18168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18169 for as_dir in $PATH
18170 do
18171   IFS=$as_save_IFS
18172   test -z "$as_dir" && as_dir=.
18173     for ac_exec_ext in '' $ac_executable_extensions; do
18174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18175     ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
18176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18177     break 2
18178   fi
18179 done
18180   done
18181 IFS=$as_save_IFS
18182 
18183   ;;
18184 esac
18185 fi
18186 HG=$ac_cv_path_HG
18187 if test -n "$HG"; then
18188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
18189 $as_echo "$HG" >&6; }
18190 else
18191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18192 $as_echo "no" >&6; }
18193 fi
18194 
18195 
18196         if test "x$HG" = x; then
18197           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18198         fi
18199       else
18200         # Otherwise we believe it is a complete path. Use it as it is.
18201         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5
18202 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;}
18203         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5
18204 $as_echo_n "checking for HG... " >&6; }
18205         if test ! -x "$tool_specified"; then
18206           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18207 $as_echo "not found" >&6; }
18208           as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5
18209         fi
18210         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18211 $as_echo "$tool_specified" >&6; }
18212       fi
18213     fi
18214   fi
18215 
18216 
18217 
18218 
18219   # Publish this variable in the help.
18220 
18221 
18222   if test "x$STAT" = x; then
18223     # The variable is not set by user, try to locate tool using the code snippet
18224     for ac_prog in stat
18225 do
18226   # Extract the first word of "$ac_prog", so it can be a program name with args.
18227 set dummy $ac_prog; ac_word=$2
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18229 $as_echo_n "checking for $ac_word... " >&6; }
18230 if ${ac_cv_path_STAT+:} false; then :
18231   $as_echo_n "(cached) " >&6
18232 else
18233   case $STAT in
18234   [\\/]* | ?:[\\/]*)
18235   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18236   ;;
18237   *)
18238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18239 for as_dir in $PATH
18240 do
18241   IFS=$as_save_IFS
18242   test -z "$as_dir" && as_dir=.
18243     for ac_exec_ext in '' $ac_executable_extensions; do
18244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18245     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18247     break 2
18248   fi
18249 done
18250   done
18251 IFS=$as_save_IFS
18252 
18253   ;;
18254 esac
18255 fi
18256 STAT=$ac_cv_path_STAT
18257 if test -n "$STAT"; then
18258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18259 $as_echo "$STAT" >&6; }
18260 else
18261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18262 $as_echo "no" >&6; }
18263 fi
18264 
18265 
18266   test -n "$STAT" && break
18267 done
18268 
18269   else
18270     # The variable is set, but is it from the command line or the environment?
18271 
18272     # Try to remove the string !STAT! from our list.
18273     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/}
18274     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18275       # If it failed, the variable was not from the command line. Ignore it,
18276       # but warn the user (except for BASH, which is always set by the calling BASH).
18277       if test "xSTAT" != xBASH; then
18278         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5
18279 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;}
18280       fi
18281       # Try to locate tool using the code snippet
18282       for ac_prog in stat
18283 do
18284   # Extract the first word of "$ac_prog", so it can be a program name with args.
18285 set dummy $ac_prog; ac_word=$2
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18287 $as_echo_n "checking for $ac_word... " >&6; }
18288 if ${ac_cv_path_STAT+:} false; then :
18289   $as_echo_n "(cached) " >&6
18290 else
18291   case $STAT in
18292   [\\/]* | ?:[\\/]*)
18293   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18294   ;;
18295   *)
18296   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18297 for as_dir in $PATH
18298 do
18299   IFS=$as_save_IFS
18300   test -z "$as_dir" && as_dir=.
18301     for ac_exec_ext in '' $ac_executable_extensions; do
18302   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18303     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18304     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18305     break 2
18306   fi
18307 done
18308   done
18309 IFS=$as_save_IFS
18310 
18311   ;;
18312 esac
18313 fi
18314 STAT=$ac_cv_path_STAT
18315 if test -n "$STAT"; then
18316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18317 $as_echo "$STAT" >&6; }
18318 else
18319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18320 $as_echo "no" >&6; }
18321 fi
18322 
18323 
18324   test -n "$STAT" && break
18325 done
18326 
18327     else
18328       # If it succeeded, then it was overridden by the user. We will use it
18329       # for the tool.
18330 
18331       # First remove it from the list of overridden variables, so we can test
18332       # for unknown variables in the end.
18333       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18334 
18335       # Check if the provided tool contains a complete path.
18336       tool_specified="$STAT"
18337       tool_basename="${tool_specified##*/}"
18338       if test "x$tool_basename" = "x$tool_specified"; then
18339         # A command without a complete path is provided, search $PATH.
18340         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5
18341 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;}
18342         # Extract the first word of "$tool_basename", so it can be a program name with args.
18343 set dummy $tool_basename; ac_word=$2
18344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18345 $as_echo_n "checking for $ac_word... " >&6; }
18346 if ${ac_cv_path_STAT+:} false; then :
18347   $as_echo_n "(cached) " >&6
18348 else
18349   case $STAT in
18350   [\\/]* | ?:[\\/]*)
18351   ac_cv_path_STAT="$STAT" # Let the user override the test with a path.
18352   ;;
18353   *)
18354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18355 for as_dir in $PATH
18356 do
18357   IFS=$as_save_IFS
18358   test -z "$as_dir" && as_dir=.
18359     for ac_exec_ext in '' $ac_executable_extensions; do
18360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18361     ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext"
18362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18363     break 2
18364   fi
18365 done
18366   done
18367 IFS=$as_save_IFS
18368 
18369   ;;
18370 esac
18371 fi
18372 STAT=$ac_cv_path_STAT
18373 if test -n "$STAT"; then
18374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5
18375 $as_echo "$STAT" >&6; }
18376 else
18377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18378 $as_echo "no" >&6; }
18379 fi
18380 
18381 
18382         if test "x$STAT" = x; then
18383           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18384         fi
18385       else
18386         # Otherwise we believe it is a complete path. Use it as it is.
18387         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5
18388 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;}
18389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5
18390 $as_echo_n "checking for STAT... " >&6; }
18391         if test ! -x "$tool_specified"; then
18392           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18393 $as_echo "not found" >&6; }
18394           as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5
18395         fi
18396         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18397 $as_echo "$tool_specified" >&6; }
18398       fi
18399     fi
18400   fi
18401 
18402 
18403 
18404 
18405   # Publish this variable in the help.
18406 
18407 
18408   if test "x$TIME" = x; then
18409     # The variable is not set by user, try to locate tool using the code snippet
18410     for ac_prog in time
18411 do
18412   # Extract the first word of "$ac_prog", so it can be a program name with args.
18413 set dummy $ac_prog; ac_word=$2
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18415 $as_echo_n "checking for $ac_word... " >&6; }
18416 if ${ac_cv_path_TIME+:} false; then :
18417   $as_echo_n "(cached) " >&6
18418 else
18419   case $TIME in
18420   [\\/]* | ?:[\\/]*)
18421   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18422   ;;
18423   *)
18424   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18425 for as_dir in $PATH
18426 do
18427   IFS=$as_save_IFS
18428   test -z "$as_dir" && as_dir=.
18429     for ac_exec_ext in '' $ac_executable_extensions; do
18430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18431     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18433     break 2
18434   fi
18435 done
18436   done
18437 IFS=$as_save_IFS
18438 
18439   ;;
18440 esac
18441 fi
18442 TIME=$ac_cv_path_TIME
18443 if test -n "$TIME"; then
18444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18445 $as_echo "$TIME" >&6; }
18446 else
18447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18448 $as_echo "no" >&6; }
18449 fi
18450 
18451 
18452   test -n "$TIME" && break
18453 done
18454 
18455   else
18456     # The variable is set, but is it from the command line or the environment?
18457 
18458     # Try to remove the string !TIME! from our list.
18459     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/}
18460     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18461       # If it failed, the variable was not from the command line. Ignore it,
18462       # but warn the user (except for BASH, which is always set by the calling BASH).
18463       if test "xTIME" != xBASH; then
18464         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5
18465 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;}
18466       fi
18467       # Try to locate tool using the code snippet
18468       for ac_prog in time
18469 do
18470   # Extract the first word of "$ac_prog", so it can be a program name with args.
18471 set dummy $ac_prog; ac_word=$2
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18473 $as_echo_n "checking for $ac_word... " >&6; }
18474 if ${ac_cv_path_TIME+:} false; then :
18475   $as_echo_n "(cached) " >&6
18476 else
18477   case $TIME in
18478   [\\/]* | ?:[\\/]*)
18479   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18480   ;;
18481   *)
18482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18483 for as_dir in $PATH
18484 do
18485   IFS=$as_save_IFS
18486   test -z "$as_dir" && as_dir=.
18487     for ac_exec_ext in '' $ac_executable_extensions; do
18488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18489     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18491     break 2
18492   fi
18493 done
18494   done
18495 IFS=$as_save_IFS
18496 
18497   ;;
18498 esac
18499 fi
18500 TIME=$ac_cv_path_TIME
18501 if test -n "$TIME"; then
18502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18503 $as_echo "$TIME" >&6; }
18504 else
18505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18506 $as_echo "no" >&6; }
18507 fi
18508 
18509 
18510   test -n "$TIME" && break
18511 done
18512 
18513     else
18514       # If it succeeded, then it was overridden by the user. We will use it
18515       # for the tool.
18516 
18517       # First remove it from the list of overridden variables, so we can test
18518       # for unknown variables in the end.
18519       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18520 
18521       # Check if the provided tool contains a complete path.
18522       tool_specified="$TIME"
18523       tool_basename="${tool_specified##*/}"
18524       if test "x$tool_basename" = "x$tool_specified"; then
18525         # A command without a complete path is provided, search $PATH.
18526         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5
18527 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;}
18528         # Extract the first word of "$tool_basename", so it can be a program name with args.
18529 set dummy $tool_basename; ac_word=$2
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18531 $as_echo_n "checking for $ac_word... " >&6; }
18532 if ${ac_cv_path_TIME+:} false; then :
18533   $as_echo_n "(cached) " >&6
18534 else
18535   case $TIME in
18536   [\\/]* | ?:[\\/]*)
18537   ac_cv_path_TIME="$TIME" # Let the user override the test with a path.
18538   ;;
18539   *)
18540   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18542 do
18543   IFS=$as_save_IFS
18544   test -z "$as_dir" && as_dir=.
18545     for ac_exec_ext in '' $ac_executable_extensions; do
18546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547     ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext"
18548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18549     break 2
18550   fi
18551 done
18552   done
18553 IFS=$as_save_IFS
18554 
18555   ;;
18556 esac
18557 fi
18558 TIME=$ac_cv_path_TIME
18559 if test -n "$TIME"; then
18560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5
18561 $as_echo "$TIME" >&6; }
18562 else
18563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565 fi
18566 
18567 
18568         if test "x$TIME" = x; then
18569           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18570         fi
18571       else
18572         # Otherwise we believe it is a complete path. Use it as it is.
18573         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5
18574 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;}
18575         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5
18576 $as_echo_n "checking for TIME... " >&6; }
18577         if test ! -x "$tool_specified"; then
18578           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18579 $as_echo "not found" >&6; }
18580           as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5
18581         fi
18582         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18583 $as_echo "$tool_specified" >&6; }
18584       fi
18585     fi
18586   fi
18587 
18588 
18589   # Check if it's GNU time
18590   IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'`
18591   if test "x$IS_GNU_TIME" != x; then
18592     IS_GNU_TIME=yes
18593   else
18594     IS_GNU_TIME=no
18595   fi
18596 
18597 
18598   if test "x$OPENJDK_TARGET_OS" = "xwindows"; then
18599 
18600 
18601 
18602   # Publish this variable in the help.
18603 
18604 
18605   if test "x$COMM" = x; then
18606     # The variable is not set by user, try to locate tool using the code snippet
18607     for ac_prog in comm
18608 do
18609   # Extract the first word of "$ac_prog", so it can be a program name with args.
18610 set dummy $ac_prog; ac_word=$2
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18612 $as_echo_n "checking for $ac_word... " >&6; }
18613 if ${ac_cv_path_COMM+:} false; then :
18614   $as_echo_n "(cached) " >&6
18615 else
18616   case $COMM in
18617   [\\/]* | ?:[\\/]*)
18618   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18619   ;;
18620   *)
18621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622 for as_dir in $PATH
18623 do
18624   IFS=$as_save_IFS
18625   test -z "$as_dir" && as_dir=.
18626     for ac_exec_ext in '' $ac_executable_extensions; do
18627   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18630     break 2
18631   fi
18632 done
18633   done
18634 IFS=$as_save_IFS
18635 
18636   ;;
18637 esac
18638 fi
18639 COMM=$ac_cv_path_COMM
18640 if test -n "$COMM"; then
18641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18642 $as_echo "$COMM" >&6; }
18643 else
18644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18646 fi
18647 
18648 
18649   test -n "$COMM" && break
18650 done
18651 
18652   else
18653     # The variable is set, but is it from the command line or the environment?
18654 
18655     # Try to remove the string !COMM! from our list.
18656     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/}
18657     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18658       # If it failed, the variable was not from the command line. Ignore it,
18659       # but warn the user (except for BASH, which is always set by the calling BASH).
18660       if test "xCOMM" != xBASH; then
18661         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5
18662 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;}
18663       fi
18664       # Try to locate tool using the code snippet
18665       for ac_prog in comm
18666 do
18667   # Extract the first word of "$ac_prog", so it can be a program name with args.
18668 set dummy $ac_prog; ac_word=$2
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18670 $as_echo_n "checking for $ac_word... " >&6; }
18671 if ${ac_cv_path_COMM+:} false; then :
18672   $as_echo_n "(cached) " >&6
18673 else
18674   case $COMM in
18675   [\\/]* | ?:[\\/]*)
18676   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18677   ;;
18678   *)
18679   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18680 for as_dir in $PATH
18681 do
18682   IFS=$as_save_IFS
18683   test -z "$as_dir" && as_dir=.
18684     for ac_exec_ext in '' $ac_executable_extensions; do
18685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18686     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18688     break 2
18689   fi
18690 done
18691   done
18692 IFS=$as_save_IFS
18693 
18694   ;;
18695 esac
18696 fi
18697 COMM=$ac_cv_path_COMM
18698 if test -n "$COMM"; then
18699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18700 $as_echo "$COMM" >&6; }
18701 else
18702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18703 $as_echo "no" >&6; }
18704 fi
18705 
18706 
18707   test -n "$COMM" && break
18708 done
18709 
18710     else
18711       # If it succeeded, then it was overridden by the user. We will use it
18712       # for the tool.
18713 
18714       # First remove it from the list of overridden variables, so we can test
18715       # for unknown variables in the end.
18716       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18717 
18718       # Check if the provided tool contains a complete path.
18719       tool_specified="$COMM"
18720       tool_basename="${tool_specified##*/}"
18721       if test "x$tool_basename" = "x$tool_specified"; then
18722         # A command without a complete path is provided, search $PATH.
18723         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5
18724 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;}
18725         # Extract the first word of "$tool_basename", so it can be a program name with args.
18726 set dummy $tool_basename; ac_word=$2
18727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18728 $as_echo_n "checking for $ac_word... " >&6; }
18729 if ${ac_cv_path_COMM+:} false; then :
18730   $as_echo_n "(cached) " >&6
18731 else
18732   case $COMM in
18733   [\\/]* | ?:[\\/]*)
18734   ac_cv_path_COMM="$COMM" # Let the user override the test with a path.
18735   ;;
18736   *)
18737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 for as_dir in $PATH
18739 do
18740   IFS=$as_save_IFS
18741   test -z "$as_dir" && as_dir=.
18742     for ac_exec_ext in '' $ac_executable_extensions; do
18743   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18744     ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext"
18745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18746     break 2
18747   fi
18748 done
18749   done
18750 IFS=$as_save_IFS
18751 
18752   ;;
18753 esac
18754 fi
18755 COMM=$ac_cv_path_COMM
18756 if test -n "$COMM"; then
18757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5
18758 $as_echo "$COMM" >&6; }
18759 else
18760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18761 $as_echo "no" >&6; }
18762 fi
18763 
18764 
18765         if test "x$COMM" = x; then
18766           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18767         fi
18768       else
18769         # Otherwise we believe it is a complete path. Use it as it is.
18770         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5
18771 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;}
18772         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5
18773 $as_echo_n "checking for COMM... " >&6; }
18774         if test ! -x "$tool_specified"; then
18775           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18776 $as_echo "not found" >&6; }
18777           as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5
18778         fi
18779         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18780 $as_echo "$tool_specified" >&6; }
18781       fi
18782     fi
18783   fi
18784 
18785 
18786 
18787   if test "x$COMM" = x; then
18788     as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5
18789   fi
18790 
18791 
18792   fi
18793 
18794   if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then
18795 
18796 
18797 
18798   # Publish this variable in the help.
18799 
18800 
18801   if test "x$DSYMUTIL" = x; then
18802     # The variable is not set by user, try to locate tool using the code snippet
18803     for ac_prog in dsymutil
18804 do
18805   # Extract the first word of "$ac_prog", so it can be a program name with args.
18806 set dummy $ac_prog; ac_word=$2
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18808 $as_echo_n "checking for $ac_word... " >&6; }
18809 if ${ac_cv_path_DSYMUTIL+:} false; then :
18810   $as_echo_n "(cached) " >&6
18811 else
18812   case $DSYMUTIL in
18813   [\\/]* | ?:[\\/]*)
18814   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18815   ;;
18816   *)
18817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818 for as_dir in $PATH
18819 do
18820   IFS=$as_save_IFS
18821   test -z "$as_dir" && as_dir=.
18822     for ac_exec_ext in '' $ac_executable_extensions; do
18823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18826     break 2
18827   fi
18828 done
18829   done
18830 IFS=$as_save_IFS
18831 
18832   ;;
18833 esac
18834 fi
18835 DSYMUTIL=$ac_cv_path_DSYMUTIL
18836 if test -n "$DSYMUTIL"; then
18837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18838 $as_echo "$DSYMUTIL" >&6; }
18839 else
18840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841 $as_echo "no" >&6; }
18842 fi
18843 
18844 
18845   test -n "$DSYMUTIL" && break
18846 done
18847 
18848   else
18849     # The variable is set, but is it from the command line or the environment?
18850 
18851     # Try to remove the string !DSYMUTIL! from our list.
18852     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/}
18853     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
18854       # If it failed, the variable was not from the command line. Ignore it,
18855       # but warn the user (except for BASH, which is always set by the calling BASH).
18856       if test "xDSYMUTIL" != xBASH; then
18857         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5
18858 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;}
18859       fi
18860       # Try to locate tool using the code snippet
18861       for ac_prog in dsymutil
18862 do
18863   # Extract the first word of "$ac_prog", so it can be a program name with args.
18864 set dummy $ac_prog; ac_word=$2
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18866 $as_echo_n "checking for $ac_word... " >&6; }
18867 if ${ac_cv_path_DSYMUTIL+:} false; then :
18868   $as_echo_n "(cached) " >&6
18869 else
18870   case $DSYMUTIL in
18871   [\\/]* | ?:[\\/]*)
18872   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18873   ;;
18874   *)
18875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18876 for as_dir in $PATH
18877 do
18878   IFS=$as_save_IFS
18879   test -z "$as_dir" && as_dir=.
18880     for ac_exec_ext in '' $ac_executable_extensions; do
18881   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18882     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18884     break 2
18885   fi
18886 done
18887   done
18888 IFS=$as_save_IFS
18889 
18890   ;;
18891 esac
18892 fi
18893 DSYMUTIL=$ac_cv_path_DSYMUTIL
18894 if test -n "$DSYMUTIL"; then
18895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18896 $as_echo "$DSYMUTIL" >&6; }
18897 else
18898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18899 $as_echo "no" >&6; }
18900 fi
18901 
18902 
18903   test -n "$DSYMUTIL" && break
18904 done
18905 
18906     else
18907       # If it succeeded, then it was overridden by the user. We will use it
18908       # for the tool.
18909 
18910       # First remove it from the list of overridden variables, so we can test
18911       # for unknown variables in the end.
18912       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
18913 
18914       # Check if the provided tool contains a complete path.
18915       tool_specified="$DSYMUTIL"
18916       tool_basename="${tool_specified##*/}"
18917       if test "x$tool_basename" = "x$tool_specified"; then
18918         # A command without a complete path is provided, search $PATH.
18919         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5
18920 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;}
18921         # Extract the first word of "$tool_basename", so it can be a program name with args.
18922 set dummy $tool_basename; ac_word=$2
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18924 $as_echo_n "checking for $ac_word... " >&6; }
18925 if ${ac_cv_path_DSYMUTIL+:} false; then :
18926   $as_echo_n "(cached) " >&6
18927 else
18928   case $DSYMUTIL in
18929   [\\/]* | ?:[\\/]*)
18930   ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path.
18931   ;;
18932   *)
18933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934 for as_dir in $PATH
18935 do
18936   IFS=$as_save_IFS
18937   test -z "$as_dir" && as_dir=.
18938     for ac_exec_ext in '' $ac_executable_extensions; do
18939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940     ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext"
18941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18942     break 2
18943   fi
18944 done
18945   done
18946 IFS=$as_save_IFS
18947 
18948   ;;
18949 esac
18950 fi
18951 DSYMUTIL=$ac_cv_path_DSYMUTIL
18952 if test -n "$DSYMUTIL"; then
18953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
18954 $as_echo "$DSYMUTIL" >&6; }
18955 else
18956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18957 $as_echo "no" >&6; }
18958 fi
18959 
18960 
18961         if test "x$DSYMUTIL" = x; then
18962           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
18963         fi
18964       else
18965         # Otherwise we believe it is a complete path. Use it as it is.
18966         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5
18967 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;}
18968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5
18969 $as_echo_n "checking for DSYMUTIL... " >&6; }
18970         if test ! -x "$tool_specified"; then
18971           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
18972 $as_echo "not found" >&6; }
18973           as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5
18974         fi
18975         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
18976 $as_echo "$tool_specified" >&6; }
18977       fi
18978     fi
18979   fi
18980 
18981 
18982 
18983   if test "x$DSYMUTIL" = x; then
18984     as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5
18985   fi
18986 
18987 
18988 
18989 
18990 
18991   # Publish this variable in the help.
18992 
18993 
18994   if test "x$XATTR" = x; then
18995     # The variable is not set by user, try to locate tool using the code snippet
18996     for ac_prog in xattr
18997 do
18998   # Extract the first word of "$ac_prog", so it can be a program name with args.
18999 set dummy $ac_prog; ac_word=$2
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19001 $as_echo_n "checking for $ac_word... " >&6; }
19002 if ${ac_cv_path_XATTR+:} false; then :
19003   $as_echo_n "(cached) " >&6
19004 else
19005   case $XATTR in
19006   [\\/]* | ?:[\\/]*)
19007   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19008   ;;
19009   *)
19010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19011 for as_dir in $PATH
19012 do
19013   IFS=$as_save_IFS
19014   test -z "$as_dir" && as_dir=.
19015     for ac_exec_ext in '' $ac_executable_extensions; do
19016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19017     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19019     break 2
19020   fi
19021 done
19022   done
19023 IFS=$as_save_IFS
19024 
19025   ;;
19026 esac
19027 fi
19028 XATTR=$ac_cv_path_XATTR
19029 if test -n "$XATTR"; then
19030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19031 $as_echo "$XATTR" >&6; }
19032 else
19033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19034 $as_echo "no" >&6; }
19035 fi
19036 
19037 
19038   test -n "$XATTR" && break
19039 done
19040 
19041   else
19042     # The variable is set, but is it from the command line or the environment?
19043 
19044     # Try to remove the string !XATTR! from our list.
19045     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/}
19046     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19047       # If it failed, the variable was not from the command line. Ignore it,
19048       # but warn the user (except for BASH, which is always set by the calling BASH).
19049       if test "xXATTR" != xBASH; then
19050         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5
19051 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;}
19052       fi
19053       # Try to locate tool using the code snippet
19054       for ac_prog in xattr
19055 do
19056   # Extract the first word of "$ac_prog", so it can be a program name with args.
19057 set dummy $ac_prog; ac_word=$2
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19059 $as_echo_n "checking for $ac_word... " >&6; }
19060 if ${ac_cv_path_XATTR+:} false; then :
19061   $as_echo_n "(cached) " >&6
19062 else
19063   case $XATTR in
19064   [\\/]* | ?:[\\/]*)
19065   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19066   ;;
19067   *)
19068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19069 for as_dir in $PATH
19070 do
19071   IFS=$as_save_IFS
19072   test -z "$as_dir" && as_dir=.
19073     for ac_exec_ext in '' $ac_executable_extensions; do
19074   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19075     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19077     break 2
19078   fi
19079 done
19080   done
19081 IFS=$as_save_IFS
19082 
19083   ;;
19084 esac
19085 fi
19086 XATTR=$ac_cv_path_XATTR
19087 if test -n "$XATTR"; then
19088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19089 $as_echo "$XATTR" >&6; }
19090 else
19091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19092 $as_echo "no" >&6; }
19093 fi
19094 
19095 
19096   test -n "$XATTR" && break
19097 done
19098 
19099     else
19100       # If it succeeded, then it was overridden by the user. We will use it
19101       # for the tool.
19102 
19103       # First remove it from the list of overridden variables, so we can test
19104       # for unknown variables in the end.
19105       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19106 
19107       # Check if the provided tool contains a complete path.
19108       tool_specified="$XATTR"
19109       tool_basename="${tool_specified##*/}"
19110       if test "x$tool_basename" = "x$tool_specified"; then
19111         # A command without a complete path is provided, search $PATH.
19112         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5
19113 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;}
19114         # Extract the first word of "$tool_basename", so it can be a program name with args.
19115 set dummy $tool_basename; ac_word=$2
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19117 $as_echo_n "checking for $ac_word... " >&6; }
19118 if ${ac_cv_path_XATTR+:} false; then :
19119   $as_echo_n "(cached) " >&6
19120 else
19121   case $XATTR in
19122   [\\/]* | ?:[\\/]*)
19123   ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path.
19124   ;;
19125   *)
19126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19128 do
19129   IFS=$as_save_IFS
19130   test -z "$as_dir" && as_dir=.
19131     for ac_exec_ext in '' $ac_executable_extensions; do
19132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19133     ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext"
19134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19135     break 2
19136   fi
19137 done
19138   done
19139 IFS=$as_save_IFS
19140 
19141   ;;
19142 esac
19143 fi
19144 XATTR=$ac_cv_path_XATTR
19145 if test -n "$XATTR"; then
19146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5
19147 $as_echo "$XATTR" >&6; }
19148 else
19149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19150 $as_echo "no" >&6; }
19151 fi
19152 
19153 
19154         if test "x$XATTR" = x; then
19155           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19156         fi
19157       else
19158         # Otherwise we believe it is a complete path. Use it as it is.
19159         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5
19160 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;}
19161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5
19162 $as_echo_n "checking for XATTR... " >&6; }
19163         if test ! -x "$tool_specified"; then
19164           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19165 $as_echo "not found" >&6; }
19166           as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5
19167         fi
19168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19169 $as_echo "$tool_specified" >&6; }
19170       fi
19171     fi
19172   fi
19173 
19174 
19175 
19176   if test "x$XATTR" = x; then
19177     as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5
19178   fi
19179 
19180 
19181 
19182 
19183   # Publish this variable in the help.
19184 
19185 
19186   if test "x$CODESIGN" = x; then
19187     # The variable is not set by user, try to locate tool using the code snippet
19188     for ac_prog in codesign
19189 do
19190   # Extract the first word of "$ac_prog", so it can be a program name with args.
19191 set dummy $ac_prog; ac_word=$2
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19193 $as_echo_n "checking for $ac_word... " >&6; }
19194 if ${ac_cv_path_CODESIGN+:} false; then :
19195   $as_echo_n "(cached) " >&6
19196 else
19197   case $CODESIGN in
19198   [\\/]* | ?:[\\/]*)
19199   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19200   ;;
19201   *)
19202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19203 for as_dir in $PATH
19204 do
19205   IFS=$as_save_IFS
19206   test -z "$as_dir" && as_dir=.
19207     for ac_exec_ext in '' $ac_executable_extensions; do
19208   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19209     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19211     break 2
19212   fi
19213 done
19214   done
19215 IFS=$as_save_IFS
19216 
19217   ;;
19218 esac
19219 fi
19220 CODESIGN=$ac_cv_path_CODESIGN
19221 if test -n "$CODESIGN"; then
19222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19223 $as_echo "$CODESIGN" >&6; }
19224 else
19225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19226 $as_echo "no" >&6; }
19227 fi
19228 
19229 
19230   test -n "$CODESIGN" && break
19231 done
19232 
19233   else
19234     # The variable is set, but is it from the command line or the environment?
19235 
19236     # Try to remove the string !CODESIGN! from our list.
19237     try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/}
19238     if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then
19239       # If it failed, the variable was not from the command line. Ignore it,
19240       # but warn the user (except for BASH, which is always set by the calling BASH).
19241       if test "xCODESIGN" != xBASH; then
19242         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5
19243 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;}
19244       fi
19245       # Try to locate tool using the code snippet
19246       for ac_prog in codesign
19247 do
19248   # Extract the first word of "$ac_prog", so it can be a program name with args.
19249 set dummy $ac_prog; ac_word=$2
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19251 $as_echo_n "checking for $ac_word... " >&6; }
19252 if ${ac_cv_path_CODESIGN+:} false; then :
19253   $as_echo_n "(cached) " >&6
19254 else
19255   case $CODESIGN in
19256   [\\/]* | ?:[\\/]*)
19257   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19258   ;;
19259   *)
19260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19261 for as_dir in $PATH
19262 do
19263   IFS=$as_save_IFS
19264   test -z "$as_dir" && as_dir=.
19265     for ac_exec_ext in '' $ac_executable_extensions; do
19266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19267     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19269     break 2
19270   fi
19271 done
19272   done
19273 IFS=$as_save_IFS
19274 
19275   ;;
19276 esac
19277 fi
19278 CODESIGN=$ac_cv_path_CODESIGN
19279 if test -n "$CODESIGN"; then
19280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19281 $as_echo "$CODESIGN" >&6; }
19282 else
19283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19284 $as_echo "no" >&6; }
19285 fi
19286 
19287 
19288   test -n "$CODESIGN" && break
19289 done
19290 
19291     else
19292       # If it succeeded, then it was overridden by the user. We will use it
19293       # for the tool.
19294 
19295       # First remove it from the list of overridden variables, so we can test
19296       # for unknown variables in the end.
19297       CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var"
19298 
19299       # Check if the provided tool contains a complete path.
19300       tool_specified="$CODESIGN"
19301       tool_basename="${tool_specified##*/}"
19302       if test "x$tool_basename" = "x$tool_specified"; then
19303         # A command without a complete path is provided, search $PATH.
19304         { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5
19305 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;}
19306         # Extract the first word of "$tool_basename", so it can be a program name with args.
19307 set dummy $tool_basename; ac_word=$2
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19309 $as_echo_n "checking for $ac_word... " >&6; }
19310 if ${ac_cv_path_CODESIGN+:} false; then :
19311   $as_echo_n "(cached) " >&6
19312 else
19313   case $CODESIGN in
19314   [\\/]* | ?:[\\/]*)
19315   ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path.
19316   ;;
19317   *)
19318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19319 for as_dir in $PATH
19320 do
19321   IFS=$as_save_IFS
19322   test -z "$as_dir" && as_dir=.
19323     for ac_exec_ext in '' $ac_executable_extensions; do
19324   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19325     ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext"
19326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19327     break 2
19328   fi
19329 done
19330   done
19331 IFS=$as_save_IFS
19332 
19333   ;;
19334 esac
19335 fi
19336 CODESIGN=$ac_cv_path_CODESIGN
19337 if test -n "$CODESIGN"; then
19338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5
19339 $as_echo "$CODESIGN" >&6; }
19340 else
19341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19342 $as_echo "no" >&6; }
19343 fi
19344 
19345 
19346         if test "x$CODESIGN" = x; then
19347           as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5
19348         fi
19349       else
19350         # Otherwise we believe it is a complete path. Use it as it is.
19351         { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5
19352 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;}
19353         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5
19354 $as_echo_n "checking for CODESIGN... " >&6; }
19355         if test ! -x "$tool_specified"; then
19356           { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19357 $as_echo "not found" >&6; }
19358           as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5
19359         fi
19360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5
19361 $as_echo "$tool_specified" >&6; }
19362       fi
19363     fi
19364   fi
19365 
19366 
19367     if test "x$CODESIGN" != "x"; then
19368       # Verify that the openjdk_codesign certificate is present
19369       { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5
19370 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; }
19371       rm -f codesign-testfile
19372       touch codesign-testfile
19373       codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN=
19374       rm -f codesign-testfile
19375       if test "x$CODESIGN" = x; then
19376         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19377 $as_echo "no" >&6; }
19378       else
19379         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19380 $as_echo "yes" >&6; }
19381       fi
19382     fi
19383   fi
19384 
19385 
19386 # Check if pkg-config is available.
19387 
19388 
19389 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19390         if test -n "$ac_tool_prefix"; then
19391   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19392 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19394 $as_echo_n "checking for $ac_word... " >&6; }
19395 if ${ac_cv_path_PKG_CONFIG+:} false; then :
19396   $as_echo_n "(cached) " >&6
19397 else
19398   case $PKG_CONFIG in
19399   [\\/]* | ?:[\\/]*)
19400   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19401   ;;
19402   *)
19403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19404 for as_dir in $PATH
19405 do
19406   IFS=$as_save_IFS
19407   test -z "$as_dir" && as_dir=.
19408     for ac_exec_ext in '' $ac_executable_extensions; do
19409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19410     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19412     break 2
19413   fi
19414 done
19415   done
19416 IFS=$as_save_IFS
19417 
19418   ;;
19419 esac
19420 fi
19421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19422 if test -n "$PKG_CONFIG"; then
19423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19424 $as_echo "$PKG_CONFIG" >&6; }
19425 else
19426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19427 $as_echo "no" >&6; }
19428 fi
19429 
19430 
19431 fi
19432 if test -z "$ac_cv_path_PKG_CONFIG"; then
19433   ac_pt_PKG_CONFIG=$PKG_CONFIG
19434   # Extract the first word of "pkg-config", so it can be a program name with args.
19435 set dummy pkg-config; ac_word=$2
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19437 $as_echo_n "checking for $ac_word... " >&6; }
19438 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19439   $as_echo_n "(cached) " >&6
19440 else
19441   case $ac_pt_PKG_CONFIG in
19442   [\\/]* | ?:[\\/]*)
19443   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19444   ;;
19445   *)
19446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19447 for as_dir in $PATH
19448 do
19449   IFS=$as_save_IFS
19450   test -z "$as_dir" && as_dir=.
19451     for ac_exec_ext in '' $ac_executable_extensions; do
19452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19453     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19455     break 2
19456   fi
19457 done
19458   done
19459 IFS=$as_save_IFS
19460 
19461   ;;
19462 esac
19463 fi
19464 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19465 if test -n "$ac_pt_PKG_CONFIG"; then
19466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19467 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19468 else
19469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19470 $as_echo "no" >&6; }
19471 fi
19472 
19473   if test "x$ac_pt_PKG_CONFIG" = x; then
19474     PKG_CONFIG=""
19475   else
19476     case $cross_compiling:$ac_tool_warned in
19477 yes:)
19478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19479 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19480 ac_tool_warned=yes ;;
19481 esac
19482     PKG_CONFIG=$ac_pt_PKG_CONFIG
19483   fi
19484 else
19485   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19486 fi
19487 
19488 fi
19489 if test -n "$PKG_CONFIG"; then
19490         _pkg_min_version=0.9.0
19491         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19492 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19493         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19494                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19495 $as_echo "yes" >&6; }
19496         else
19497                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19498 $as_echo "no" >&6; }
19499                 PKG_CONFIG=""
19500         fi
19501 
19502 fi
19503 
19504 # After basic tools have been setup, we can check build os specific details.
19505 
19506   ###############################################################################
19507 
19508   # Note that this is the build platform OS version!
19509 
19510   OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
19511   OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
19512   OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
19513   OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
19514 
19515 
19516 
19517 
19518 
19519 # Setup builddeps, for automatic downloading of tools we need.
19520 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in
19521 # boot-jdk setup, but we need to have basic tools setup first.
19522 
19523 
19524 # Check whether --with-builddeps-conf was given.
19525 if test "${with_builddeps_conf+set}" = set; then :
19526   withval=$with_builddeps_conf;
19527 fi
19528 
19529 
19530 
19531 # Check whether --with-builddeps-server was given.
19532 if test "${with_builddeps_server+set}" = set; then :
19533   withval=$with_builddeps_server;
19534 fi
19535 
19536 
19537 
19538 # Check whether --with-builddeps-dir was given.
19539 if test "${with_builddeps_dir+set}" = set; then :
19540   withval=$with_builddeps_dir;
19541 else
19542   with_builddeps_dir=/localhome/builddeps
19543 fi
19544 
19545 
19546 
19547 # Check whether --with-builddeps-group was given.
19548 if test "${with_builddeps_group+set}" = set; then :
19549   withval=$with_builddeps_group;
19550 fi
19551 
19552 
19553 
19554 
19555   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
19556     if test "x$with_builddeps_conf" != x; then
19557       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
19558 $as_echo_n "checking for supplied builddeps configuration file... " >&6; }
19559       builddepsfile=$with_builddeps_conf
19560       if test -s $builddepsfile; then
19561         . $builddepsfile
19562         { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
19563 $as_echo "loaded!" >&6; }
19564       else
19565         as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
19566       fi
19567     else
19568       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
19569 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
19570       builddepsfile=`mktemp`
19571       touch $builddepsfile
19572       # Put all found confs into a single file.
19573       find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
19574       # Source the file to acquire the variables
19575       if test -s $builddepsfile; then
19576         . $builddepsfile
19577         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
19578 $as_echo "found at least one!" >&6; }
19579       else
19580         as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
19581       fi
19582     fi
19583     # Create build and target names that use _ instead of "-" and ".".
19584     # This is necessary to use them in variable names.
19585     build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19586     target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'`
19587     # Extract rewrite information for build and target
19588     eval rewritten_build=\${REWRITE_${build_var}}
19589     if test "x$rewritten_build" = x; then
19590       rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME}
19591       echo Build stays the same $rewritten_build
19592     else
19593       echo Rewriting build for builddeps into $rewritten_build
19594     fi
19595     eval rewritten_target=\${REWRITE_${target_var}}
19596     if test "x$rewritten_target" = x; then
19597       rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME}
19598       echo Target stays the same $rewritten_target
19599     else
19600       echo Rewriting target for builddeps into $rewritten_target
19601     fi
19602     rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
19603     rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'`
19604   fi
19605   for ac_prog in 7z unzip
19606 do
19607   # Extract the first word of "$ac_prog", so it can be a program name with args.
19608 set dummy $ac_prog; ac_word=$2
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19610 $as_echo_n "checking for $ac_word... " >&6; }
19611 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then :
19612   $as_echo_n "(cached) " >&6
19613 else
19614   if test -n "$BDEPS_UNZIP"; then
19615   ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
19616 else
19617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19618 for as_dir in $PATH
19619 do
19620   IFS=$as_save_IFS
19621   test -z "$as_dir" && as_dir=.
19622     for ac_exec_ext in '' $ac_executable_extensions; do
19623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19624     ac_cv_prog_BDEPS_UNZIP="$ac_prog"
19625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19626     break 2
19627   fi
19628 done
19629   done
19630 IFS=$as_save_IFS
19631 
19632 fi
19633 fi
19634 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
19635 if test -n "$BDEPS_UNZIP"; then
19636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
19637 $as_echo "$BDEPS_UNZIP" >&6; }
19638 else
19639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640 $as_echo "no" >&6; }
19641 fi
19642 
19643 
19644   test -n "$BDEPS_UNZIP" && break
19645 done
19646 
19647   if test "x$BDEPS_UNZIP" = x7z; then
19648     BDEPS_UNZIP="7z x"
19649   fi
19650 
19651   for ac_prog in wget lftp ftp
19652 do
19653   # Extract the first word of "$ac_prog", so it can be a program name with args.
19654 set dummy $ac_prog; ac_word=$2
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19656 $as_echo_n "checking for $ac_word... " >&6; }
19657 if ${ac_cv_prog_BDEPS_FTP+:} false; then :
19658   $as_echo_n "(cached) " >&6
19659 else
19660   if test -n "$BDEPS_FTP"; then
19661   ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
19662 else
19663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19664 for as_dir in $PATH
19665 do
19666   IFS=$as_save_IFS
19667   test -z "$as_dir" && as_dir=.
19668     for ac_exec_ext in '' $ac_executable_extensions; do
19669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19670     ac_cv_prog_BDEPS_FTP="$ac_prog"
19671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19672     break 2
19673   fi
19674 done
19675   done
19676 IFS=$as_save_IFS
19677 
19678 fi
19679 fi
19680 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
19681 if test -n "$BDEPS_FTP"; then
19682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
19683 $as_echo "$BDEPS_FTP" >&6; }
19684 else
19685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19687 fi
19688 
19689 
19690   test -n "$BDEPS_FTP" && break
19691 done
19692 
19693 
19694 
19695 ###############################################################################
19696 #
19697 # Determine OpenJDK variants, options and version numbers.
19698 #
19699 ###############################################################################
19700 
19701 # We need build & target for this.
19702 
19703 
19704   ###############################################################################
19705   #
19706   # Should we build a JDK/JVM with headful support (ie a graphical ui)?
19707   # We always build headless support.
19708   #
19709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
19710 $as_echo_n "checking headful support... " >&6; }
19711   # Check whether --enable-headful was given.
19712 if test "${enable_headful+set}" = set; then :
19713   enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
19714 else
19715   SUPPORT_HEADFUL=yes
19716 fi
19717 
19718 
19719   SUPPORT_HEADLESS=yes
19720   BUILD_HEADLESS="BUILD_HEADLESS:=true"
19721 
19722   if test "x$SUPPORT_HEADFUL" = xyes; then
19723     # We are building both headful and headless.
19724     headful_msg="include support for both headful and headless"
19725   fi
19726 
19727   if test "x$SUPPORT_HEADFUL" = xno; then
19728     # Thus we are building headless only.
19729     BUILD_HEADLESS="BUILD_HEADLESS:=true"
19730     headful_msg="headless only"
19731   fi
19732 
19733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
19734 $as_echo "$headful_msg" >&6; }
19735 
19736 
19737 
19738 
19739 
19740   # Control wether Hotspot runs Queens test after build.
19741   # Check whether --enable-hotspot-test-in-build was given.
19742 if test "${enable_hotspot_test_in_build+set}" = set; then :
19743   enableval=$enable_hotspot_test_in_build;
19744 else
19745   enable_hotspot_test_in_build=no
19746 fi
19747 
19748   if test "x$enable_hotspot_test_in_build" = "xyes"; then
19749     TEST_IN_BUILD=true
19750   else
19751     TEST_IN_BUILD=false
19752   fi
19753 
19754 
19755   ###############################################################################
19756   #
19757   # Choose cacerts source file
19758   #
19759 
19760 # Check whether --with-cacerts-file was given.
19761 if test "${with_cacerts_file+set}" = set; then :
19762   withval=$with_cacerts_file;
19763 fi
19764 
19765   if test "x$with_cacerts_file" != x; then
19766     CACERTS_FILE=$with_cacerts_file
19767   else
19768     CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
19769   fi
19770 
19771 
19772   ###############################################################################
19773   #
19774   # Enable or disable unlimited crypto
19775   #
19776   # Check whether --enable-unlimited-crypto was given.
19777 if test "${enable_unlimited_crypto+set}" = set; then :
19778   enableval=$enable_unlimited_crypto;
19779 else
19780   enable_unlimited_crypto=no
19781 fi
19782 
19783   if test "x$enable_unlimited_crypto" = "xyes"; then
19784     UNLIMITED_CRYPTO=true
19785   else
19786     UNLIMITED_CRYPTO=false
19787   fi
19788 
19789 
19790   ###############################################################################
19791   #
19792   # Enable or disable the elliptic curve crypto implementation
19793   #
19794 
19795 
19796   ###############################################################################
19797   #
19798   # Compress jars
19799   #
19800   COMPRESS_JARS=false
19801 
19802 
19803 
19804 
19805   # Source the version numbers
19806   . $AUTOCONF_DIR/version-numbers
19807 
19808   # Get the settings from parameters
19809 
19810 # Check whether --with-milestone was given.
19811 if test "${with_milestone+set}" = set; then :
19812   withval=$with_milestone;
19813 fi
19814 
19815   if test "x$with_milestone" = xyes; then
19816     as_fn_error $? "Milestone must have a value" "$LINENO" 5
19817   elif test "x$with_milestone" != x; then
19818     MILESTONE="$with_milestone"
19819   fi
19820   if test "x$MILESTONE" = x; then
19821     MILESTONE=internal
19822   fi
19823 
19824 
19825 # Check whether --with-update-version was given.
19826 if test "${with_update_version+set}" = set; then :
19827   withval=$with_update_version;
19828 fi
19829 
19830   if test "x$with_update_version" = xyes; then
19831     as_fn_error $? "Update version must have a value" "$LINENO" 5
19832   elif test "x$with_update_version" != x; then
19833     JDK_UPDATE_VERSION="$with_update_version"
19834     # On macosx 10.7, it's not possible to set --with-update-version=0X due
19835     # to a bug in expr (which reduces it to just X). To work around this, we
19836     # always add a 0 to one digit update versions.
19837     if test "${#JDK_UPDATE_VERSION}" = "1"; then
19838       JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}"
19839     fi
19840   fi
19841 
19842 
19843 # Check whether --with-user-release-suffix was given.
19844 if test "${with_user_release_suffix+set}" = set; then :
19845   withval=$with_user_release_suffix;
19846 fi
19847 
19848   if test "x$with_user_release_suffix" = xyes; then
19849     as_fn_error $? "Release suffix must have a value" "$LINENO" 5
19850   elif test "x$with_user_release_suffix" != x; then
19851     USER_RELEASE_SUFFIX="$with_user_release_suffix"
19852   fi
19853 
19854 
19855 # Check whether --with-build-number was given.
19856 if test "${with_build_number+set}" = set; then :
19857   withval=$with_build_number;
19858 fi
19859 
19860   if test "x$with_build_number" = xyes; then
19861     as_fn_error $? "Build number must have a value" "$LINENO" 5
19862   elif test "x$with_build_number" != x; then
19863     JDK_BUILD_NUMBER="$with_build_number"
19864   fi
19865   # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set
19866   if test "x$JDK_BUILD_NUMBER" = x; then
19867     JDK_BUILD_NUMBER=b00
19868     if test "x$USER_RELEASE_SUFFIX" = x; then
19869       BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
19870       # Avoid [:alnum:] since it depends on the locale.
19871       CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'`
19872       USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
19873     fi
19874   fi
19875 
19876   # Now set the JDK version, milestone, build number etc.
19877 
19878 
19879 
19880 
19881 
19882 
19883 
19884 
19885 
19886 
19887 
19888 
19889 
19890 
19891   # The vendor name, if any
19892 
19893 # Check whether --with-vendor-name was given.
19894 if test "${with_vendor_name+set}" = set; then :
19895   withval=$with_vendor_name;
19896 fi
19897 
19898   if test "x$with_vendor_name" = xyes; then
19899     as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5
19900   elif  ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then
19901     as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5
19902   elif test "x$with_vendor_name" != x; then
19903     # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty.
19904     # Otherwise we will use the value from "version-numbers" included above.
19905     COMPANY_NAME="$with_vendor_name"
19906   fi
19907 
19908 
19909   # The vendor URL, if any
19910 
19911 # Check whether --with-vendor-url was given.
19912 if test "${with_vendor_url+set}" = set; then :
19913   withval=$with_vendor_url;
19914 fi
19915 
19916   if test "x$with_vendor_url" = xyes; then
19917     as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5
19918   elif  ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then
19919     as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5
19920   else
19921     VENDOR_URL="$with_vendor_url"
19922   fi
19923 
19924 
19925   # The vendor bug URL, if any
19926 
19927 # Check whether --with-vendor-bug-url was given.
19928 if test "${with_vendor_bug_url+set}" = set; then :
19929   withval=$with_vendor_bug_url;
19930 fi
19931 
19932   if test "x$with_vendor_bug_url" = xyes; then
19933     as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5
19934   elif  ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then
19935     as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5
19936   else
19937     VENDOR_URL_BUG="$with_vendor_bug_url"
19938   fi
19939 
19940 
19941   # The vendor VM bug URL, if any
19942 
19943 # Check whether --with-vendor-vm-bug-url was given.
19944 if test "${with_vendor_vm_bug_url+set}" = set; then :
19945   withval=$with_vendor_vm_bug_url;
19946 fi
19947 
19948   if test "x$with_vendor_vm_bug_url" = xyes; then
19949     as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5
19950   elif  ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then
19951     as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5
19952   else
19953     VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url"
19954   fi
19955 
19956 
19957 
19958 # Check whether --with-copyright-year was given.
19959 if test "${with_copyright_year+set}" = set; then :
19960   withval=$with_copyright_year;
19961 fi
19962 
19963   if test "x$with_copyright_year" = xyes; then
19964     as_fn_error $? "Copyright year must have a value" "$LINENO" 5
19965   elif test "x$with_copyright_year" != x; then
19966     COPYRIGHT_YEAR="$with_copyright_year"
19967   else
19968     COPYRIGHT_YEAR=`date +'%Y'`
19969   fi
19970 
19971 
19972   if test "x$JDK_UPDATE_VERSION" != x; then
19973     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
19974   else
19975     JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
19976   fi
19977 
19978 
19979   # The cooked update version used to encode trailing letters in the update
19980   # version into a trailing number. That is no longer needed, but need to
19981   # keep the format in 8u for compatibility.
19982   COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0"
19983 
19984 
19985   COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
19986 
19987 
19988 
19989 ###############################################################################
19990 #
19991 # Setup BootJDK, used to bootstrap the build.
19992 #
19993 ###############################################################################
19994 
19995 
19996   BOOT_JDK_FOUND=no
19997 
19998 # Check whether --with-boot-jdk was given.
19999 if test "${with_boot_jdk+set}" = set; then :
20000   withval=$with_boot_jdk;
20001 fi
20002 
20003 
20004   # We look for the Boot JDK through various means, going from more certain to
20005   # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if
20006   # we detected something (if so, the path to the jdk is in BOOT_JDK). But we
20007   # must check if this is indeed valid; otherwise we'll continue looking.
20008 
20009   # Test: Is bootjdk explicitely set by command line arguments?
20010 
20011   if test "x$BOOT_JDK_FOUND" = xno; then
20012     # Now execute the test
20013 
20014   if test "x$with_boot_jdk" != x; then
20015     BOOT_JDK=$with_boot_jdk
20016     BOOT_JDK_FOUND=maybe
20017     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5
20018 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;}
20019   fi
20020 
20021 
20022     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20023     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20024       # Do we have a bin/java?
20025       if test ! -x "$BOOT_JDK/bin/java"; then
20026         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20027 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20028         BOOT_JDK_FOUND=no
20029       else
20030         # Do we have a bin/javac?
20031         if test ! -x "$BOOT_JDK/bin/javac"; then
20032           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20034           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20035 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20036           BOOT_JDK_FOUND=no
20037         else
20038           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20039           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20040             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20042             BOOT_JDK_FOUND=no
20043           else
20044             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20045             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20046 
20047             # Extra M4 quote needed to protect [] in grep expression.
20048             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20049             if test "x$FOUND_VERSION_78" = x; then
20050               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20051 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20052               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20053 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20054               BOOT_JDK_FOUND=no
20055             else
20056               # We're done! :-)
20057               BOOT_JDK_FOUND=yes
20058 
20059   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20060 
20061   # Input might be given as Windows format, start by converting to
20062   # unix format.
20063   path="$BOOT_JDK"
20064   new_path=`$CYGPATH -u "$path"`
20065 
20066   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20067   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20068   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20069   # "foo.exe" is OK but "foo" is an error.
20070   #
20071   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20072   # It is also a way to make sure we got the proper file name for the real test later on.
20073   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20074   if test "x$test_shortpath" = x; then
20075     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20076 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20077     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20078   fi
20079 
20080   # Call helper function which possibly converts this using DOS-style short mode.
20081   # If so, the updated path is stored in $new_path.
20082 
20083   input_path="$new_path"
20084   # Check if we need to convert this using DOS-style short mode. If the path
20085   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20086   # take no chances and rewrite it.
20087   # Note: m4 eats our [], so we need to use [ and ] instead.
20088   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20089   if test "x$has_forbidden_chars" != x; then
20090     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20091     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20092     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20093     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20094       # Going to short mode and back again did indeed matter. Since short mode is
20095       # case insensitive, let's make it lowercase to improve readability.
20096       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20097       # Now convert it back to Unix-style (cygpath)
20098       input_path=`$CYGPATH -u "$shortmode_path"`
20099       new_path="$input_path"
20100     fi
20101   fi
20102 
20103   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20104   if test "x$test_cygdrive_prefix" = x; then
20105     # As a simple fix, exclude /usr/bin since it's not a real path.
20106     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20107       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20108       # a path prefixed by /cygdrive for fixpath to work.
20109       new_path="$CYGWIN_ROOT_PATH$input_path"
20110     fi
20111   fi
20112 
20113 
20114   if test "x$path" != "x$new_path"; then
20115     BOOT_JDK="$new_path"
20116     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20117 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20118   fi
20119 
20120   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20121 
20122   path="$BOOT_JDK"
20123   has_colon=`$ECHO $path | $GREP ^.:`
20124   new_path="$path"
20125   if test "x$has_colon" = x; then
20126     # Not in mixed or Windows style, start by that.
20127     new_path=`cmd //c echo $path`
20128   fi
20129 
20130 
20131   input_path="$new_path"
20132   # Check if we need to convert this using DOS-style short mode. If the path
20133   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20134   # take no chances and rewrite it.
20135   # Note: m4 eats our [], so we need to use [ and ] instead.
20136   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20137   if test "x$has_forbidden_chars" != x; then
20138     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20139     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20140   fi
20141 
20142 
20143   windows_path="$new_path"
20144   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20145     unix_path=`$CYGPATH -u "$windows_path"`
20146     new_path="$unix_path"
20147   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20148     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20149     new_path="$unix_path"
20150   fi
20151 
20152   if test "x$path" != "x$new_path"; then
20153     BOOT_JDK="$new_path"
20154     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20155 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20156   fi
20157 
20158   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20159   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20160 
20161   else
20162     # We're on a posix platform. Hooray! :)
20163     path="$BOOT_JDK"
20164     has_space=`$ECHO "$path" | $GREP " "`
20165     if test "x$has_space" != x; then
20166       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20167 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20168       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20169     fi
20170 
20171     # Use eval to expand a potential ~
20172     eval path="$path"
20173     if test ! -f "$path" && test ! -d "$path"; then
20174       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20175     fi
20176 
20177     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20178   fi
20179 
20180               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20181 $as_echo_n "checking for Boot JDK... " >&6; }
20182               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20183 $as_echo "$BOOT_JDK" >&6; }
20184               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20185 $as_echo_n "checking Boot JDK version... " >&6; }
20186               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20187               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20188 $as_echo "$BOOT_JDK_VERSION" >&6; }
20189             fi # end check jdk version
20190           fi # end check rt.jar
20191         fi # end check javac
20192       fi # end check java
20193     fi # end check boot jdk found
20194   fi
20195 
20196   if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then
20197     # Having specified an argument which is incorrect will produce an instant failure;
20198     # we should not go on looking
20199     as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5
20200   fi
20201 
20202   # Test: Is bootjdk available from builddeps?
20203 
20204   if test "x$BOOT_JDK_FOUND" = xno; then
20205     # Now execute the test
20206 
20207 
20208 
20209   if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
20210     # Source the builddeps file again, to make sure it uses the latest variables!
20211     . $builddepsfile
20212     # Look for a target and build machine specific resource!
20213     eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}}
20214     if test "x$resource" = x; then
20215       # Ok, lets instead look for a target specific resource
20216       eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}}
20217     fi
20218     if test "x$resource" = x; then
20219       # Ok, lets instead look for a build specific resource
20220       eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}}
20221     fi
20222     if test "x$resource" = x; then
20223       # Ok, lets instead look for a generic resource
20224       # (The bootjdk comes from M4 and not the shell, thus no need for eval here.)
20225       resource=${builddep_bootjdk}
20226     fi
20227     if test "x$resource" != x; then
20228       { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5
20229 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;}
20230       # If the resource in the builddeps.conf file is an existing directory,
20231       # for example /java/linux/cups
20232       if test -d ${resource}; then
20233         depdir=${resource}
20234       else
20235 
20236   # bootjdk is for example mymodule
20237   # $resource is for example libs/general/libmymod_1_2_3.zip
20238   # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
20239   # $with_builddeps_dir is for example /localhome/builddeps
20240   # depdir is the name of the variable into which we store the depdir, eg MYMOD
20241   # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
20242   # unzip into the directory: /localhome/builddeps/libmymod_1_2_3
20243   filename=`basename $resource`
20244   filebase=`echo $filename | sed 's/\.[^\.]*$//'`
20245   filebase=${filename%%.*}
20246   extension=${filename#*.}
20247   installdir=$with_builddeps_dir/$filebase
20248   if test ! -f $installdir/$filename.unpacked; then
20249     { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5
20250 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
20251     if test ! -d $installdir; then
20252       mkdir -p $installdir
20253     fi
20254     if test ! -d $installdir; then
20255       as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
20256     fi
20257     tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX`
20258     touch $tmpfile
20259     if test ! -f $tmpfile; then
20260       as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
20261     fi
20262 
20263   # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
20264   # $tmpfile is the local file name for the downloaded file.
20265   VALID_TOOL=no
20266   if test "x$BDEPS_FTP" = xwget; then
20267     VALID_TOOL=yes
20268     wget -O $tmpfile $with_builddeps_server/$resource
20269   fi
20270   if test "x$BDEPS_FTP" = xlftp; then
20271     VALID_TOOL=yes
20272     lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
20273   fi
20274   if test "x$BDEPS_FTP" = xftp; then
20275     VALID_TOOL=yes
20276     FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
20277     FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
20278     FTPUSERPWD=${FTPSERVER%%@*}
20279     if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
20280       FTPUSER=${userpwd%%:*}
20281       FTPPWD=${userpwd#*@}
20282       FTPSERVER=${FTPSERVER#*@}
20283     else
20284       FTPUSER=ftp
20285       FTPPWD=ftp
20286     fi
20287     # the "pass" command does not work on some
20288     # ftp clients (read ftp.exe) but if it works,
20289     # passive mode is better!
20290     ( \
20291         echo "user $FTPUSER $FTPPWD"        ; \
20292         echo "pass"                         ; \
20293         echo "bin"                          ; \
20294         echo "get $FTPPATH $tmpfile"              ; \
20295     ) | ftp -in $FTPSERVER
20296   fi
20297   if test "x$VALID_TOOL" != xyes; then
20298     as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
20299   fi
20300 
20301     mv $tmpfile $installdir/$filename
20302     if test ! -s $installdir/$filename; then
20303       as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
20304     fi
20305     case "$extension" in
20306       zip)  echo "Unzipping $installdir/$filename..."
20307         (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
20308         ;;
20309       tar.gz) echo "Untaring $installdir/$filename..."
20310         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20311         ;;
20312       tgz) echo "Untaring $installdir/$filename..."
20313         (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
20314         ;;
20315       *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
20316         ;;
20317     esac
20318   fi
20319   if test -f $installdir/$filename.unpacked; then
20320     depdir=$installdir
20321   fi
20322 
20323       fi
20324       # Source the builddeps file again, because in the previous command, the depdir
20325       # was updated to point at the current build dependency install directory.
20326       . $builddepsfile
20327       # Now extract variables from the builddeps.conf files.
20328       theroot=${builddep_bootjdk_ROOT}
20329       thecflags=${builddep_bootjdk_CFLAGS}
20330       thelibs=${builddep_bootjdk_LIBS}
20331       if test "x$depdir" = x; then
20332         as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5
20333       fi
20334       BOOT_JDK=$depdir
20335       if test "x$theroot" != x; then
20336         BOOT_JDK="$theroot"
20337       fi
20338       if test "x$thecflags" != x; then
20339         BOOT_JDK_CFLAGS="$thecflags"
20340       fi
20341       if test "x$thelibs" != x; then
20342         BOOT_JDK_LIBS="$thelibs"
20343       fi
20344       BOOT_JDK_FOUND=maybe
20345       else BOOT_JDK_FOUND=no
20346 
20347     fi
20348     else BOOT_JDK_FOUND=no
20349 
20350   fi
20351 
20352 
20353 
20354     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20355     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20356       # Do we have a bin/java?
20357       if test ! -x "$BOOT_JDK/bin/java"; then
20358         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20359 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20360         BOOT_JDK_FOUND=no
20361       else
20362         # Do we have a bin/javac?
20363         if test ! -x "$BOOT_JDK/bin/javac"; then
20364           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20365 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20366           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20367 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20368           BOOT_JDK_FOUND=no
20369         else
20370           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20371           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20372             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20373 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20374             BOOT_JDK_FOUND=no
20375           else
20376             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20377             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20378 
20379             # Extra M4 quote needed to protect [] in grep expression.
20380             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20381             if test "x$FOUND_VERSION_78" = x; then
20382               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20384               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20385 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20386               BOOT_JDK_FOUND=no
20387             else
20388               # We're done! :-)
20389               BOOT_JDK_FOUND=yes
20390 
20391   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20392 
20393   # Input might be given as Windows format, start by converting to
20394   # unix format.
20395   path="$BOOT_JDK"
20396   new_path=`$CYGPATH -u "$path"`
20397 
20398   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20399   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20400   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20401   # "foo.exe" is OK but "foo" is an error.
20402   #
20403   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20404   # It is also a way to make sure we got the proper file name for the real test later on.
20405   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20406   if test "x$test_shortpath" = x; then
20407     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20408 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20409     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20410   fi
20411 
20412   # Call helper function which possibly converts this using DOS-style short mode.
20413   # If so, the updated path is stored in $new_path.
20414 
20415   input_path="$new_path"
20416   # Check if we need to convert this using DOS-style short mode. If the path
20417   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20418   # take no chances and rewrite it.
20419   # Note: m4 eats our [], so we need to use [ and ] instead.
20420   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20421   if test "x$has_forbidden_chars" != x; then
20422     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20423     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20424     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20425     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20426       # Going to short mode and back again did indeed matter. Since short mode is
20427       # case insensitive, let's make it lowercase to improve readability.
20428       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20429       # Now convert it back to Unix-style (cygpath)
20430       input_path=`$CYGPATH -u "$shortmode_path"`
20431       new_path="$input_path"
20432     fi
20433   fi
20434 
20435   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20436   if test "x$test_cygdrive_prefix" = x; then
20437     # As a simple fix, exclude /usr/bin since it's not a real path.
20438     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20439       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20440       # a path prefixed by /cygdrive for fixpath to work.
20441       new_path="$CYGWIN_ROOT_PATH$input_path"
20442     fi
20443   fi
20444 
20445 
20446   if test "x$path" != "x$new_path"; then
20447     BOOT_JDK="$new_path"
20448     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20449 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20450   fi
20451 
20452   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20453 
20454   path="$BOOT_JDK"
20455   has_colon=`$ECHO $path | $GREP ^.:`
20456   new_path="$path"
20457   if test "x$has_colon" = x; then
20458     # Not in mixed or Windows style, start by that.
20459     new_path=`cmd //c echo $path`
20460   fi
20461 
20462 
20463   input_path="$new_path"
20464   # Check if we need to convert this using DOS-style short mode. If the path
20465   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20466   # take no chances and rewrite it.
20467   # Note: m4 eats our [], so we need to use [ and ] instead.
20468   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20469   if test "x$has_forbidden_chars" != x; then
20470     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20471     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20472   fi
20473 
20474 
20475   windows_path="$new_path"
20476   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20477     unix_path=`$CYGPATH -u "$windows_path"`
20478     new_path="$unix_path"
20479   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20480     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20481     new_path="$unix_path"
20482   fi
20483 
20484   if test "x$path" != "x$new_path"; then
20485     BOOT_JDK="$new_path"
20486     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20487 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20488   fi
20489 
20490   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20491   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20492 
20493   else
20494     # We're on a posix platform. Hooray! :)
20495     path="$BOOT_JDK"
20496     has_space=`$ECHO "$path" | $GREP " "`
20497     if test "x$has_space" != x; then
20498       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20499 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20500       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20501     fi
20502 
20503     # Use eval to expand a potential ~
20504     eval path="$path"
20505     if test ! -f "$path" && test ! -d "$path"; then
20506       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20507     fi
20508 
20509     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20510   fi
20511 
20512               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20513 $as_echo_n "checking for Boot JDK... " >&6; }
20514               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20515 $as_echo "$BOOT_JDK" >&6; }
20516               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20517 $as_echo_n "checking Boot JDK version... " >&6; }
20518               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20519               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20520 $as_echo "$BOOT_JDK_VERSION" >&6; }
20521             fi # end check jdk version
20522           fi # end check rt.jar
20523         fi # end check javac
20524       fi # end check java
20525     fi # end check boot jdk found
20526   fi
20527 
20528 
20529   # Test: Is $JAVA_HOME set?
20530 
20531   if test "x$BOOT_JDK_FOUND" = xno; then
20532     # Now execute the test
20533 
20534   if test "x$JAVA_HOME" != x; then
20535     JAVA_HOME_PROCESSED="$JAVA_HOME"
20536 
20537   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20538 
20539   # Input might be given as Windows format, start by converting to
20540   # unix format.
20541   path="$JAVA_HOME_PROCESSED"
20542   new_path=`$CYGPATH -u "$path"`
20543 
20544   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20545   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20546   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20547   # "foo.exe" is OK but "foo" is an error.
20548   #
20549   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20550   # It is also a way to make sure we got the proper file name for the real test later on.
20551   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20552   if test "x$test_shortpath" = x; then
20553     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20554 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20555     as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5
20556   fi
20557 
20558   # Call helper function which possibly converts this using DOS-style short mode.
20559   # If so, the updated path is stored in $new_path.
20560 
20561   input_path="$new_path"
20562   # Check if we need to convert this using DOS-style short mode. If the path
20563   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20564   # take no chances and rewrite it.
20565   # Note: m4 eats our [], so we need to use [ and ] instead.
20566   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20567   if test "x$has_forbidden_chars" != x; then
20568     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20569     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20570     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20571     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20572       # Going to short mode and back again did indeed matter. Since short mode is
20573       # case insensitive, let's make it lowercase to improve readability.
20574       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20575       # Now convert it back to Unix-style (cygpath)
20576       input_path=`$CYGPATH -u "$shortmode_path"`
20577       new_path="$input_path"
20578     fi
20579   fi
20580 
20581   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20582   if test "x$test_cygdrive_prefix" = x; then
20583     # As a simple fix, exclude /usr/bin since it's not a real path.
20584     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20585       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20586       # a path prefixed by /cygdrive for fixpath to work.
20587       new_path="$CYGWIN_ROOT_PATH$input_path"
20588     fi
20589   fi
20590 
20591 
20592   if test "x$path" != "x$new_path"; then
20593     JAVA_HOME_PROCESSED="$new_path"
20594     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20595 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20596   fi
20597 
20598   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20599 
20600   path="$JAVA_HOME_PROCESSED"
20601   has_colon=`$ECHO $path | $GREP ^.:`
20602   new_path="$path"
20603   if test "x$has_colon" = x; then
20604     # Not in mixed or Windows style, start by that.
20605     new_path=`cmd //c echo $path`
20606   fi
20607 
20608 
20609   input_path="$new_path"
20610   # Check if we need to convert this using DOS-style short mode. If the path
20611   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20612   # take no chances and rewrite it.
20613   # Note: m4 eats our [], so we need to use [ and ] instead.
20614   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20615   if test "x$has_forbidden_chars" != x; then
20616     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20617     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20618   fi
20619 
20620 
20621   windows_path="$new_path"
20622   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20623     unix_path=`$CYGPATH -u "$windows_path"`
20624     new_path="$unix_path"
20625   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20626     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20627     new_path="$unix_path"
20628   fi
20629 
20630   if test "x$path" != "x$new_path"; then
20631     JAVA_HOME_PROCESSED="$new_path"
20632     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5
20633 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;}
20634   fi
20635 
20636   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20637   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20638 
20639   else
20640     # We're on a posix platform. Hooray! :)
20641     path="$JAVA_HOME_PROCESSED"
20642     has_space=`$ECHO "$path" | $GREP " "`
20643     if test "x$has_space" != x; then
20644       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5
20645 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;}
20646       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20647     fi
20648 
20649     # Use eval to expand a potential ~
20650     eval path="$path"
20651     if test ! -f "$path" && test ! -d "$path"; then
20652       as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5
20653     fi
20654 
20655     JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`"
20656   fi
20657 
20658     if test ! -d "$JAVA_HOME_PROCESSED"; then
20659       { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5
20660 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;}
20661     else
20662       # Aha, the user has set a JAVA_HOME
20663       # let us use that as the Boot JDK.
20664       BOOT_JDK="$JAVA_HOME_PROCESSED"
20665       BOOT_JDK_FOUND=maybe
20666       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5
20667 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;}
20668     fi
20669   fi
20670 
20671 
20672     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20673     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20674       # Do we have a bin/java?
20675       if test ! -x "$BOOT_JDK/bin/java"; then
20676         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20677 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20678         BOOT_JDK_FOUND=no
20679       else
20680         # Do we have a bin/javac?
20681         if test ! -x "$BOOT_JDK/bin/javac"; then
20682           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20683 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20684           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20685 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20686           BOOT_JDK_FOUND=no
20687         else
20688           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20689           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20690             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20691 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20692             BOOT_JDK_FOUND=no
20693           else
20694             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20695             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20696 
20697             # Extra M4 quote needed to protect [] in grep expression.
20698             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20699             if test "x$FOUND_VERSION_78" = x; then
20700               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20701 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20702               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20703 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20704               BOOT_JDK_FOUND=no
20705             else
20706               # We're done! :-)
20707               BOOT_JDK_FOUND=yes
20708 
20709   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20710 
20711   # Input might be given as Windows format, start by converting to
20712   # unix format.
20713   path="$BOOT_JDK"
20714   new_path=`$CYGPATH -u "$path"`
20715 
20716   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20717   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20718   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20719   # "foo.exe" is OK but "foo" is an error.
20720   #
20721   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20722   # It is also a way to make sure we got the proper file name for the real test later on.
20723   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20724   if test "x$test_shortpath" = x; then
20725     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20726 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20727     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20728   fi
20729 
20730   # Call helper function which possibly converts this using DOS-style short mode.
20731   # If so, the updated path is stored in $new_path.
20732 
20733   input_path="$new_path"
20734   # Check if we need to convert this using DOS-style short mode. If the path
20735   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20736   # take no chances and rewrite it.
20737   # Note: m4 eats our [], so we need to use [ and ] instead.
20738   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20739   if test "x$has_forbidden_chars" != x; then
20740     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20741     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20742     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20743     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20744       # Going to short mode and back again did indeed matter. Since short mode is
20745       # case insensitive, let's make it lowercase to improve readability.
20746       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20747       # Now convert it back to Unix-style (cygpath)
20748       input_path=`$CYGPATH -u "$shortmode_path"`
20749       new_path="$input_path"
20750     fi
20751   fi
20752 
20753   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20754   if test "x$test_cygdrive_prefix" = x; then
20755     # As a simple fix, exclude /usr/bin since it's not a real path.
20756     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20757       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20758       # a path prefixed by /cygdrive for fixpath to work.
20759       new_path="$CYGWIN_ROOT_PATH$input_path"
20760     fi
20761   fi
20762 
20763 
20764   if test "x$path" != "x$new_path"; then
20765     BOOT_JDK="$new_path"
20766     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20767 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20768   fi
20769 
20770   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20771 
20772   path="$BOOT_JDK"
20773   has_colon=`$ECHO $path | $GREP ^.:`
20774   new_path="$path"
20775   if test "x$has_colon" = x; then
20776     # Not in mixed or Windows style, start by that.
20777     new_path=`cmd //c echo $path`
20778   fi
20779 
20780 
20781   input_path="$new_path"
20782   # Check if we need to convert this using DOS-style short mode. If the path
20783   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20784   # take no chances and rewrite it.
20785   # Note: m4 eats our [], so we need to use [ and ] instead.
20786   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20787   if test "x$has_forbidden_chars" != x; then
20788     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20789     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20790   fi
20791 
20792 
20793   windows_path="$new_path"
20794   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20795     unix_path=`$CYGPATH -u "$windows_path"`
20796     new_path="$unix_path"
20797   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20798     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20799     new_path="$unix_path"
20800   fi
20801 
20802   if test "x$path" != "x$new_path"; then
20803     BOOT_JDK="$new_path"
20804     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20805 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20806   fi
20807 
20808   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20809   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20810 
20811   else
20812     # We're on a posix platform. Hooray! :)
20813     path="$BOOT_JDK"
20814     has_space=`$ECHO "$path" | $GREP " "`
20815     if test "x$has_space" != x; then
20816       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20817 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20818       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
20819     fi
20820 
20821     # Use eval to expand a potential ~
20822     eval path="$path"
20823     if test ! -f "$path" && test ! -d "$path"; then
20824       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
20825     fi
20826 
20827     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
20828   fi
20829 
20830               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
20831 $as_echo_n "checking for Boot JDK... " >&6; }
20832               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
20833 $as_echo "$BOOT_JDK" >&6; }
20834               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
20835 $as_echo_n "checking Boot JDK version... " >&6; }
20836               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
20837               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
20838 $as_echo "$BOOT_JDK_VERSION" >&6; }
20839             fi # end check jdk version
20840           fi # end check rt.jar
20841         fi # end check javac
20842       fi # end check java
20843     fi # end check boot jdk found
20844   fi
20845 
20846 
20847   # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX)
20848 
20849   if test "x$BOOT_JDK_FOUND" = xno; then
20850     # Now execute the test
20851 
20852   if test -x /usr/libexec/java_home; then
20853     BOOT_JDK=`/usr/libexec/java_home`
20854     BOOT_JDK_FOUND=maybe
20855     { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5
20856 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;}
20857   fi
20858 
20859 
20860     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
20861     if test "x$BOOT_JDK_FOUND" = xmaybe; then
20862       # Do we have a bin/java?
20863       if test ! -x "$BOOT_JDK/bin/java"; then
20864         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
20865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
20866         BOOT_JDK_FOUND=no
20867       else
20868         # Do we have a bin/javac?
20869         if test ! -x "$BOOT_JDK/bin/javac"; then
20870           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
20871 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
20872           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
20873 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
20874           BOOT_JDK_FOUND=no
20875         else
20876           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
20877           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
20878             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
20879 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
20880             BOOT_JDK_FOUND=no
20881           else
20882             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
20883             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
20884 
20885             # Extra M4 quote needed to protect [] in grep expression.
20886             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
20887             if test "x$FOUND_VERSION_78" = x; then
20888               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
20889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
20890               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
20891 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
20892               BOOT_JDK_FOUND=no
20893             else
20894               # We're done! :-)
20895               BOOT_JDK_FOUND=yes
20896 
20897   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20898 
20899   # Input might be given as Windows format, start by converting to
20900   # unix format.
20901   path="$BOOT_JDK"
20902   new_path=`$CYGPATH -u "$path"`
20903 
20904   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
20905   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
20906   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
20907   # "foo.exe" is OK but "foo" is an error.
20908   #
20909   # This test is therefore slightly more accurate than "test -f" to check for file precense.
20910   # It is also a way to make sure we got the proper file name for the real test later on.
20911   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
20912   if test "x$test_shortpath" = x; then
20913     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
20914 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
20915     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
20916   fi
20917 
20918   # Call helper function which possibly converts this using DOS-style short mode.
20919   # If so, the updated path is stored in $new_path.
20920 
20921   input_path="$new_path"
20922   # Check if we need to convert this using DOS-style short mode. If the path
20923   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20924   # take no chances and rewrite it.
20925   # Note: m4 eats our [], so we need to use [ and ] instead.
20926   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
20927   if test "x$has_forbidden_chars" != x; then
20928     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20929     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
20930     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
20931     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
20932       # Going to short mode and back again did indeed matter. Since short mode is
20933       # case insensitive, let's make it lowercase to improve readability.
20934       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20935       # Now convert it back to Unix-style (cygpath)
20936       input_path=`$CYGPATH -u "$shortmode_path"`
20937       new_path="$input_path"
20938     fi
20939   fi
20940 
20941   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
20942   if test "x$test_cygdrive_prefix" = x; then
20943     # As a simple fix, exclude /usr/bin since it's not a real path.
20944     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
20945       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
20946       # a path prefixed by /cygdrive for fixpath to work.
20947       new_path="$CYGWIN_ROOT_PATH$input_path"
20948     fi
20949   fi
20950 
20951 
20952   if test "x$path" != "x$new_path"; then
20953     BOOT_JDK="$new_path"
20954     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20955 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20956   fi
20957 
20958   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20959 
20960   path="$BOOT_JDK"
20961   has_colon=`$ECHO $path | $GREP ^.:`
20962   new_path="$path"
20963   if test "x$has_colon" = x; then
20964     # Not in mixed or Windows style, start by that.
20965     new_path=`cmd //c echo $path`
20966   fi
20967 
20968 
20969   input_path="$new_path"
20970   # Check if we need to convert this using DOS-style short mode. If the path
20971   # contains just simple characters, use it. Otherwise (spaces, weird characters),
20972   # take no chances and rewrite it.
20973   # Note: m4 eats our [], so we need to use [ and ] instead.
20974   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
20975   if test "x$has_forbidden_chars" != x; then
20976     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
20977     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
20978   fi
20979 
20980 
20981   windows_path="$new_path"
20982   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
20983     unix_path=`$CYGPATH -u "$windows_path"`
20984     new_path="$unix_path"
20985   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
20986     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
20987     new_path="$unix_path"
20988   fi
20989 
20990   if test "x$path" != "x$new_path"; then
20991     BOOT_JDK="$new_path"
20992     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
20993 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
20994   fi
20995 
20996   # Save the first 10 bytes of this path to the storage, so fixpath can work.
20997   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
20998 
20999   else
21000     # We're on a posix platform. Hooray! :)
21001     path="$BOOT_JDK"
21002     has_space=`$ECHO "$path" | $GREP " "`
21003     if test "x$has_space" != x; then
21004       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21005 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21006       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21007     fi
21008 
21009     # Use eval to expand a potential ~
21010     eval path="$path"
21011     if test ! -f "$path" && test ! -d "$path"; then
21012       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21013     fi
21014 
21015     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21016   fi
21017 
21018               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21019 $as_echo_n "checking for Boot JDK... " >&6; }
21020               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21021 $as_echo "$BOOT_JDK" >&6; }
21022               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21023 $as_echo_n "checking Boot JDK version... " >&6; }
21024               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21025               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21026 $as_echo "$BOOT_JDK_VERSION" >&6; }
21027             fi # end check jdk version
21028           fi # end check rt.jar
21029         fi # end check javac
21030       fi # end check java
21031     fi # end check boot jdk found
21032   fi
21033 
21034 
21035   # Test: Is there a java or javac in the PATH, which is a symlink to the JDK?
21036 
21037   if test "x$BOOT_JDK_FOUND" = xno; then
21038     # Now execute the test
21039 
21040   # Extract the first word of "javac", so it can be a program name with args.
21041 set dummy javac; ac_word=$2
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21043 $as_echo_n "checking for $ac_word... " >&6; }
21044 if ${ac_cv_path_JAVAC_CHECK+:} false; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047   case $JAVAC_CHECK in
21048   [\\/]* | ?:[\\/]*)
21049   ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
21050   ;;
21051   *)
21052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21053 for as_dir in $PATH
21054 do
21055   IFS=$as_save_IFS
21056   test -z "$as_dir" && as_dir=.
21057     for ac_exec_ext in '' $ac_executable_extensions; do
21058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21059     ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
21060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21061     break 2
21062   fi
21063 done
21064   done
21065 IFS=$as_save_IFS
21066 
21067   ;;
21068 esac
21069 fi
21070 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
21071 if test -n "$JAVAC_CHECK"; then
21072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
21073 $as_echo "$JAVAC_CHECK" >&6; }
21074 else
21075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076 $as_echo "no" >&6; }
21077 fi
21078 
21079 
21080   # Extract the first word of "java", so it can be a program name with args.
21081 set dummy java; ac_word=$2
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21083 $as_echo_n "checking for $ac_word... " >&6; }
21084 if ${ac_cv_path_JAVA_CHECK+:} false; then :
21085   $as_echo_n "(cached) " >&6
21086 else
21087   case $JAVA_CHECK in
21088   [\\/]* | ?:[\\/]*)
21089   ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
21090   ;;
21091   *)
21092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21093 for as_dir in $PATH
21094 do
21095   IFS=$as_save_IFS
21096   test -z "$as_dir" && as_dir=.
21097     for ac_exec_ext in '' $ac_executable_extensions; do
21098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21099     ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
21100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21101     break 2
21102   fi
21103 done
21104   done
21105 IFS=$as_save_IFS
21106 
21107   ;;
21108 esac
21109 fi
21110 JAVA_CHECK=$ac_cv_path_JAVA_CHECK
21111 if test -n "$JAVA_CHECK"; then
21112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
21113 $as_echo "$JAVA_CHECK" >&6; }
21114 else
21115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21116 $as_echo "no" >&6; }
21117 fi
21118 
21119 
21120   BINARY="$JAVAC_CHECK"
21121   if test "x$JAVAC_CHECK" = x; then
21122     BINARY="$JAVA_CHECK"
21123   fi
21124   if test "x$BINARY" != x; then
21125     # So there is a java(c) binary, it might be part of a JDK.
21126     # Lets find the JDK/JRE directory by following symbolic links.
21127     # Linux/GNU systems often have links from /usr/bin/java to
21128     # /etc/alternatives/java to the real JDK binary.
21129 
21130   if test "x$OPENJDK_BUILD_OS" != xwindows; then
21131     # Follow a chain of symbolic links. Use readlink
21132     # where it exists, else fall back to horribly
21133     # complicated shell code.
21134     if test "x$READLINK_TESTED" != yes; then
21135       # On MacOSX there is a readlink tool with a different
21136       # purpose than the GNU readlink tool. Check the found readlink.
21137       ISGNU=`$READLINK --version 2>&1 | $GREP GNU`
21138       if test "x$ISGNU" = x; then
21139         # A readlink that we do not know how to use.
21140         # Are there other non-GNU readlinks out there?
21141         READLINK_TESTED=yes
21142         READLINK=
21143       fi
21144     fi
21145 
21146     if test "x$READLINK" != x; then
21147       BINARY=`$READLINK -f $BINARY`
21148     else
21149       # Save the current directory for restoring afterwards
21150       STARTDIR=$PWD
21151       COUNTER=0
21152       sym_link_dir=`$DIRNAME $BINARY`
21153       sym_link_file=`$BASENAME $BINARY`
21154       cd $sym_link_dir
21155       # Use -P flag to resolve symlinks in directories.
21156       cd `$THEPWDCMD -P`
21157       sym_link_dir=`$THEPWDCMD -P`
21158       # Resolve file symlinks
21159       while test $COUNTER -lt 20; do
21160         ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'`
21161         if test "x$ISLINK" == x; then
21162           # This is not a symbolic link! We are done!
21163           break
21164         fi
21165         # Again resolve directory symlinks since the target of the just found
21166         # link could be in a different directory
21167         cd `$DIRNAME $ISLINK`
21168         sym_link_dir=`$THEPWDCMD -P`
21169         sym_link_file=`$BASENAME $ISLINK`
21170         let COUNTER=COUNTER+1
21171       done
21172       cd $STARTDIR
21173       BINARY=$sym_link_dir/$sym_link_file
21174     fi
21175   fi
21176 
21177     BOOT_JDK=`dirname "$BINARY"`
21178     BOOT_JDK=`cd "$BOOT_JDK/.."; pwd`
21179     if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
21180       # Looks like we found ourselves an JDK
21181       BOOT_JDK_FOUND=maybe
21182       { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5
21183 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;}
21184     fi
21185   fi
21186 
21187 
21188     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21189     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21190       # Do we have a bin/java?
21191       if test ! -x "$BOOT_JDK/bin/java"; then
21192         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21194         BOOT_JDK_FOUND=no
21195       else
21196         # Do we have a bin/javac?
21197         if test ! -x "$BOOT_JDK/bin/javac"; then
21198           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21200           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21201 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21202           BOOT_JDK_FOUND=no
21203         else
21204           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21205           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21206             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21208             BOOT_JDK_FOUND=no
21209           else
21210             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21211             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21212 
21213             # Extra M4 quote needed to protect [] in grep expression.
21214             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21215             if test "x$FOUND_VERSION_78" = x; then
21216               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21218               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21219 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21220               BOOT_JDK_FOUND=no
21221             else
21222               # We're done! :-)
21223               BOOT_JDK_FOUND=yes
21224 
21225   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21226 
21227   # Input might be given as Windows format, start by converting to
21228   # unix format.
21229   path="$BOOT_JDK"
21230   new_path=`$CYGPATH -u "$path"`
21231 
21232   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21233   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21234   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21235   # "foo.exe" is OK but "foo" is an error.
21236   #
21237   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21238   # It is also a way to make sure we got the proper file name for the real test later on.
21239   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21240   if test "x$test_shortpath" = x; then
21241     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21242 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21243     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21244   fi
21245 
21246   # Call helper function which possibly converts this using DOS-style short mode.
21247   # If so, the updated path is stored in $new_path.
21248 
21249   input_path="$new_path"
21250   # Check if we need to convert this using DOS-style short mode. If the path
21251   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21252   # take no chances and rewrite it.
21253   # Note: m4 eats our [], so we need to use [ and ] instead.
21254   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21255   if test "x$has_forbidden_chars" != x; then
21256     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21257     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21258     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21259     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21260       # Going to short mode and back again did indeed matter. Since short mode is
21261       # case insensitive, let's make it lowercase to improve readability.
21262       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21263       # Now convert it back to Unix-style (cygpath)
21264       input_path=`$CYGPATH -u "$shortmode_path"`
21265       new_path="$input_path"
21266     fi
21267   fi
21268 
21269   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21270   if test "x$test_cygdrive_prefix" = x; then
21271     # As a simple fix, exclude /usr/bin since it's not a real path.
21272     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21273       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21274       # a path prefixed by /cygdrive for fixpath to work.
21275       new_path="$CYGWIN_ROOT_PATH$input_path"
21276     fi
21277   fi
21278 
21279 
21280   if test "x$path" != "x$new_path"; then
21281     BOOT_JDK="$new_path"
21282     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21283 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21284   fi
21285 
21286   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21287 
21288   path="$BOOT_JDK"
21289   has_colon=`$ECHO $path | $GREP ^.:`
21290   new_path="$path"
21291   if test "x$has_colon" = x; then
21292     # Not in mixed or Windows style, start by that.
21293     new_path=`cmd //c echo $path`
21294   fi
21295 
21296 
21297   input_path="$new_path"
21298   # Check if we need to convert this using DOS-style short mode. If the path
21299   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21300   # take no chances and rewrite it.
21301   # Note: m4 eats our [], so we need to use [ and ] instead.
21302   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21303   if test "x$has_forbidden_chars" != x; then
21304     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21305     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21306   fi
21307 
21308 
21309   windows_path="$new_path"
21310   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21311     unix_path=`$CYGPATH -u "$windows_path"`
21312     new_path="$unix_path"
21313   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21314     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21315     new_path="$unix_path"
21316   fi
21317 
21318   if test "x$path" != "x$new_path"; then
21319     BOOT_JDK="$new_path"
21320     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21322   fi
21323 
21324   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21325   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21326 
21327   else
21328     # We're on a posix platform. Hooray! :)
21329     path="$BOOT_JDK"
21330     has_space=`$ECHO "$path" | $GREP " "`
21331     if test "x$has_space" != x; then
21332       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21333 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21334       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21335     fi
21336 
21337     # Use eval to expand a potential ~
21338     eval path="$path"
21339     if test ! -f "$path" && test ! -d "$path"; then
21340       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21341     fi
21342 
21343     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21344   fi
21345 
21346               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21347 $as_echo_n "checking for Boot JDK... " >&6; }
21348               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21349 $as_echo "$BOOT_JDK" >&6; }
21350               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21351 $as_echo_n "checking Boot JDK version... " >&6; }
21352               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21353               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21354 $as_echo "$BOOT_JDK_VERSION" >&6; }
21355             fi # end check jdk version
21356           fi # end check rt.jar
21357         fi # end check javac
21358       fi # end check java
21359     fi # end check boot jdk found
21360   fi
21361 
21362 
21363   # Test: Is there a JDK installed in default, well-known locations?
21364 
21365   if test "x$BOOT_JDK_FOUND" = xno; then
21366     # Now execute the test
21367 
21368   if test "x$OPENJDK_TARGET_OS" = xwindows; then
21369 
21370   if test "x$BOOT_JDK_FOUND" = xno; then
21371     # Now execute the test
21372 
21373   if test "x$ProgramW6432" != x; then
21374     VIRTUAL_DIR="$ProgramW6432/Java"
21375 
21376   windows_path="$VIRTUAL_DIR"
21377   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21378     unix_path=`$CYGPATH -u "$windows_path"`
21379     VIRTUAL_DIR="$unix_path"
21380   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21381     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21382     VIRTUAL_DIR="$unix_path"
21383   fi
21384 
21385 
21386   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21387   BOOT_JDK_SUFFIX=""
21388   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21389   if test "x$ALL_JDKS_FOUND" != x; then
21390     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21391 
21392   if test "x$BOOT_JDK_FOUND" = xno; then
21393     # Now execute the test
21394 
21395         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21396         if test -d "$BOOT_JDK"; then
21397           BOOT_JDK_FOUND=maybe
21398           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21399 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21400         fi
21401 
21402 
21403     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21404     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21405       # Do we have a bin/java?
21406       if test ! -x "$BOOT_JDK/bin/java"; then
21407         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21408 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21409         BOOT_JDK_FOUND=no
21410       else
21411         # Do we have a bin/javac?
21412         if test ! -x "$BOOT_JDK/bin/javac"; then
21413           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21415           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21416 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21417           BOOT_JDK_FOUND=no
21418         else
21419           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21420           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21421             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21422 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21423             BOOT_JDK_FOUND=no
21424           else
21425             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21426             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21427 
21428             # Extra M4 quote needed to protect [] in grep expression.
21429             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21430             if test "x$FOUND_VERSION_78" = x; then
21431               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21433               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21434 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21435               BOOT_JDK_FOUND=no
21436             else
21437               # We're done! :-)
21438               BOOT_JDK_FOUND=yes
21439 
21440   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21441 
21442   # Input might be given as Windows format, start by converting to
21443   # unix format.
21444   path="$BOOT_JDK"
21445   new_path=`$CYGPATH -u "$path"`
21446 
21447   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21448   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21449   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21450   # "foo.exe" is OK but "foo" is an error.
21451   #
21452   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21453   # It is also a way to make sure we got the proper file name for the real test later on.
21454   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21455   if test "x$test_shortpath" = x; then
21456     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21458     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21459   fi
21460 
21461   # Call helper function which possibly converts this using DOS-style short mode.
21462   # If so, the updated path is stored in $new_path.
21463 
21464   input_path="$new_path"
21465   # Check if we need to convert this using DOS-style short mode. If the path
21466   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21467   # take no chances and rewrite it.
21468   # Note: m4 eats our [], so we need to use [ and ] instead.
21469   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21470   if test "x$has_forbidden_chars" != x; then
21471     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21472     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21473     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21474     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21475       # Going to short mode and back again did indeed matter. Since short mode is
21476       # case insensitive, let's make it lowercase to improve readability.
21477       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21478       # Now convert it back to Unix-style (cygpath)
21479       input_path=`$CYGPATH -u "$shortmode_path"`
21480       new_path="$input_path"
21481     fi
21482   fi
21483 
21484   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21485   if test "x$test_cygdrive_prefix" = x; then
21486     # As a simple fix, exclude /usr/bin since it's not a real path.
21487     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21488       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21489       # a path prefixed by /cygdrive for fixpath to work.
21490       new_path="$CYGWIN_ROOT_PATH$input_path"
21491     fi
21492   fi
21493 
21494 
21495   if test "x$path" != "x$new_path"; then
21496     BOOT_JDK="$new_path"
21497     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21498 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21499   fi
21500 
21501   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21502 
21503   path="$BOOT_JDK"
21504   has_colon=`$ECHO $path | $GREP ^.:`
21505   new_path="$path"
21506   if test "x$has_colon" = x; then
21507     # Not in mixed or Windows style, start by that.
21508     new_path=`cmd //c echo $path`
21509   fi
21510 
21511 
21512   input_path="$new_path"
21513   # Check if we need to convert this using DOS-style short mode. If the path
21514   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21515   # take no chances and rewrite it.
21516   # Note: m4 eats our [], so we need to use [ and ] instead.
21517   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21518   if test "x$has_forbidden_chars" != x; then
21519     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21520     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21521   fi
21522 
21523 
21524   windows_path="$new_path"
21525   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21526     unix_path=`$CYGPATH -u "$windows_path"`
21527     new_path="$unix_path"
21528   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21529     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21530     new_path="$unix_path"
21531   fi
21532 
21533   if test "x$path" != "x$new_path"; then
21534     BOOT_JDK="$new_path"
21535     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21537   fi
21538 
21539   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21540   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21541 
21542   else
21543     # We're on a posix platform. Hooray! :)
21544     path="$BOOT_JDK"
21545     has_space=`$ECHO "$path" | $GREP " "`
21546     if test "x$has_space" != x; then
21547       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21549       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21550     fi
21551 
21552     # Use eval to expand a potential ~
21553     eval path="$path"
21554     if test ! -f "$path" && test ! -d "$path"; then
21555       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21556     fi
21557 
21558     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21559   fi
21560 
21561               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21562 $as_echo_n "checking for Boot JDK... " >&6; }
21563               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21564 $as_echo "$BOOT_JDK" >&6; }
21565               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21566 $as_echo_n "checking Boot JDK version... " >&6; }
21567               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21568               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21569 $as_echo "$BOOT_JDK_VERSION" >&6; }
21570             fi # end check jdk version
21571           fi # end check rt.jar
21572         fi # end check javac
21573       fi # end check java
21574     fi # end check boot jdk found
21575   fi
21576 
21577     done
21578   fi
21579 
21580   fi
21581 
21582 
21583     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21584     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21585       # Do we have a bin/java?
21586       if test ! -x "$BOOT_JDK/bin/java"; then
21587         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21588 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21589         BOOT_JDK_FOUND=no
21590       else
21591         # Do we have a bin/javac?
21592         if test ! -x "$BOOT_JDK/bin/javac"; then
21593           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21595           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21596 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21597           BOOT_JDK_FOUND=no
21598         else
21599           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21600           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21601             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21602 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21603             BOOT_JDK_FOUND=no
21604           else
21605             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21606             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21607 
21608             # Extra M4 quote needed to protect [] in grep expression.
21609             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21610             if test "x$FOUND_VERSION_78" = x; then
21611               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21612 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21613               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21614 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21615               BOOT_JDK_FOUND=no
21616             else
21617               # We're done! :-)
21618               BOOT_JDK_FOUND=yes
21619 
21620   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21621 
21622   # Input might be given as Windows format, start by converting to
21623   # unix format.
21624   path="$BOOT_JDK"
21625   new_path=`$CYGPATH -u "$path"`
21626 
21627   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21628   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21629   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21630   # "foo.exe" is OK but "foo" is an error.
21631   #
21632   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21633   # It is also a way to make sure we got the proper file name for the real test later on.
21634   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21635   if test "x$test_shortpath" = x; then
21636     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21637 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21638     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21639   fi
21640 
21641   # Call helper function which possibly converts this using DOS-style short mode.
21642   # If so, the updated path is stored in $new_path.
21643 
21644   input_path="$new_path"
21645   # Check if we need to convert this using DOS-style short mode. If the path
21646   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21647   # take no chances and rewrite it.
21648   # Note: m4 eats our [], so we need to use [ and ] instead.
21649   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21650   if test "x$has_forbidden_chars" != x; then
21651     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21652     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21653     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21654     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21655       # Going to short mode and back again did indeed matter. Since short mode is
21656       # case insensitive, let's make it lowercase to improve readability.
21657       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21658       # Now convert it back to Unix-style (cygpath)
21659       input_path=`$CYGPATH -u "$shortmode_path"`
21660       new_path="$input_path"
21661     fi
21662   fi
21663 
21664   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21665   if test "x$test_cygdrive_prefix" = x; then
21666     # As a simple fix, exclude /usr/bin since it's not a real path.
21667     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21668       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21669       # a path prefixed by /cygdrive for fixpath to work.
21670       new_path="$CYGWIN_ROOT_PATH$input_path"
21671     fi
21672   fi
21673 
21674 
21675   if test "x$path" != "x$new_path"; then
21676     BOOT_JDK="$new_path"
21677     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21678 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21679   fi
21680 
21681   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21682 
21683   path="$BOOT_JDK"
21684   has_colon=`$ECHO $path | $GREP ^.:`
21685   new_path="$path"
21686   if test "x$has_colon" = x; then
21687     # Not in mixed or Windows style, start by that.
21688     new_path=`cmd //c echo $path`
21689   fi
21690 
21691 
21692   input_path="$new_path"
21693   # Check if we need to convert this using DOS-style short mode. If the path
21694   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21695   # take no chances and rewrite it.
21696   # Note: m4 eats our [], so we need to use [ and ] instead.
21697   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21698   if test "x$has_forbidden_chars" != x; then
21699     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21700     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21701   fi
21702 
21703 
21704   windows_path="$new_path"
21705   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21706     unix_path=`$CYGPATH -u "$windows_path"`
21707     new_path="$unix_path"
21708   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21709     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21710     new_path="$unix_path"
21711   fi
21712 
21713   if test "x$path" != "x$new_path"; then
21714     BOOT_JDK="$new_path"
21715     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21716 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21717   fi
21718 
21719   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21720   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21721 
21722   else
21723     # We're on a posix platform. Hooray! :)
21724     path="$BOOT_JDK"
21725     has_space=`$ECHO "$path" | $GREP " "`
21726     if test "x$has_space" != x; then
21727       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21728 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21729       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21730     fi
21731 
21732     # Use eval to expand a potential ~
21733     eval path="$path"
21734     if test ! -f "$path" && test ! -d "$path"; then
21735       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21736     fi
21737 
21738     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21739   fi
21740 
21741               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21742 $as_echo_n "checking for Boot JDK... " >&6; }
21743               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21744 $as_echo "$BOOT_JDK" >&6; }
21745               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21746 $as_echo_n "checking Boot JDK version... " >&6; }
21747               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21748               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21749 $as_echo "$BOOT_JDK_VERSION" >&6; }
21750             fi # end check jdk version
21751           fi # end check rt.jar
21752         fi # end check javac
21753       fi # end check java
21754     fi # end check boot jdk found
21755   fi
21756 
21757 
21758   if test "x$BOOT_JDK_FOUND" = xno; then
21759     # Now execute the test
21760 
21761   if test "x$PROGRAMW6432" != x; then
21762     VIRTUAL_DIR="$PROGRAMW6432/Java"
21763 
21764   windows_path="$VIRTUAL_DIR"
21765   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21766     unix_path=`$CYGPATH -u "$windows_path"`
21767     VIRTUAL_DIR="$unix_path"
21768   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21769     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21770     VIRTUAL_DIR="$unix_path"
21771   fi
21772 
21773 
21774   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
21775   BOOT_JDK_SUFFIX=""
21776   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
21777   if test "x$ALL_JDKS_FOUND" != x; then
21778     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
21779 
21780   if test "x$BOOT_JDK_FOUND" = xno; then
21781     # Now execute the test
21782 
21783         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
21784         if test -d "$BOOT_JDK"; then
21785           BOOT_JDK_FOUND=maybe
21786           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
21787 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
21788         fi
21789 
21790 
21791     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21792     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21793       # Do we have a bin/java?
21794       if test ! -x "$BOOT_JDK/bin/java"; then
21795         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21796 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21797         BOOT_JDK_FOUND=no
21798       else
21799         # Do we have a bin/javac?
21800         if test ! -x "$BOOT_JDK/bin/javac"; then
21801           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21803           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21804 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21805           BOOT_JDK_FOUND=no
21806         else
21807           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21808           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21809             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21810 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21811             BOOT_JDK_FOUND=no
21812           else
21813             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21814             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21815 
21816             # Extra M4 quote needed to protect [] in grep expression.
21817             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21818             if test "x$FOUND_VERSION_78" = x; then
21819               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
21820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
21821               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
21822 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
21823               BOOT_JDK_FOUND=no
21824             else
21825               # We're done! :-)
21826               BOOT_JDK_FOUND=yes
21827 
21828   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21829 
21830   # Input might be given as Windows format, start by converting to
21831   # unix format.
21832   path="$BOOT_JDK"
21833   new_path=`$CYGPATH -u "$path"`
21834 
21835   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
21836   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
21837   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
21838   # "foo.exe" is OK but "foo" is an error.
21839   #
21840   # This test is therefore slightly more accurate than "test -f" to check for file precense.
21841   # It is also a way to make sure we got the proper file name for the real test later on.
21842   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
21843   if test "x$test_shortpath" = x; then
21844     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21845 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21846     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
21847   fi
21848 
21849   # Call helper function which possibly converts this using DOS-style short mode.
21850   # If so, the updated path is stored in $new_path.
21851 
21852   input_path="$new_path"
21853   # Check if we need to convert this using DOS-style short mode. If the path
21854   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21855   # take no chances and rewrite it.
21856   # Note: m4 eats our [], so we need to use [ and ] instead.
21857   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
21858   if test "x$has_forbidden_chars" != x; then
21859     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21860     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
21861     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
21862     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
21863       # Going to short mode and back again did indeed matter. Since short mode is
21864       # case insensitive, let's make it lowercase to improve readability.
21865       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21866       # Now convert it back to Unix-style (cygpath)
21867       input_path=`$CYGPATH -u "$shortmode_path"`
21868       new_path="$input_path"
21869     fi
21870   fi
21871 
21872   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
21873   if test "x$test_cygdrive_prefix" = x; then
21874     # As a simple fix, exclude /usr/bin since it's not a real path.
21875     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
21876       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
21877       # a path prefixed by /cygdrive for fixpath to work.
21878       new_path="$CYGWIN_ROOT_PATH$input_path"
21879     fi
21880   fi
21881 
21882 
21883   if test "x$path" != "x$new_path"; then
21884     BOOT_JDK="$new_path"
21885     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21886 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21887   fi
21888 
21889   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21890 
21891   path="$BOOT_JDK"
21892   has_colon=`$ECHO $path | $GREP ^.:`
21893   new_path="$path"
21894   if test "x$has_colon" = x; then
21895     # Not in mixed or Windows style, start by that.
21896     new_path=`cmd //c echo $path`
21897   fi
21898 
21899 
21900   input_path="$new_path"
21901   # Check if we need to convert this using DOS-style short mode. If the path
21902   # contains just simple characters, use it. Otherwise (spaces, weird characters),
21903   # take no chances and rewrite it.
21904   # Note: m4 eats our [], so we need to use [ and ] instead.
21905   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
21906   if test "x$has_forbidden_chars" != x; then
21907     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
21908     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
21909   fi
21910 
21911 
21912   windows_path="$new_path"
21913   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
21914     unix_path=`$CYGPATH -u "$windows_path"`
21915     new_path="$unix_path"
21916   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
21917     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
21918     new_path="$unix_path"
21919   fi
21920 
21921   if test "x$path" != "x$new_path"; then
21922     BOOT_JDK="$new_path"
21923     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
21924 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
21925   fi
21926 
21927   # Save the first 10 bytes of this path to the storage, so fixpath can work.
21928   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
21929 
21930   else
21931     # We're on a posix platform. Hooray! :)
21932     path="$BOOT_JDK"
21933     has_space=`$ECHO "$path" | $GREP " "`
21934     if test "x$has_space" != x; then
21935       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
21936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
21937       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
21938     fi
21939 
21940     # Use eval to expand a potential ~
21941     eval path="$path"
21942     if test ! -f "$path" && test ! -d "$path"; then
21943       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
21944     fi
21945 
21946     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
21947   fi
21948 
21949               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
21950 $as_echo_n "checking for Boot JDK... " >&6; }
21951               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
21952 $as_echo "$BOOT_JDK" >&6; }
21953               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
21954 $as_echo_n "checking Boot JDK version... " >&6; }
21955               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
21956               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
21957 $as_echo "$BOOT_JDK_VERSION" >&6; }
21958             fi # end check jdk version
21959           fi # end check rt.jar
21960         fi # end check javac
21961       fi # end check java
21962     fi # end check boot jdk found
21963   fi
21964 
21965     done
21966   fi
21967 
21968   fi
21969 
21970 
21971     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
21972     if test "x$BOOT_JDK_FOUND" = xmaybe; then
21973       # Do we have a bin/java?
21974       if test ! -x "$BOOT_JDK/bin/java"; then
21975         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
21976 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
21977         BOOT_JDK_FOUND=no
21978       else
21979         # Do we have a bin/javac?
21980         if test ! -x "$BOOT_JDK/bin/javac"; then
21981           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
21982 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
21983           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
21984 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
21985           BOOT_JDK_FOUND=no
21986         else
21987           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
21988           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
21989             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
21990 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
21991             BOOT_JDK_FOUND=no
21992           else
21993             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
21994             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
21995 
21996             # Extra M4 quote needed to protect [] in grep expression.
21997             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
21998             if test "x$FOUND_VERSION_78" = x; then
21999               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22000 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22001               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22002 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22003               BOOT_JDK_FOUND=no
22004             else
22005               # We're done! :-)
22006               BOOT_JDK_FOUND=yes
22007 
22008   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22009 
22010   # Input might be given as Windows format, start by converting to
22011   # unix format.
22012   path="$BOOT_JDK"
22013   new_path=`$CYGPATH -u "$path"`
22014 
22015   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22016   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22017   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22018   # "foo.exe" is OK but "foo" is an error.
22019   #
22020   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22021   # It is also a way to make sure we got the proper file name for the real test later on.
22022   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22023   if test "x$test_shortpath" = x; then
22024     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22025 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22026     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22027   fi
22028 
22029   # Call helper function which possibly converts this using DOS-style short mode.
22030   # If so, the updated path is stored in $new_path.
22031 
22032   input_path="$new_path"
22033   # Check if we need to convert this using DOS-style short mode. If the path
22034   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22035   # take no chances and rewrite it.
22036   # Note: m4 eats our [], so we need to use [ and ] instead.
22037   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22038   if test "x$has_forbidden_chars" != x; then
22039     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22040     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22041     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22042     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22043       # Going to short mode and back again did indeed matter. Since short mode is
22044       # case insensitive, let's make it lowercase to improve readability.
22045       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22046       # Now convert it back to Unix-style (cygpath)
22047       input_path=`$CYGPATH -u "$shortmode_path"`
22048       new_path="$input_path"
22049     fi
22050   fi
22051 
22052   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22053   if test "x$test_cygdrive_prefix" = x; then
22054     # As a simple fix, exclude /usr/bin since it's not a real path.
22055     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22056       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22057       # a path prefixed by /cygdrive for fixpath to work.
22058       new_path="$CYGWIN_ROOT_PATH$input_path"
22059     fi
22060   fi
22061 
22062 
22063   if test "x$path" != "x$new_path"; then
22064     BOOT_JDK="$new_path"
22065     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22066 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22067   fi
22068 
22069   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22070 
22071   path="$BOOT_JDK"
22072   has_colon=`$ECHO $path | $GREP ^.:`
22073   new_path="$path"
22074   if test "x$has_colon" = x; then
22075     # Not in mixed or Windows style, start by that.
22076     new_path=`cmd //c echo $path`
22077   fi
22078 
22079 
22080   input_path="$new_path"
22081   # Check if we need to convert this using DOS-style short mode. If the path
22082   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22083   # take no chances and rewrite it.
22084   # Note: m4 eats our [], so we need to use [ and ] instead.
22085   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22086   if test "x$has_forbidden_chars" != x; then
22087     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22088     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22089   fi
22090 
22091 
22092   windows_path="$new_path"
22093   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22094     unix_path=`$CYGPATH -u "$windows_path"`
22095     new_path="$unix_path"
22096   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22097     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22098     new_path="$unix_path"
22099   fi
22100 
22101   if test "x$path" != "x$new_path"; then
22102     BOOT_JDK="$new_path"
22103     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22104 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22105   fi
22106 
22107   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22108   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22109 
22110   else
22111     # We're on a posix platform. Hooray! :)
22112     path="$BOOT_JDK"
22113     has_space=`$ECHO "$path" | $GREP " "`
22114     if test "x$has_space" != x; then
22115       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22116 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22117       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22118     fi
22119 
22120     # Use eval to expand a potential ~
22121     eval path="$path"
22122     if test ! -f "$path" && test ! -d "$path"; then
22123       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22124     fi
22125 
22126     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22127   fi
22128 
22129               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22130 $as_echo_n "checking for Boot JDK... " >&6; }
22131               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22132 $as_echo "$BOOT_JDK" >&6; }
22133               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22134 $as_echo_n "checking Boot JDK version... " >&6; }
22135               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22136               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22137 $as_echo "$BOOT_JDK_VERSION" >&6; }
22138             fi # end check jdk version
22139           fi # end check rt.jar
22140         fi # end check javac
22141       fi # end check java
22142     fi # end check boot jdk found
22143   fi
22144 
22145 
22146   if test "x$BOOT_JDK_FOUND" = xno; then
22147     # Now execute the test
22148 
22149   if test "x$PROGRAMFILES" != x; then
22150     VIRTUAL_DIR="$PROGRAMFILES/Java"
22151 
22152   windows_path="$VIRTUAL_DIR"
22153   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22154     unix_path=`$CYGPATH -u "$windows_path"`
22155     VIRTUAL_DIR="$unix_path"
22156   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22157     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22158     VIRTUAL_DIR="$unix_path"
22159   fi
22160 
22161 
22162   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22163   BOOT_JDK_SUFFIX=""
22164   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22165   if test "x$ALL_JDKS_FOUND" != x; then
22166     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22167 
22168   if test "x$BOOT_JDK_FOUND" = xno; then
22169     # Now execute the test
22170 
22171         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22172         if test -d "$BOOT_JDK"; then
22173           BOOT_JDK_FOUND=maybe
22174           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22175 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22176         fi
22177 
22178 
22179     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22180     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22181       # Do we have a bin/java?
22182       if test ! -x "$BOOT_JDK/bin/java"; then
22183         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22184 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22185         BOOT_JDK_FOUND=no
22186       else
22187         # Do we have a bin/javac?
22188         if test ! -x "$BOOT_JDK/bin/javac"; then
22189           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22190 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22191           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22192 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22193           BOOT_JDK_FOUND=no
22194         else
22195           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22196           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22197             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22199             BOOT_JDK_FOUND=no
22200           else
22201             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22202             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22203 
22204             # Extra M4 quote needed to protect [] in grep expression.
22205             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22206             if test "x$FOUND_VERSION_78" = x; then
22207               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22208 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22209               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22210 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22211               BOOT_JDK_FOUND=no
22212             else
22213               # We're done! :-)
22214               BOOT_JDK_FOUND=yes
22215 
22216   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22217 
22218   # Input might be given as Windows format, start by converting to
22219   # unix format.
22220   path="$BOOT_JDK"
22221   new_path=`$CYGPATH -u "$path"`
22222 
22223   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22224   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22225   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22226   # "foo.exe" is OK but "foo" is an error.
22227   #
22228   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22229   # It is also a way to make sure we got the proper file name for the real test later on.
22230   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22231   if test "x$test_shortpath" = x; then
22232     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22233 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22234     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22235   fi
22236 
22237   # Call helper function which possibly converts this using DOS-style short mode.
22238   # If so, the updated path is stored in $new_path.
22239 
22240   input_path="$new_path"
22241   # Check if we need to convert this using DOS-style short mode. If the path
22242   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22243   # take no chances and rewrite it.
22244   # Note: m4 eats our [], so we need to use [ and ] instead.
22245   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22246   if test "x$has_forbidden_chars" != x; then
22247     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22248     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22249     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22250     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22251       # Going to short mode and back again did indeed matter. Since short mode is
22252       # case insensitive, let's make it lowercase to improve readability.
22253       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22254       # Now convert it back to Unix-style (cygpath)
22255       input_path=`$CYGPATH -u "$shortmode_path"`
22256       new_path="$input_path"
22257     fi
22258   fi
22259 
22260   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22261   if test "x$test_cygdrive_prefix" = x; then
22262     # As a simple fix, exclude /usr/bin since it's not a real path.
22263     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22264       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22265       # a path prefixed by /cygdrive for fixpath to work.
22266       new_path="$CYGWIN_ROOT_PATH$input_path"
22267     fi
22268   fi
22269 
22270 
22271   if test "x$path" != "x$new_path"; then
22272     BOOT_JDK="$new_path"
22273     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22274 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22275   fi
22276 
22277   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22278 
22279   path="$BOOT_JDK"
22280   has_colon=`$ECHO $path | $GREP ^.:`
22281   new_path="$path"
22282   if test "x$has_colon" = x; then
22283     # Not in mixed or Windows style, start by that.
22284     new_path=`cmd //c echo $path`
22285   fi
22286 
22287 
22288   input_path="$new_path"
22289   # Check if we need to convert this using DOS-style short mode. If the path
22290   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22291   # take no chances and rewrite it.
22292   # Note: m4 eats our [], so we need to use [ and ] instead.
22293   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22294   if test "x$has_forbidden_chars" != x; then
22295     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22296     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22297   fi
22298 
22299 
22300   windows_path="$new_path"
22301   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22302     unix_path=`$CYGPATH -u "$windows_path"`
22303     new_path="$unix_path"
22304   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22305     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22306     new_path="$unix_path"
22307   fi
22308 
22309   if test "x$path" != "x$new_path"; then
22310     BOOT_JDK="$new_path"
22311     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22312 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22313   fi
22314 
22315   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22316   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22317 
22318   else
22319     # We're on a posix platform. Hooray! :)
22320     path="$BOOT_JDK"
22321     has_space=`$ECHO "$path" | $GREP " "`
22322     if test "x$has_space" != x; then
22323       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22325       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22326     fi
22327 
22328     # Use eval to expand a potential ~
22329     eval path="$path"
22330     if test ! -f "$path" && test ! -d "$path"; then
22331       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22332     fi
22333 
22334     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22335   fi
22336 
22337               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22338 $as_echo_n "checking for Boot JDK... " >&6; }
22339               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22340 $as_echo "$BOOT_JDK" >&6; }
22341               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22342 $as_echo_n "checking Boot JDK version... " >&6; }
22343               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22344               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22345 $as_echo "$BOOT_JDK_VERSION" >&6; }
22346             fi # end check jdk version
22347           fi # end check rt.jar
22348         fi # end check javac
22349       fi # end check java
22350     fi # end check boot jdk found
22351   fi
22352 
22353     done
22354   fi
22355 
22356   fi
22357 
22358 
22359     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22360     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22361       # Do we have a bin/java?
22362       if test ! -x "$BOOT_JDK/bin/java"; then
22363         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22364 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22365         BOOT_JDK_FOUND=no
22366       else
22367         # Do we have a bin/javac?
22368         if test ! -x "$BOOT_JDK/bin/javac"; then
22369           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22370 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22371           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22372 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22373           BOOT_JDK_FOUND=no
22374         else
22375           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22376           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22377             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22378 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22379             BOOT_JDK_FOUND=no
22380           else
22381             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22382             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22383 
22384             # Extra M4 quote needed to protect [] in grep expression.
22385             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22386             if test "x$FOUND_VERSION_78" = x; then
22387               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22388 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22389               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22390 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22391               BOOT_JDK_FOUND=no
22392             else
22393               # We're done! :-)
22394               BOOT_JDK_FOUND=yes
22395 
22396   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22397 
22398   # Input might be given as Windows format, start by converting to
22399   # unix format.
22400   path="$BOOT_JDK"
22401   new_path=`$CYGPATH -u "$path"`
22402 
22403   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22404   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22405   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22406   # "foo.exe" is OK but "foo" is an error.
22407   #
22408   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22409   # It is also a way to make sure we got the proper file name for the real test later on.
22410   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22411   if test "x$test_shortpath" = x; then
22412     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22413 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22414     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22415   fi
22416 
22417   # Call helper function which possibly converts this using DOS-style short mode.
22418   # If so, the updated path is stored in $new_path.
22419 
22420   input_path="$new_path"
22421   # Check if we need to convert this using DOS-style short mode. If the path
22422   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22423   # take no chances and rewrite it.
22424   # Note: m4 eats our [], so we need to use [ and ] instead.
22425   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22426   if test "x$has_forbidden_chars" != x; then
22427     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22428     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22429     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22430     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22431       # Going to short mode and back again did indeed matter. Since short mode is
22432       # case insensitive, let's make it lowercase to improve readability.
22433       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22434       # Now convert it back to Unix-style (cygpath)
22435       input_path=`$CYGPATH -u "$shortmode_path"`
22436       new_path="$input_path"
22437     fi
22438   fi
22439 
22440   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22441   if test "x$test_cygdrive_prefix" = x; then
22442     # As a simple fix, exclude /usr/bin since it's not a real path.
22443     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22444       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22445       # a path prefixed by /cygdrive for fixpath to work.
22446       new_path="$CYGWIN_ROOT_PATH$input_path"
22447     fi
22448   fi
22449 
22450 
22451   if test "x$path" != "x$new_path"; then
22452     BOOT_JDK="$new_path"
22453     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22454 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22455   fi
22456 
22457   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22458 
22459   path="$BOOT_JDK"
22460   has_colon=`$ECHO $path | $GREP ^.:`
22461   new_path="$path"
22462   if test "x$has_colon" = x; then
22463     # Not in mixed or Windows style, start by that.
22464     new_path=`cmd //c echo $path`
22465   fi
22466 
22467 
22468   input_path="$new_path"
22469   # Check if we need to convert this using DOS-style short mode. If the path
22470   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22471   # take no chances and rewrite it.
22472   # Note: m4 eats our [], so we need to use [ and ] instead.
22473   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22474   if test "x$has_forbidden_chars" != x; then
22475     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22476     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22477   fi
22478 
22479 
22480   windows_path="$new_path"
22481   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22482     unix_path=`$CYGPATH -u "$windows_path"`
22483     new_path="$unix_path"
22484   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22485     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22486     new_path="$unix_path"
22487   fi
22488 
22489   if test "x$path" != "x$new_path"; then
22490     BOOT_JDK="$new_path"
22491     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22492 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22493   fi
22494 
22495   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22496   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22497 
22498   else
22499     # We're on a posix platform. Hooray! :)
22500     path="$BOOT_JDK"
22501     has_space=`$ECHO "$path" | $GREP " "`
22502     if test "x$has_space" != x; then
22503       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22504 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22505       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22506     fi
22507 
22508     # Use eval to expand a potential ~
22509     eval path="$path"
22510     if test ! -f "$path" && test ! -d "$path"; then
22511       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22512     fi
22513 
22514     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22515   fi
22516 
22517               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22518 $as_echo_n "checking for Boot JDK... " >&6; }
22519               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22520 $as_echo "$BOOT_JDK" >&6; }
22521               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22522 $as_echo_n "checking Boot JDK version... " >&6; }
22523               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22524               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22525 $as_echo "$BOOT_JDK_VERSION" >&6; }
22526             fi # end check jdk version
22527           fi # end check rt.jar
22528         fi # end check javac
22529       fi # end check java
22530     fi # end check boot jdk found
22531   fi
22532 
22533 
22534   if test "x$BOOT_JDK_FOUND" = xno; then
22535     # Now execute the test
22536 
22537   if test "x$ProgramFiles" != x; then
22538     VIRTUAL_DIR="$ProgramFiles/Java"
22539 
22540   windows_path="$VIRTUAL_DIR"
22541   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22542     unix_path=`$CYGPATH -u "$windows_path"`
22543     VIRTUAL_DIR="$unix_path"
22544   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22545     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22546     VIRTUAL_DIR="$unix_path"
22547   fi
22548 
22549 
22550   BOOT_JDK_PREFIX="$VIRTUAL_DIR"
22551   BOOT_JDK_SUFFIX=""
22552   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22553   if test "x$ALL_JDKS_FOUND" != x; then
22554     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22555 
22556   if test "x$BOOT_JDK_FOUND" = xno; then
22557     # Now execute the test
22558 
22559         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22560         if test -d "$BOOT_JDK"; then
22561           BOOT_JDK_FOUND=maybe
22562           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22563 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22564         fi
22565 
22566 
22567     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22568     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22569       # Do we have a bin/java?
22570       if test ! -x "$BOOT_JDK/bin/java"; then
22571         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22572 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22573         BOOT_JDK_FOUND=no
22574       else
22575         # Do we have a bin/javac?
22576         if test ! -x "$BOOT_JDK/bin/javac"; then
22577           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22578 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22579           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22580 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22581           BOOT_JDK_FOUND=no
22582         else
22583           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22584           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22585             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22586 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22587             BOOT_JDK_FOUND=no
22588           else
22589             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22590             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22591 
22592             # Extra M4 quote needed to protect [] in grep expression.
22593             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22594             if test "x$FOUND_VERSION_78" = x; then
22595               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22596 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22597               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22598 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22599               BOOT_JDK_FOUND=no
22600             else
22601               # We're done! :-)
22602               BOOT_JDK_FOUND=yes
22603 
22604   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22605 
22606   # Input might be given as Windows format, start by converting to
22607   # unix format.
22608   path="$BOOT_JDK"
22609   new_path=`$CYGPATH -u "$path"`
22610 
22611   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22612   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22613   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22614   # "foo.exe" is OK but "foo" is an error.
22615   #
22616   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22617   # It is also a way to make sure we got the proper file name for the real test later on.
22618   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22619   if test "x$test_shortpath" = x; then
22620     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22621 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22622     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22623   fi
22624 
22625   # Call helper function which possibly converts this using DOS-style short mode.
22626   # If so, the updated path is stored in $new_path.
22627 
22628   input_path="$new_path"
22629   # Check if we need to convert this using DOS-style short mode. If the path
22630   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22631   # take no chances and rewrite it.
22632   # Note: m4 eats our [], so we need to use [ and ] instead.
22633   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22634   if test "x$has_forbidden_chars" != x; then
22635     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22636     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22637     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22638     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22639       # Going to short mode and back again did indeed matter. Since short mode is
22640       # case insensitive, let's make it lowercase to improve readability.
22641       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22642       # Now convert it back to Unix-style (cygpath)
22643       input_path=`$CYGPATH -u "$shortmode_path"`
22644       new_path="$input_path"
22645     fi
22646   fi
22647 
22648   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22649   if test "x$test_cygdrive_prefix" = x; then
22650     # As a simple fix, exclude /usr/bin since it's not a real path.
22651     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22652       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22653       # a path prefixed by /cygdrive for fixpath to work.
22654       new_path="$CYGWIN_ROOT_PATH$input_path"
22655     fi
22656   fi
22657 
22658 
22659   if test "x$path" != "x$new_path"; then
22660     BOOT_JDK="$new_path"
22661     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22662 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22663   fi
22664 
22665   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22666 
22667   path="$BOOT_JDK"
22668   has_colon=`$ECHO $path | $GREP ^.:`
22669   new_path="$path"
22670   if test "x$has_colon" = x; then
22671     # Not in mixed or Windows style, start by that.
22672     new_path=`cmd //c echo $path`
22673   fi
22674 
22675 
22676   input_path="$new_path"
22677   # Check if we need to convert this using DOS-style short mode. If the path
22678   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22679   # take no chances and rewrite it.
22680   # Note: m4 eats our [], so we need to use [ and ] instead.
22681   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22682   if test "x$has_forbidden_chars" != x; then
22683     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22684     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22685   fi
22686 
22687 
22688   windows_path="$new_path"
22689   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22690     unix_path=`$CYGPATH -u "$windows_path"`
22691     new_path="$unix_path"
22692   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22693     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22694     new_path="$unix_path"
22695   fi
22696 
22697   if test "x$path" != "x$new_path"; then
22698     BOOT_JDK="$new_path"
22699     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22700 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22701   fi
22702 
22703   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22704   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22705 
22706   else
22707     # We're on a posix platform. Hooray! :)
22708     path="$BOOT_JDK"
22709     has_space=`$ECHO "$path" | $GREP " "`
22710     if test "x$has_space" != x; then
22711       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22712 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22713       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22714     fi
22715 
22716     # Use eval to expand a potential ~
22717     eval path="$path"
22718     if test ! -f "$path" && test ! -d "$path"; then
22719       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22720     fi
22721 
22722     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22723   fi
22724 
22725               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22726 $as_echo_n "checking for Boot JDK... " >&6; }
22727               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22728 $as_echo "$BOOT_JDK" >&6; }
22729               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22730 $as_echo_n "checking Boot JDK version... " >&6; }
22731               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22732               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22733 $as_echo "$BOOT_JDK_VERSION" >&6; }
22734             fi # end check jdk version
22735           fi # end check rt.jar
22736         fi # end check javac
22737       fi # end check java
22738     fi # end check boot jdk found
22739   fi
22740 
22741     done
22742   fi
22743 
22744   fi
22745 
22746 
22747     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22748     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22749       # Do we have a bin/java?
22750       if test ! -x "$BOOT_JDK/bin/java"; then
22751         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22752 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22753         BOOT_JDK_FOUND=no
22754       else
22755         # Do we have a bin/javac?
22756         if test ! -x "$BOOT_JDK/bin/javac"; then
22757           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22758 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22759           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22760 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22761           BOOT_JDK_FOUND=no
22762         else
22763           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22764           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22765             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22767             BOOT_JDK_FOUND=no
22768           else
22769             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22770             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22771 
22772             # Extra M4 quote needed to protect [] in grep expression.
22773             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22774             if test "x$FOUND_VERSION_78" = x; then
22775               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22776 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22777               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22778 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22779               BOOT_JDK_FOUND=no
22780             else
22781               # We're done! :-)
22782               BOOT_JDK_FOUND=yes
22783 
22784   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22785 
22786   # Input might be given as Windows format, start by converting to
22787   # unix format.
22788   path="$BOOT_JDK"
22789   new_path=`$CYGPATH -u "$path"`
22790 
22791   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22792   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22793   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22794   # "foo.exe" is OK but "foo" is an error.
22795   #
22796   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22797   # It is also a way to make sure we got the proper file name for the real test later on.
22798   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22799   if test "x$test_shortpath" = x; then
22800     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22801 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22802     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22803   fi
22804 
22805   # Call helper function which possibly converts this using DOS-style short mode.
22806   # If so, the updated path is stored in $new_path.
22807 
22808   input_path="$new_path"
22809   # Check if we need to convert this using DOS-style short mode. If the path
22810   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22811   # take no chances and rewrite it.
22812   # Note: m4 eats our [], so we need to use [ and ] instead.
22813   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
22814   if test "x$has_forbidden_chars" != x; then
22815     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22816     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
22817     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
22818     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
22819       # Going to short mode and back again did indeed matter. Since short mode is
22820       # case insensitive, let's make it lowercase to improve readability.
22821       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22822       # Now convert it back to Unix-style (cygpath)
22823       input_path=`$CYGPATH -u "$shortmode_path"`
22824       new_path="$input_path"
22825     fi
22826   fi
22827 
22828   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
22829   if test "x$test_cygdrive_prefix" = x; then
22830     # As a simple fix, exclude /usr/bin since it's not a real path.
22831     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
22832       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
22833       # a path prefixed by /cygdrive for fixpath to work.
22834       new_path="$CYGWIN_ROOT_PATH$input_path"
22835     fi
22836   fi
22837 
22838 
22839   if test "x$path" != "x$new_path"; then
22840     BOOT_JDK="$new_path"
22841     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22842 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22843   fi
22844 
22845   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22846 
22847   path="$BOOT_JDK"
22848   has_colon=`$ECHO $path | $GREP ^.:`
22849   new_path="$path"
22850   if test "x$has_colon" = x; then
22851     # Not in mixed or Windows style, start by that.
22852     new_path=`cmd //c echo $path`
22853   fi
22854 
22855 
22856   input_path="$new_path"
22857   # Check if we need to convert this using DOS-style short mode. If the path
22858   # contains just simple characters, use it. Otherwise (spaces, weird characters),
22859   # take no chances and rewrite it.
22860   # Note: m4 eats our [], so we need to use [ and ] instead.
22861   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
22862   if test "x$has_forbidden_chars" != x; then
22863     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
22864     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
22865   fi
22866 
22867 
22868   windows_path="$new_path"
22869   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22870     unix_path=`$CYGPATH -u "$windows_path"`
22871     new_path="$unix_path"
22872   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
22873     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
22874     new_path="$unix_path"
22875   fi
22876 
22877   if test "x$path" != "x$new_path"; then
22878     BOOT_JDK="$new_path"
22879     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
22880 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
22881   fi
22882 
22883   # Save the first 10 bytes of this path to the storage, so fixpath can work.
22884   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
22885 
22886   else
22887     # We're on a posix platform. Hooray! :)
22888     path="$BOOT_JDK"
22889     has_space=`$ECHO "$path" | $GREP " "`
22890     if test "x$has_space" != x; then
22891       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22892 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22893       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
22894     fi
22895 
22896     # Use eval to expand a potential ~
22897     eval path="$path"
22898     if test ! -f "$path" && test ! -d "$path"; then
22899       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
22900     fi
22901 
22902     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
22903   fi
22904 
22905               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
22906 $as_echo_n "checking for Boot JDK... " >&6; }
22907               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
22908 $as_echo "$BOOT_JDK" >&6; }
22909               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
22910 $as_echo_n "checking Boot JDK version... " >&6; }
22911               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
22912               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
22913 $as_echo "$BOOT_JDK_VERSION" >&6; }
22914             fi # end check jdk version
22915           fi # end check rt.jar
22916         fi # end check javac
22917       fi # end check java
22918     fi # end check boot jdk found
22919   fi
22920 
22921 
22922   if test "x$BOOT_JDK_FOUND" = xno; then
22923     # Now execute the test
22924 
22925   BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java"
22926   BOOT_JDK_SUFFIX=""
22927   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
22928   if test "x$ALL_JDKS_FOUND" != x; then
22929     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
22930 
22931   if test "x$BOOT_JDK_FOUND" = xno; then
22932     # Now execute the test
22933 
22934         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
22935         if test -d "$BOOT_JDK"; then
22936           BOOT_JDK_FOUND=maybe
22937           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
22938 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
22939         fi
22940 
22941 
22942     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
22943     if test "x$BOOT_JDK_FOUND" = xmaybe; then
22944       # Do we have a bin/java?
22945       if test ! -x "$BOOT_JDK/bin/java"; then
22946         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
22947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
22948         BOOT_JDK_FOUND=no
22949       else
22950         # Do we have a bin/javac?
22951         if test ! -x "$BOOT_JDK/bin/javac"; then
22952           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
22953 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
22954           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
22955 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
22956           BOOT_JDK_FOUND=no
22957         else
22958           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
22959           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
22960             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
22961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
22962             BOOT_JDK_FOUND=no
22963           else
22964             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
22965             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
22966 
22967             # Extra M4 quote needed to protect [] in grep expression.
22968             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
22969             if test "x$FOUND_VERSION_78" = x; then
22970               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
22971 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
22972               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
22973 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
22974               BOOT_JDK_FOUND=no
22975             else
22976               # We're done! :-)
22977               BOOT_JDK_FOUND=yes
22978 
22979   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
22980 
22981   # Input might be given as Windows format, start by converting to
22982   # unix format.
22983   path="$BOOT_JDK"
22984   new_path=`$CYGPATH -u "$path"`
22985 
22986   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
22987   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
22988   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
22989   # "foo.exe" is OK but "foo" is an error.
22990   #
22991   # This test is therefore slightly more accurate than "test -f" to check for file precense.
22992   # It is also a way to make sure we got the proper file name for the real test later on.
22993   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
22994   if test "x$test_shortpath" = x; then
22995     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
22996 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
22997     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
22998   fi
22999 
23000   # Call helper function which possibly converts this using DOS-style short mode.
23001   # If so, the updated path is stored in $new_path.
23002 
23003   input_path="$new_path"
23004   # Check if we need to convert this using DOS-style short mode. If the path
23005   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23006   # take no chances and rewrite it.
23007   # Note: m4 eats our [], so we need to use [ and ] instead.
23008   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23009   if test "x$has_forbidden_chars" != x; then
23010     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23011     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23012     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23013     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23014       # Going to short mode and back again did indeed matter. Since short mode is
23015       # case insensitive, let's make it lowercase to improve readability.
23016       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23017       # Now convert it back to Unix-style (cygpath)
23018       input_path=`$CYGPATH -u "$shortmode_path"`
23019       new_path="$input_path"
23020     fi
23021   fi
23022 
23023   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23024   if test "x$test_cygdrive_prefix" = x; then
23025     # As a simple fix, exclude /usr/bin since it's not a real path.
23026     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23027       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23028       # a path prefixed by /cygdrive for fixpath to work.
23029       new_path="$CYGWIN_ROOT_PATH$input_path"
23030     fi
23031   fi
23032 
23033 
23034   if test "x$path" != "x$new_path"; then
23035     BOOT_JDK="$new_path"
23036     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23037 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23038   fi
23039 
23040   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23041 
23042   path="$BOOT_JDK"
23043   has_colon=`$ECHO $path | $GREP ^.:`
23044   new_path="$path"
23045   if test "x$has_colon" = x; then
23046     # Not in mixed or Windows style, start by that.
23047     new_path=`cmd //c echo $path`
23048   fi
23049 
23050 
23051   input_path="$new_path"
23052   # Check if we need to convert this using DOS-style short mode. If the path
23053   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23054   # take no chances and rewrite it.
23055   # Note: m4 eats our [], so we need to use [ and ] instead.
23056   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23057   if test "x$has_forbidden_chars" != x; then
23058     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23059     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23060   fi
23061 
23062 
23063   windows_path="$new_path"
23064   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23065     unix_path=`$CYGPATH -u "$windows_path"`
23066     new_path="$unix_path"
23067   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23068     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23069     new_path="$unix_path"
23070   fi
23071 
23072   if test "x$path" != "x$new_path"; then
23073     BOOT_JDK="$new_path"
23074     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23075 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23076   fi
23077 
23078   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23079   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23080 
23081   else
23082     # We're on a posix platform. Hooray! :)
23083     path="$BOOT_JDK"
23084     has_space=`$ECHO "$path" | $GREP " "`
23085     if test "x$has_space" != x; then
23086       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23087 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23088       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23089     fi
23090 
23091     # Use eval to expand a potential ~
23092     eval path="$path"
23093     if test ! -f "$path" && test ! -d "$path"; then
23094       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23095     fi
23096 
23097     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23098   fi
23099 
23100               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23101 $as_echo_n "checking for Boot JDK... " >&6; }
23102               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23103 $as_echo "$BOOT_JDK" >&6; }
23104               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23105 $as_echo_n "checking Boot JDK version... " >&6; }
23106               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23107               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23108 $as_echo "$BOOT_JDK_VERSION" >&6; }
23109             fi # end check jdk version
23110           fi # end check rt.jar
23111         fi # end check javac
23112       fi # end check java
23113     fi # end check boot jdk found
23114   fi
23115 
23116     done
23117   fi
23118 
23119 
23120     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23121     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23122       # Do we have a bin/java?
23123       if test ! -x "$BOOT_JDK/bin/java"; then
23124         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23125 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23126         BOOT_JDK_FOUND=no
23127       else
23128         # Do we have a bin/javac?
23129         if test ! -x "$BOOT_JDK/bin/javac"; then
23130           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23131 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23132           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23133 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23134           BOOT_JDK_FOUND=no
23135         else
23136           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23137           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23138             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23140             BOOT_JDK_FOUND=no
23141           else
23142             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23143             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23144 
23145             # Extra M4 quote needed to protect [] in grep expression.
23146             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23147             if test "x$FOUND_VERSION_78" = x; then
23148               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23149 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23150               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23151 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23152               BOOT_JDK_FOUND=no
23153             else
23154               # We're done! :-)
23155               BOOT_JDK_FOUND=yes
23156 
23157   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23158 
23159   # Input might be given as Windows format, start by converting to
23160   # unix format.
23161   path="$BOOT_JDK"
23162   new_path=`$CYGPATH -u "$path"`
23163 
23164   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23165   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23166   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23167   # "foo.exe" is OK but "foo" is an error.
23168   #
23169   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23170   # It is also a way to make sure we got the proper file name for the real test later on.
23171   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23172   if test "x$test_shortpath" = x; then
23173     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23174 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23175     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23176   fi
23177 
23178   # Call helper function which possibly converts this using DOS-style short mode.
23179   # If so, the updated path is stored in $new_path.
23180 
23181   input_path="$new_path"
23182   # Check if we need to convert this using DOS-style short mode. If the path
23183   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23184   # take no chances and rewrite it.
23185   # Note: m4 eats our [], so we need to use [ and ] instead.
23186   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23187   if test "x$has_forbidden_chars" != x; then
23188     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23189     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23190     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23191     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23192       # Going to short mode and back again did indeed matter. Since short mode is
23193       # case insensitive, let's make it lowercase to improve readability.
23194       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23195       # Now convert it back to Unix-style (cygpath)
23196       input_path=`$CYGPATH -u "$shortmode_path"`
23197       new_path="$input_path"
23198     fi
23199   fi
23200 
23201   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23202   if test "x$test_cygdrive_prefix" = x; then
23203     # As a simple fix, exclude /usr/bin since it's not a real path.
23204     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23205       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23206       # a path prefixed by /cygdrive for fixpath to work.
23207       new_path="$CYGWIN_ROOT_PATH$input_path"
23208     fi
23209   fi
23210 
23211 
23212   if test "x$path" != "x$new_path"; then
23213     BOOT_JDK="$new_path"
23214     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23215 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23216   fi
23217 
23218   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23219 
23220   path="$BOOT_JDK"
23221   has_colon=`$ECHO $path | $GREP ^.:`
23222   new_path="$path"
23223   if test "x$has_colon" = x; then
23224     # Not in mixed or Windows style, start by that.
23225     new_path=`cmd //c echo $path`
23226   fi
23227 
23228 
23229   input_path="$new_path"
23230   # Check if we need to convert this using DOS-style short mode. If the path
23231   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23232   # take no chances and rewrite it.
23233   # Note: m4 eats our [], so we need to use [ and ] instead.
23234   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23235   if test "x$has_forbidden_chars" != x; then
23236     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23237     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23238   fi
23239 
23240 
23241   windows_path="$new_path"
23242   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23243     unix_path=`$CYGPATH -u "$windows_path"`
23244     new_path="$unix_path"
23245   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23246     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23247     new_path="$unix_path"
23248   fi
23249 
23250   if test "x$path" != "x$new_path"; then
23251     BOOT_JDK="$new_path"
23252     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23253 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23254   fi
23255 
23256   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23257   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23258 
23259   else
23260     # We're on a posix platform. Hooray! :)
23261     path="$BOOT_JDK"
23262     has_space=`$ECHO "$path" | $GREP " "`
23263     if test "x$has_space" != x; then
23264       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23265 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23266       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23267     fi
23268 
23269     # Use eval to expand a potential ~
23270     eval path="$path"
23271     if test ! -f "$path" && test ! -d "$path"; then
23272       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23273     fi
23274 
23275     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23276   fi
23277 
23278               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23279 $as_echo_n "checking for Boot JDK... " >&6; }
23280               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23281 $as_echo "$BOOT_JDK" >&6; }
23282               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23283 $as_echo_n "checking Boot JDK version... " >&6; }
23284               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23285               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23286 $as_echo "$BOOT_JDK_VERSION" >&6; }
23287             fi # end check jdk version
23288           fi # end check rt.jar
23289         fi # end check javac
23290       fi # end check java
23291     fi # end check boot jdk found
23292   fi
23293 
23294   elif test "x$OPENJDK_TARGET_OS" = xmacosx; then
23295 
23296   if test "x$BOOT_JDK_FOUND" = xno; then
23297     # Now execute the test
23298 
23299   BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines"
23300   BOOT_JDK_SUFFIX="/Contents/Home"
23301   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23302   if test "x$ALL_JDKS_FOUND" != x; then
23303     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23304 
23305   if test "x$BOOT_JDK_FOUND" = xno; then
23306     # Now execute the test
23307 
23308         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23309         if test -d "$BOOT_JDK"; then
23310           BOOT_JDK_FOUND=maybe
23311           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23312 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23313         fi
23314 
23315 
23316     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23317     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23318       # Do we have a bin/java?
23319       if test ! -x "$BOOT_JDK/bin/java"; then
23320         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23321 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23322         BOOT_JDK_FOUND=no
23323       else
23324         # Do we have a bin/javac?
23325         if test ! -x "$BOOT_JDK/bin/javac"; then
23326           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23327 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23328           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23329 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23330           BOOT_JDK_FOUND=no
23331         else
23332           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23333           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23334             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23335 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23336             BOOT_JDK_FOUND=no
23337           else
23338             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23339             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23340 
23341             # Extra M4 quote needed to protect [] in grep expression.
23342             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23343             if test "x$FOUND_VERSION_78" = x; then
23344               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23345 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23346               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23347 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23348               BOOT_JDK_FOUND=no
23349             else
23350               # We're done! :-)
23351               BOOT_JDK_FOUND=yes
23352 
23353   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23354 
23355   # Input might be given as Windows format, start by converting to
23356   # unix format.
23357   path="$BOOT_JDK"
23358   new_path=`$CYGPATH -u "$path"`
23359 
23360   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23361   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23362   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23363   # "foo.exe" is OK but "foo" is an error.
23364   #
23365   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23366   # It is also a way to make sure we got the proper file name for the real test later on.
23367   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23368   if test "x$test_shortpath" = x; then
23369     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23370 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23371     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23372   fi
23373 
23374   # Call helper function which possibly converts this using DOS-style short mode.
23375   # If so, the updated path is stored in $new_path.
23376 
23377   input_path="$new_path"
23378   # Check if we need to convert this using DOS-style short mode. If the path
23379   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23380   # take no chances and rewrite it.
23381   # Note: m4 eats our [], so we need to use [ and ] instead.
23382   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23383   if test "x$has_forbidden_chars" != x; then
23384     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23385     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23386     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23387     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23388       # Going to short mode and back again did indeed matter. Since short mode is
23389       # case insensitive, let's make it lowercase to improve readability.
23390       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23391       # Now convert it back to Unix-style (cygpath)
23392       input_path=`$CYGPATH -u "$shortmode_path"`
23393       new_path="$input_path"
23394     fi
23395   fi
23396 
23397   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23398   if test "x$test_cygdrive_prefix" = x; then
23399     # As a simple fix, exclude /usr/bin since it's not a real path.
23400     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23401       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23402       # a path prefixed by /cygdrive for fixpath to work.
23403       new_path="$CYGWIN_ROOT_PATH$input_path"
23404     fi
23405   fi
23406 
23407 
23408   if test "x$path" != "x$new_path"; then
23409     BOOT_JDK="$new_path"
23410     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23411 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23412   fi
23413 
23414   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23415 
23416   path="$BOOT_JDK"
23417   has_colon=`$ECHO $path | $GREP ^.:`
23418   new_path="$path"
23419   if test "x$has_colon" = x; then
23420     # Not in mixed or Windows style, start by that.
23421     new_path=`cmd //c echo $path`
23422   fi
23423 
23424 
23425   input_path="$new_path"
23426   # Check if we need to convert this using DOS-style short mode. If the path
23427   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23428   # take no chances and rewrite it.
23429   # Note: m4 eats our [], so we need to use [ and ] instead.
23430   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23431   if test "x$has_forbidden_chars" != x; then
23432     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23433     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23434   fi
23435 
23436 
23437   windows_path="$new_path"
23438   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23439     unix_path=`$CYGPATH -u "$windows_path"`
23440     new_path="$unix_path"
23441   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23442     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23443     new_path="$unix_path"
23444   fi
23445 
23446   if test "x$path" != "x$new_path"; then
23447     BOOT_JDK="$new_path"
23448     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23449 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23450   fi
23451 
23452   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23453   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23454 
23455   else
23456     # We're on a posix platform. Hooray! :)
23457     path="$BOOT_JDK"
23458     has_space=`$ECHO "$path" | $GREP " "`
23459     if test "x$has_space" != x; then
23460       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23461 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23462       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23463     fi
23464 
23465     # Use eval to expand a potential ~
23466     eval path="$path"
23467     if test ! -f "$path" && test ! -d "$path"; then
23468       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23469     fi
23470 
23471     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23472   fi
23473 
23474               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23475 $as_echo_n "checking for Boot JDK... " >&6; }
23476               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23477 $as_echo "$BOOT_JDK" >&6; }
23478               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23479 $as_echo_n "checking Boot JDK version... " >&6; }
23480               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23481               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23482 $as_echo "$BOOT_JDK_VERSION" >&6; }
23483             fi # end check jdk version
23484           fi # end check rt.jar
23485         fi # end check javac
23486       fi # end check java
23487     fi # end check boot jdk found
23488   fi
23489 
23490     done
23491   fi
23492 
23493 
23494     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23495     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23496       # Do we have a bin/java?
23497       if test ! -x "$BOOT_JDK/bin/java"; then
23498         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23499 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23500         BOOT_JDK_FOUND=no
23501       else
23502         # Do we have a bin/javac?
23503         if test ! -x "$BOOT_JDK/bin/javac"; then
23504           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23505 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23506           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23507 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23508           BOOT_JDK_FOUND=no
23509         else
23510           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23511           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23512             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23513 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23514             BOOT_JDK_FOUND=no
23515           else
23516             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23517             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23518 
23519             # Extra M4 quote needed to protect [] in grep expression.
23520             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23521             if test "x$FOUND_VERSION_78" = x; then
23522               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23524               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23525 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23526               BOOT_JDK_FOUND=no
23527             else
23528               # We're done! :-)
23529               BOOT_JDK_FOUND=yes
23530 
23531   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23532 
23533   # Input might be given as Windows format, start by converting to
23534   # unix format.
23535   path="$BOOT_JDK"
23536   new_path=`$CYGPATH -u "$path"`
23537 
23538   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23539   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23540   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23541   # "foo.exe" is OK but "foo" is an error.
23542   #
23543   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23544   # It is also a way to make sure we got the proper file name for the real test later on.
23545   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23546   if test "x$test_shortpath" = x; then
23547     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23548 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23549     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23550   fi
23551 
23552   # Call helper function which possibly converts this using DOS-style short mode.
23553   # If so, the updated path is stored in $new_path.
23554 
23555   input_path="$new_path"
23556   # Check if we need to convert this using DOS-style short mode. If the path
23557   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23558   # take no chances and rewrite it.
23559   # Note: m4 eats our [], so we need to use [ and ] instead.
23560   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23561   if test "x$has_forbidden_chars" != x; then
23562     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23563     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23564     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23565     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23566       # Going to short mode and back again did indeed matter. Since short mode is
23567       # case insensitive, let's make it lowercase to improve readability.
23568       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23569       # Now convert it back to Unix-style (cygpath)
23570       input_path=`$CYGPATH -u "$shortmode_path"`
23571       new_path="$input_path"
23572     fi
23573   fi
23574 
23575   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23576   if test "x$test_cygdrive_prefix" = x; then
23577     # As a simple fix, exclude /usr/bin since it's not a real path.
23578     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23579       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23580       # a path prefixed by /cygdrive for fixpath to work.
23581       new_path="$CYGWIN_ROOT_PATH$input_path"
23582     fi
23583   fi
23584 
23585 
23586   if test "x$path" != "x$new_path"; then
23587     BOOT_JDK="$new_path"
23588     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23589 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23590   fi
23591 
23592   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23593 
23594   path="$BOOT_JDK"
23595   has_colon=`$ECHO $path | $GREP ^.:`
23596   new_path="$path"
23597   if test "x$has_colon" = x; then
23598     # Not in mixed or Windows style, start by that.
23599     new_path=`cmd //c echo $path`
23600   fi
23601 
23602 
23603   input_path="$new_path"
23604   # Check if we need to convert this using DOS-style short mode. If the path
23605   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23606   # take no chances and rewrite it.
23607   # Note: m4 eats our [], so we need to use [ and ] instead.
23608   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23609   if test "x$has_forbidden_chars" != x; then
23610     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23611     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23612   fi
23613 
23614 
23615   windows_path="$new_path"
23616   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23617     unix_path=`$CYGPATH -u "$windows_path"`
23618     new_path="$unix_path"
23619   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23620     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23621     new_path="$unix_path"
23622   fi
23623 
23624   if test "x$path" != "x$new_path"; then
23625     BOOT_JDK="$new_path"
23626     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23627 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23628   fi
23629 
23630   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23631   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23632 
23633   else
23634     # We're on a posix platform. Hooray! :)
23635     path="$BOOT_JDK"
23636     has_space=`$ECHO "$path" | $GREP " "`
23637     if test "x$has_space" != x; then
23638       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23639 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23640       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23641     fi
23642 
23643     # Use eval to expand a potential ~
23644     eval path="$path"
23645     if test ! -f "$path" && test ! -d "$path"; then
23646       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23647     fi
23648 
23649     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23650   fi
23651 
23652               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23653 $as_echo_n "checking for Boot JDK... " >&6; }
23654               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23655 $as_echo "$BOOT_JDK" >&6; }
23656               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23657 $as_echo_n "checking Boot JDK version... " >&6; }
23658               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23659               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23660 $as_echo "$BOOT_JDK_VERSION" >&6; }
23661             fi # end check jdk version
23662           fi # end check rt.jar
23663         fi # end check javac
23664       fi # end check java
23665     fi # end check boot jdk found
23666   fi
23667 
23668 
23669   if test "x$BOOT_JDK_FOUND" = xno; then
23670     # Now execute the test
23671 
23672   BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines"
23673   BOOT_JDK_SUFFIX="/Contents/Home"
23674   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
23675   if test "x$ALL_JDKS_FOUND" != x; then
23676     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
23677 
23678   if test "x$BOOT_JDK_FOUND" = xno; then
23679     # Now execute the test
23680 
23681         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
23682         if test -d "$BOOT_JDK"; then
23683           BOOT_JDK_FOUND=maybe
23684           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
23685 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
23686         fi
23687 
23688 
23689     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23690     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23691       # Do we have a bin/java?
23692       if test ! -x "$BOOT_JDK/bin/java"; then
23693         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23694 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23695         BOOT_JDK_FOUND=no
23696       else
23697         # Do we have a bin/javac?
23698         if test ! -x "$BOOT_JDK/bin/javac"; then
23699           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23700 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23701           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23702 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23703           BOOT_JDK_FOUND=no
23704         else
23705           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23706           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23707             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23708 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23709             BOOT_JDK_FOUND=no
23710           else
23711             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23712             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23713 
23714             # Extra M4 quote needed to protect [] in grep expression.
23715             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23716             if test "x$FOUND_VERSION_78" = x; then
23717               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23718 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23719               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23720 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23721               BOOT_JDK_FOUND=no
23722             else
23723               # We're done! :-)
23724               BOOT_JDK_FOUND=yes
23725 
23726   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23727 
23728   # Input might be given as Windows format, start by converting to
23729   # unix format.
23730   path="$BOOT_JDK"
23731   new_path=`$CYGPATH -u "$path"`
23732 
23733   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23734   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23735   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23736   # "foo.exe" is OK but "foo" is an error.
23737   #
23738   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23739   # It is also a way to make sure we got the proper file name for the real test later on.
23740   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23741   if test "x$test_shortpath" = x; then
23742     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23743 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23744     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23745   fi
23746 
23747   # Call helper function which possibly converts this using DOS-style short mode.
23748   # If so, the updated path is stored in $new_path.
23749 
23750   input_path="$new_path"
23751   # Check if we need to convert this using DOS-style short mode. If the path
23752   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23753   # take no chances and rewrite it.
23754   # Note: m4 eats our [], so we need to use [ and ] instead.
23755   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23756   if test "x$has_forbidden_chars" != x; then
23757     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23758     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23759     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23760     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23761       # Going to short mode and back again did indeed matter. Since short mode is
23762       # case insensitive, let's make it lowercase to improve readability.
23763       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23764       # Now convert it back to Unix-style (cygpath)
23765       input_path=`$CYGPATH -u "$shortmode_path"`
23766       new_path="$input_path"
23767     fi
23768   fi
23769 
23770   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23771   if test "x$test_cygdrive_prefix" = x; then
23772     # As a simple fix, exclude /usr/bin since it's not a real path.
23773     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23774       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23775       # a path prefixed by /cygdrive for fixpath to work.
23776       new_path="$CYGWIN_ROOT_PATH$input_path"
23777     fi
23778   fi
23779 
23780 
23781   if test "x$path" != "x$new_path"; then
23782     BOOT_JDK="$new_path"
23783     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23784 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23785   fi
23786 
23787   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23788 
23789   path="$BOOT_JDK"
23790   has_colon=`$ECHO $path | $GREP ^.:`
23791   new_path="$path"
23792   if test "x$has_colon" = x; then
23793     # Not in mixed or Windows style, start by that.
23794     new_path=`cmd //c echo $path`
23795   fi
23796 
23797 
23798   input_path="$new_path"
23799   # Check if we need to convert this using DOS-style short mode. If the path
23800   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23801   # take no chances and rewrite it.
23802   # Note: m4 eats our [], so we need to use [ and ] instead.
23803   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23804   if test "x$has_forbidden_chars" != x; then
23805     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23806     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23807   fi
23808 
23809 
23810   windows_path="$new_path"
23811   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23812     unix_path=`$CYGPATH -u "$windows_path"`
23813     new_path="$unix_path"
23814   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23815     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23816     new_path="$unix_path"
23817   fi
23818 
23819   if test "x$path" != "x$new_path"; then
23820     BOOT_JDK="$new_path"
23821     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23822 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23823   fi
23824 
23825   # Save the first 10 bytes of this path to the storage, so fixpath can work.
23826   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
23827 
23828   else
23829     # We're on a posix platform. Hooray! :)
23830     path="$BOOT_JDK"
23831     has_space=`$ECHO "$path" | $GREP " "`
23832     if test "x$has_space" != x; then
23833       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23834 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23835       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
23836     fi
23837 
23838     # Use eval to expand a potential ~
23839     eval path="$path"
23840     if test ! -f "$path" && test ! -d "$path"; then
23841       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
23842     fi
23843 
23844     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
23845   fi
23846 
23847               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
23848 $as_echo_n "checking for Boot JDK... " >&6; }
23849               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
23850 $as_echo "$BOOT_JDK" >&6; }
23851               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
23852 $as_echo_n "checking Boot JDK version... " >&6; }
23853               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
23854               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
23855 $as_echo "$BOOT_JDK_VERSION" >&6; }
23856             fi # end check jdk version
23857           fi # end check rt.jar
23858         fi # end check javac
23859       fi # end check java
23860     fi # end check boot jdk found
23861   fi
23862 
23863     done
23864   fi
23865 
23866 
23867     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
23868     if test "x$BOOT_JDK_FOUND" = xmaybe; then
23869       # Do we have a bin/java?
23870       if test ! -x "$BOOT_JDK/bin/java"; then
23871         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
23872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
23873         BOOT_JDK_FOUND=no
23874       else
23875         # Do we have a bin/javac?
23876         if test ! -x "$BOOT_JDK/bin/javac"; then
23877           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
23878 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
23879           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
23880 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
23881           BOOT_JDK_FOUND=no
23882         else
23883           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
23884           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
23885             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
23886 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
23887             BOOT_JDK_FOUND=no
23888           else
23889             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
23890             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
23891 
23892             # Extra M4 quote needed to protect [] in grep expression.
23893             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
23894             if test "x$FOUND_VERSION_78" = x; then
23895               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
23896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
23897               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
23898 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
23899               BOOT_JDK_FOUND=no
23900             else
23901               # We're done! :-)
23902               BOOT_JDK_FOUND=yes
23903 
23904   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23905 
23906   # Input might be given as Windows format, start by converting to
23907   # unix format.
23908   path="$BOOT_JDK"
23909   new_path=`$CYGPATH -u "$path"`
23910 
23911   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
23912   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
23913   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
23914   # "foo.exe" is OK but "foo" is an error.
23915   #
23916   # This test is therefore slightly more accurate than "test -f" to check for file precense.
23917   # It is also a way to make sure we got the proper file name for the real test later on.
23918   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
23919   if test "x$test_shortpath" = x; then
23920     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
23921 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
23922     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
23923   fi
23924 
23925   # Call helper function which possibly converts this using DOS-style short mode.
23926   # If so, the updated path is stored in $new_path.
23927 
23928   input_path="$new_path"
23929   # Check if we need to convert this using DOS-style short mode. If the path
23930   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23931   # take no chances and rewrite it.
23932   # Note: m4 eats our [], so we need to use [ and ] instead.
23933   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
23934   if test "x$has_forbidden_chars" != x; then
23935     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23936     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
23937     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
23938     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
23939       # Going to short mode and back again did indeed matter. Since short mode is
23940       # case insensitive, let's make it lowercase to improve readability.
23941       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23942       # Now convert it back to Unix-style (cygpath)
23943       input_path=`$CYGPATH -u "$shortmode_path"`
23944       new_path="$input_path"
23945     fi
23946   fi
23947 
23948   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
23949   if test "x$test_cygdrive_prefix" = x; then
23950     # As a simple fix, exclude /usr/bin since it's not a real path.
23951     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
23952       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
23953       # a path prefixed by /cygdrive for fixpath to work.
23954       new_path="$CYGWIN_ROOT_PATH$input_path"
23955     fi
23956   fi
23957 
23958 
23959   if test "x$path" != "x$new_path"; then
23960     BOOT_JDK="$new_path"
23961     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
23962 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
23963   fi
23964 
23965   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23966 
23967   path="$BOOT_JDK"
23968   has_colon=`$ECHO $path | $GREP ^.:`
23969   new_path="$path"
23970   if test "x$has_colon" = x; then
23971     # Not in mixed or Windows style, start by that.
23972     new_path=`cmd //c echo $path`
23973   fi
23974 
23975 
23976   input_path="$new_path"
23977   # Check if we need to convert this using DOS-style short mode. If the path
23978   # contains just simple characters, use it. Otherwise (spaces, weird characters),
23979   # take no chances and rewrite it.
23980   # Note: m4 eats our [], so we need to use [ and ] instead.
23981   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
23982   if test "x$has_forbidden_chars" != x; then
23983     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
23984     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
23985   fi
23986 
23987 
23988   windows_path="$new_path"
23989   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
23990     unix_path=`$CYGPATH -u "$windows_path"`
23991     new_path="$unix_path"
23992   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
23993     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
23994     new_path="$unix_path"
23995   fi
23996 
23997   if test "x$path" != "x$new_path"; then
23998     BOOT_JDK="$new_path"
23999     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24000 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24001   fi
24002 
24003   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24004   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24005 
24006   else
24007     # We're on a posix platform. Hooray! :)
24008     path="$BOOT_JDK"
24009     has_space=`$ECHO "$path" | $GREP " "`
24010     if test "x$has_space" != x; then
24011       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24012 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24013       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24014     fi
24015 
24016     # Use eval to expand a potential ~
24017     eval path="$path"
24018     if test ! -f "$path" && test ! -d "$path"; then
24019       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24020     fi
24021 
24022     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24023   fi
24024 
24025               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24026 $as_echo_n "checking for Boot JDK... " >&6; }
24027               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24028 $as_echo "$BOOT_JDK" >&6; }
24029               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24030 $as_echo_n "checking Boot JDK version... " >&6; }
24031               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24032               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24033 $as_echo "$BOOT_JDK_VERSION" >&6; }
24034             fi # end check jdk version
24035           fi # end check rt.jar
24036         fi # end check javac
24037       fi # end check java
24038     fi # end check boot jdk found
24039   fi
24040 
24041   elif test "x$OPENJDK_TARGET_OS" = xlinux; then
24042 
24043   if test "x$BOOT_JDK_FOUND" = xno; then
24044     # Now execute the test
24045 
24046   BOOT_JDK_PREFIX="/usr/lib/jvm"
24047   BOOT_JDK_SUFFIX=""
24048   ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r`
24049   if test "x$ALL_JDKS_FOUND" != x; then
24050     for JDK_TO_TRY in $ALL_JDKS_FOUND ; do
24051 
24052   if test "x$BOOT_JDK_FOUND" = xno; then
24053     # Now execute the test
24054 
24055         BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}"
24056         if test -d "$BOOT_JDK"; then
24057           BOOT_JDK_FOUND=maybe
24058           { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5
24059 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;}
24060         fi
24061 
24062 
24063     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24064     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24065       # Do we have a bin/java?
24066       if test ! -x "$BOOT_JDK/bin/java"; then
24067         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24069         BOOT_JDK_FOUND=no
24070       else
24071         # Do we have a bin/javac?
24072         if test ! -x "$BOOT_JDK/bin/javac"; then
24073           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24074 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24075           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24076 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24077           BOOT_JDK_FOUND=no
24078         else
24079           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24080           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24081             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24083             BOOT_JDK_FOUND=no
24084           else
24085             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24086             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24087 
24088             # Extra M4 quote needed to protect [] in grep expression.
24089             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24090             if test "x$FOUND_VERSION_78" = x; then
24091               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24092 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24093               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24094 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24095               BOOT_JDK_FOUND=no
24096             else
24097               # We're done! :-)
24098               BOOT_JDK_FOUND=yes
24099 
24100   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24101 
24102   # Input might be given as Windows format, start by converting to
24103   # unix format.
24104   path="$BOOT_JDK"
24105   new_path=`$CYGPATH -u "$path"`
24106 
24107   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24108   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24109   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24110   # "foo.exe" is OK but "foo" is an error.
24111   #
24112   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24113   # It is also a way to make sure we got the proper file name for the real test later on.
24114   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24115   if test "x$test_shortpath" = x; then
24116     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24117 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24118     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24119   fi
24120 
24121   # Call helper function which possibly converts this using DOS-style short mode.
24122   # If so, the updated path is stored in $new_path.
24123 
24124   input_path="$new_path"
24125   # Check if we need to convert this using DOS-style short mode. If the path
24126   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24127   # take no chances and rewrite it.
24128   # Note: m4 eats our [], so we need to use [ and ] instead.
24129   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24130   if test "x$has_forbidden_chars" != x; then
24131     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24132     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24133     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24134     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24135       # Going to short mode and back again did indeed matter. Since short mode is
24136       # case insensitive, let's make it lowercase to improve readability.
24137       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24138       # Now convert it back to Unix-style (cygpath)
24139       input_path=`$CYGPATH -u "$shortmode_path"`
24140       new_path="$input_path"
24141     fi
24142   fi
24143 
24144   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24145   if test "x$test_cygdrive_prefix" = x; then
24146     # As a simple fix, exclude /usr/bin since it's not a real path.
24147     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24148       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24149       # a path prefixed by /cygdrive for fixpath to work.
24150       new_path="$CYGWIN_ROOT_PATH$input_path"
24151     fi
24152   fi
24153 
24154 
24155   if test "x$path" != "x$new_path"; then
24156     BOOT_JDK="$new_path"
24157     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24158 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24159   fi
24160 
24161   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24162 
24163   path="$BOOT_JDK"
24164   has_colon=`$ECHO $path | $GREP ^.:`
24165   new_path="$path"
24166   if test "x$has_colon" = x; then
24167     # Not in mixed or Windows style, start by that.
24168     new_path=`cmd //c echo $path`
24169   fi
24170 
24171 
24172   input_path="$new_path"
24173   # Check if we need to convert this using DOS-style short mode. If the path
24174   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24175   # take no chances and rewrite it.
24176   # Note: m4 eats our [], so we need to use [ and ] instead.
24177   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24178   if test "x$has_forbidden_chars" != x; then
24179     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24180     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24181   fi
24182 
24183 
24184   windows_path="$new_path"
24185   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24186     unix_path=`$CYGPATH -u "$windows_path"`
24187     new_path="$unix_path"
24188   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24189     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24190     new_path="$unix_path"
24191   fi
24192 
24193   if test "x$path" != "x$new_path"; then
24194     BOOT_JDK="$new_path"
24195     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24196 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24197   fi
24198 
24199   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24200   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24201 
24202   else
24203     # We're on a posix platform. Hooray! :)
24204     path="$BOOT_JDK"
24205     has_space=`$ECHO "$path" | $GREP " "`
24206     if test "x$has_space" != x; then
24207       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24208 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24209       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24210     fi
24211 
24212     # Use eval to expand a potential ~
24213     eval path="$path"
24214     if test ! -f "$path" && test ! -d "$path"; then
24215       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24216     fi
24217 
24218     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24219   fi
24220 
24221               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24222 $as_echo_n "checking for Boot JDK... " >&6; }
24223               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24224 $as_echo "$BOOT_JDK" >&6; }
24225               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24226 $as_echo_n "checking Boot JDK version... " >&6; }
24227               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24228               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24229 $as_echo "$BOOT_JDK_VERSION" >&6; }
24230             fi # end check jdk version
24231           fi # end check rt.jar
24232         fi # end check javac
24233       fi # end check java
24234     fi # end check boot jdk found
24235   fi
24236 
24237     done
24238   fi
24239 
24240 
24241     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24242     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24243       # Do we have a bin/java?
24244       if test ! -x "$BOOT_JDK/bin/java"; then
24245         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24247         BOOT_JDK_FOUND=no
24248       else
24249         # Do we have a bin/javac?
24250         if test ! -x "$BOOT_JDK/bin/javac"; then
24251           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24253           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24254 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24255           BOOT_JDK_FOUND=no
24256         else
24257           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24258           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24259             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24261             BOOT_JDK_FOUND=no
24262           else
24263             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24264             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24265 
24266             # Extra M4 quote needed to protect [] in grep expression.
24267             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24268             if test "x$FOUND_VERSION_78" = x; then
24269               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24271               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24272 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24273               BOOT_JDK_FOUND=no
24274             else
24275               # We're done! :-)
24276               BOOT_JDK_FOUND=yes
24277 
24278   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24279 
24280   # Input might be given as Windows format, start by converting to
24281   # unix format.
24282   path="$BOOT_JDK"
24283   new_path=`$CYGPATH -u "$path"`
24284 
24285   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24286   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24287   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24288   # "foo.exe" is OK but "foo" is an error.
24289   #
24290   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24291   # It is also a way to make sure we got the proper file name for the real test later on.
24292   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24293   if test "x$test_shortpath" = x; then
24294     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24296     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24297   fi
24298 
24299   # Call helper function which possibly converts this using DOS-style short mode.
24300   # If so, the updated path is stored in $new_path.
24301 
24302   input_path="$new_path"
24303   # Check if we need to convert this using DOS-style short mode. If the path
24304   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24305   # take no chances and rewrite it.
24306   # Note: m4 eats our [], so we need to use [ and ] instead.
24307   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24308   if test "x$has_forbidden_chars" != x; then
24309     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24310     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24311     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24312     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24313       # Going to short mode and back again did indeed matter. Since short mode is
24314       # case insensitive, let's make it lowercase to improve readability.
24315       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24316       # Now convert it back to Unix-style (cygpath)
24317       input_path=`$CYGPATH -u "$shortmode_path"`
24318       new_path="$input_path"
24319     fi
24320   fi
24321 
24322   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24323   if test "x$test_cygdrive_prefix" = x; then
24324     # As a simple fix, exclude /usr/bin since it's not a real path.
24325     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24326       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24327       # a path prefixed by /cygdrive for fixpath to work.
24328       new_path="$CYGWIN_ROOT_PATH$input_path"
24329     fi
24330   fi
24331 
24332 
24333   if test "x$path" != "x$new_path"; then
24334     BOOT_JDK="$new_path"
24335     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24337   fi
24338 
24339   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24340 
24341   path="$BOOT_JDK"
24342   has_colon=`$ECHO $path | $GREP ^.:`
24343   new_path="$path"
24344   if test "x$has_colon" = x; then
24345     # Not in mixed or Windows style, start by that.
24346     new_path=`cmd //c echo $path`
24347   fi
24348 
24349 
24350   input_path="$new_path"
24351   # Check if we need to convert this using DOS-style short mode. If the path
24352   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24353   # take no chances and rewrite it.
24354   # Note: m4 eats our [], so we need to use [ and ] instead.
24355   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24356   if test "x$has_forbidden_chars" != x; then
24357     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24358     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24359   fi
24360 
24361 
24362   windows_path="$new_path"
24363   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24364     unix_path=`$CYGPATH -u "$windows_path"`
24365     new_path="$unix_path"
24366   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24367     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24368     new_path="$unix_path"
24369   fi
24370 
24371   if test "x$path" != "x$new_path"; then
24372     BOOT_JDK="$new_path"
24373     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24375   fi
24376 
24377   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24378   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24379 
24380   else
24381     # We're on a posix platform. Hooray! :)
24382     path="$BOOT_JDK"
24383     has_space=`$ECHO "$path" | $GREP " "`
24384     if test "x$has_space" != x; then
24385       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24386 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24387       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24388     fi
24389 
24390     # Use eval to expand a potential ~
24391     eval path="$path"
24392     if test ! -f "$path" && test ! -d "$path"; then
24393       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24394     fi
24395 
24396     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24397   fi
24398 
24399               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24400 $as_echo_n "checking for Boot JDK... " >&6; }
24401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24402 $as_echo "$BOOT_JDK" >&6; }
24403               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24404 $as_echo_n "checking Boot JDK version... " >&6; }
24405               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24406               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24407 $as_echo "$BOOT_JDK_VERSION" >&6; }
24408             fi # end check jdk version
24409           fi # end check rt.jar
24410         fi # end check javac
24411       fi # end check java
24412     fi # end check boot jdk found
24413   fi
24414 
24415   fi
24416 
24417 
24418     # If previous step claimed to have found a JDK, check it to see if it seems to be valid.
24419     if test "x$BOOT_JDK_FOUND" = xmaybe; then
24420       # Do we have a bin/java?
24421       if test ! -x "$BOOT_JDK/bin/java"; then
24422         { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5
24423 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;}
24424         BOOT_JDK_FOUND=no
24425       else
24426         # Do we have a bin/javac?
24427         if test ! -x "$BOOT_JDK/bin/javac"; then
24428           { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5
24429 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;}
24430           { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5
24431 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;}
24432           BOOT_JDK_FOUND=no
24433         else
24434           # Do we have an rt.jar? (On MacOSX it is called classes.jar)
24435           if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then
24436             { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5
24437 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;}
24438             BOOT_JDK_FOUND=no
24439           else
24440             # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version?
24441             BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1`
24442 
24443             # Extra M4 quote needed to protect [] in grep expression.
24444             FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
24445             if test "x$FOUND_VERSION_78" = x; then
24446               { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5
24447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;}
24448               { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5
24449 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;}
24450               BOOT_JDK_FOUND=no
24451             else
24452               # We're done! :-)
24453               BOOT_JDK_FOUND=yes
24454 
24455   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24456 
24457   # Input might be given as Windows format, start by converting to
24458   # unix format.
24459   path="$BOOT_JDK"
24460   new_path=`$CYGPATH -u "$path"`
24461 
24462   # Cygwin tries to hide some aspects of the Windows file system, such that binaries are
24463   # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered
24464   # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then
24465   # "foo.exe" is OK but "foo" is an error.
24466   #
24467   # This test is therefore slightly more accurate than "test -f" to check for file precense.
24468   # It is also a way to make sure we got the proper file name for the real test later on.
24469   test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null`
24470   if test "x$test_shortpath" = x; then
24471     { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24472 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24473     as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5
24474   fi
24475 
24476   # Call helper function which possibly converts this using DOS-style short mode.
24477   # If so, the updated path is stored in $new_path.
24478 
24479   input_path="$new_path"
24480   # Check if we need to convert this using DOS-style short mode. If the path
24481   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24482   # take no chances and rewrite it.
24483   # Note: m4 eats our [], so we need to use [ and ] instead.
24484   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]`
24485   if test "x$has_forbidden_chars" != x; then
24486     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24487     shortmode_path=`$CYGPATH -s -m -a "$input_path"`
24488     path_after_shortmode=`$CYGPATH -u "$shortmode_path"`
24489     if test "x$path_after_shortmode" != "x$input_to_shortpath"; then
24490       # Going to short mode and back again did indeed matter. Since short mode is
24491       # case insensitive, let's make it lowercase to improve readability.
24492       shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24493       # Now convert it back to Unix-style (cygpath)
24494       input_path=`$CYGPATH -u "$shortmode_path"`
24495       new_path="$input_path"
24496     fi
24497   fi
24498 
24499   test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/`
24500   if test "x$test_cygdrive_prefix" = x; then
24501     # As a simple fix, exclude /usr/bin since it's not a real path.
24502     if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then
24503       # The path is in a Cygwin special directory (e.g. /home). We need this converted to
24504       # a path prefixed by /cygdrive for fixpath to work.
24505       new_path="$CYGWIN_ROOT_PATH$input_path"
24506     fi
24507   fi
24508 
24509 
24510   if test "x$path" != "x$new_path"; then
24511     BOOT_JDK="$new_path"
24512     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24513 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24514   fi
24515 
24516   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24517 
24518   path="$BOOT_JDK"
24519   has_colon=`$ECHO $path | $GREP ^.:`
24520   new_path="$path"
24521   if test "x$has_colon" = x; then
24522     # Not in mixed or Windows style, start by that.
24523     new_path=`cmd //c echo $path`
24524   fi
24525 
24526 
24527   input_path="$new_path"
24528   # Check if we need to convert this using DOS-style short mode. If the path
24529   # contains just simple characters, use it. Otherwise (spaces, weird characters),
24530   # take no chances and rewrite it.
24531   # Note: m4 eats our [], so we need to use [ and ] instead.
24532   has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]`
24533   if test "x$has_forbidden_chars" != x; then
24534     # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \)
24535     new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
24536   fi
24537 
24538 
24539   windows_path="$new_path"
24540   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24541     unix_path=`$CYGPATH -u "$windows_path"`
24542     new_path="$unix_path"
24543   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24544     unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'`
24545     new_path="$unix_path"
24546   fi
24547 
24548   if test "x$path" != "x$new_path"; then
24549     BOOT_JDK="$new_path"
24550     { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5
24551 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;}
24552   fi
24553 
24554   # Save the first 10 bytes of this path to the storage, so fixpath can work.
24555   all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}")
24556 
24557   else
24558     # We're on a posix platform. Hooray! :)
24559     path="$BOOT_JDK"
24560     has_space=`$ECHO "$path" | $GREP " "`
24561     if test "x$has_space" != x; then
24562       { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5
24563 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;}
24564       as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5
24565     fi
24566 
24567     # Use eval to expand a potential ~
24568     eval path="$path"
24569     if test ! -f "$path" && test ! -d "$path"; then
24570       as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5
24571     fi
24572 
24573     BOOT_JDK="`cd "$path"; $THEPWDCMD -L`"
24574   fi
24575 
24576               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
24577 $as_echo_n "checking for Boot JDK... " >&6; }
24578               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
24579 $as_echo "$BOOT_JDK" >&6; }
24580               { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5
24581 $as_echo_n "checking Boot JDK version... " >&6; }
24582               BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' '  '`
24583               { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5
24584 $as_echo "$BOOT_JDK_VERSION" >&6; }
24585             fi # end check jdk version
24586           fi # end check rt.jar
24587         fi # end check javac
24588       fi # end check java
24589     fi # end check boot jdk found
24590   fi
24591 
24592 
24593   # If we haven't found anything yet, we've truly lost. Give up.
24594   if test "x$BOOT_JDK_FOUND" = xno; then
24595 
24596   # Print a helpful message on how to acquire the necessary build dependency.
24597   # openjdk is the help tag: freetype, cups, pulse, alsa etc
24598   MISSING_DEPENDENCY=openjdk
24599 
24600   if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then
24601     cygwin_help $MISSING_DEPENDENCY
24602   elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then
24603     msys_help $MISSING_DEPENDENCY
24604   else
24605     PKGHANDLER_COMMAND=
24606 
24607     case $PKGHANDLER in
24608       apt-get)
24609         apt_help     $MISSING_DEPENDENCY ;;
24610       yum)
24611         yum_help     $MISSING_DEPENDENCY ;;
24612       port)
24613         port_help    $MISSING_DEPENDENCY ;;
24614       pkgutil)
24615         pkgutil_help $MISSING_DEPENDENCY ;;
24616       pkgadd)
24617         pkgadd_help  $MISSING_DEPENDENCY ;;
24618     esac
24619 
24620     if test "x$PKGHANDLER_COMMAND" != x; then
24621       HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
24622     fi
24623   fi
24624 
24625     { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5
24626 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;}
24627     { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5
24628 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24629     as_fn_error $? "Cannot continue" "$LINENO" 5
24630   fi
24631 
24632   # Setup proper paths for what we found
24633   BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
24634   if test ! -f "$BOOT_RTJAR"; then
24635     # On MacOSX it is called classes.jar
24636     BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar"
24637     if test -f "$BOOT_RTJAR"; then
24638       # Remove the ..
24639       BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
24640     fi
24641   fi
24642   BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
24643   BOOT_JDK="$BOOT_JDK"
24644 
24645 
24646 
24647 
24648   # Setup tools from the Boot JDK.
24649 
24650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
24651 $as_echo_n "checking for java in Boot JDK... " >&6; }
24652   JAVA=$BOOT_JDK/bin/java
24653   if test ! -x $JAVA; then
24654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24655 $as_echo "not found" >&6; }
24656     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24657 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24658     as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5
24659   fi
24660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24661 $as_echo "ok" >&6; }
24662 
24663 
24664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
24665 $as_echo_n "checking for javac in Boot JDK... " >&6; }
24666   JAVAC=$BOOT_JDK/bin/javac
24667   if test ! -x $JAVAC; then
24668     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24669 $as_echo "not found" >&6; }
24670     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24671 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24672     as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5
24673   fi
24674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24675 $as_echo "ok" >&6; }
24676 
24677 
24678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
24679 $as_echo_n "checking for javah in Boot JDK... " >&6; }
24680   JAVAH=$BOOT_JDK/bin/javah
24681   if test ! -x $JAVAH; then
24682     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24683 $as_echo "not found" >&6; }
24684     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24685 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24686     as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5
24687   fi
24688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24689 $as_echo "ok" >&6; }
24690 
24691 
24692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5
24693 $as_echo_n "checking for javap in Boot JDK... " >&6; }
24694   JAVAP=$BOOT_JDK/bin/javap
24695   if test ! -x $JAVAP; then
24696     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24697 $as_echo "not found" >&6; }
24698     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24699 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24700     as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5
24701   fi
24702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24703 $as_echo "ok" >&6; }
24704 
24705 
24706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
24707 $as_echo_n "checking for jar in Boot JDK... " >&6; }
24708   JAR=$BOOT_JDK/bin/jar
24709   if test ! -x $JAR; then
24710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24711 $as_echo "not found" >&6; }
24712     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24713 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24714     as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5
24715   fi
24716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24717 $as_echo "ok" >&6; }
24718 
24719 
24720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
24721 $as_echo_n "checking for rmic in Boot JDK... " >&6; }
24722   RMIC=$BOOT_JDK/bin/rmic
24723   if test ! -x $RMIC; then
24724     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24725 $as_echo "not found" >&6; }
24726     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24727 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24728     as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5
24729   fi
24730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24731 $as_echo "ok" >&6; }
24732 
24733 
24734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
24735 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
24736   NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
24737   if test ! -x $NATIVE2ASCII; then
24738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24739 $as_echo "not found" >&6; }
24740     { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5
24741 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;}
24742     as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5
24743   fi
24744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
24745 $as_echo "ok" >&6; }
24746 
24747 
24748   # Finally, set some other options...
24749 
24750   # When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
24751   BOOT_JDK_SOURCETARGET="-source 7 -target 7"
24752 
24753 
24754 
24755   # Check if the boot jdk is 32 or 64 bit
24756   if "$JAVA" -d64 -version > /dev/null 2>&1; then
24757     BOOT_JDK_BITS="64"
24758   else
24759     BOOT_JDK_BITS="32"
24760   fi
24761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5
24762 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; }
24763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5
24764 $as_echo "$BOOT_JDK_BITS" >&6; }
24765 
24766 
24767 
24768   ##############################################################################
24769   #
24770   # Specify options for anything that is run with the Boot JDK.
24771   #
24772 
24773 # Check whether --with-boot-jdk-jvmargs was given.
24774 if test "${with_boot_jdk_jvmargs+set}" = set; then :
24775   withval=$with_boot_jdk_jvmargs;
24776 fi
24777 
24778 
24779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5
24780 $as_echo_n "checking flags for boot jdk java command ... " >&6; }
24781 
24782   # Disable special log output when a debug build is used as Boot JDK...
24783 
24784   $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5
24785   $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5
24786   OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1`
24787   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24788   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24789   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24790     boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
24791     JVM_ARG_OK=true
24792   else
24793     $ECHO "Arg failed:" >&5
24794     $ECHO "$OUTPUT" >&5
24795     JVM_ARG_OK=false
24796   fi
24797 
24798 
24799   # Apply user provided options.
24800 
24801   $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5
24802   $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5
24803   OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1`
24804   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24805   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24806   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24807     boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs"
24808     JVM_ARG_OK=true
24809   else
24810     $ECHO "Arg failed:" >&5
24811     $ECHO "$OUTPUT" >&5
24812     JVM_ARG_OK=false
24813   fi
24814 
24815 
24816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5
24817 $as_echo "$boot_jdk_jvmargs" >&6; }
24818 
24819   # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs
24820   JAVA_FLAGS=$boot_jdk_jvmargs
24821 
24822 
24823 
24824   { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5
24825 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; }
24826 
24827   # Starting amount of heap memory.
24828 
24829   $ECHO "Check if jvm arg is ok: -Xms64M" >&5
24830   $ECHO "Command: $JAVA -Xms64M -version" >&5
24831   OUTPUT=`$JAVA -Xms64M -version 2>&1`
24832   FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn`
24833   FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""`
24834   if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
24835     boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M"
24836     JVM_ARG_OK=true
24837   else
24838     $ECHO "Arg failed:" >&am